Get Company Webhooks

Returns a paginated list of webhooks for the company

GEThttps://api.pact.im/api/p2/companies/<COMPANY_ID>/webhooks

Returns paginated list of webhooks of the company.

Read more about pagination.

URL Parameters

ParameterDescription
COMPANY_IDID of the company

Query Parameters

ParameterRequiredValidationsDescription
private_api_tokentrueMust be a stringYOUR_API_TOKEN

Example

Request

shell
curl -X GET 'https://api.pact.im/api/p2/companies/COMPANY_ID/webhooks' \
--header 'Content-Type: application/json' \
--data '{
    "private_api_token": YOUR_API_TOKEN
  }'

Response

json
{
  "webhooks": [
    {
      "id": 1,
      "url": "https://example.com/webhook",
      "active": true
    }
  ],
  "meta": {
    "page": 1,
    "entries_count": 1,
    "per_page": 25
  }
}

Search…

Start typing to search