Skip to main content
You can use our beta API to manage webhook subscriptions.
This feature is in beta and subject to change.
org_id
string
required
Only required for PROVIDER users acting on behalf of customers.
curl -X POST \
  --url https://api.partoo.co/v2/webhooks \
  --header 'Content-Type: application/json' \
  --header 'x-APIKey: <api-key>' \
  -d '{
    "items": [
      {
        "url": "https://your-server.com/webhook",
        "event_type": "business_created"
      }
    ]
  }'
{
  "items": [
    {
      "id": 12345,
      "event_type": "business_created",
      "url": "https://your-server.com/webhook",
      "org_id": 1,
      "created_at": "2024-11-27T16:10:44.929678Z",
      "updated_at": "2024-11-27T16:10:44.929678Z"
    }
  ]
}