Trips›Connection
Connection
Health check for the key. Use this first in Postman and in production go-live.
curl https://trustcoldeg.com/api/v1/b2b/connection \
-H "Authorization: Bearer CLIENT_KEY" \
-H "Accept: application/json"{
"ok": true,
"message": "The connection is valid for this client.",
"mode": "live",
"data": {
"id": 32,
"code": "CL-0032",
"name": "Example Trading Co."
}
}Missing, wrong or expired key
{
"message": "Unauthenticated."
}Key points
- 200 — Key is valid. Response includes the client.
- 401 — Missing or wrong key. Nothing is booked.
Confirms the key. A valid key returns the client. 401 means the key is missing or wrong; nothing is booked.