Documentation Index
Fetch the complete documentation index at: https://docs.blocks.team/llms.txt
Use this file to discover all available pages before exploring further.
_links.final_message.href URL — poll it to receive the assistant’s reply.
Request
Body
Exactly one of
agent_id, agent_name, or profile must be provided. Sending none returns 400 VALIDATION.The first user message in the session.
Name of a built-in core agent. One of
claude, codex, gemini, opencode, cursor, kimi. Returns 400 VALIDATION if the name is unknown.ID of a specific agent in your workspace. Use this to target a custom agent.
Reference to a profile or an inline profile to apply to this session.
When
true, the session is hidden from other workspace members.Existing artifacts to attach to the initial message.
Response
Unique identifier for the session.
Auto-generated title for the session.
IDs of pull requests opened by the agent in this session.
External URL the session was started from, if any (e.g. a Slack message).
Whether the session has been archived.
Whether the session is hidden from other workspace members.
When the session was created.
When the session was last updated.
The ID of the first thread on the session. Used to build the polling URL for the assistant’s reply.
Web URL where the session can be viewed in the Blocks dashboard.
HATEOAS links for the session.
Errors
| Status | Code | Reason |
|---|---|---|
400 | VALIDATION | None of agent_id, agent_name, or profile was provided. |
400 | VALIDATION | agent_name is not one of the supported core agents. |

