Oneport Docs
ApiV1WorkspacesSlugWebhooks

/v1/workspaces/{slug}/webhooks

POST
/v1/workspaces/{slug}/webhooks

Path Parameters

slug*string

Request Body

application/json

New webhook endpoint (Standard Webhooks signed)

TypeScript Definitions

Use the request body type in TypeScript.

url*string
events?array<>

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/v1/workspaces/acme/webhooks" \  -H "Content-Type: application/json" \  -d '{    "url": "http://example.com"  }'
{  "id": "string",  "url": "string",  "events": [    "string"  ],  "disabled": true,  "secret": "string"}
{  "error": "string"}
{  "error": "string"}