light-mode-image
Learn

API Reference

Create a Webhook

POST/v1/webhooks

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

The webhook payload

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/v1/webhooks" \  -H "Content-Type: application/json" \  -d '{    "events": [      "OpenIdCredentialIssued"    ],    "url": "https://example.com"  }'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "events": [    "string"  ],  "url": "http://example.com",  "disabled": false}

Retrieve all Webhooks

GET/v1/webhooks

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Query Parameters

limit?number

Range size of returned list.

Range1 <= value <= 1000
Default100
cursor?string

Starting point for the list of entries.

Response Body

application/json

application/json

curl -X GET "https://example.com/v1/webhooks"
{  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "events": [        "string"      ],      "url": "http://example.com",      "disabled": false    },    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "events": [        "string"      ],      "url": "http://example.com",      "disabled": false    }  ],  "nextCursor": "string"}

Retrieve a Webhook

GET/v1/webhooks/{webhookId}

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

webhookId*string

The requested Webhook ID.

Formatuuid

Response Body

application/json

application/json

curl -X GET "https://example.com/v1/webhooks/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "events": [    "string"  ],  "url": "http://example.com",  "disabled": false}

Update a Webhook

PUT/v1/webhooks/{webhookId}

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

webhookId*string

Webhook ID

Formatuuid

Request Body

application/json

Update Webhook

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X PUT "https://example.com/v1/webhooks/497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Content-Type: application/json" \  -d '{    "events": [      "OpenIdCredentialIssued"    ],    "url": "http://example.com"  }'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "events": [    "string"  ],  "url": "http://example.com",  "disabled": false}

Delete a Webhook

DELETE/v1/webhooks/{webhookId}

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

webhookId*string

Webhook ID

Formatuuid

Response Body

application/json

application/json

curl -X DELETE "https://example.com/v1/webhooks/497f6eca-6276-4993-bfeb-53cbbbba6f08"
Empty

Retrieve Webhook JWKs

GET/v1/webhooks/jwks

Response Body

application/json

curl -X GET "https://example.com/v1/webhooks/jwks"
{  "keys": [    {      "kty": "string",      "crv": "string",      "x": "string",      "use": "string",      "kid": "string"    }  ]}

How would you rate this page?

Last updated on

On this page