Skip to main content
organizationId
string
required
Unique identifier for a given Organization.
A successful response returns the following fields:
webhookEndpoints
array
required
webhookEndpoints field
curl --request POST \
  --url https://api.turnkey.com/public/v1/query/list_webhook_endpoints \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --header "X-Stamp: <string> (see Authorizations)" \
  --data '{
    "organizationId": "<string>"
}'
import { Turnkey } from "@turnkey/sdk-server";

const turnkeyClient = new Turnkey({
  apiBaseUrl: "https://api.turnkey.com",
  apiPublicKey: process.env.API_PUBLIC_KEY!,
  apiPrivateKey: process.env.API_PRIVATE_KEY!,
  defaultOrganizationId: process.env.ORGANIZATION_ID!,
});

const response = await turnkeyClient.apiClient().listWebhookEndpoints({
  organizationId: "<string> (Unique identifier for a given Organization.)"
});
{
  "webhookEndpoints": [
    {
      "endpointId": "<string>",
      "organizationId": "<string>",
      "url": "<string>",
      "name": "<string>",
      "isActive": "<boolean>",
      "subscriptions": [
        {
          "eventType": "<string>",
          "filtersJson": "<string>",
          "isActive": "<boolean>"
        }
      ]
    }
  ]
}