POST
/
v2
/
session
/
apps
/
{appID}
/
webhooks
/
{webhookID}
/
events
curl --request POST \
  --url https://api.prelude.dev/v2/session/apps/{appID}/webhooks/{webhookID}/events \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "event": "user.created"
}'
{
  "webhook": {
    "id": "web_01jqebhswje1ka1z7ahr9rfsgt",
    "url": "https://example.com/webhook",
    "events": [
      "user.created"
    ],
    "active": true,
    "last_http_code": 200,
    "last_http_code_date": "2023-11-07T05:31:56Z",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

appID
string
required

The id of the app the request refers to.

Example:

"54e9ujn"

webhookID
string
required

The id of the webhook the request refers to.

Example:

"web_01jqebhswje1ka1z7ahr9rfsgt"

Body

application/json
event
enum<string>
required
Available options:
user.created,
user.deleted,
user.profile.updated,
user.identifier.created,
user.identifier.deleted,
user.session.created,
user.session.revoked

Response

201
application/json
Created
webhook
object
required