POST
/v1/destinations/{destination_id}/testTest a destination
Sends a validation event or credential check and returns destination-specific diagnostics.
Authentication
Requires Authorization: Bearer ${API_KEY}. Create and rotate keys from the TrackLayer dashboard.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
destination_id | string | Yes | Destination identifier. |
Request body schema
{
"event_name": "string",
"dry_run": "boolean"
}Response schema · 200
{
"ok": true,
"message": "Connection verified"
}Response example
{
"ok": true,
"message": "Connection verified"
}Code examples
curl https://api.tracklayer.com/v1/destinations/dst_123/test \
-X POST \
-H "Authorization: Bearer ${API_KEY}" \
-H "Content-Type: application/json" \
-d '{"event_name":"purchase","user_id":"u_123","properties":{"order_id":"100045","value":129}}'Try it out
Use the dashboard to create an API key, then run one of the examples above with TRACKLAYER_API_KEY set in your environment.