> ## Documentation Index
> Fetch the complete documentation index at: https://developers.partoo.co/llms.txt
> Use this file to discover all available pages before exploring further.

# API

> Manage webhook subscriptions programmatically using the API."

You can use our beta API to manage webhook subscriptions.

> [!NOTE]
>
> This feature is in beta and subject to change.

**org\_id** `string` *required*

Only required for PROVIDER users acting on behalf of customers.

```bash cURL theme={null}
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"
      }
    ]
  }'
```

```json Success theme={null}
{
  "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"
    }
  ]
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.