curl --request POST \
--url https://api.partoo.co/v2/webhooks \
--header 'Content-Type: application/json' \
--header 'x-APIKey: <api-key>' \
--data '
{
"items": [
{
"url": "https://example.com/webhook",
"event_type": "business_created"
}
]
}
'{
"items": [
{
"id": 1,
"url": "https://example.com/webhook",
"event_type": "business_created",
"created_at": "2024-11-27T16:10:44.929678Z",
"updated_at": "2024-11-27T16:10:44.929678Z",
"org_id": 1
}
]
}This endpoint create webhook configurations.
curl --request POST \
--url https://api.partoo.co/v2/webhooks \
--header 'Content-Type: application/json' \
--header 'x-APIKey: <api-key>' \
--data '
{
"items": [
{
"url": "https://example.com/webhook",
"event_type": "business_created"
}
]
}
'{
"items": [
{
"id": 1,
"url": "https://example.com/webhook",
"event_type": "business_created",
"created_at": "2024-11-27T16:10:44.929678Z",
"updated_at": "2024-11-27T16:10:44.929678Z",
"org_id": 1
}
]
}The authentication system on Partoo API is using API Key that should be put in the header of the request (the name of the header is x-APIKey). An api_key is linked to a user. This user's role will give you different access level to the API features.
Organization identifier, only required for PROVIDER users.
The list of webhook configurations to create.
Show child attributes
OK
List of created webhook configurations
Show child attributes
Was this page helpful?