Make an API call to this endpoint to list existing webhooks.
webhooks:write
) existing webhooks.
Invalid parameter in request query or body
Unauthorized
Access Denied
The specified resource was not found
Internal Server Error
curl -i -X GET \ https://api.attentivemobile.com/v1/webhooks \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
{- "webhooks": [
- {
- "id": "MjU6Q29tcGFueUFwcGxpY2F0aW9uV2ViaG9vazIy",
- "type": "string",
- "events": [
- "sms.sent",
- "phone.subscribed"
], - "companyId": "MDc6Q29tcGFueTI",
- "disabledAt": "string"
}
]
}
Make an API call to this endpoint to subscribe to a webhook.
Events are a collection of strings of the following types:
sms.subscribed
sms.sent
sms.message_link_click
email.subscribed
email.unsubscribed
email.message_link_click
email.opened
custom_attribute.set
Event types are case sensitive.
All events included will be sent to the URL.
Webhook has been created
Invalid parameter in request query or body
Unauthorized
Access Denied
The specified resource was not found
Internal Server Error
{- "events": [
- "sms.sent",
- "phone.subscribed"
]
}
{- "id": "MjU6Q29tcGFueUFwcGxpY2F0aW9uV2ViaG9vazIy",
- "events": [
- "sms.sent",
- "phone.subscribed"
], - "type": "string",
- "disabledAt": "string"
}
Make an API call to this endpoint to remove a webhook.
webhooks:write
) Webhook has been deleted
Invalid parameter in request query or body
Unauthorized
Access Denied
The specified resource was not found
Internal Server Error
curl -i -X DELETE \ 'https://api.attentivemobile.com/v1/webhooks/{webhookId}' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
Make an API call to this endpoint to update a webhook
Webhook has been updated
Invalid parameter in request query or body
Unauthorized
Access Denied
The specified resource was not found
Internal Server Error
{- "events": [
- "sms.sent",
- "phone.subscribed"
], - "disabled": true
}
{- "id": "MjU6Q29tcGFueUFwcGxpY2F0aW9uV2ViaG9vazIy",
- "events": [
- "sms.sent",
- "phone.subscribed"
], - "type": "string",
- "disabledAt": "string"
}