| Time |
Status |
User Agent |
|
| Make a request to see history. |
|
|
|
URL Expired
The URL for this request expired after 30 days.
Event Details
| Field |
Type |
Requirements |
| uri |
string |
required |
| eventTypes |
array of strings |
length ≥ 1 |
| subaccountId |
uuid |
required |
| enabled |
boolean |
Defaults to true |
| accept |
string |
enum, Defaults to application/hal+json |
| createdAt |
date-time |
required, ISO 8601 format |
| updatedAt |
date-time |
required, ISO 8601 format |
| secret |
string |
required (Only returned on Webhook creation) |
Response Status Codes
201 Successful operation
400 The server cannot or will not process the request due to something that is perceived to be a client error
401 Authentication credentials were either missing or incorrect
403 Authentication credentials used do not have have permissions to perform the request
404 The requested resource was not found on the server
500 The server encountered an unexpected condition that prevented it from fulfilling the request
Example cURL Request
curl --request POST \
--url https://api.astrada.co/webhooks \
--header 'accept: application/hal+json' \
--header 'content-type: application/json' \
--data ' \
{
"eventTypes": [\
"cardsubscription.created"\
],
"enabled": true
}'
Example Response
{
"_links": {
"self": {
"href": "/webhooks/3a45ba7f-8d8f-4f6a-86a5-a17ea0328241"
}
},
"id": "3a45ba7f-8d8f-4f6a-86a5-a17ea0328241",
"url": "https://example-api.com/path",
"description": "Example of Webhook description",
"eventTypes": [\
"transactionmessage.created"\
],
"subaccountId": "f297d659-c13d-4219-aeaa-e10a845140a5",
"createdAt": "2023-12-19T14:45:00Z",
"updatedAt": "2023-12-19T14:45:00Z",
"enabled": true,
"secret": "ODk4ZDAxYjYtZjM4NC00MzdmLWEzMDMtM2M0NjA1NWY5NTQ5"
}