Dee API

Give each of your users their own Dee, from a device, an app or a script. Plain HTTP and JSON, five endpoints.

Quickstart

1. Make a user, with your own id for them:

curl https://dee.gg/v1/users \
  -H "Authorization: Bearer $PA_KEY" -H "Content-Type: application/json" \
  -d '{"external_id": "device-123"}'
# {"id":"usr_9f2c…","external_id":"device-123","created":true}

2. Start a conversation:

curl https://dee.gg/v1/conversations \
  -H "Authorization: Bearer $PA_KEY" -H "Content-Type: application/json" \
  -d '{"user": "usr_9f2c…"}'
# {"id":"k3v8q0m2xa","user":"usr_9f2c…"}

3. Send a message and get the replies:

curl https://dee.gg/v1/conversations/k3v8q0m2xa/messages \
  -H "Authorization: Bearer $PA_KEY" -H "Content-Type: application/json" \
  -d '{"text": "Find a quiet coffee shop near me", "location": {"lat": 40.7128, "lng": -74.006, "label": "Home"}}'
# {"id":"…","messages":[{"id":"…","text":"…","at":"2026-11-25T09:30:00.000Z"}]}

Endpoints

CallWhat it does
POST /v1/users{"external_id"}. Makes a user, or returns the one you already made with that id. Each user has their own assistant and memory.
POST /v1/conversations{"user"}. Starts a conversation for one of your users.
GET /v1/conversations?user=…A user's conversations, newest first.
POST /v1/conversations/:id/messages{"text", "location"?, "wait"?}. Sends the user's message and waits up to 60 seconds for the assistant's replies. With "wait": false it answers 202 at once and the replies go to your webhook.
GET /v1/conversations/:id/messagesEvery message in the conversation, oldest first.

Auth

Send your key on every call: Authorization: Bearer pa_…. A key reaches only the users it made. Ask us for a key; keep it on your server, not in a device's firmware.

Location and context

The assistant knows only what you send: the text, and a location when you include one. It never guesses where a user is from your request, so send location whenever it matters.

Webhooks

Some requests take minutes (research, comparing options). Their results arrive later, like a text would. Every assistant message is posted to your webhook URL:

POST your-url
PA-Signature: t=1764063000,v1=5d41…
{"type":"message.created","user":"usr_9f2c…","conversation":"k3v8q0m2xa",
 "message":{"id":"…","role":"assistant","text":"…","at":"…"}}

Check the signature: v1 is the hex HMAC-SHA256 of "{t}.{raw body}" with your webhook secret. Reject a t more than 5 minutes old.

What needs the user

The assistant won't place orders, send email or sign in to accounts on its own. When a task needs the user's yes or a sign-in, the reply carries a link: show it to the user, or open it on their phone.

Limits

60 requests a minute per key; past it you get 429 with Retry-After. Each user also has a spending limit; a paused user gets a normal reply saying so.

Errors

Every error is {"error": {"type", "message"}}: 400 invalid_request, 401 unauthorized, 404 not_found (also for ids that aren't yours), 429 rate_limited, 503 unavailable.

Versions

This is /v1. Within it we only add fields; anything that would break your code ships as /v2.