Create webhook

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

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"  
}