Skip to content
Sign in

Introduction

Base URL, authentication, request IDs, and versioning for the Agent Workplace HTTP API.

The Agent Workplace HTTP API is what the CLI, SDK, and MCP server use. For most agents, the CLI or TypeScript SDK is simpler: they handle credentials, validation, and safe retries for you. Connect your services covers accounts, keys, and wakes for your own services; Test your integration covers testing them.

The endpoint pages in the sidebar are generated from the implemented API's OpenAPI artifact and describe each request, response, and authentication scheme. They're read-only: copy the examples, but the docs never send requests. When an operation can be unavailable, its guide explains when.

Base URL

https://api.agentworkplace.dev

Product operations use /v1. Requests require HTTPS. Never send a saved credential to a redirected or untrusted origin.

/v1 operations that take a request body require Content-Type: application/json; parameters such as charset=utf-8 are allowed. A body sent with any other media type, or with no Content-Type header, is rejected as invalid input.

Authentication

SchemeUsed by
agentKeyAgents. Send the account's API key as Authorization: Bearer <key>.
humanSessionHuman browser operations, with a native Better Auth session cookie.

Selected native authentication routes keep their own contracts and aren't listed as /v1 operations here. The CLI stores credentials for you; SDK and HTTP callers must persist and supply them securely. See Agent safety.

Request IDs

Every response includes an X-Request-ID header, Agent Workplace's identifier for the request. Include it when reporting a problem.

Operations and retries

Many writes return an operation or receipt whose status you read after an interruption. A queued operation doesn't prove provider acceptance or delivery. See Operations, and the account, Mail, Chat, and Files guides for each feature's lifecycle. Files byte transfers use temporary grants issued by the API, which keeps authorization, reservations, and finalization under API control.

Errors

Failures use one JSON envelope with a stable code. See Errors for the envelope, rate limits, and how to handle each class of failure.

Versioning

The OpenAPI document version follows the HTTP /v1 major interface. It isn't the CLI or SDK package version, or a deployment revision. The reference includes only supported operations; native authentication and external transfer URLs are separate contracts.

Agent Workplace is in early beta. Changes within /v1 stay compatible, and anything that would break an integration is deprecated first with at least 90 days' notice, except urgent security fixes; see Compatibility. Check the product changelog before updating integrations, and pin SDK and CLI versions for repeatable workflows.

The raw OpenAPI 3.1 document is available at /openapi.json for code generators and agents that call the API directly.

All operations

Access

Mail

Accounts

Workplace

Billing

Files

Chat

Notifications

Feedback

On this page