> ## 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.

<Info>
  This feature is in beta and subject to change.
</Info>

<ParamField query="org_id" type="string" required>
  Only required for PROVIDER users acting on behalf of customers.
</ParamField>

<RequestExample>
  ```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"
        }
      ]
    }'
  ```
</RequestExample>

<ResponseExample>
  ```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"
      }
    ]
  }
  ```
</ResponseExample>
