There is currently no API call available to get the association of a phone number to a contact flow within the Amazon Connect product space. Clearly the information is available to Amazon Connect as the info is included on the Manage Phone numbers page. Please add a call to make this information accessible via a programmatic interface.
Example call documentation
DescribePhoneNumberContactFlowAssociation
Gets the contact flow id (or empty value if not associated) of a phone number that’s claimed to your Amazon Connect instance or traffic distribution group.
Request Syntax
GET /phone-number-contact-flow-association/PhoneNumberId HTTP/1.1
URI Request Parameters
The request uses the following URI parameters.
PhoneNumberId
A unique identifier for the phone number.
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"PhoneNumberContactFlowAssociation": {
"PhoneNumberId": "string",
"ContactFlowId": "string"
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
PhoneNumberContactFlowAssociation
Information about a contact flow associated with a phone number that's been claimed to your Amazon Connect instance or traffic distribution group.
Type: PhoneNumberContactFlowAssociation object
PhoneNumberContactFlowAssociation
Information about the association between a phone number that has been claimed to your Amazon Connect instance or traffic distribution group and a contact flow within the Amazon Connect instance, if such an association exists.
Contents
PhoneNumberId
A unique identifier for the phone number.
Type: String
ContactFlowId
A unique identifier for the contact flow associated to the phone number. An empty value if no association exists.
Type: String