Create a session
POST/v1/projects/:project_id/sessions
Creates a new session for the specified agent, along with the underlying conversation, so the caller only needs this single call to start interacting with the agent. No actor is created: pass actor_id to attach an existing actor as the session's end user. When it is omitted the session has no actor, and generations in it carry no end-user attribution — they are not billed to an actor in the usage meter and they match no actor-scoped quota.
Request
Responses
- 201
- 401
- 403
- 404
- 409
Session created
Missing or invalid credentials.
The credential is scoped to a different project, or the caller's role in the project does not carry this action.
The resource does not exist (existence is not leaked).
An open session already exists for this actor (single_session_per_actor is enabled)