# API

> The HTTP interfaces you can use from outside Deer today, the MCP endpoint and the public actions endpoint, with their requests, limits and what is not available yet.

Source: https://docs.deerapp.co/en/developers/api/

## What is available today

Deer runs every change through [actions](https://docs.deerapp.co/en/developers/hybrid_model/). From outside the app, you can reach actions through two interfaces:

| Interface | Address | Authentication | What it runs |
| --- | --- | --- | --- |
| MCP endpoint | `https://app.deerapp.co/api/mcp/<workspace-id>` | Bearer token from an MCP connection | Eight task tools, as the connection owner |
| Public actions endpoint | `https://app.deerapp.co/api/public/actions` | None | One action: `settings.join_waitlist` |

The Deer apps also talk to a private API with a signed-in browser session. It accepts requests only from Deer itself and is not a supported integration surface. Do not build on it.

> [!NOTE]
> A general public REST API (Soon) and outgoing webhooks (Soon) are not available yet. MCP tools for modules other than Tasks are not available yet either (Soon). See the [roadmap](https://deerapp.co/en/roadmap/).

## MCP endpoint

The workspace MCP server speaks MCP over Streamable HTTP. Create a connection and copy the endpoint from **Settings**, **MCP**, as described in [MCP](https://docs.deerapp.co/en/connect/mcp/).

### Requests

- Send each JSON-RPC 2.0 message as a separate `POST` to the workspace URL. Batches are not accepted.
- Send `Authorization: Bearer <token>` with every request. Deer keeps no session between requests and does not issue a session id.
- Deer answers with one `application/json` response. It does not stream results over Server-Sent Events.
- A notification, a message without `id`, receives `202 Accepted` with an empty body.
- `GET` and `DELETE` return `405 Method Not Allowed`.

| Method | Result |
| --- | --- |
| `initialize` | The protocol version, `capabilities: { "tools": {} }` and `serverInfo` with the name `Deer`. |
| `ping` | An empty result. |
| `tools/list` | The tools the connection may use now. See [MCP tools](https://docs.deerapp.co/en/connect/mcp_tools/). |
| `tools/call` | Runs one tool. |

### Protocol versions

Deer supports MCP versions `2025-11-25` and `2025-06-18`. If `initialize` asks for another version, Deer answers with `2025-11-25`. If a request carries an `MCP-Protocol-Version` header, it must be one of the two supported versions.

```http
POST /api/mcp/<workspace-id> HTTP/1.1
Host: app.deerapp.co
Authorization: Bearer <token>
Content-Type: application/json
Accept: application/json, text/event-stream

{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-11-25","capabilities":{},"clientInfo":{"name":"my-client","version":"1.0.0"}}}
```

```json
{"jsonrpc":"2.0","id":1,"result":{"protocolVersion":"2025-11-25","capabilities":{"tools":{}},"serverInfo":{"name":"Deer","version":"<deer-version>"}}}
```

### Calling a tool

```bash
curl -s <workspace-mcp-url> \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"tasks.list","arguments":{"status":"todo"}}}'
```

The result holds a `text` item with a JSON object, and `isError` tells you whether the action succeeded. See [Results](https://docs.deerapp.co/en/connect/mcp_tools/#results).

## Public actions endpoint

The public endpoint runs actions that need no account. Today it offers one: `settings.join_waitlist`, which saves an email address for Deer launch updates without creating an account.

### List public actions

`GET` the endpoint to read the available public actions, each with its `id`, bilingual `title` and `description`, `risk` and `inputSchema`.

```bash
curl -s https://app.deerapp.co/api/public/actions
```

### Join the waitlist

```http
POST /api/public/actions HTTP/1.1
Host: app.deerapp.co
Content-Type: application/json

{"action":"settings.join_waitlist","input":{"email":"name@example.com","locale":"en","consent":true}}
```

| Field | Type | Notes |
| --- | --- | --- |
| `email` | string | Required. A valid address of up to 254 characters. Stored in lower case. |
| `locale` | string | Required. `ar` or `en`, the language for updates. |
| `consent` | boolean | Required, and must be `true`. |

```json
{"ok":true,"message":{"ar":"أصبح بريدك في قائمة الانتظار.","en":"Your email is on the waitlist."}}
```

The response is the same whether the address is new or already on the list, so the endpoint never reveals who has registered.

> [!IMPORTANT]
> Send `consent: true` only when the person has agreed to receive Deer updates themselves. Do not enroll addresses on anyone's behalf.

### Who can call it

- Browsers can call the endpoint only from Deer's own websites. A `POST` sent from another site is refused with `ORIGIN_NOT_ALLOWED`.
- The endpoint sends no cookies and reads no session. It cannot select a workspace, an actor or any private action.

## Roadmap feed

`GET https://app.deerapp.co/roadmap.json` returns the public roadmap and can be read from any site. It holds `schemaVersion`, `source` and `items`, and each item has an `id`, a `status` and a bilingual `title` and `summary`. It is read-only.

## Limits

| Interface | Request rate | Body size |
| --- | --- | --- |
| MCP endpoint | 120 requests a minute from one network address | 15,029,592 bytes |
| Public actions `POST` | 10 requests a minute from one network address | 2 KB |

MCP responses and public `POST` responses are marked `Cache-Control: no-store`. A request over a limit is refused with `429` or `413`. See [Errors and approvals](https://docs.deerapp.co/en/developers/errors_and_approvals/).

- [MCP](https://docs.deerapp.co/en/connect/mcp/) Create a connection and configure a client.
- [MCP tools](https://docs.deerapp.co/en/connect/mcp_tools/) Every tool and its input.
- [Errors and approvals](https://docs.deerapp.co/en/developers/errors_and_approvals/) Error codes, approvals and retries.
