Import Exotel number
Import an Exotel number by providing your Exotel credentials.
Reseller keys only: act as one of your clients by its user id. Omit it to act on your own account. [How acting for a client works](/docs/reseller/your-clients/acting-as-clients).
Exotel phone number in E.164 format.
Your Exotel API key.
Your Exotel API token.
Your Exotel subdomain (e.g. your-account.in.exotel.com).
Your Exotel account SID.
The Exotel App ID configured for the bot.
Optional friendly name for the imported number.
curl -X POST 'https://omnidim.io/api/v1/phone_number/import/exotel' \ -H 'Authorization: Bearer YOUR_API_KEY' \ -H 'Content-Type: application/json' \ -d '{ "user_id": 1234, "exotel_phone_number": "+919876543210" }'
{ "success": true, "message": "Number added successfully", "id": 3360 }
BearerAuthAuthorizationBearer <token>Bearer token authentication. Obtain your API key from the OmniDimension dashboard.
application/jsonuser_id?ClientUserIdReseller keys only: act as one of your clients by its user id. Omit it to act on your own account. How acting for a client works.
exotel_phone_number*stringExotel phone number in E.164 format.
exotel_api_key*stringYour Exotel API key.
exotel_api_token*stringYour Exotel API token.
exotel_subdomain*stringYour Exotel subdomain (e.g. your-account.in.exotel.com).
exotel_account_sid*stringYour Exotel account SID.
exotel_app_id*stringThe Exotel App ID configured for the bot.
name?stringOptional friendly name for the imported number.
Response body
application/jsonExotel number imported.
application/jsonsuccess?booleanmessage?stringid?integerID of the newly imported phone number record. Use this with /phone_number/attach.
Was this page helpful?
