Skip to Content
Docs

End an existing session

PUT
/sessions

Authorization

jwt
headerAuthorizationBearer <JWT>

Header Parameters

x-org-id*string

Request Body

application/json
  1. body
sessionId*string

Response Body

application/json
  1. response
source*string
sessionId*string
correlationId?string
kind*string
Default"execution"
Value in"trigger""action""execution"
subKind?string
typeId*string
instanceId?string
startedAt*string

An ISO 8601 date time string

Match^(?:\d+(?:\.\d+?)?|(?:\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?Z))$
Formatdate-time
endedAt?string

An ISO 8601 date time string

Match^(?:\d+(?:\.\d+?)?|(?:\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?Z))$
Formatdate-time
createdAt*string

An ISO 8601 date time string

Match^(?:\d+(?:\.\d+?)?|(?:\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?Z))$
Formatdate-time
Default"2026-11-15T21:30:33.351Z"
updatedAt?string

An ISO 8601 date time string

Match^(?:\d+(?:\.\d+?)?|(?:\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?Z))$
Formatdate-time
_metaData*
Example Request
curl -X PUT 'https://logs.your-tenant-id.my.contextual.io/api/v1/sessions' \  -H 'x-org-id: string' \  -H 'Content-Type: application/json' \  -d '{  "sessionId": "string"}'
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"  }}