Webhook API Reference

Create Webhook

Create a webhook endpoint.

The response includes the endpoint's signing secret. It is shown only once, so store it before you continue. A team can have at most 50 webhook endpoints, and each URL can be registered once per team: repeating a create request for the same URL returns a validation error instead of a second endpoint.

POST
/shipos/webhooks
x-access-token<token>

In: header

Request Body

application/json

The endpoint to create

The endpoint to create

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://example.com/shipos/webhooks" \  -H "Content-Type: application/json" \  -d '{    "url": "string",    "event_patterns": [      "string"    ],    "active": true,    "contact_email": "string"  }'
{  "id": "string",  "url": "string",  "description": "string",  "contact_email": "string",  "paused": true,  "active": true,  "status": "active",  "event_patterns": [    "string"  ],  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z",  "health": {    "consecutive_failures": 0.1,    "last_successful_at": "2019-08-24T14:15:22Z"  },  "circuit": {    "opened_at": "2019-08-24T14:15:22Z",    "reason": "string",    "probe_at": "2019-08-24T14:15:22Z"  },  "supported_actions": [    {      "action": "VIEW_LOGS"    }  ],  "last_delivery": {    "event_type": "string",    "status": "PENDING",    "delivered_at": "2019-08-24T14:15:22Z"  },  "secret": "string"}