Reserve a Routable Number

Reserves a routable phone number for dynamic PSTN call forwarding to Agentforce Voice.

Use this API to reserve a PSTN number from the Agentforce Voice number pool. The partner telephony system calls this API to obtain a dynamic routing number before transferring the PSTN call to Salesforce. The returned routableNumber is valid for a limited time and is used as the PSTN transfer destination. Salesforce uses the PSTN number along with the caller’s fromNumber to resolve the voice session context when the call arrives. The allocated number is valid for a maximum of 180 seconds. This API is available only to organizations provisioned for Agentforce Voice with the number-pool feature enabled.

https://{MyDomain}.my.salesforce-scrt.com/telephony/v1/voiceCalls/reserveRoutableNumber

Where {MyDomain} is a value configured as part of Salesforce setup.

POST

Authorization: Bearer <token>

String. Standard header. The authorization token, where <token> is the JSON Web Token (JWT). Required.

Content-Type: <format>

String. Standard header. The format of the request body. Valid formats include JSON and XML. For example, application/json or application/xml. Required.

Telephony-Provider-Name: <telephony provider name>

String. Custom header. The name of the telephony provider that calls this API. For example, Amazon Connect.

Property NameTypeDescriptionRequired
countryCodestringThe ISO 3166-1 alpha-2 country code for number pool selection. If your country isn’t listed, specify the closest supported country and minimize call latency.
  • Australia (AU)
  • Belgium (BE)
  • Chile (CL)
  • Colombia (CO)
  • Cyprus (CY)
  • Czechia (CZ)
  • Denmark (DK)
  • Finland (FI)
  • France (FR)
  • Germany (DE)
  • Hong Kong (HK)
  • Ireland (IE)
  • Israel (IL)
  • Italy (IT)
  • Japan (JP)
  • Lithuania (LT)
  • Luxembourg (LU)
  • Mexico (MX)
  • Netherlands (NL)
  • New Zealand (NZ)
  • Norway (NO)
  • Poland (PL)
  • Singapore (SG)
  • Slovakia (SK)
  • Slovenia (SI)
  • South Korea (KR)
  • Spain (ES)
  • Sweden (SE)
  • Switzerland (CH)
  • Thailand (TH)
  • United Kingdom (GB)
Yes
fromNumberstringThe caller’s phone number in E.164 format. For example, +14155551234. This number is used for validation during call lookup.Yes
contextobjectThe voice-call context associated with this reservation. See context.Yes
Property NameTypeDescriptionRequired
scrt2DomainstringThe SCRT2 domain URL for the Salesforce organization. For example, https://example.my.salesforce-scrt.com.Yes
toNumberstringThe virtual phone number in E.164 format that you configure in Salesforce.Yes
callIdstringThe ID of the initial voice call record (VC1) that’s created when the inbound call to the partner contact center. If omitted, context chaining with the parent voice call doesn’t happen.No
transactionIdstringA UUID that uniquely identifies this reserveRoutableNumber request. If provided, Salesforce uses this value to support idempotent retry behavior. If the partner contact center retries the request due to a timeout or transient error, passing the same transactionId ensures that a duplicate phone number lease isn’t created. Idempotency support takes effect only when this value is supplied.No
partnerCallIdstringVendor call key or UUID for the originating call leg.No
additionalParamsobject<string,string>Free-form key/value parameters reserved for future use (phase 2).No
originalFromNumberstringOptional E.164 caller number before a partner rewrites fromNumber in number mode. For example, +14155551111.No

Request:

Response: