Endpoint
Create Endpoint
Create a new endpoint for the application. Specify the url you wish to receive webhooks and the events you wish to track. When secret is null the secret is automatically generated (recommended)
post/endpoint
Request
- Base URLhttps://api.sinay.ai/webhook/api/v1
- URLhttps://api.sinay.ai/webhook/api/v1/endpoint
- AuthAPI key in header API_KEY
Headers
idempotency-keystring
The request's idempotency key
Request body
Example request
{
"description": "Production endpoint",
"uid": "ep_2k0vWPHlM2MnLgrEhw5oKFfmWMX",
"url": "https://example.com/webhook/",
"filterTypes": [
"shipment.added.to.endpoint",
"container.new.event.detected"
],
"channels": [
"project_123",
"group_2"
],
"secret": "whsec_C2FVsBQIhrscChlQIMV+b5sSYspob7oD"
}Response
Example response
{
"id": "ep_1srOrx2ZWZBpBUvZwXKQmoEYga2",
"uid": "unique-ep-identifier",
"url": "https://example.com/webhook/",
"version": 1,
"filterTypes": [
"shipment.added.to.endpoint",
"container.new.event.detected"
],
"channels": [
"project_123",
"group_2"
],
"createdAt": "2024-01-12T14:43:13.993727Z",
"updatedAt": "2024-01-12T14:43:13.993727Z"
}Changes
No recorded changes to this operation across all 1 revision of this API.