Pular para o conteúdo principal
Routal
API ReferenceWebhook

Retrieve webhooks

Returns every webhook of the project, enabled or not, with its subscribed events and failure count.

GET
/v2/webhooks

Returns every webhook of the project, enabled or not, with its subscribed events and failure count.

private_key<token>

Pass your API key as the private_key query string parameter. Generate and rotate keys in Developer Settings of your Routal workspace.

Keys stay server-side. Never ship them to a browser or mobile app.

In: query

Query Parameters

project_id*string

Project id

Match^[0-9a-f]{24}

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v2/webhooks?project_id=string"
[
  {
    "id": "4f75d991ac359f8c4c79d762",
    "organization_id": "4f75d991ac359f8c4c79d762",
    "project_id": "4f75d991ac359f8c4c79d762",
    "url": "https://example.com",
    "enabled_events": [
      "routal.planner.2.plan.created",
      "routal.drivers.2.route.finished"
    ],
    "enabled": true,
    "failure_count": 0,
    "created_by": "4f75d991ac359f8c4c79d762",
    "created_at": "2026-11-10T16:55:36.096Z",
    "updated_at": "2026-11-10T16:55:36.096Z",
    "deleted_at": "2026-11-10T16:55:36.096Z"
  }
]
{
  "message": "Domain not found",
  "message_id": "highway.domain.error.not_found"
}
Empty
{
  "message": "Domain not found",
  "message_id": "highway.domain.error.not_found"
}
{
  "message": "Domain not found",
  "message_id": "highway.domain.error.not_found"
}
Empty
Empty