Get the Verify settings
The API key's environment's settings, with defaults filled in: the name codes are sent for, code length, lifetime and attempts, the senders, and the countries SMS codes may go to.
bearerAuthAuthorizationBearer <token>A secret API key from the dashboard: coss_live_… for production environments, coss_test_… for sandbox environments.
Coss-Version?"2026-10-10"The API version (a date) to use for this request. Defaults to your organization's version, pinned to the latest one when it first used the API and upgraded from the dashboard. The SDK always sends the version it was built for.
"2026-10-10"The settings.
application/json- response
- response
- …
An environment's Verify settings.
object*"verify_settings""verify_settings"app_name*stringThe name codes are sent for.
app_name_is_default*booleanWhether app_name is the project's: no name of its own is set.
code_length*integerDigits in a code.
ttl_seconds*integerHow long a code works.
max_attempts*integerWrong codes before a verification fails.
sms_from*|One of the organization's numbers; null: coss.com's shared numbers.
email_from*|An address on one of the organization's verified domains; null: coss.com's.
allowed_countries*array<string>ISO 3166 countries SMS codes may go to.
import { Coss } from "coss";const coss = new Coss({ apiKey: process.env.COSS_API_KEY, baseUrl: "https://api.coss.com",});const { data, error } = await coss.verify.settings.get();{ "object": "verify_settings", "app_name": "Acme", "app_name_is_default": false, "code_length": 6, "ttl_seconds": 600, "max_attempts": 5, "sms_from": "+14155550100", "email_from": "codes@acme.com", "allowed_countries": [ "CA", "US" ]}