Diagnostics.GetContext

Try it in Swagger

Endpoint

Request Schema

Headers

Header Required Notes
X-Api-Key Required when tenant is not resolved by subdomain Resolves the tenant/customer database.
Authorization: Bearer {token} Required for authorized endpoints Get a token from Auth/Token or Session/Create.

This endpoint does not accept a JSON request body.

Expected Response Schema

Status Codes

Status Notes
200 OK Returned by the controller for this operation.
404 Not Found Requested resource or draft was not found.

Success Body

Response type: object

The response body contains the resolved tenant context and API user context.

Response Sample

{
  "tenant": {
    "clientCode": "ABC001",
    "customerCode": "ABC001"
  },
  "user": "api.user@example.com"
}