Sortd API

The AI-ready work layer on top of Gmail.

Gmail's API gives an agent a mailbox. Sortd's API gives it a team's email operation — threads become owned, stateful work items with AI classification, assignments, customer context and a human-in-the-loop review flow, through one contract.

Get started API reference OpenAPI

Why an agent should call Sortd, not the mailbox

Team state

Who owns a conversation, what stage it's in, who's assigned — across every mailbox on the team.

AI classification

Smart status, urgency, sentiment and risk as structured labels. Raw email bodies stay in Sortd.

Customer context

Sales boards and deal flow alongside the email a thread came from.

Agent-safe

Scopes, idempotency, audit, reversible actions, and drafts-for-review — agents never send.

Five-minute quickstart

# 1. List the teams your key can use
curl https://api.sortd.com/v2/me \
  -H "Authorization: Bearer sk_live_…"

# 2. Find work on a board
curl "https://api.sortd.com/v2/tasks?board_id=brd_…" \
  -H "Authorization: Bearer sk_live_…"

# 3. Create a task (idempotent)
curl -X POST https://api.sortd.com/v2/tasks \
  -H "Authorization: Bearer sk_live_…" \
  -H "Idempotency-Key: my-unique-key" \
  -d '{"list_id":"lst_…","title":"Follow up with Acme"}'

Full walkthrough in the Quickstart. Every response is { data, meta }; tolerate unknown fields.

Built for AI clients

SurfaceWhat it is
REST v2The durable contract — explicit, typed, OpenAPI 3.1.
MCPConnect Sortd inside Claude / ChatGPT / Cursor. Open-source stdio server (@sortd/mcp, MIT) + hosted transport.
ZapierREST-hook + polling triggers, idempotent actions, loop detection.
WebhooksStripe-style signed delivery, retries, replay, delivery log.
llms-full.txtThe whole contract in one file, written for models.