Create Session

Create a new session within a conversation. Provide a session ID, owner information, and at least one initial participant.

URI: /api/v1/agentic/conversations/{conversationId}/sessions

Format: application/json

HTTP Method: POST

Authentication: Bearer JWT

Path Parameters 

ParameterRequiredDescription
conversationIdYesConversation identifier.

Request Headers 

HeaderRequiredDescription
AuthorizationYesBearer JWT token.
agent_idYesRegistered agent API name.

Request Body Schema 

FieldTypeRequiredDescription
sessionIdStringYesCaller-supplied unique identifier for this session.
conversationOwnerIdStringYesIndividual or User ID. Must align with parent conversation.
ownerTypeStringYesType of owner. Values: individual, employee.
participantsArrayYesInitial participant set. Minimum 1 participant required.
participants[].idStringYesParticipant identifier.
participants[].typeStringYesParticipant type. Values: individual, employee, agent, or free-form string.
participants[].roleStringYesParticipant role. Values: owner, participant.
participants[].startTimeString (ISO 8601)NoJoin time.
participants[].endTimeString (ISO 8601)NoLeave time. Null indicates active participation.
participants[].orgIdStringNoOrganization ID for cross-org handoffs.
variableMapNoArbitrary metadata.

Example Request 

1{
2  "sessionId": "sess-9001",
3  "conversationOwnerId": "003AB000000XYZ",
4  "ownerType": "individual",
5  "participants": [
6    {
7      "id": "003AB000000XYZ",
8      "type": "individual",
9      "role": "owner",
10      "startTime": "2026-01-01T00:00:00Z"
11    }
12  ],
13  "variable": {}
14}

Response Body Schema 

FieldTypeDescription
statusCodeStringOperation status. Value: created.
conversationIdStringParent conversation identifier.
sessionIdStringThe created session identifier.

Example Response 

Status: 201 Created

1{
2  "statusCode": "created",
3  "conversationId": "conv-2025-001",
4  "sessionId": "sess-9001"
5}

Error Codes 

Status CodeDescription
400Bad Request. Invalid request format or missing required fields.
401Unauthorized. Invalid or missing JWT token.
404Not Found. Conversation does not exist.
500Internal Server Error.