Skip to content

Send a test message from a custom telephony provider

Request

Identity Engine
OAuth 2.0 scope:
  • okta.customTelephonyProvider.manage

Sends a test message (SMS or call) using the specified custom telephony provider to verify that the provider is configured correctly.

You must provide a valid phone number and country code to send the test message. Send it to a phone number that you have access to so you can confirm that the message was received.

Path
customTelephonyProviderIdstringrequired

The ID of the custom telephony provider

Bodyapplication/jsonrequired
countryCodeIso2string

The country code for the phone number. Use the Alpha-2 code from ISO 3166-1 for country codes.

factorstring

The type of test message to send

Enum:"SMS""CALL"
phoneNumberstring

The phone number to which the test message or call is sent

curl -i -X POST \
  'https://subdomain.okta.com/api/v1/telephony-providers/{customTelephonyProviderId}/test' \
  -H 'Content-Type: application/json' \
  -d '{
    "factor": "SMS",
    "phoneNumber": "+1234567890",
    "countryCodeIso2": "US"
  }'

Responses

No Content

Response
No content