Openi DeveloperDeveloper

Register a webhook endpoint

POST
/v1/webhooks
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

url*string
Formaturi
Lengthlength <= 2048
description?string
Lengthlength <= 500
event_types*array<>|null

Response Body

application/json

application/problem+json

curl -X POST "https://example.com/v1/webhooks" \  -H "Content-Type: application/json" \  -d '{    "url": "http://example.com",    "event_types": [      "ingestion.completed"    ]  }'
{  "id": "string",  "url": "string",  "description": "string",  "event_types": [    "string"  ],  "enabled": true,  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z",  "secret": "string"}