AI Numbers API

The AI Numbers API is a web service that returns the caller ID to use for a call. Send the number you are calling and your prefix, and the API replies with the caller ID.

This API requires an API key. Find your key on the Organization settings page of the Smart Carrier dashboard. If you cannot find it, contact support@smartcarrier.io.

To review past requests, see the AI Numbers log.

Web service information

FieldValue
Endpointhttps://api.smartcarrier.io/v2/ai-numbers?
MethodGET
ParametersToNumber, FromNumber, clusterID
Headerx-api-key (get your API key)
Examplehttps://api.smartcarrier.io/v2/ai-numbers?ToNumber=15125550142&FromNumber=13125550100&clusterID=PREFIX_01

Request parameters

ParameterTypeDescription
ToNumberstringThe telephone number being called.
FromNumberstringThe caller ID your dialer would use without this API.
clusterIDstringYour prefix.

Sample response

{
  "RequestGuid": "11111111-2222-3333-4444-555555555555",
  "AccountGuid": "12345678-1234-1234-1234-123456789012",
  "UseANI": "13125550199",
  "Identity": null,
  "ResponseCode": "200",
  "AsteriskHangupCause": "",
  "ApplicationVersion": "7",
  "ProcessingTimeMS": 980
}

What do these values mean?

FieldDescription
RequestGuidA unique identifier assigned to this request.
AccountGuidThe account associated with this request.
UseANIThe caller ID to use for the call.
IdentityThe call’s identity header value, if one is set. null when none is set.
ResponseCodeResult of the request. 200 means success.
AsteriskHangupCauseThe Asterisk hangup cause, if any. Empty when none is set.
ApplicationVersionThe version of the service that handled the request.
ProcessingTimeMSTime the service took to process the request, in milliseconds.