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)requiredIn the path
Request bodyapplication/json, required
- typestringrequiredPattern: ^[a-z][a-z0-9_]{0,47}$.
- textstringrequiredAt most 8000 characters.
- data
Responses
- 201application/jsonSuccess
- 400application/jsonThe request was malformed
- errorstringrequired
- messagestring
- 401application/jsonNo valid credential
- errorstringrequired
- messagestring
- 403application/jsonThe credential lacks the scope, origin or address
- errorstringrequired
- messagestring
- 429application/jsonOver the key's rate limit; see Retry-After
- errorstringrequired
- messagestring