Create a session or add sessions to an existing session
POST
jwtheader
AuthorizationBearer <JWT>x-org-id*stringapplication/json- body
source*stringsessionId?stringcorrelationId?stringkind*stringDefault
"execution"Value in
"trigger""action""execution"subKind?stringtypeId*stringinstanceId?stringstartedAt?stringcreatedAt*stringAn ISO 8601 date time string
Match
^(?:\d+(?:\.\d+?)?|(?:\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?Z))$Format
date-timeDefault
"2026-11-15T21:30:33.352Z"messages*array<>application/json- response
source*stringsessionId*stringcorrelationId?stringkind*stringDefault
"execution"Value in
"trigger""action""execution"subKind?stringtypeId*stringinstanceId?stringstartedAt*stringAn ISO 8601 date time string
Match
^(?:\d+(?:\.\d+?)?|(?:\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?Z))$Format
date-timeendedAt?stringAn ISO 8601 date time string
Match
^(?:\d+(?:\.\d+?)?|(?:\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?Z))$Format
date-timecreatedAt*stringAn ISO 8601 date time string
Match
^(?:\d+(?:\.\d+?)?|(?:\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?Z))$Format
date-timeDefault
"2026-11-15T21:30:33.351Z"updatedAt?stringAn ISO 8601 date time string
Match
^(?:\d+(?:\.\d+?)?|(?:\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?Z))$Format
date-time_metaData*curl -X POST 'https://logs.your-tenant-id.my.contextual.io/api/v1/sessions' \ -H 'x-org-id: string' \ -H 'Content-Type: application/json' \ -d '{ "source": "string", "kind": "trigger", "typeId": "string", "createdAt": "2026-11-15T21:30:33.352Z", "messages": [ { "level": "fatal", "type": "string", "message": null, "createdAt": "2026-11-15T21:30:33.352Z" } ]}'Example Response
{ "source": "string", "sessionId": "string", "correlationId": "string", "kind": "trigger", "subKind": "string", "typeId": "string", "instanceId": "string", "startedAt": "2019-08-24T14:15:22Z", "endedAt": "2019-08-24T14:15:22Z", "createdAt": "2026-11-15T21:30:33.351Z", "updatedAt": "2019-08-24T14:15:22Z", "_metaData": { "id": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }}