API ReferenceManagementOtp Management
GET
/v1/mgmt/otp/settings

Authorization

Descope Project ID and Management Key
AuthorizationBearer <token>

Project ID:Management Key as bearer token.

In: header

Get the project's one-time passcode settings, using a valid management key.

curl -X GET "https://api.descope.com/v1/mgmt/otp/settings"
{  "enabled": true,  "domain": "string",  "expirationTime": 0,  "expirationTimeUnit": "string",  "emailConnectorId": "string",  "textConnectorId": "string",  "voiceConnectorId": "string",  "emailTemplateId": "string",  "textTemplateId": "string",  "voiceTemplateId": "string"}
/** * One-time passcode (Terraform: descope_otp_settings). Carries the same representation used in *  exported snapshots, and the Get response and Set request are the same message. *  Patch semantics: omitted fields are left untouched; present fields are written. */export interface Response {enabled?: booleandomain?: stringexpirationTime?: numberexpirationTimeUnit?: stringemailConnectorId?: stringtextConnectorId?: stringvoiceConnectorId?: string/** * Active template selection by id. Absent = keep the current selection; "" = reset to the *  built-in System template; a template id = select that stored template. */emailTemplateId?: stringtextTemplateId?: stringvoiceTemplateId?: string}
Was this helpful?