Skip to content
Docs
GitHub

Add a session participant

Preview

Manage execution sessions and rooms, and their files, tasks, storage, databases and managed sandboxes.

Public APIEverruns Cloud and self-hosted Platform

POST/v1/sessions/{session_id}/participants

See authentication for credentials and permissions.

session_id
required
string

Session ID (prefixed, e.g., session_…)

Media typeapplication/json

Request to add a participant to a session.

object
agent_id

Agent to add when kind is agent.

string | null

Example

agent_01933b5a00007000800000000000001
kind
required

Participant kind to add.

string
Allowed values: agent user
role
One of:

Participant role. Omit for ordinary members. Host assignment is managed by session creation.

string
Allowed values: host member

Responses

201Participant added successfully

Participant added successfully

Media typeapplication/json

Session participant - an agent or user that has joined a session.

object
agent_id

Present for agent participants.

string | null
display_name

Human-readable name captured for this participant.

string | null
id
required

Unique identifier for the participant row (format: part_{32-hex}).

string
joined_at
required
string format: date-time
kind
required

Kind of actor participating in a session.

string
Allowed values: agent user
left_at
string | null format: date-time
principal_id
required

Principal that joined the session.

string
role
required

Role a participant has inside a session.

string
Allowed values: host member
session_id
required

Session this participant belongs to.

string

Example

{
"agent_id": "agent_01933b5a00007000800000000000001",
"id": "part_01933b5a00007000800000000000001",
"kind": "agent",
"principal_id": "principal_01933b5a000070008000000000000001",
"role": "host",
"session_id": "session_01933b5a00007000800000000000001"
}
400Invalid participant request

Invalid participant request

404Session or agent not found

Session or agent not found

409Participant conflicts with current membership

Participant conflicts with current membership

500Internal server error

Internal server error