Generate events for testing
Generate events for testing analytics flows, such as webhooks.
This endpoint can be used to create one or more SlashID events. The request body is a list of test event descriptions, including the type of event to generate, the number of events of that type to generate, and whether those events should be duplicates. The contents of the events will be randomly generated, and will have the is_test_event
flag set to true, so they can be distinguished from real events.
Please refer to our events guide for a full list of SlashID events and their contents.
Note that this endpoint is rate-limited to 10 test events per minute, with a burst of 50. If your tests require a higher rate, please contact us.
Header Parameters
- SlashID-OrgID string required
The organization ID
Example: af5fbd30-7ce7-4548-8b30-4cd59cb2aba1
- application/json
Request Body array required
The events to be generated
- event_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
] - count integer
Default value:
1
- duplicates boolean
Default value:
false
- analytics_correlation_id string
- 201
- 400
- 404
Created
- application/json
- Schema
- Example (from schema)
Schema
meta object
pagination object
limit integeroffset integertotal_count int64errors object[]
httpcode integermessage string- result object[]
{
"meta": {
"pagination": {
"limit": 0,
"offset": 0,
"total_count": 0
}
},
"errors": [
{
"httpcode": 0,
"message": "string"
}
],
"result": [
{
"event_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"event_name": "AuthenticationSucceeded_v1",
"timestamp": "string",
"organization_id": "string",
"person_id": "string",
"authn_method": "webauthn"
},
{
"event_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"event_name": "AuthenticationSucceeded_v1",
"timestamp": "string",
"organization_id": "string",
"failed_authn_method": "webauthn",
"failure_reason": "string"
},
{
"event_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"event_name": "AuthenticationSucceeded_v1",
"timestamp": "string",
"organization_id": "string",
"person_id": "string"
},
{
"event_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"event_name": "AuthenticationSucceeded_v1",
"timestamp": "string",
"organization_id": "string",
"person_id": "string"
},
{
"event_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"event_name": "AuthenticationSucceeded_v1",
"timestamp": "string",
"organization_id": "string",
"person_id": "string"
},
{
"event_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"event_name": "AuthenticationSucceeded_v1",
"timestamp": "string",
"organization_id": "string",
"window_location": "string"
},
{
"event_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"event_name": "AuthenticationSucceeded_v1",
"timestamp": "string",
"organization_id": "string",
"window_location": "string"
},
{
"event_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"event_name": "AuthenticationSucceeded_v1",
"timestamp": "string",
"organization_id": "string",
"window_location": "string"
},
{
"event_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"event_name": "AuthenticationSucceeded_v1",
"timestamp": "string",
"organization_id": "string",
"window_location": "string"
},
{
"event_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"event_name": "AuthenticationSucceeded_v1",
"timestamp": "string",
"organization_id": "string"
},
{
"event_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"event_name": "AuthenticationSucceeded_v1",
"timestamp": "string",
"organization_id": "string"
},
{
"event_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"event_name": "AuthenticationSucceeded_v1",
"timestamp": "string",
"organization_id": "string"
},
{
"event_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"event_name": "AuthenticationSucceeded_v1",
"timestamp": "string",
"organization_id": "string"
},
{
"event_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"event_name": "AuthenticationSucceeded_v1",
"timestamp": "string",
"organization_id": "string"
},
{
"event_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"event_name": "AuthenticationSucceeded_v1",
"timestamp": "string",
"organization_id": "string"
},
{
"event_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"event_name": "AuthenticationSucceeded_v1",
"timestamp": "string",
"organization_id": "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"
}
]
}