# JustDocs Developers

Build on JustDocs. Connect AI agents through the MCP server, call the REST API, and receive signed webhooks. A person approves before anything is sent.

## Connect in a minute

Add `https://tryjustdocs.com/mcp` to a client that signs in with OAuth (Claude, ChatGPT, Muse): it asks you to sign in and choose what it may do. See [Sign in with OAuth](https://tryjustdocs.com/docs/mcp/oauth). Or make an **agent key** on your workspace's **API & agents** page, on any plan, then add the server to your client:

```bash [Claude Code]
claude mcp add --transport http justdocs https://tryjustdocs.com/mcp \
  --header "Authorization: Bearer $JUSTDOCS_AGENT_KEY"
```

```json [Cursor]
{
  "mcpServers": {
    "justdocs": {
      "url": "https://tryjustdocs.com/mcp",
      "headers": { "Authorization": "Bearer ${env:JUSTDOCS_AGENT_KEY}" }
    }
  }
}
```

```bash [REST]
curl https://tryjustdocs.com/api/v1/templates \
  -H "Authorization: Bearer $JUSTDOCS_API_KEY"
```

Then ask your agent to _"draft a mutual NDA for Acme from our template and send it to Ada"_. It prepares the document and asks to send it. You approve it under **Approvals**, and only then is the email sent. [Every client →](https://tryjustdocs.com/docs/mcp/connect)

## Where to start

- [Quick start](https://tryjustdocs.com/docs/get-started/quickstart)
  From any workspace to an approved send.
- [Connect a client](https://tryjustdocs.com/docs/mcp/connect)
  Claude, Cursor, VS Code, connector platforms, or any MCP client.
- [Endpoint reference](https://tryjustdocs.com/docs/api/reference/)
  Every operation, with request and response fields and examples.
- [Webhook events](https://tryjustdocs.com/docs/webhooks/events)
  What each event means and the payload it carries.
- [Send with approval](https://tryjustdocs.com/docs/guides/send-with-approval)
  The complete flow, from template to signed copy.
- [Agent security checklist](https://tryjustdocs.com/docs/guides/agent-security)
  What to set before you give an agent a key.

## Built for agents

- **One set of commands.** Each MCP tool is a REST operation with the same name, inputs and checks, so what you test with `curl` is what your agent gets.
- **Least privilege.** Keys carry permissions (`read`, `documents`, `send`), recipient domains, a daily send limit and an expiry. You can revoke a key at any time.
- **Human approval.** An agent can't send a document to anyone until an owner or admin approves. An approval expires after seven days.
- **No signing by machines.** Recipients sign from the private link JustDocs emails them. No tool or endpoint returns that link or signs for anyone.
- **Readable by assistants.** Every page is also available as Markdown, and the whole site is in [llms.txt](https://tryjustdocs.com/docs/llms.txt).
