ديـرDeerالدليلDocs

API

واجهات HTTP التي تستطيع استخدامها من خارج دير اليوم، أي عنوان MCP وعنوان الإجراءات العامة، بطلباتها وحدودها وما لم يتوفر بعد.

المتاح اليـوم

يمر كل تغيير في دير عبر الإجراءات. ومن خارج التطبيق تصل إلى الإجراءات عبر واجهتين:

الواجهةالعنوانالمصادقةما تشغّله
عنوان MCPhttps://app.deerapp.co/api/mcp/<workspace-id>رمز bearer من اتصال MCPثماني أدوات للمهام، باسم صاحب الاتصال
عنوان الإجراءات العامةhttps://app.deerapp.co/api/public/actionsبلا مصادقةإجراء واحد: settings.join_waitlist

وتتواصل تطبيقات دير أيضاً مع API خاصة عبر جلسة متصفح مسجّلة الدخول. لا تقبل هذه الواجهة إلا الطلبات الصادرة من دير نفسه، وليست واجهة مدعومة للتكامل، فلا تبنِ عليها.

عنوان MCP

يتحدث خادم MCP في مساحة العمل بروتوكول MCP عبر Streamable HTTP. أنشئ اتصالاً وانسخ العنوان من الإعدادات ثم MCP، كما في صفحة MCP.

الطلبات

  • أرسل كل رسالة JSON-RPC 2.0 في طلب POST مستقل إلى عنوان مساحة العمل. ولا تُقبل الرسائل المجمّعة.
  • أرسل Authorization: Bearer <token> مع كل طلب. فدير لا يحتفظ بجلسة بين الطلبات ولا يصدر معرّف جلسة.
  • يرد دير برد واحد من نوع application/json، ولا يبث النتائج عبر Server-Sent Events.
  • الإشعار، أي الرسالة التي لا تحمل id، يتلقى 202 Accepted بلا محتوى.
  • يعيد GET وDELETE الرمز 405 Method Not Allowed.
الطريقةالنتيجة
initializeإصدار البروتوكول، وcapabilities: { "tools": {} }، وserverInfo باسم Deer.
pingنتيجة فارغة.
tools/listالأدوات المسموحة للاتصال الآن. راجع أدوات MCP.
tools/callيشغّل أداة واحدة.

إصدارات البروتوكـول

يدعم دير إصداري MCP 2025-11-25 و2025-06-18. وإذا طلب initialize إصداراً آخر، رد دير بالإصدار 2025-11-25. وإذا حمل الطلب الترويسة MCP-Protocol-Version، فيجب أن تكون أحد الإصدارين المدعومين.

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>"}}}

استدعاء أداة

Terminal
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"}}}'

تحمل النتيجة عنصراً من نوع text فيه كائن JSON، وتخبرك isError هل نجح الإجراء. راجع النتائج.

عنوان الإجراءات العامـة

يشغّل العنوان العام إجراءات لا تحتاج إلى حساب، وفيه اليوم إجراء واحد: settings.join_waitlist، الذي يحفظ بريداً إلكترونياً لتلقي أخبار إطلاق دير دون إنشاء حساب.

عرض الإجراءات العامـة

أرسل GET إلى العنوان لتقرأ الإجراءات العامة المتاحة، ولكل منها id وtitle وdescription بالعربية والإنجليزية، وrisk وinputSchema.

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

الانضمام إلى قائمة الانتظـار

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}}
الحقلالنوعملاحظات
emailstringمطلوب: عنوان صحيح لا يتجاوز 254 حرفاً، ويُحفظ بأحرف صغيرة.
localestringمطلوب: ar أو en، وهي لغة الرسائل.
consentbooleanمطلوب، ويجب أن تكون قيمته true.
JSON
{"ok":true,"message":{"ar":"أصبح بريدك في قائمة الانتظار.","en":"Your email is on the waitlist."}}

الرد واحد سواء كان العنوان جديداً أو مسجّلاً من قبل، فلا يكشف العنوان العام من سجّل.

من يستطيع استدعـاءه

  • لا تستطيع المتصفحات استدعاء هذا العنوان إلا من مواقع دير نفسها، ويُرفض أي طلب POST من موقع آخر بالرمز ORIGIN_NOT_ALLOWED.
  • لا يرسل العنوان ملفات تعريف ارتباط ولا يقرأ أي جلسة، ولا يستطيع اختيار مساحة عمل ولا منفّذ ولا أي إجراء خاص.

موجز خريطة الطريق

يعيد GET https://app.deerapp.co/roadmap.json خريطة الطريق العامة، ويمكن قراءته من أي موقع. يحمل schemaVersion وsource وitems، ولكل عنصر id وstatus، وعنوان title وملخص summary بالعربية والإنجليزية. وهو للقراءة فقط.

الحـدود

الواجهةمعدل الطلباتحجم الطلب
عنوان MCP120 طلباً في الدقيقة من عنوان شبكة واحد15,029,592 بايت
POST إلى الإجراءات العامة10 طلبات في الدقيقة من عنوان شبكة واحد2 KB

تحمل ردود MCP وردود POST العامة الترويسة Cache-Control: no-store. ويُرفض الطلب الذي يتجاوز الحد بالرمز 429 أو 413. راجع الأخطاء والموافقات.

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.

What is available today

Deer runs every change through actions. From outside the app, you can reach actions through two interfaces:

InterfaceAddressAuthenticationWhat it runs
MCP endpointhttps://app.deerapp.co/api/mcp/<workspace-id>Bearer token from an MCP connectionEight task tools, as the connection owner
Public actions endpointhttps://app.deerapp.co/api/public/actionsNoneOne 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.

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.

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.
MethodResult
initializeThe protocol version, capabilities: { "tools": {} } and serverInfo with the name Deer.
pingAn empty result.
tools/listThe tools the connection may use now. See MCP tools.
tools/callRuns 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

Terminal
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.

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.

Terminal
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}}
FieldTypeNotes
emailstringRequired. A valid address of up to 254 characters. Stored in lower case.
localestringRequired. ar or en, the language for updates.
consentbooleanRequired, 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.

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

InterfaceRequest rateBody size
MCP endpoint120 requests a minute from one network address15,029,592 bytes
Public actions POST10 requests a minute from one network address2 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.