Postato Docs
API ReferenceWebhooks

Register a webhook

Register a URL to receive webhook delivery events.

POST
/v1/workspaces/{workspaceId}/webhooks
AuthorizationBearer <token>

API key in the format smcp_<64 hex chars>.

In: header

Path Parameters

workspaceId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://api.postato.com.br/v1/workspaces/string/webhooks" \  -H "Content-Type: application/json" \  -d '{    "url": "http://example.com"  }'
{
  "property1": null,
  "property2": null
}
{
  "error": "string",
  "message": "string",
  "details": null
}