Add a session participant
PreviewManage execution sessions and rooms, and their files, tasks, storage, databases and managed sandboxes.
/v1/sessions/{session_id}/participantsSee authentication for credentials and permissions.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Session ID (prefixed, e.g., session_…)
Request Bodyrequired
Section titled “Request Bodyrequired”Request to add a participant to a session.
Responses
201Participant added successfully
Participant added successfully
Session participant - an agent or user that has joined a session.
object
Present for agent participants.
Human-readable name captured for this participant.
Unique identifier for the participant row (format: part_{32-hex}).
Kind of actor participating in a session.
Principal that joined the session.
Role a participant has inside a session.
Session this participant belongs to.
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