v2
latestOpenAPI 3.1.02026-07-312303692.4 MBMessage
Create Message Attempt For Endpoint
Creates and sends a message to the specified endpoint.
The message attempt and response from the endpoint is returned.
post/api/v1/app/{app_id}/endpoint/{endpoint_id}/msg/test-attempt
Path parameters
app_idstring required
The Application's ID or UID.
Example:unique-identifier
The Application's ID or UID.
endpoint_idstring required
The Endpoint's ID or UID.
Example:unique-identifier
The Endpoint's ID or UID.
Headers
idempotency-keystring
The request's idempotency key
Request body
Example request
{
"eventId": "unique-identifier",
"eventType": "user.signup",
"payload": {
"type": "user.created",
"email": "test@example.com",
"username": "test_user"
},
"channels": [
"project_123",
"group_2"
],
"application": {
"name": "My first application",
"uid": "unique-identifier"
},
"tags": [
"my_tag",
"other"
],
"payloadRetentionPeriod": 90
}Response
Example response
{
"url": "https://example.com/webhook/",
"response": "{}",
"responseStatusCode": 200,
"msgId": "msg_1srOrx2ZWZBpBUvZwXKQmoEYga2",
"endpointId": "ep_1srOrx2ZWZBpBUvZwXKQmoEYga2",
"id": "atmpt_1srOrx2ZWZBpBUvZwXKQmoEYga2",
"msg": {
"eventId": "unique-identifier",
"eventType": "user.signup",
"payload": {
"type": "user.created",
"email": "test@example.com",
"username": "test_user"
},
"channels": [
"project_123",
"group_2"
],
"id": "msg_1srOrx2ZWZBpBUvZwXKQmoEYga2",
"tags": [
"project_1337"
]
}
}