Create a webhook trigger
Create a new trigger for an existing webhook. Each webhook can have multiple triggers, and will be called on each of them.
The trigger type specifies what kind of trigger will cause the webhook to be called. The trigger name specifies the exact trigger that will cause the webhook to be called, amongst all triggers of this type. For a full list of trigger types and names, refer to our webhooks guide.
Path Parameters
- webhook_id string required
Header Parameters
- SlashID-OrgID string required
The organization ID
Example: af5fbd30-7ce7-4548-8b30-4cd59cb2aba1 - SlashID-Required-Consistency string
Possible values: [
local_region
,all_regions
]Default value:
local_region
The consistency level required for this request. If the consistency level is not achieved within the timeout, the request will fail with a 408 Request Timeout error. 408 Request Timeout error indicates that request was not handled within the timeout, but it may still be handled after request timeout. Allowed values: *
local_region
: Wait while the request executes in the local region. *all_regions
: Wait while the request executes across all regions. You can learn more about our replication model on our Cross-region Replication Model page. - SlashID-Required-Consistency-Timeout integer
Possible values:
>= 1
and<= 120
Default value:
30
The maximum amount of seconds to wait for the requested consistency level to be achieved. If the consistency level is not achieved within this time, the request will fail with a 408 Request Timeout error. 408 Request Timeout error indicates that request was not handled within the timeout, but it may still be handled after request timeout. You can learn more about our replication model on our Cross-region Replication Model page.
- application/json
Request Body required
- MOD1
- MOD2
- trigger_type string required
Possible values: [
event
,sync_hook
] - trigger_name string required
Possible values: [
AuthenticationSucceeded_v1
,AuthenticationFailed_v1
,PersonCreated_v1
,AnonymousPersonCreated_v1
,PersonDeleted_v1
,VirtualPageLoaded_v1
,SlashIDSDKLoaded_v1
,PersonIdentified_v1
,PersonLoggedOut_v1
,TokenMinted_v1
,AnonymousTokenMinted_v1
,PasswordChanged_v1
,GdprConsentsChanged_v1
,GateServerStarted_v1
,GateRequestHandled_v1
,GateRequestCredentialFound_v1
,PermissionCreated_InRegion_v1
,PermissionCreated_v1
,PermissionDeleted_InRegion_v1
,PermissionDeleted_v1
,RoleCreated_InRegion_v1
,RoleCreated_v1
,RoleDeleted_InRegion_v1
,RoleDeleted_v1
,RoleUpdated_InRegion_v1
,RoleUpdated_v1
,RolesSetToPerson_InRegion_v1
,RolesSetToPerson_v1
,PermissionsSetToPerson_InRegion_v1
,PermissionsSetToPerson_v1
,MitmAttackDetected_v1
,PermissionUpdated_InRegion_v1
,PermissionUpdated_v1
] - trigger_type string required
Possible values: [
event
,sync_hook
] - trigger_name string required
Possible values: [
token_minted
,identify_user
]
- 201
- 400
- 404
Created
- application/json
- Schema
- Example (from schema)
Schema
meta object
pagination object
limit integeroffset integertotal_count int64errors object[]
httpcode integermessage string
{
"meta": {
"pagination": {
"limit": 0,
"offset": 0,
"total_count": 0
}
},
"errors": [
{
"httpcode": 0,
"message": "string"
}
]
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
meta object
pagination object
limit integeroffset integertotal_count int64errors object[]
httpcode integermessage string
{
"meta": {
"pagination": {
"limit": 0,
"offset": 0,
"total_count": 0
}
},
"errors": [
{
"httpcode": 0,
"message": "string"
}
]
}
Not Found
- application/json
- Schema
- Example (from schema)
Schema
meta object
pagination object
limit integeroffset integertotal_count int64errors object[]
httpcode integermessage string
{
"meta": {
"pagination": {
"limit": 0,
"offset": 0,
"total_count": 0
}
},
"errors": [
{
"httpcode": 0,
"message": "string"
}
]
}