Get a webhook

Returns the configuration of the webhook endpoint with the given ID. Use this endpoint to get a webhook through the Samva email API.

GET
/v1/webhooks/{id}

Returns the configuration of the webhook endpoint with the given ID.

x-api-key<token>

In: header

Path Parameters

id*string
Match^wep_[0-9a-hjkmnp-tv-z]{16,24}$

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/webhooks/string"
{  "id": "string",  "name": "string",  "url": "string",  "eventTypes": [    "message.sent"  ],  "channels": [    "email"  ],  "status": "active",  "hasCustomHeaders": true,  "failureStartedAt": "string",  "lastSucceededAt": "string",  "createdAt": "string",  "updatedAt": "string"}