Integrate new phone number
Integrates a phone number from an external provider into a campaign.
Provider-specific fields:
twilio: requirestwilioAccountSidandtwilioAuthTokensiptrunk: requiresgateways(array of{ip}objects)telnyx: requirestelnyxApiKeyandtelnyxPublicKey(BYO Telnyx numbers only)
Authentication
api-keystring
Your Atlas API key. Get it from the Atlas Portal under Settings > API Keys.
Request
This endpoint expects an object.
campaignId
provider
Allowed values:
number
Phone number in E.164 format
twilioAccountSid
Required when provider is twilio
twilioAuthToken
Required when provider is twilio
internalNumber
telnyxApiKey
Required when provider is telnyx. Your Telnyx API key.
telnyxPublicKey
Required when provider is telnyx. Your Telnyx account public key (Account Settings > Keys & Credentials > Public Key).
Response
Phone number integrated
Errors
400
Bad Request Error
500
Internal Server Error
