Outbound Make Call API
Use this API to initiate an Outbound Flow request.
Request Parameters:
Method | POST |
---|---|
Body | JSON |
Headers | Content-Type: application/json |
Auth | None |
Payload:
{ "api-version": "1.0", "security-id": "<64 character alphanumeric>", "flow-id": "<8 character alphanumeric>", "calls": [ { "client-identifier": "<identifier, callback parameter>", "start-time": "2021-04-28T03:48:07.111Z+05:30", // ISO-8601 Timeformat "contact-numbers": [ "918000XXXXXX", // Customer Numbers "918100XXXXXX", // Alternate customer number(s) ], "keys": [ { "name": "$flow.key.Name", "value": "Abhinandan" }, { "name": "$flow.key.Language", "value": "English" } ] } ] }
Request Parameters Explanation:
api-version
: Use1.0
to use the IN PRODUCTION orTEST
to use the IN TESTING version of the outbound flow.security-id
: Get the security ID from the ‘Edit Flow’ page of any Outbound Flowflow-id
: Get the 8 character alpha numeric Flow ID from the ‘Edit Flow’ page of any Outbound Flowcalls
: Array. Each element in array represents one call. You can have up-to 500 calls in one request.client-identifier
: Callback variable to uniquely represent this request.start-time
: ISO-8601 Timestamp. Date cannot be of past. If time is of past (and date is today) the flow will be initiated immediately.contact-numbers
: Array. Mobile numbers of the customer. You can provide alternate numbers of a customer and calling will be initiated to each number until one is connected in one attempt.keys
: Array of Flow Variables. There’s no limit on how many flow variables can be provided."name": "$flow.key.<variable>"
: Name of flow variable."value": "Abhinandan"
: Value of the above flow variable.
Response:
Successful Response:
Status Code: 200{ "api-response-code": 200, "api-response-message": "Success", "request-id": "c46e46f4-dc58-4839-9483-f7dd9aac28a0", "call-details": [ { "client-identifier": "2021-04-28T03:48:07.110Z", "phonon-uuid": "501c78ee-8d06-498e-8952-fce3495f326b" } ] }
a. Request ID: Unique Identifier for the whole request.
b. Phonon UUID: Unique Identifier for each call.
2. Error Response:
{ "api-response-code": 500/401/201/202/301, "api-response-message": "Failure/IP Not Whitelisted/Checksum Repeated/Invalid Security ID/Invalid Flow ID", }
IP Not Whitelisted
401 : Please whitelist your IP in the Whitelist section.Checksum Repeated
201 : You can trigger the same API payload more than once. Please change at-least one parameter. (Date-time, client-identifier, etc.)Invalid Security ID
202 : Security ID is invalid. Please check the end point and security ID.Invalid Flow ID
301 : Flow ID is invalid. Please check the end point and Flow ID.Failure
500 : Any Failure scenario.
Add Comment