Rivier/ Reference/ agents

Agents platform session create

post/platform-agents/sessions

Open a session of an agent for one of the platform's customers, optionally inside a connected business that let the platform run an agent there (agents:run), with scopes (read, act: a tool that acts is offered only with act) and how much it keeps (none: nothing of the words beyond the turn; session).

Before you call

Credential
Authorization: Bearer $KEY
Scope
agents:write
Graphql
Mutation.agentsPlatformSessionCreate
Sdk
agents.platformSession.create
Cli
agents platform session create

Request bodyapplication/json, required

  • agentIdstring (uuid)required
  • customerstring (uuid)required
  • connectionIdstring (uuid)
  • scopeslist of string
    Default: ["read"].
  • retainstring
    One of: none, session. Default: none.

Responses

  • 201application/json
    Success
    • 400application/json
      The request was malformed
      • errorstringrequired
      • messagestring
    • 401application/json
      No valid credential
      • errorstringrequired
      • messagestring
    • 403application/json
      The credential lacks the scope, origin or address
      • errorstringrequired
      • messagestring
    • 429application/json
      Over the key's rate limit; see Retry-After
      • errorstringrequired
      • messagestring

    This page as Markdown