AQX
DocumentationAPI Reference
DocumentationAPI Reference
  1. Triggers
  • AQX API documentation
  • Authentication
    • Authentication
    • Authorization
      GET
    • Token
      POST
    • User Info
      GET
  • Triggers
    • Subscribe
      GET
    • Unsubscribe
      DELETE
    • Campaigns
      GET
    • PerformList operation
      GET
  • Actions
    • Start a Call
      POST
  1. Triggers

Subscribe

GET
https://api.aqx.ai/api/events-gateway/trigger/subscribe
This endpoint is used to subscribe to this event for this specific campaignId.

Request

Header Params
Content-Type
string 
optional
Example:
application/json
Ocp-Apim-Subscription-Key
string 
required
Example:
{{api-key}}
Authorization
string 
required
Example:
Bearer {{user_access_token}}
Body Params application/json
hookUrl
string 
required
hook url
campaignId
string 
required
campaignID GUID
triggerName
string 
required
event name ie (call_started, call_completed)
Example
{
    "hookUrl": "string",
    "campaignId": "string",
    "triggerName": "string"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.aqx.ai/api/events-gateway/trigger/subscribe' \
--header 'Ocp-Apim-Subscription-Key: {{api-key}}' \
--header 'Authorization: Bearer {{user_access_token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "hookUrl": "string",
    "campaignId": "string",
    "triggerName": "string"
}'

Responses

🟢200Success
application/json
Body
id
string 
required
hook url
campaignId
string 
required
campaignID GUID
triggerName
string 
required
event name ie (call_started, call_completed)
Example
{
    "id": "string",
    "campaignId": "string",
    "triggerName": "string"
}
Previous
User Info
Next
Unsubscribe
Built with