Skip to content

Add Agents section to API reference - #282

Merged
sebastianrosch merged 1 commit into
mainfrom
add-agents-section
Sep 12, 2026
Merged

sebastianrosch merged 1 commit into
mainfrom
add-agents-section

Conversation

@sebastianrosch

Copy link
Copy Markdown
Contributor

Summary

Adds a new Agents section to the developer docs, documenting the AI agents API: custom agents, threads, messages, files, and connectors.

Navigation (fern/docs.yml)

  • Agents is the first group in the API v1 reference, with the endpoint groups: custom agents, agent files, agent threads, agent thread files, agent runtime.

New overview page (fern/pages/api/agents.mdx)

  • Core concepts (agents, threads, messages/queueing, connectors) with the Agents home screenshot.
  • Examples for: creating an agent, getting default options, copying an agent (POST /agents/{agentId}/copy), updating + system prompt version history, starting threads (personal & custom agent, incl. project/task/doc context), sending messages, adding context to a message (inline entity mentions + file attachments), status polling via acceptedMessageId, cancelling runs, agent/thread files, and connectors.
  • Documents visibility rules for project/task-linked threads (visible to users with entity read access + AI thread access permission; unlinked threads stay private; deletion is creator-only).
  • Notes that API keys can only interact with custom agents; personal-agent conversations require OAuth as a real user.

Spec source

  • v1 OpenAPI spec now pulled from the develop CDN origin; Fern bumped to 5.117.0.

Test plan

  • fern check passes (0 errors).
  • All curl examples were executed against production (support-team workspace): agent create/copy*, thread creation with project and doc context, inline doc mentions, message submission, status polling, cancel, connector link/unlink, file listing — with verified agent replies using the linked context.

*POST /agents/{agentId}/copy returns 404 on production until the corresponding backend change is deployed; the endpoint exists in the develop spec.

🤖 Generated with Claude Code

- Add Agents endpoint groups (custom agents, agent files, agent threads,
  agent thread files, agent runtime) as the first entry in the API v1
  reference layout
- Add Agents overview page with verified examples for creating and
  copying agents, starting threads (incl. project/doc context), sending
  messages with inline entity mentions and file attachments, status
  polling, cancelling runs, files, and connectors
- Document thread visibility rules for project/task-linked threads and
  the API key vs OAuth distinction for personal agents
- Pull v1 OpenAPI spec from the develop CDN origin and bump Fern to
  5.117.0

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

@sebastianrosch
sebastianrosch merged commit a1aa036 into main Sep 12, 2026
2 checks passed
@sebastianrosch
sebastianrosch deleted the add-agents-section branch September 12, 2026 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant