Rivier/ Reference/ agents

For a session inside a business that granted agents:message

post/platform-agents/sessions/{id}/messages

For a session inside a business that granted agents:message: a message typed as one of the parts the session's agent declared, to the business's own agent. Kept on both sides and raised in both streams (agents.message.sent; the business hears agents.message.received). The business's agent that answers platforms answers at once, with only the tools that need no person; otherwise the message waits for a person of the business. The session's agent sends the same by its built-in tool message_business.

Before you call

Credential
Authorization: Bearer $KEY
Scope
agents:write
Graphql
Mutation.agentsPlatformMessageSend
Sdk
agents.platformMessage.send
Cli
agents platform message send

Parameters

  • idstring (uuid)required
    In the path

Request bodyapplication/json, required

  • typestringrequired
    Pattern: ^[a-z][a-z0-9_]{0,47}$.
  • textstringrequired
    At most 8000 characters.
  • data

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