GET
/v1/mgmt/otp/settingsAuthorization
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", "emailServiceProvider": "string", "textServiceProvider": "string", "voiceServiceProvider": "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?: stringemailServiceProvider?: stringtextServiceProvider?: stringvoiceServiceProvider?: 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?