POST
/
api
/
v1
/
hooks
Create hook
curl --request POST \
  --url https://api.kajabi.com/api/v1/hooks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/vnd.api+json' \
  --data '{
  "data": {
    "type": "hooks",
    "attributes": {
      "event": "purchase",
      "target_url": "<string>",
      "resource_id": 123
    },
    "relationships": {
      "site": {
        "data": {
          "id": "<string>",
          "type": "<string>"
        }
      }
    }
  }
}'
{
  "data": {
    "id": "<string>",
    "type": "hooks",
    "attributes": {
      "event": "purchase",
      "target_url": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "resource_id": 123
    },
    "relationships": {
      "site": {
        "data": {
          "id": "<string>",
          "type": "<string>"
        }
      }
    }
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/vnd.api+json
data
object
required

Response

Success, webhook created

data
object