أرسل حمولة Anthropic Messages API إلى /v1/messages واحصل على استجابة بتنسيق Anthropic، لأي نموذج يوجّه إليه Phaseo. حقول استخدام الأدوات في Anthropic مدعومة، وتتحكم الترويسة X-Phaseo-Strictness في كيفية التعامل مع المعاملات غير المدعومة.اضبط stream: true لتلقي أحداث مرسلة من الخادم بتنسيق Anthropic (message_start وcontent_block_* وmessage_delta وmessage_stop). ويعمل البث أيضًا في حلقات الأدوات.
رسائل النظام في منتصف المحادثة
أضف رسالة role: "system" إلى messages لتعليمة تسري من تلك النقطة في المحادثة. يبقى الحقل system في المستوى الأعلى كما هو، لذا تظل البادئة المخزّنة مؤقتًا تُصاب.
curl https://api.phaseo.app/v1/messages \ -H "Authorization: Bearer $PHASEO_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "anthropic/claude-opus-5.5", "max_tokens": 512, "system": "You are a code review assistant.", "messages": [ { "role": "user", "content": "Review process() in utils.py." }, { "role": "assistant", "content": "The loop is fine; the regex is compiled on every call." }, { "role": "user", "content": "Now review the code that calls it." }, { "role": "system", "content": "From now on, include type annotations in every suggestion." } ] }'
تقبل رسالة النظام سلسلة نصية أو كتلًا نصية. يجب أن تأتي مباشرة بعد دور للمستخدم (أو دور للمساعد ينتهي بنتيجة أداة خادم)، وأن تكون الرسالة الأخيرة أو يتبعها دور للمساعد. تُرجع المواضع الأخرى 400. لا تُدعم clear_at وoutput_config وكتل tool_addition أو tool_removal.
نماذج Claude الأخرى، بما فيها Sonnet 5، وكل نماذج Claude على Microsoft Foundry
مدمجة في مطالبة النظام في المستوى الأعلى
نماذج المزوّدين الآخرين
بوصفها رسالة نظام، كما لو أُرسلت إلى Chat Completions
استخدم أدوات الخادم
أضف أداة phaseo: إلى tools وسيشغّلها Phaseo عندما يستدعيها النموذج، محوّلًا إياها إلى تنسيق أدوات Anthropic عند إرسالها إلى المزوّد ومواصلًا حلقة الأدوات من جانب الخادم. تقبل /v1/messages كل أدوات الخادم باستثناء phaseo:apply_patch؛ ويسردها دليل أدوات الخادم.
تُحتسب استدعاءات أدوات الخادم في usage.server_tool_use. ولا يزال النوع الأقدم gateway:datetime يعمل. مع stream: true، يشغّل Phaseo أدوار الأدوات بنفسه، ثم يبث إليك الإجابة المستكملة في بث واحد.
استخدم بحث الويب الأصلي في Anthropic
عندما يدعم نموذج Anthropic والمزوّد الموجَّه إليهما بحث الويب الأصلي، مرّر تعريف أداة Anthropic مباشرة، مثل type: "web_search_20250305". ويظل توجيه المزوّدين يصفّي حسب دعم web_search_options قبل التنفيذ.
يُعامَل أي حقل اختياري في المستوى الأعلى يُرسَل بالقيمة null على أنه غير مضبوط، تمامًا كما لو حُذف.
model
string
مطلوب
messages
object[]
مطلوب
Minimum array length: 1
Option 1
Option 2
Show child attributes
max_tokens
integer
مطلوب
النطاق المطلوب: x >= 1
models
string[]
نماذج احتياطية اختيارية ومرتبة تُجرَّب بعد model. الحقل model مطلوب وهو دائمًا النموذج الأساسي. عندما تفشل محاولة بالرمز 429 أو 500 أو 502 أو 503 أو 504، تُجرَّب الإدخالة التالية؛ وتُعاد الأخطاء الأخرى دون تغيير. يقبل ما يصل إلى 25 معرّف نموذج أو إعدادًا مسبقًا؛ وتُتجاهل الإدخالات المكررة والإدخالات المطابقة لـ model. يُتحقق من كل محاولة وتُسجَّل وتُحتسب تكلفتها كطلب مستقل، ويعرض الحقل model في الاستجابة وتتبّع التوجيه النموذج الذي خدم الطلب. لا تنتقل طلبات البث إلى نموذج احتياطي إلا قبل إرسال البايت الأول، ولا تنتقل مهام الفيديو والموسيقى إلا عند الإرسال. ترفض طلبات batch وrealtime وcouncil الحقل models. تكون الأولوية للنماذج الاحتياطية المحددة في مسار ديناميكي، ولا يمكن الجمع بين phaseo/auto وmodels.
يملأ قالب الموجّه المحفوظ في إعداد مسبق. اترك model أو اضبطه على المرجع نفسه، وأرسل محادثة فارغة أو الأدوار التي تُضاف بعد القالب.
Show child attributes
system
stringobject[]
service_tier
enum<string>
يحدد مستوى توجيه أو تسعير مدعومًا في واجهات API النصية المتوافقة.
الخيارات المتاحة:
standard,
default,
fast,
ultrafast,
priority,
flex,
batch,
auto,
standard_only
temperature
number
النطاق المطلوب: 0 <= x <= 1
top_p
number
النطاق المطلوب: 0 <= x <= 1
top_k
integer
النطاق المطلوب: x >= 1
tools
object[]
أدوات متوافقة مع Anthropic، بالإضافة إلى أدوات خادم تديرها البوابة.
Option 1
Option 2
Option 3
Option 4
Option 5
Option 6
Option 7
Show child attributes
tool_choice
objectstring
كائن أو نص لاختيار أداة Anthropic. تُقبل أيضاً أسماء أدوات الخادم التي تديرها البوابة، وتعيد البوابة كتابتها.
plugins
object[]
إضافات البوابة لهذا الطلب. تضيف web البحث على الويب وتضيف web-fetch قراءة الصفحات إلى أي نموذج، وتصلح response-healing ملفات JSON المشوّهة في الاستجابات المنظّمة غير المتدفقة. تُدمج الإعدادات الافتراضية لمساحة العمل والإعداد المسبق مع هذه القائمة. يعيد معرّف إضافة غير معروف الخطأ 400 unknown_gateway_plugin.
تضيف أداة الخادم phaseo:web_search إلى الطلب، ليتمكن أي نموذج من البحث على الويب. يعمل الطلب، وتُحتسب عمليات البحث وتُفوتر، تمامًا كما مع أداة phaseo:web_search. إذا كان الطلب يتضمن أداة بحث على الويب بالفعل، فلا تضيف الإضافة شيئًا. تُتجاهل الخيارات الأخرى.
Option 1
Option 2
Option 3
Show child attributes
stream
boolean
metadata
object
session_id
string
معرّف فريد لتجميع الطلبات المرتبطة (مثل محادثة أو سير عمل وكيل) لأغراض قابلية المراقبة.
Maximum string length: 256
reasoning
object
Show child attributes
context_management
object
تحرير السياق من Anthropic. يقبل edits استراتيجيات clear_tool_uses_* وclear_thinking_*، ويُرسَل إلى Anthropic مع ترويسة beta الخاصة بها. يشغّل المزوّدون الآخرون الطلب من دونه ويُدرجون context_management في X-Phaseo-Dropped-Params. تعيد تعديلات الضغط (compact_*) الخطأ 400.
Show child attributes
user
string
معرّف المستخدم النهائي، كما في Chat Completions. تستلمه نماذج Claude بوصفه metadata.user_id ما لم يُضبط metadata.user_id.
prompt_cache_key
string | null
يجمع الطلبات المرتبطة لتبقى لدى المزوّد الذي يحتفظ بذاكرة المطالبات المؤقتة الخاصة بها. ترسل Phaseo إلى المزوّد تجزئة لمساحة العمل وهذا المفتاح، وليس المفتاح الخام أبدًا.
stop_sequences
string[]
cache_control
object
التحكم في ذاكرة المطالبات المؤقتة. استخدم type ephemeral مع ttl اختياري قيمته 5m أو 1h. ولا ينطبق scope إلا على سياسة تخزين مؤقت لـ Claude على المستوى الأعلى. تخزّن Amazon Bedrock وGoogle Vertex AI نماذج Claude 3.7 Sonnet و3.5 Sonnet و3 Opus مؤقتًا لمدة 5 دقائق فقط؛ وهناك يُحذف ttl، ويُبلَغ عن قيمة 1h المحذوفة في X-Phaseo-Dropped-Params باسم cache_control.ttl.
Show child attributes
provider_options
object
خيارات خاصة بالمزوّد، اختيارية.
Show child attributes
usage
boolean
meta
boolean
echo_upstream_request
boolean
debug
object
عناصر تحكم تصحيح أخطاء البوابة. لا تُمرر هذه العلامات إلى المزوّد مطلقًا.
Show child attributes
provider
object
تفضيلات توجيه المزوّد لاختياره عبر البوابة.
Show child attributes
الاستجابة
استجابة الرسالة
id
string
type
string
role
enum<string>
الخيارات المتاحة:
assistant
model
string
content
object[]
Show child attributes
stop_reason
string
stop_sequence
string
usage
object
Show child attributes
context_management
object
يظهر عندما يستخدم الطلب context_management وتطبّق Anthropic تعديلًا. يسرد applied_edits كل تعديل مع ما أزاله. وفي التدفقات، يرد في حدث message_delta الأخير.
{"docsConfig":{"theme":"luma","$schema":"https://mintlify.com/docs.json","name":"Phaseo Docs","description":"Documentation for Phaseo Gateway, SDKs, routing, pricing, guardrails, async jobs, and model discovery across providers.","colors":{"primary":"#0069a8","light":"#38bdf8","dark":"#0069a8"},"logo":{"light":"https://mintcdn.com/aistats/bxzzjromPyjBlHKc/logo/light.svg?fit=max\u0026auto=format\u0026n=bxzzjromPyjBlHKc\u0026q=85\u0026s=f1e10d307a46469852edc2ae198e3c2a","dark":"https://mintcdn.com/aistats/bxzzjromPyjBlHKc/logo/dark.svg?fit=max\u0026auto=format\u0026n=bxzzjromPyjBlHKc\u0026q=85\u0026s=6719dd9bade9b7f4025561841736d72e","href":"https://phaseo.app"},"favicon":"https://mintcdn.com/aistats/UZfkYM9yX2Gru_Ij/favicon.svg?fit=max\u0026auto=format\u0026n=UZfkYM9yX2Gru_Ij\u0026q=85\u0026s=04efcd38cad9cdb599aa92c800724bd5","api":{"openapi":"openapi/v1/openapi.yaml","playground":{"display":"interactive"},"examples":{"defaults":"all","languages":["javascript","python","bash","go","java","php","ruby"],"prefill":true,"autogenerate":true}},"background":{"color":{"light":"#ffffff","dark":"#0a0a0a"}},"navbar":{"primary":{"type":"button","label":"Get API Key","href":"https://phaseo.app/settings/keys"}},"footer":{"socials":{"x":"https://x.com/phaseoteam","github":"https://github.com/phaseoteam/Phaseo","discord":"https://discord.gg/aQyywCvgZ5","linkedin":"https://www.linkedin.com/company/phaseoapp","reddit":"https://www.reddit.com/r/Phaseo"},"links":[{"items":[{"label":"Models","href":"https://phaseo.app/models"},{"label":"Status","href":"https://status.phaseo.app"},{"label":"Support","href":"https://phaseo.app/help"}]}]},"seo":{"metatags":{"canonical":"https://phaseo.app/docs"}},"fonts":{"family":"Montserrat"},"icons":{"library":"lucide"},"styling":{"eyebrows":"section","latex":true},"contextual":{"options":["copy","view","chatgpt","claude","cursor","vscode","devin","mcp","add-mcp"],"display":"header"},"interaction":{"drilldown":false},"metadata":{"timestamp":true},"markdown":{"instructions":["Phaseo Gateway base URL: https://api.phaseo.app/v1. Send `Authorization: Bearer $PHASEO_API_KEY` with every request.","Model IDs look like `provider/model`, for example `openai/gpt-6-astra`. Do not guess IDs: list them with `GET /v1/models` or check https://phaseo.app/models. `phaseo/free` routes to an available free model and needs no wallet balance.","For new text integrations prefer `POST /v1/responses`. `POST /v1/chat/completions` (OpenAI format) and `POST /v1/messages` (Anthropic format) suit existing code.","The full API contract is https://phaseo.app/docs/openapi/v1/openapi.yaml. Official SDKs: `@phaseo/sdk` (TypeScript) and `phaseo` (Python), plus Go, C#, PHP, Ruby and Rust.","Search these docs over MCP at https://phaseo.app/docs/mcp, and install Phaseo skills with `npx skills add https://phaseo.app/docs`. If a page is wrong or out of date, report it with the MCP `submit_feedback` tool.","Manage Phaseo accounts with the `phaseo` CLI (`npm install -g @phaseo/cli`, then `phaseo login` or `phaseo login --device-code`), the `/v1` Management API or the MCP server at `https://mcp.phaseo.app/mcp?access=manage`. Do not send users to the dashboard for account tasks. A person is still needed for sign-up, approving a sign-in, paying the first top-up on the checkout link that `phaseo credits add` returns when no card is saved, confirming each saved-card top-up from the emailed link, and account security (password, MFA, passkeys). Create API keys with `phaseo keys create --name \u003cname> --json`; never guess one. Credit top-ups need `phaseo login --scopes billing:write` first. Task map: https://phaseo.app/docs/v1/developers/manage-from-an-agent.md."]},"navigation":{"languages":[{"language":"en","href":"v1"},{"language":"es","footer":{"socials":{"x":"https://x.com/phaseoteam","github":"https://github.com/phaseoteam/Phaseo","discord":"https://discord.gg/aQyywCvgZ5","linkedin":"https://www.linkedin.com/company/phaseoapp","reddit":"https://www.reddit.com/r/Phaseo"},"links":[{"items":[{"label":"Modelos","href":"https://phaseo.app/es-ES/models"},{"label":"Estado","href":"https://status.phaseo.app"},{"label":"Soporte","href":"https://phaseo.app/es-ES/help"}]}]},"navbar":{"primary":{"type":"button","label":"Obtener clave de API","href":"https://phaseo.app/es-ES/settings/keys"}},"href":"es/v1"},{"language":"fr","footer":{"socials":{"x":"https://x.com/phaseoteam","github":"https://github.com/phaseoteam/Phaseo","discord":"https://discord.gg/aQyywCvgZ5","linkedin":"https://www.linkedin.com/company/phaseoapp","reddit":"https://www.reddit.com/r/Phaseo"},"links":[{"items":[{"label":"Modèles","href":"https://phaseo.app/fr-FR/models"},{"label":"État","href":"https://status.phaseo.app"},{"label":"Assistance","href":"https://phaseo.app/fr-FR/help"}]}]},"navbar":{"primary":{"type":"button","label":"Obtenir une clé API","href":"https://phaseo.app/fr-FR/settings/keys"}},"href":"fr/v1"},{"language":"de","footer":{"socials":{"x":"https://x.com/phaseoteam","github":"https://github.com/phaseoteam/Phaseo","discord":"https://discord.gg/aQyywCvgZ5","linkedin":"https://www.linkedin.com/company/phaseoapp","reddit":"https://www.reddit.com/r/Phaseo"},"links":[{"items":[{"label":"Modelle","href":"https://phaseo.app/de-DE/models"},{"label":"Status","href":"https://status.phaseo.app"},{"label":"Support","href":"https://phaseo.app/de-DE/help"}]}]},"navbar":{"primary":{"type":"button","label":"API-Schlüssel erstellen","href":"https://phaseo.app/de-DE/settings/keys"}},"href":"de/v1"},{"language":"pt-BR","footer":{"socials":{"x":"https://x.com/phaseoteam","github":"https://github.com/phaseoteam/Phaseo","discord":"https://discord.gg/aQyywCvgZ5","linkedin":"https://www.linkedin.com/company/phaseoapp","reddit":"https://www.reddit.com/r/Phaseo"},"links":[{"items":[{"label":"Modelos","href":"https://phaseo.app/pt-BR/models"},{"label":"Status","href":"https://status.phaseo.app"},{"label":"Suporte","href":"https://phaseo.app/pt-BR/help"}]}]},"navbar":{"primary":{"type":"button","label":"Obter chave de API","href":"https://phaseo.app/pt-BR/settings/keys"}},"href":"pt-BR/v1"},{"language":"ja","footer":{"socials":{"x":"https://x.com/phaseoteam","github":"https://github.com/phaseoteam/Phaseo","discord":"https://discord.gg/aQyywCvgZ5","linkedin":"https://www.linkedin.com/company/phaseoapp","reddit":"https://www.reddit.com/r/Phaseo"},"links":[{"items":[{"label":"モデル","href":"https://phaseo.app/ja/models"},{"label":"ステータス","href":"https://status.phaseo.app"},{"label":"サポート","href":"https://phaseo.app/ja/help"}]}]},"navbar":{"primary":{"type":"button","label":"API キーを取得","href":"https://phaseo.app/ja/settings/keys"}},"href":"ja/v1"},{"language":"zh-Hans","footer":{"socials":{"x":"https://x.com/phaseoteam","github":"https://github.com/phaseoteam/Phaseo","discord":"https://discord.gg/aQyywCvgZ5","linkedin":"https://www.linkedin.com/company/phaseoapp","reddit":"https://www.reddit.com/r/Phaseo"},"links":[{"items":[{"label":"模型","href":"https://phaseo.app/zh-Hans/models"},{"label":"状态","href":"https://status.phaseo.app"},{"label":"支持","href":"https://phaseo.app/zh-Hans/help"}]}]},"navbar":{"primary":{"type":"button","label":"获取 API 密钥","href":"https://phaseo.app/zh-Hans/settings/keys"}},"href":"zh-Hans/v1"},{"language":"hi","footer":{"socials":{"x":"https://x.com/phaseoteam","github":"https://github.com/phaseoteam/Phaseo","discord":"https://discord.gg/aQyywCvgZ5","linkedin":"https://www.linkedin.com/company/phaseoapp","reddit":"https://www.reddit.com/r/Phaseo"},"links":[{"items":[{"label":"मॉडल","href":"https://phaseo.app/hi/models"},{"label":"स्थिति","href":"https://status.phaseo.app"},{"label":"सहायता","href":"https://phaseo.app/hi/help"}]}]},"navbar":{"primary":{"type":"button","label":"API कुंजी प्राप्त करें","href":"https://phaseo.app/hi/settings/keys"}},"href":"hi/v1"},{"language":"ar","footer":{"socials":{"x":"https://x.com/phaseoteam","github":"https://github.com/phaseoteam/Phaseo","discord":"https://discord.gg/aQyywCvgZ5","linkedin":"https://www.linkedin.com/company/phaseoapp","reddit":"https://www.reddit.com/r/Phaseo"},"links":[{"items":[{"label":"النماذج","href":"https://phaseo.app/ar-SA/models"},{"label":"الحالة","href":"https://status.phaseo.app"},{"label":"الدعم","href":"https://phaseo.app/ar-SA/help"}]}]},"navbar":{"primary":{"type":"button","label":"احصل على مفتاح API","href":"https://phaseo.app/ar-SA/settings/keys"}},"href":"ar/v1"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"aistats","hasAudioNarration":false,"actualSubdomain":"aistats","customDomains":["phaseo.app"],"gitSource":{"type":"github","owner":"phaseoteam","repo":"phaseo","deployBranch":"main","contentDirectory":"apps/docs","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true,"agentFeedback":true,"issues":true,"edits":true},"entitlements":{},"buildId":"6afba12700b864e4c945ccb7","clientVersion":"0.0.4160","searchFilterCounts":[{"language":"ar","tag":"مرجع API","count":243},{"language":"de","tag":"API-Referenz","count":243},{"language":"es","tag":"Referencia API","count":243},{"language":"fr","tag":"Référence API","count":243},{"language":"hi","tag":"API संदर्भ","count":243},{"language":"ja","tag":"APIリファレンス","count":243},{"language":"pt-BR","tag":"Referência API","count":243},{"language":"en","tag":"API Reference","count":243},{"language":"zh-Hans","tag":"API 参考","count":243},{"language":"hi","tag":"दस्तावेज़","count":144},{"language":"ja","tag":"ドキュメント","count":144},{"language":"zh-Hans","tag":"文档","count":144},{"language":"ar","tag":"الوثائق","count":142},{"language":"de","tag":"Docs","count":142},{"language":"es","tag":"Docs","count":142},{"language":"fr","tag":"Docs","count":142},{"language":"pt-BR","tag":"Docs","count":142},{"language":"en","tag":"Docs","count":142},{"language":"ar","tag":"إدارة مساحات العمل","count":103},{"language":"de","tag":"Arbeitsbereichsverwaltung","count":103},{"language":"es","tag":"Gestión de espacios de trabajo","count":103},{"language":"fr","tag":"Gestion des espaces de travail","count":103},{"language":"hi","tag":"वर्कस्पेस प्रबंधन","count":103},{"language":"ja","tag":"ワークスペース管理","count":103},{"language":"pt-BR","tag":"Gerenciamento de espaços de trabalho","count":103},{"language":"en","tag":"Workspace Management","count":103},{"language":"zh-Hans","tag":"工作区管理","count":103},{"language":"ar","tag":"التوجيه والسياسات","count":57},{"language":"de","tag":"Routing und Richtlinien","count":57},{"language":"es","tag":"Enrutamiento y políticas","count":57},{"language":"fr","tag":"Routage et politiques","count":57},{"language":"hi","tag":"रूटिंग और नीतियाँ","count":57},{"language":"ja","tag":"ルーティングとポリシー","count":57},{"language":"pt-BR","tag":"Roteamento e políticas","count":57},{"language":"zh-Hans","tag":"路由与策略","count":57},{"language":"en","tag":"Routing \u0026 Policies","count":52},{"language":"ar","tag":"التكاملات","count":39},{"language":"de","tag":"Integrationen","count":39},{"language":"es","tag":"Integraciones","count":39},{"language":"fr","tag":"Intégrations","count":39},{"language":"hi","tag":"एकीकरण","count":39},{"language":"ja","tag":"連携","count":39},{"language":"pt-BR","tag":"Integrações","count":39},{"language":"en","tag":"Integrations","count":39},{"language":"zh-Hans","tag":"集成","count":39},{"language":"ar","tag":"الميزات","count":37},{"language":"de","tag":"Funktionen","count":37},{"language":"es","tag":"Funciones","count":37},{"language":"fr","tag":"Fonctionnalités","count":37},{"language":"hi","tag":"सुविधाएँ","count":37},{"language":"ja","tag":"機能","count":37},{"language":"pt-BR","tag":"Recursos","count":37},{"language":"en","tag":"Features","count":37},{"language":"zh-Hans","tag":"功能","count":37},{"language":"ar","tag":"دليل الوصفات","count":29},{"language":"de","tag":"Rezeptbuch","count":29},{"language":"es","tag":"Recetario","count":29},{"language":"fr","tag":"Recettes","count":29},{"language":"hi","tag":"कुकबुक","count":29},{"language":"ja","tag":"クックブック","count":29},{"language":"pt-BR","tag":"Receitas","count":29},{"language":"en","tag":"Cookbook","count":29},{"language":"zh-Hans","tag":"实用指南","count":29},{"language":"ar","tag":"الاستخدام والمراقبة","count":28},{"language":"de","tag":"Nutzung und Überwachung","count":28},{"language":"es","tag":"Uso y supervisión","count":28},{"language":"fr","tag":"Utilisation et surveillance","count":28},{"language":"hi","tag":"उपयोग और निगरानी","count":28},{"language":"ja","tag":"使用状況と監視","count":28},{"language":"pt-BR","tag":"Uso e monitoramento","count":28},{"language":"en","tag":"Usage \u0026 Monitoring","count":28},{"language":"zh-Hans","tag":"用量与监控","count":28},{"language":"ar","tag":"SDK العميل","count":26},{"language":"de","tag":"SDKs","count":26},{"language":"es","tag":"SDKs","count":26},{"language":"fr","tag":"SDK client","count":26},{"language":"hi","tag":"क्लाइंट SDK","count":26},{"language":"ja","tag":"SDK","count":26},{"language":"pt-BR","tag":"SDKs","count":26},{"language":"en","tag":"Client SDKs","count":26},{"language":"zh-Hans","tag":"客户端 SDK","count":26},{"language":"ar","tag":"أدلة الترحيل","count":23},{"language":"de","tag":"Migrationsleitfäden","count":23},{"language":"es","tag":"Guías de migración","count":23},{"language":"fr","tag":"Guides de migration","count":23},{"language":"hi","tag":"माइग्रेशन गाइड","count":23},{"language":"ja","tag":"移行ガイド","count":23},{"language":"pt-BR","tag":"Guias de migração","count":23},{"language":"en","tag":"Migration Guides","count":23},{"language":"zh-Hans","tag":"迁移指南","count":23}],"searchSettings":{"maxResults":10,"showContentSnippets":true}},"assistantConfig":{},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[{"filePath":"styles.css","content":":root{--sidebar-width: 17.5rem}#navbar div:has(>a>img.nav-logo){min-width:max-content}#navbar nav[class*=\"navbar:flex\"]{justify-content:safe center;overflow-x:auto;scrollbar-width:none}#navbar nav[class*=\"navbar:flex\"] li>:is(a,button){padding-inline:0.6875rem}@media (max-width: 1279px){#navbar nav[class*=\"navbar:flex\"] li>:is(a,button){padding-inline:0.5rem;font-size:0.8125rem}}#navbar :is([class*=\"rounded-full\"],#localization-select-trigger){border-radius:0.375rem}@media (max-width: 1399px){html:not([lang=\"en\"]) #navbar nav[class*=\"navbar:flex\"] li>:is(a,button)>svg[style*=\"mask-image\"]{display:none}}@media (max-width: 1279px){#navbar nav[class*=\"navbar:flex\"] li>:is(a,button)>svg[style*=\"mask-image\"]{display:none}}@media (min-width: 1280px){#content-area{--content-width: clamp(40.5rem, min(100vw - 41rem, 100vw - 2 * var(--sidebar-width) - 5rem), 56rem)}#content-container:has(>[data-api-example]) #content-area{--content-width: clamp(40.5rem, 100vw - var(--sidebar-width) - 35.5rem, 56rem);margin-inline:auto!important}}#footer{border-top-width:1px}#footer>div{max-width:none;padding-inline:2rem}@media (min-width: 1800px){:root{--sidebar-width: 24rem}#sidebar-content :is(a,button) .flex-wrap{flex-wrap:nowrap}#sidebar-content button>div:first-child{min-width:0}#sidebar-content :is(a,button) div>span:first-child:not(.method-nav-pill,.nav-tag-pill),#sidebar-content .sidebar-group-header{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}}#page-title{font-size:1.875rem;line-height:2.25rem}#header .prose{font-size:1rem;line-height:1.625rem}#content.mdx-content{font-size:0.9375rem;line-height:1.625rem}#content.mdx-content h2{font-size:1.25rem;line-height:1.75rem}#content.mdx-content h3{font-size:1.0625rem;line-height:1.5rem}#sidebar-content div[class~=\"lg:mt-8\"]{margin-top:1.25rem}:is(.sidebar-group-header,.eyebrow){text-transform:none}.ph-paths{border-top:1px solid rgb(0 0 0 / 0.08)}.ph-paths>*{display:block;margin:0}.ph-paths a{display:grid;grid-template-columns:16rem 1fr;gap:0.25rem 1.5rem;padding:0.875rem 0.125rem;border-bottom:1px solid rgb(0 0 0 / 0.08);color:rgb(107 114 128);font-size:0.9375rem;line-height:1.5;text-decoration:none}.ph-paths a strong{display:flex;align-items:center;gap:0.625rem;color:rgb(17 24 39);font-weight:600}.ph-paths a:hover strong{color:rgb(var(--primary))}.ph-sdks>*{display:flex;flex-wrap:wrap;gap:0.75rem 1.75rem;margin:0}.ph-sdks a{display:inline-flex;align-items:center;gap:0.5rem;color:rgb(17 24 39);font-weight:500;text-decoration:none}.ph-sdks a:hover{color:rgb(var(--primary))}:is(html.dark,html[data-theme=\"dark\"]) :is(.ph-paths,.ph-paths a){border-color:rgb(255 255 255 / 0.1)}:is(html.dark,html[data-theme=\"dark\"]) .ph-paths a{color:rgb(156 163 175)}:is(html.dark,html[data-theme=\"dark\"]) :is(.ph-paths a strong,.ph-sdks a){color:rgb(255 255 255)}:is(html.dark,html[data-theme=\"dark\"]) .ph-paths a:hover strong,:is(html.dark,html[data-theme=\"dark\"]) .ph-sdks a:hover{color:rgb(var(--primary-light))}@media (max-width: 640px){.ph-paths a{grid-template-columns:1fr}}:is(html.dark,html[data-theme=\"dark\"]) img[src$=\"/icons/brands/cline.svg\"]{content:url(\"/icons/brands/cline-dark.svg\")}:is(html.dark,html[data-theme=\"dark\"]) img[src$=\"/icons/brands/cursor.svg\"]{content:url(\"/icons/brands/cursor-dark.svg\")}:is(html.dark,html[data-theme=\"dark\"]) img[src$=\"/icons/brands/kilo.svg\"]{content:url(\"/icons/brands/kilo-dark.svg\")}:is(html.dark,html[data-theme=\"dark\"]) img[src$=\"/icons/brands/opencode.svg\"]{content:url(\"/icons/brands/opencode-dark.svg\")}:is(html.dark,html[data-theme=\"dark\"]) img[src$=\"/icons/brands/prime-agent.svg\"]{content:url(\"/icons/brands/prime-agent-dark.svg\")}:is(html.dark,html[data-theme=\"dark\"]) img[src$=\"/icons/brands/continue.svg\"]{content:url(\"/icons/brands/continue-dark.svg\")}:is(html.dark,html[data-theme=\"dark\"]) img[src$=\"/icons/brands/oh-my-pi.svg\"]{content:url(\"/icons/brands/oh-my-pi-dark.svg\")}:is(html.dark,html[data-theme=\"dark\"]) img[src$=\"/icons/brands/pi.svg\"]{content:url(\"/icons/brands/pi-dark.svg\")}:is(html.dark,html[data-theme=\"dark\"]) img[src$=\"/icons/brands/roo-code.svg\"],:is(html.dark,html[data-theme=\"dark\"]) img[src$=\"/icons/brands/zed.svg\"]{filter:invert(1)}html[lang=\"ar\"] :is(#content-area,#sidebar-content,#table-of-contents-content){direction:rtl}html[lang=\"ar\"] #content-area :is(pre,code){direction:ltr;unicode-bidi:isolate}html[lang=\"ar\"] #content-area .prose li:not(.not-prose li){padding-left:6px;padding-right:32px}html[lang=\"ar\"] #content-area .prose li:not(.not-prose li)::before{left:auto;right:8px}.changelog-filters{position:sticky;top:3rem;z-index:20;display:flex;align-items:center;gap:0.5rem;margin:0 0 1rem;padding:0.75rem 0;overflow-x:auto;scrollbar-width:none;background:#fff;border-bottom:1px solid rgb(0 0 0 / 0.08)}.dark .changelog-filters{background:#0a0a0a;border-bottom-color:rgb(255 255 255 / 0.08)}.changelog-filters button{flex:none;white-space:nowrap;border:1px solid rgb(0 0 0 / 0.12);border-radius:0.375rem;padding:0.25rem 0.75rem;font-size:0.875rem;line-height:1.25rem;color:inherit;background:transparent;cursor:pointer}.dark .changelog-filters button{border-color:rgb(255 255 255 / 0.15)}.changelog-filters button[aria-pressed=\"true\"]{border-color:#0069a8;background:#0069a8;color:#fff}.changelog-filters .changelog-filters-clear{border-color:transparent;padding-inline:0.5rem;opacity:0.7}.changelog-category{margin:1.25rem 0 0.25rem;font-size:0.8125rem;font-weight:600;opacity:0.65}[data-changelog-category]:first-child .changelog-category{margin-top:0}.update.changelog-update-hidden{display:none}.ph-rc{--rc-tokens: #0069a8;--rc-waiting: #eb6834;--rc-failures: #1baf7a;--rc-ink: #0b0b0b;--rc-ink-2: #52514e;--rc-muted: #898781;--rc-grid: #e1e0d9;--rc-base: #c3c2b7;--rc-band: rgba(0, 105, 168, 0.07);--rc-band-edge: rgba(0, 105, 168, 0.28);--rc-surface: #ffffff;--rc-raised: #f6f6f4;--rc-ring: rgba(11, 11, 11, 0.1);margin:1.25rem 0;font-size:0.8125rem;color:var(--rc-ink)}.dark .ph-rc{--rc-tokens: #2a9fd6;--rc-waiting: #d95926;--rc-failures: #199e70;--rc-ink: #f0efec;--rc-ink-2: #c3c2b7;--rc-muted: #898781;--rc-grid: #2c2c2a;--rc-base: #383835;--rc-band: rgba(42, 159, 214, 0.09);--rc-band-edge: rgba(42, 159, 214, 0.35);--rc-surface: #0a0a0a;--rc-raised: #161616;--rc-ring: rgba(255, 255, 255, 0.1)}.ph-rc-tabs{display:flex;flex-wrap:wrap;gap:0.25rem;margin-bottom:0.75rem}.ph-rc-tabs button{border:1px solid var(--rc-ring);border-radius:0.375rem;background:transparent;color:var(--rc-ink-2);padding:0.3rem 0.65rem;font:inherit;cursor:pointer}.ph-rc-tabs button:hover{color:var(--rc-ink);background:var(--rc-raised)}.ph-rc-tabs .ph-rc-tab-on{color:var(--rc-ink);border-color:var(--rc-tokens);background:var(--rc-raised);font-weight:600}.ph-rc-mix{color:var(--rc-ink-2);margin-bottom:0.5rem}.ph-rc-formula{display:flex;flex-wrap:wrap;align-items:center;gap:0.35rem 0.45rem;margin-bottom:0.6rem;padding:0.55rem 0.75rem;border:1px solid var(--rc-ring);border-radius:0.375rem;color:var(--rc-ink-2)}.ph-rc-formula strong{color:var(--rc-ink);font-weight:600}.ph-rc-term{display:inline-flex;align-items:center;gap:0.35rem;color:var(--rc-ink)}.ph-rc-legend{display:flex;flex-wrap:wrap;gap:0.35rem 1rem;color:var(--rc-ink-2);margin-bottom:0.75rem}.ph-rc-legend span{display:inline-flex;align-items:center;gap:0.4rem}.ph-rc-swatch{display:inline-block;width:0.7rem;height:0.7rem;border-radius:3px;flex:none}.ph-rc-tokens{background:var(--rc-tokens)}.ph-rc-waiting{background:var(--rc-waiting)}.ph-rc-failures{background:var(--rc-failures)}.ph-rc-band-swatch{background:var(--rc-band);box-shadow:inset 0 0 0 1px var(--rc-band-edge)}.ph-rc-head,.ph-rc-row{display:grid;grid-template-columns:minmax(8rem, 13rem) 1fr 6.5rem;gap:0.75rem;align-items:center}.ph-rc-head{color:var(--rc-muted);font-size:0.75rem;padding-bottom:0.35rem;border-bottom:1px solid var(--rc-grid)}.ph-rc-row{padding:0.55rem 0;border-bottom:1px solid var(--rc-grid)}.ph-rc-you{background:var(--rc-raised);box-shadow:-0.5rem 0 0 var(--rc-raised), 0.5rem 0 0 var(--rc-raised)}.ph-rc-name{display:flex;flex-direction:column;align-items:flex-start;min-width:0}.ph-rc-name strong{font-weight:600}.ph-rc-name span{color:var(--rc-muted);font-size:0.7rem;line-height:1.3}.ph-rc-name span{direction:ltr;unicode-bidi:isolate}.ph-rc-track{position:relative;height:1.5rem;width:calc(100% - 3.75rem)}.ph-rc-track,.ph-rc-sharebar,.ph-rc-curve,.ph-rc-controls input[type=\"range\"]{direction:ltr}.ph-rc-band{position:absolute;top:-0.55rem;bottom:-0.55rem;background:var(--rc-band);border-left:1px dashed var(--rc-band-edge);border-right:1px dashed var(--rc-band-edge)}.ph-rc-bar{position:absolute;inset:0.3rem 0;display:flex;align-items:center}.ph-rc-seg{height:0.9rem;margin-right:2px;flex:none;min-width:2px}.ph-rc-seg:first-child{border-radius:4px 0 0 4px}.ph-rc-seg:nth-last-child(2){border-radius:0 4px 4px 0;margin-right:0.4rem}.ph-rc-total{color:var(--rc-ink-2);font-variant-numeric:tabular-nums;white-space:nowrap;font-size:0.75rem}.ph-rc-tip{position:absolute;top:1.7rem;transform:translateX(-50%);z-index:5;min-width:12rem;background:var(--rc-surface);color:var(--rc-ink);border:1px solid var(--rc-ring);border-radius:0.375rem;padding:0.5rem 0.65rem;box-shadow:0 6px 20px rgba(0, 0, 0, 0.12);pointer-events:none}.ph-rc-tip-left{transform:translateX(-100%)}.ph-rc-tip>div{display:flex;align-items:center;gap:0.4rem;color:var(--rc-ink-2);margin-top:0.2rem}.ph-rc-tip b{margin-left:auto;color:var(--rc-ink);font-variant-numeric:tabular-nums}.ph-rc-tip .ph-rc-tip-on{color:var(--rc-ink);font-weight:600}.ph-rc-tip-sum{border-top:1px solid var(--rc-grid);padding-top:0.3rem}.ph-rc-share{display:flex;flex-direction:column;gap:0.25rem}.ph-rc-num{text-align:right;font-variant-numeric:tabular-nums;direction:ltr;unicode-bidi:isolate}.ph-rc-share .ph-rc-num{font-weight:600;font-size:0.875rem}.ph-rc-sharebar{height:0.35rem;border-radius:2px;background:var(--rc-grid);overflow:hidden}.ph-rc-sharebar div{height:100%;background:var(--rc-tokens);border-radius:2px}.ph-rc-axis{color:var(--rc-muted);font-size:0.72rem;margin-top:0.5rem}.ph-rc-play{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem;margin-bottom:1.25rem}.ph-rc-controls{display:flex;flex-direction:column;gap:0.6rem}.ph-rc-controls label{display:flex;flex-direction:column;gap:0.2rem}.ph-rc-controls label span{display:flex;justify-content:space-between;color:var(--rc-ink-2)}.ph-rc-controls b{color:var(--rc-ink);font-variant-numeric:tabular-nums;font-weight:600}.ph-rc-controls input[type=\"range\"]{width:100%;accent-color:var(--rc-tokens)}.ph-rc-summary{display:flex;flex-direction:column;gap:0.5rem}.ph-rc-hero{display:flex;align-items:baseline;justify-content:space-between}.ph-rc-hero span{color:var(--rc-ink-2)}.ph-rc-hero strong{font-size:2rem;font-weight:600;line-height:1}.ph-rc-curve{width:100%;height:auto;overflow:visible}.ph-rc-band-fill{fill:var(--rc-band)}.ph-rc-baseline{stroke:var(--rc-base);stroke-width:1}.ph-rc-tick{fill:var(--rc-muted);font-size:10px}.ph-rc-line{fill:none;stroke:var(--rc-ink-2);stroke-width:2}.ph-rc-dot-other{fill:var(--rc-muted);stroke:var(--rc-surface);stroke-width:2}.ph-rc-dot-you{fill:var(--rc-tokens);stroke:var(--rc-surface);stroke-width:2}.ph-rc-dot-label{fill:var(--rc-ink);font-size:11px;font-weight:600}.ph-rc-caption{color:var(--rc-muted);font-size:0.72rem;margin-top:-0.25rem}.ph-rc-levers{border-top:1px solid var(--rc-grid);padding-top:0.5rem}.ph-rc-levers-title{color:var(--rc-muted);font-size:0.72rem;margin-bottom:0.25rem}.ph-rc-levers>div:not(.ph-rc-levers-title){display:flex;justify-content:space-between;padding:0.15rem 0;color:var(--rc-ink-2)}.ph-rc-levers b{color:var(--rc-ink);font-variant-numeric:tabular-nums}@media (max-width: 640px){.ph-rc-play{grid-template-columns:1fr}.ph-rc-head,.ph-rc-row{grid-template-columns:1fr 4.5rem}.ph-rc-head>span:nth-child(2){display:none}.ph-rc-track{grid-column:1 / -1;grid-row:2}}.ph-ps{--ps-ink: #0b0b0b;--ps-ink-2: #52514e;--ps-muted: #898781;--ps-grid: #e1e0d9;--ps-surface: #ffffff;--ps-raised: #f6f6f4;--ps-ring: rgba(11, 11, 11, 0.1);--ps-accent: #0069a8;margin:1.25rem 0;font-size:0.8125rem;color:var(--ps-ink)}.dark .ph-ps{--ps-ink: #f0efec;--ps-ink-2: #c3c2b7;--ps-muted: #898781;--ps-grid: #2c2c2a;--ps-surface: #0a0a0a;--ps-raised: #161616;--ps-ring: rgba(255, 255, 255, 0.1);--ps-accent: #2a9fd6}.ph-ps-caption{color:var(--ps-ink-2);margin:0 0 0.6rem}.ph-ps-layout{display:grid;grid-template-columns:minmax(0, 1.4fr) minmax(0, 1fr);gap:1rem;align-items:start}.ph-ps-table{border:1px solid var(--ps-ring);border-radius:0.375rem;overflow:hidden;background:var(--ps-surface)}.ph-ps-head,.ph-ps-row{display:grid;grid-template-columns:minmax(0, 1fr) 4.75rem 4.75rem;gap:0.4rem;align-items:center;padding:0 0.75rem}.ph-ps-head{color:var(--ps-muted);font-size:0.72rem;min-height:2rem;white-space:nowrap;border-bottom:1px solid var(--ps-grid)}.ph-ps-row{width:100%;height:2.25rem;border:0;border-bottom:1px solid var(--ps-grid);background:transparent;color:inherit;font:inherit;text-align:start;cursor:pointer}.ph-ps-row:hover{background:var(--ps-raised)}.ph-ps-row:focus-visible{outline:2px solid var(--ps-accent);outline-offset:-2px}.ph-ps-on{background:var(--ps-raised);box-shadow:inset 2px 0 0 var(--ps-accent)}.ph-ps-name{display:inline-flex;align-items:center;gap:0.45rem;min-width:0}.ph-ps-name strong{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ph-ps-logo{display:inline-flex;align-items:center;justify-content:center;flex:none;width:1.1rem;height:1.1rem;border-radius:0.25rem;font-style:normal;font-size:0.62rem;font-weight:700;color:#fff;background:#52514e}.ph-ps-logo-A{background:#7c3aed}.ph-ps-logo-B{background:#0f766e}.ph-ps-logo-C{background:#1d4ed8}.ph-ps-logo-D{background:#b45309}.ph-ps-logo-E{background:#be185d}.ph-ps-logo-F{background:#52514e}.ph-ps-icon{width:0.85rem;height:0.85rem;flex:none}.ph-ps-num{text-align:end;font-variant-numeric:tabular-nums;font-weight:600}.ph-ps-head .ph-ps-num{font-weight:400}.ph-ps-order{margin:0;padding:0.5rem 0.75rem;color:var(--ps-muted);font-size:0.72rem}.ph-ps-card{border:1px solid var(--ps-ring);border-radius:0.375rem;padding:0.75rem 0.9rem;background:var(--ps-raised)}.ph-ps-card-title{display:flex;align-items:center;gap:0.45rem;padding-bottom:0.55rem;margin-bottom:0.55rem;border-bottom:1px solid var(--ps-grid)}.ph-ps-card-title .ph-ps-icon{width:1rem;height:1rem}.ph-ps-card-title strong{font-weight:600}.ph-ps-card dl{margin:0}.ph-ps-card dt{color:var(--ps-muted);font-size:0.72rem;margin-top:0.55rem}.ph-ps-card dt:first-child{margin-top:0}.ph-ps-card dd{margin:0.1rem 0 0;color:var(--ps-ink);line-height:1.45}@media (max-width: 720px){.ph-ps-layout{grid-template-columns:1fr}.ph-ps-head,.ph-ps-row{grid-template-columns:minmax(0, 1fr) 4.75rem 4.75rem}}:is(.ph-se,.ph-pm,.ph-fc,.ph-sap,.ph-ec){--x-ink: #0b0b0b;--x-ink-2: #52514e;--x-muted: #898781;--x-grid: #e1e0d9;--x-surface: #ffffff;--x-raised: #f6f6f4;--x-ring: rgba(11, 11, 11, 0.1);--x-accent: #0069a8;--x-accent-soft: rgba(0, 105, 168, 0.09);--x-ok: #15803d;--x-ok-soft: rgba(21, 128, 61, 0.09);--x-warn: #c2410c;--x-warn-soft: rgba(194, 65, 12, 0.09);--x-bad: #b91c1c;--x-bad-soft: rgba(185, 28, 28, 0.08);margin:1.25rem 0;font-size:0.8125rem;color:var(--x-ink)}.dark :is(.ph-se,.ph-pm,.ph-fc,.ph-sap,.ph-ec){--x-ink: #f0efec;--x-ink-2: #c3c2b7;--x-muted: #898781;--x-grid: #2c2c2a;--x-surface: #0a0a0a;--x-raised: #161616;--x-ring: rgba(255, 255, 255, 0.1);--x-accent: #2a9fd6;--x-accent-soft: rgba(42, 159, 214, 0.12);--x-ok: #34c77b;--x-ok-soft: rgba(52, 199, 123, 0.1);--x-warn: #f08a4b;--x-warn-soft: rgba(240, 138, 75, 0.1);--x-bad: #f26b6b;--x-bad-soft: rgba(242, 107, 107, 0.1)}:is(.ph-se,.ph-pm,.ph-fc,.ph-sap,.ph-ec) button,:is(.ph-se,.ph-pm,.ph-fc,.ph-sap,.ph-ec) select{border:1px solid var(--x-ring);border-radius:0.375rem;background:transparent;color:var(--x-ink-2);padding:0.3rem 0.65rem;font:inherit;cursor:pointer}:is(.ph-se,.ph-pm,.ph-fc,.ph-sap,.ph-ec) button:hover:not(:disabled){color:var(--x-ink);background:var(--x-raised)}:is(.ph-se,.ph-pm,.ph-fc,.ph-sap,.ph-ec) button:disabled,.ph-fc select:disabled{opacity:0.45;cursor:default}:is(.ph-se,.ph-pm,.ph-fc,.ph-sap,.ph-ec) code{font-size:0.75rem}.ph-se-bar{display:flex;flex-wrap:wrap;justify-content:space-between;gap:0.5rem;margin-bottom:0.75rem}.ph-se-tabs{display:flex;flex-wrap:wrap;gap:0.25rem}.ph-se .ph-se-on{color:var(--x-ink);border-color:var(--x-accent);background:var(--x-raised);font-weight:600}.ph-se-grid{display:grid;grid-template-columns:minmax(0, 1.25fr) minmax(0, 1fr);gap:0.75rem}.ph-se-panel{border:1px solid var(--x-ring);border-radius:0.375rem;background:var(--x-surface);overflow:hidden}.ph-se-head{display:flex;align-items:center;justify-content:space-between;min-height:2.4rem;padding:0.3rem 0.75rem;color:var(--x-muted);font-size:0.75rem;border-bottom:1px solid var(--x-grid)}.ph-se-actions{display:flex;gap:0.25rem}.ph-se .ph-se-primary{color:#fff;background:var(--x-accent);border-color:var(--x-accent)}.ph-se .ph-se-primary:hover:not(:disabled){color:#fff;background:var(--x-accent);opacity:0.9}.ph-se-events{list-style:none;margin:0;padding:0.4rem 0;height:15.5rem;overflow-y:auto}.ph-se-events li{display:flex;align-items:center;gap:0.5rem;padding:0.2rem 0.75rem;margin:0;animation:ph-se-in 0.18s ease-out}.ph-se-events li i{width:0.45rem;height:0.45rem;border-radius:999px;flex:none;background:var(--x-muted)}.ph-se-events .ph-se-open i{background:var(--x-accent)}.ph-se-events .ph-se-delta i{background:var(--x-grid);box-shadow:inset 0 0 0 1px var(--x-muted)}.ph-se-events .ph-se-close i{background:var(--x-ok)}.ph-se-events .ph-se-error i{background:var(--x-bad)}.ph-se-events .ph-se-close{background:var(--x-ok-soft)}.ph-se-events .ph-se-error{background:var(--x-bad-soft)}.ph-se-events code{direction:ltr;unicode-bidi:isolate;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ph-se-events .ph-se-delta{background:transparent}.ph-se-events li>span{margin-inline-start:auto;color:var(--x-muted);font-size:0.72rem;white-space:nowrap}.ph-se-events li>span.ph-se-delta{color:var(--x-ink-2);font-family:var(--font-mono, ui-monospace, monospace)}.ph-se-empty{color:var(--x-muted)}.ph-se-empty i{display:none}.ph-se-output{min-height:6rem;padding:0.75rem;font-size:0.9375rem;line-height:1.55}.ph-se-output-failed{color:var(--x-ink-2);text-decoration:underline wavy var(--x-bad);text-underline-offset:0.3rem;text-decoration-thickness:1px}.ph-se-caret{display:inline-block;width:0.5rem;height:1rem;margin-inline-start:2px;vertical-align:-2px;background:var(--x-accent);animation:ph-se-blink 1s steps(2) infinite}.ph-se-verdict{margin:0 0.75rem 0.75rem;padding:0.5rem 0.65rem;border-radius:0.375rem;line-height:1.45}.ph-se-verdict-streaming{background:var(--x-accent-soft)}.ph-se-verdict-ok{background:var(--x-ok-soft)}.ph-se-verdict-failed{background:var(--x-bad-soft)}@keyframes ph-se-in{from{opacity:0;transform:translateY(-2px)}to{opacity:1;transform:none}}@keyframes ph-se-blink{to{visibility:hidden}}@media (prefers-reduced-motion: reduce){.ph-se-events li,.ph-se-caret{animation:none}}.ph-pm-toggles{display:flex;flex-wrap:wrap;gap:0.4rem 1.1rem;margin-bottom:0.75rem;color:var(--x-ink-2)}.ph-pm-toggles label{display:inline-flex;align-items:center;gap:0.4rem;cursor:pointer}.ph-pm-toggles input{accent-color:var(--x-accent)}.ph-pm-grid{display:grid;grid-template-columns:repeat(3, minmax(0, 1fr));gap:0.6rem}.ph-pm-panel{border:1px solid var(--x-ring);border-radius:0.375rem;background:var(--x-surface);min-width:0}.ph-pm-title{padding:0.45rem 0.7rem;color:var(--x-muted);font-size:0.75rem;border-bottom:1px solid var(--x-grid)}.ph-pm .ph-pm-code{margin:0;padding:0.5rem 0;background:transparent;border:0;border-radius:0;color:var(--x-ink);font-size:0.72rem;line-height:1.6;white-space:pre-wrap;word-break:break-word;direction:ltr;text-align:left}.ph-pm-line{display:block;padding:0 0.7rem;border-inline-start:3px solid transparent}.ph-pm-settings .ph-pm-line{padding-block:0.15rem}.ph-pm-line.ph-pm-request{background:var(--x-accent-soft);border-inline-start-color:var(--x-accent)}.ph-pm-line.ph-pm-preset{background:var(--x-warn-soft);border-inline-start-color:var(--x-warn)}.ph-pm-line.ph-pm-both{background:linear-gradient(90deg, var(--x-warn-soft), var(--x-accent-soft));border-inline-start-color:var(--x-ink-2)}.ph-pm-legend{display:flex;flex-wrap:wrap;gap:0.35rem 1rem;margin-top:0.6rem;color:var(--x-ink-2)}.ph-pm-legend span{display:inline-flex;align-items:center;gap:0.4rem}.ph-pm-swatch{display:inline-block;width:0.7rem;height:0.7rem;border-radius:3px}.ph-pm-swatch.ph-pm-request{background:var(--x-accent)}.ph-pm-swatch.ph-pm-preset{background:var(--x-warn)}.ph-pm-swatch.ph-pm-both{background:linear-gradient(90deg, var(--x-warn), var(--x-accent))}@media (max-width: 900px){.ph-pm-grid,.ph-se-grid{grid-template-columns:1fr}}.ph-fc-chain{display:grid;grid-template-columns:repeat(3, minmax(0, 1fr));gap:1.4rem}.ph-fc-step{position:relative;display:flex;flex-direction:column;gap:0.45rem;padding:0.7rem 0.8rem;border:1px solid var(--x-ring);border-radius:0.375rem;background:var(--x-surface);min-width:0}.ph-fc-step:not(:last-child)::after{content:\"\\2192\";position:absolute;top:50%;inset-inline-end:-1.15rem;transform:translateY(-50%);color:var(--x-muted)}[dir=\"rtl\"] .ph-fc-step:not(:last-child)::after{content:\"\\2190\"}.ph-fc-skipped{opacity:0.5;border-style:dashed}.ph-fc-served{border-color:var(--x-ok);box-shadow:inset 0 0 0 1px var(--x-ok)}.ph-fc-role{display:flex;justify-content:space-between;align-items:center;color:var(--x-muted);font-size:0.72rem}.ph-fc-served .ph-fc-role span{color:var(--x-ok);font-weight:600}.ph-fc-model{font-weight:600;direction:ltr;unicode-bidi:isolate;overflow-wrap:anywhere}.ph-fc-select{display:flex;flex-direction:column;gap:0.2rem;color:var(--x-muted);font-size:0.72rem}.ph-fc-select select{color:var(--x-ink);background:var(--x-raised)}.ph-fc-note{padding:0.3rem 0.5rem;border-radius:0.375rem;font-size:0.72rem}.ph-fc-next{background:var(--x-warn-soft);color:var(--x-warn)}.ph-fc-stop{background:var(--x-bad-soft);color:var(--x-bad)}.ph-fc-result{margin:0.75rem 0 0;padding:0.55rem 0.75rem;border-radius:0.375rem;background:var(--x-bad-soft);line-height:1.45}.ph-fc-result-ok{background:var(--x-ok-soft)}@media (max-width: 720px){.ph-fc-chain{grid-template-columns:1fr;gap:1.1rem}.ph-fc-step:not(:last-child)::after{content:\"\\2193\";top:auto;bottom:-1.05rem;inset-inline-end:50%;transform:none}}.ph-sap-inputs{display:grid;grid-template-columns:repeat(3, minmax(0, 1fr));gap:0.6rem;margin-bottom:0.75rem}.ph-sap-inputs label{display:flex;flex-direction:column;gap:0.3rem;color:var(--x-ink-2);font-size:0.75rem}.ph-sap-inputs input{border:1px solid var(--x-ring);border-radius:0.375rem;background:var(--x-surface);color:var(--x-ink);padding:0.35rem 0.6rem;font:inherit;font-size:0.8125rem;direction:ltr;font-variant-numeric:tabular-nums}.ph-sap-inputs input:focus{outline:2px solid var(--x-accent);outline-offset:1px}.ph-sap-rows{margin:0;border:1px solid var(--x-ring);border-radius:0.375rem;background:var(--x-surface)}.ph-sap-rows>div{display:flex;justify-content:space-between;gap:1rem;padding:0.45rem 0.75rem;border-top:1px solid var(--x-grid)}.ph-sap-rows>div:first-child{border-top:0}.ph-sap-rows dt{color:var(--x-ink-2)}.ph-sap-rows dd{margin:0;direction:ltr;font-variant-numeric:tabular-nums;color:var(--x-ink)}.ph-sap-total{background:var(--x-accent-soft)}.ph-sap-total dt,.ph-sap-total dd{color:var(--x-ink);font-weight:600}.ph-sap-note{margin:0.5rem 0 0;color:var(--x-muted);font-size:0.75rem}@media (max-width: 720px){.ph-sap-inputs{grid-template-columns:1fr}}.ph-ec-caption{color:var(--x-ink-2);margin:0 0 0.6rem}.ph-ec-turns{display:grid;grid-template-columns:repeat(5, minmax(0, 1fr));gap:0.4rem}.ph-ec-turn{display:flex;flex-direction:column;gap:0.3rem;padding:0.4rem;border:1px solid var(--x-ring);border-radius:0.375rem;background:var(--x-surface)}.ph-ec-turn.ph-ec-on{border-color:var(--x-accent);background:var(--x-accent-soft)}.ph-ec .ph-ec-turn button{border:0;padding:0.15rem 0.2rem;text-align:start;font-weight:600;color:var(--x-ink)}.ph-ec .ph-ec-turn select{width:100%;padding:0.2rem 0.4rem;direction:ltr}.ph-ec-keep{display:inline-flex;align-items:center;gap:0.45rem;margin:0.7rem 0;color:var(--x-ink-2);cursor:pointer}.ph-ec-keep input{accent-color:var(--x-accent)}.ph-ec-panel{border:1px solid var(--x-ring);border-radius:0.375rem;background:var(--x-surface);overflow:hidden}.ph-ec-head{display:flex;flex-wrap:wrap;justify-content:space-between;gap:0.3rem 1rem;padding:0.45rem 0.75rem;color:var(--x-muted);font-size:0.75rem;border-bottom:1px solid var(--x-grid)}.ph-ec-head code{direction:ltr;unicode-bidi:isolate;color:var(--x-ink)}.ph-ec-items{list-style:none;margin:0;padding:0.4rem 0}.ph-ec-item{display:flex;align-items:center;justify-content:space-between;gap:0.75rem;margin:0;padding:0.3rem 0.75rem;border-inline-start:3px solid transparent}.ph-ec-label{display:flex;flex-wrap:wrap;align-items:center;gap:0.2rem 0.6rem;min-width:0}.ph-ec-label code{direction:ltr;unicode-bidi:isolate;overflow-wrap:anywhere}.ph-ec-status{flex:none;font-size:0.72rem;color:var(--x-ink-2)}.ph-ec-cached{background:var(--x-ok-soft);border-inline-start-color:var(--x-ok)}.ph-ec-again{background:var(--x-warn-soft);border-inline-start-color:var(--x-warn)}.ph-ec-fresh{border-inline-start-color:var(--x-muted)}.ph-ec-marker .ph-ec-label{color:var(--x-accent);font-weight:600}.ph-ec-verdict{margin:0 0.75rem 0.75rem;padding:0.5rem 0.65rem;border-radius:0.375rem;line-height:1.45;background:var(--x-ok-soft)}.ph-ec-verdict-first{background:var(--x-raised)}.ph-ec-verdict-topLevel{background:var(--x-warn-soft)}.ph-ec-note{margin:0.5rem 0 0;color:var(--x-muted);font-size:0.75rem}@media (max-width: 720px){.ph-ec-turns{grid-template-columns:repeat(3, minmax(0, 1fr))}}"}],"page":{"pagePath":"ar/v1/api-reference/endpoint/anthropic-messages","slug":"/ar/v1/api-reference/endpoint/anthropic-messages","pageMetadata":{"title":"إنشاء رسالة","sidebarTitle":"إنشاء رسالة (Anthropic)","openapi":"ar/openapi/v1/openapi.localized.yaml POST /messages","description":"نقطة نهاية Messages المتوافقة مع Anthropic على /v1/messages.","href":"/ar/v1/api-reference/endpoint/anthropic-messages"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"نقطة نهاية Messages المتوافقة مع Anthropic على /v1/messages.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`أرسل حمولة Anthropic Messages API إلى `,_jsx(_components.code,{children:`/v1/messages`}),` واحصل على استجابة بتنسيق Anthropic، لأي نموذج يوجّه إليه Phaseo. حقول استخدام الأدوات في Anthropic مدعومة، وتتحكم الترويسة `,_jsx(_components.code,{children:`X-Phaseo-Strictness`}),` في كيفية التعامل مع المعاملات غير المدعومة.`]}),`\n`,_jsxs(_components.p,{children:[`اضبط `,_jsx(_components.code,{children:`stream: true`}),` لتلقي أحداث مرسلة من الخادم بتنسيق Anthropic (`,_jsx(_components.code,{children:`message_start`}),` و`,_jsx(_components.code,{children:`content_block_*`}),` و`,_jsx(_components.code,{children:`message_delta`}),` و`,_jsx(_components.code,{children:`message_stop`}),`). ويعمل البث أيضًا في حلقات الأدوات.`]}),`\n`,_jsx(Heading,{level:`2`,id:`رسائل-النظام-في-منتصف-المحادثة`,children:`رسائل النظام في منتصف المحادثة`}),`\n`,_jsxs(_components.p,{children:[`أضف رسالة `,_jsx(_components.code,{children:`role: \"system\"`}),` إلى `,_jsx(_components.code,{children:`messages`}),` لتعليمة تسري من تلك النقطة في المحادثة. يبقى الحقل `,_jsx(_components.code,{children:`system`}),` في المستوى الأعلى كما هو، لذا تظل البادئة المخزّنة مؤقتًا تُصاب.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`14`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`14`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.phaseo.app/v1/messages`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$PHASEO_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\": \"anthropic/claude-opus-5.5\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"max_tokens\": 512,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"system\": \"You are a code review assistant.\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"messages\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` { \"role\": \"user\", \"content\": \"Review process() in utils.py.\" },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` { \"role\": \"assistant\", \"content\": \"The loop is fine; the regex is compiled on every call.\" },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` { \"role\": \"user\", \"content\": \"Now review the code that calls it.\" },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` { \"role\": \"system\", \"content\": \"From now on, include type annotations in every suggestion.\" }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`تقبل رسالة النظام سلسلة نصية أو كتلًا نصية. يجب أن تأتي مباشرة بعد دور للمستخدم (أو دور للمساعد ينتهي بنتيجة أداة خادم)، وأن تكون الرسالة الأخيرة أو يتبعها دور للمساعد. تُرجع المواضع الأخرى `,_jsx(_components.code,{children:`400`}),`. لا تُدعم `,_jsx(_components.code,{children:`clear_at`}),` و`,_jsx(_components.code,{children:`output_config`}),` وكتل `,_jsx(_components.code,{children:`tool_addition`}),` أو `,_jsx(_components.code,{children:`tool_removal`}),`.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`النموذج`}),_jsx(_components.th,{children:`كيف يتلقى رسالة النظام`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Claude Fable 5 و5.1، وMythos 5 و5.1، وOpus 4.8، وOpus 5 و5.5، وSonnet 5.5، وHaiku 5.5`}),_jsx(_components.td,{children:`في موضعها`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`نماذج Claude الأخرى، بما فيها Sonnet 5، وكل نماذج Claude على Microsoft Foundry`}),_jsx(_components.td,{children:`مدمجة في مطالبة النظام في المستوى الأعلى`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`نماذج المزوّدين الآخرين`}),_jsx(_components.td,{children:`بوصفها رسالة نظام، كما لو أُرسلت إلى Chat Completions`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`استخدم-أدوات-الخادم`,children:`استخدم أدوات الخادم`}),`\n`,_jsxs(_components.p,{children:[`أضف أداة `,_jsx(_components.code,{children:`phaseo:`}),` إلى `,_jsx(_components.code,{children:`tools`}),` وسيشغّلها Phaseo عندما يستدعيها النموذج، محوّلًا إياها إلى تنسيق أدوات Anthropic عند إرسالها إلى المزوّد ومواصلًا حلقة الأدوات من جانب الخادم. تقبل `,_jsx(_components.code,{children:`/v1/messages`}),` كل أدوات الخادم باستثناء `,_jsx(_components.code,{children:`phaseo:apply_patch`}),`؛ ويسردها دليل `,_jsx(_components.a,{href:`/ar/v1/guides/server-tools`,children:`أدوات الخادم`}),`.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`14`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`14`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.phaseo.app/v1/messages`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$PHASEO_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\": \"anthropic/claude-sonnet-5.5\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"max_tokens\": 512,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"messages\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` { \"role\": \"user\", \"content\": \"What time is it in America/New_York right now?\" }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"tools\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` { \"type\": \"phaseo:datetime\", \"parameters\": { \"timezones\": [\"America/New_York\"] } }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"tool_choice\": { \"type\": \"auto\" }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`تُحتسب استدعاءات أدوات الخادم في `,_jsx(_components.code,{children:`usage.server_tool_use`}),`. ولا يزال النوع الأقدم `,_jsx(_components.code,{children:`gateway:datetime`}),` يعمل. مع `,_jsx(_components.code,{children:`stream: true`}),`، يشغّل Phaseo أدوار الأدوات بنفسه، ثم يبث إليك الإجابة المستكملة في بث واحد.`]}),`\n`,_jsx(Heading,{level:`2`,id:`استخدم-بحث-الويب-الأصلي-في-anthropic`,children:`استخدم بحث الويب الأصلي في Anthropic`}),`\n`,_jsxs(_components.p,{children:[`عندما يدعم نموذج Anthropic والمزوّد الموجَّه إليهما بحث الويب الأصلي، مرّر تعريف أداة Anthropic مباشرة، مثل `,_jsx(_components.code,{children:`type: \"web_search_20250305\"`}),`. ويظل توجيه المزوّدين يصفّي حسب دعم `,_jsx(_components.code,{children:`web_search_options`}),` قبل التنفيذ.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`19`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`19`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.phaseo.app/v1/messages`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$PHASEO_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\": \"anthropic/claude-sonnet-5.5\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"max_tokens\": 512,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"messages\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` { \"role\": \"user\", \"content\": \"Find the latest Anthropic web search guidance.\" }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"tools\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"type\": \"web_search_20250305\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"name\": \"web_search\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"max_uses\": 3,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"allowed_domains\": [\"docs.anthropic.com\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"tool_choice\": { \"type\": \"auto\" }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"إنشاء رسالة","sidebarTitle":"إنشاء رسالة (Anthropic)","openapi":"ar/openapi/v1/openapi.localized.yaml POST /messages","description":"نقطة نهاية Messages المتوافقة مع Anthropic على /v1/messages.","href":"/ar/v1/api-reference/endpoint/anthropic-messages"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"رسائل النظام في منتصف المحادثة","slug":"رسائل-النظام-في-منتصف-المحادثة","depth":2,"children":[]},{"title":"استخدم أدوات الخادم","slug":"استخدم-أدوات-الخادم","depth":2,"children":[]},{"title":"استخدم بحث الويب الأصلي في Anthropic","slug":"استخدم-بحث-الويب-الأصلي-في-anthropic","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"servers":["fc2906d2-87a6-4a7e-be1b-ec1274ee8e96","85cfda82-c6b9-4d71-9a1d-3780433292a5","56680611-c21a-4cf6-802c-b8c71ec97427"],"tags":["Gateway"],"operationId":"createAnthropicMessage","summary":"إنشاء رسالة","description":"نقطة نهاية Messages المتوافقة مع Anthropic على /v1/messages.","requestBody":"796e41d4-c8a4-4108-ab19-45e997b59065","responses":{"200":"cdcc1d09-f30c-4a16-ace5-3a9c015bcbf7"},"method":"post","type":"path","security":["cb7d5b33-f1b7-46af-b31e-9ff277e4eaeb"],"path":"/messages","baseUrlOptions":["https://api.phaseo.app/v1","https://eu.api.phaseo.app/v1","https://us.api.phaseo.app/v1"],"title":"إنشاء رسالة","codeSamples":[],"requestExampleLanguages":["javascript","python","bash","go","java","php","ruby"],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated","prefillPlaygroundWithExample":true,"prefillPlaygroundExamples":[{"body.model":"anthropic/claude-sonnet-4","body.messages.items.0.oneOf.0.role":"user","body.messages.items.0.oneOf.0.content.oneOf.0":"What time is it in America/New_York right now?","body.max_tokens":512,"body.tools.items.0.oneOf.1.type":"gateway:datetime","body.tools.items.0.oneOf.1.parameters.timezone":"America/New_York","body.tool_choice.oneOf.0":{"type":"auto"},"body.stream":false}]},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","description":"يُعامَل أي حقل اختياري في المستوى الأعلى يُرسَل بالقيمة `null` على أنه غير مضبوط، تمامًا كما لو حُذف.","required":["model","messages","max_tokens"],"properties":{"model":{"type":"string","isRequired":true,"uniqueKey":"model","typeLabel":"string"},"messages":{"type":"array","minItems":1,"items":{"oneOf":[{"type":"object","required":["role","content"],"properties":{"role":{"type":"string","enum":["user","assistant"],"isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.0.role","typeLabel":"enum\u003cstring>"},"content":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.0.content.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text","image","tool_use","tool_result"],"uniqueKey":"messages.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","uniqueKey":"messages.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX].text","typeLabel":"string"},"cache_control":{"type":"object","description":"التحكم في ذاكرة المطالبات المؤقتة. استخدم type ephemeral مع ttl اختياري قيمته 5m أو 1h. ولا ينطبق scope إلا على سياسة تخزين مؤقت لـ Claude على المستوى الأعلى. تخزّن Amazon Bedrock وGoogle Vertex AI نماذج Claude 3.7 Sonnet و3.5 Sonnet و3 Opus مؤقتًا لمدة 5 دقائق فقط؛ وهناك يُحذف ttl، ويُبلَغ عن قيمة 1h المحذوفة في X-Phaseo-Dropped-Params باسم cache_control.ttl.","properties":{"type":{"type":"string","uniqueKey":"messages.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX].cache_control.type","typeLabel":"string"},"ttl":{"type":"string","uniqueKey":"messages.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX].cache_control.ttl","typeLabel":"string"},"scope":{"type":"string","uniqueKey":"messages.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX].cache_control.scope","typeLabel":"string"}},"additionalProperties":true,"uniqueKey":"messages.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX].cache_control","typeLabel":"object"},"source":{"type":"object","properties":{"type":{"type":"string","uniqueKey":"messages.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX].source.type","typeLabel":"string"},"media_type":{"type":"string","uniqueKey":"messages.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX].source.media_type","typeLabel":"string"},"data":{"type":"string","uniqueKey":"messages.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX].source.data","typeLabel":"string"},"url":{"type":"string","uniqueKey":"messages.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX].source.url","typeLabel":"string"}},"uniqueKey":"messages.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX].source","typeLabel":"object"},"id":{"type":"string","uniqueKey":"messages.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX].id","typeLabel":"string"},"name":{"type":"string","uniqueKey":"messages.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX].name","typeLabel":"string"},"input":{"type":"object","uniqueKey":"messages.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX].input","typeLabel":"object"},"tool_use_id":{"type":"string","uniqueKey":"messages.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX].tool_use_id","typeLabel":"string"},"content":{"type":"string","uniqueKey":"messages.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX].content","typeLabel":"string"}},"uniqueKey":"messages.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.0.content.oneOf.1","typeLabel":"object[]"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.0.content","typeLabel":"string | object[]"}},"uniqueKey":"messages.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["role","content"],"properties":{"role":{"type":"string","description":"استخدم `system` لتعليمة تنطبق من هذه النقطة في المحادثة. تقبل رسالة النظام سلسلة نصية أو كتلًا نصية، ويجب أن تأتي مباشرةً بعد دور المستخدم (أو بعد دور المساعد الذي ينتهي بنتيجة أداة خادم)، ويجب أن تكون الرسالة الأخيرة أو أن يليها دور المساعد. يمكن أن تقع رسالة النظام التي تقتصر على الجهد، بقيمة `content` فارغة ومعها `output_config`، في أي مكان.","enum":["system"],"isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.1.role","typeLabel":"enum\u003cstring>"},"content":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.1.content.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"object","required":["type","text"],"properties":{"type":{"type":"string","enum":["text"],"isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].text","typeLabel":"string"},"cache_control":{"type":"object","description":"التحكم في ذاكرة المطالبات المؤقتة. استخدم type ephemeral مع ttl اختياري قيمته 5m أو 1h. ولا ينطبق scope إلا على سياسة تخزين مؤقت لـ Claude على المستوى الأعلى. تخزّن Amazon Bedrock وGoogle Vertex AI نماذج Claude 3.7 Sonnet و3.5 Sonnet و3 Opus مؤقتًا لمدة 5 دقائق فقط؛ وهناك يُحذف ttl، ويُبلَغ عن قيمة 1h المحذوفة في X-Phaseo-Dropped-Params باسم cache_control.ttl.","properties":{"type":{"type":"string","uniqueKey":"messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].cache_control.type","typeLabel":"string"},"ttl":{"type":"string","uniqueKey":"messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].cache_control.ttl","typeLabel":"string"},"scope":{"type":"string","uniqueKey":"messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].cache_control.scope","typeLabel":"string"}},"additionalProperties":true,"uniqueKey":"messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].cache_control","typeLabel":"object"}},"uniqueKey":"messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.1.content.oneOf.1","typeLabel":"object[]"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.1.content","typeLabel":"string | object[]"},"output_config":{"type":"object","description":"يغيّر مستوى جهد Claude للأدوار اللاحقة دون إعادة تشغيل الذاكرة المؤقتة للموجّهات. أرسله بقيمة `content` فارغة بعد الرسائل المُرسلة سابقًا، وأبقِه في مكانه في الطلبات اللاحقة؛ فإدراجه في موضع أسبق يغيّر البادئة المخزّنة مؤقتًا. تتلقى المسارات التي لا تدعم الجهد لكل رسالة بدلًا من ذلك المستوى الساري بوصفه الجهد في المستوى الأعلى، وهذا لا يحافظ على الذاكرة المؤقتة.","required":["effort"],"properties":{"effort":{"type":"string","enum":["low","medium","high","xhigh","max"],"isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.1.output_config.effort","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"messages.items.[INDEX].oneOf.1.output_config","typeLabel":"object"}},"additionalProperties":false,"uniqueKey":"messages.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"messages.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"messages","typeLabel":"object[]"},"max_tokens":{"type":"integer","minimum":1,"isRequired":true,"uniqueKey":"max_tokens","typeLabel":"integer"},"models":{"type":"array","minItems":1,"maxItems":25,"items":{"type":"string","minLength":1,"uniqueKey":"models.items.[INDEX]","typeLabel":"string"},"description":"نماذج احتياطية اختيارية ومرتبة تُجرَّب بعد `model`. الحقل `model` مطلوب وهو دائمًا النموذج الأساسي. عندما تفشل محاولة بالرمز `429` أو `500` أو `502` أو `503` أو `504`، تُجرَّب الإدخالة التالية؛ وتُعاد الأخطاء الأخرى دون تغيير. يقبل ما يصل إلى 25 معرّف نموذج أو إعدادًا مسبقًا؛ وتُتجاهل الإدخالات المكررة والإدخالات المطابقة لـ `model`. يُتحقق من كل محاولة وتُسجَّل وتُحتسب تكلفتها كطلب مستقل، ويعرض الحقل `model` في الاستجابة وتتبّع التوجيه النموذج الذي خدم الطلب. لا تنتقل طلبات البث إلى نموذج احتياطي إلا قبل إرسال البايت الأول، ولا تنتقل مهام الفيديو والموسيقى إلا عند الإرسال. ترفض طلبات batch وrealtime وcouncil الحقل `models`. تكون الأولوية للنماذج الاحتياطية المحددة في مسار ديناميكي، ولا يمكن الجمع بين `phaseo/auto` و`models`.","example":["anthropic/claude-sonnet-5-5","google/gemini-2.5-flash"],"uniqueKey":"models","typeLabel":"string[]"},"prompt":{"type":"object","description":"يملأ قالب الموجّه المحفوظ في إعداد مسبق. اترك model أو اضبطه على المرجع نفسه، وأرسل محادثة فارغة أو الأدوار التي تُضاف بعد القالب.","required":["id"],"properties":{"id":{"type":"string","description":"مرجع الإعداد المسبق الذي يبدأ بـ @، مثل @support-triage أو @publisher/support-triage.","isRequired":true,"uniqueKey":"prompt.id","typeLabel":"string"},"variables":{"type":"object","additionalProperties":true,"description":"قيم متغيرات القالب. تقبل متغيرات الصور عنوان https أو عنوان data أو جزء صورة.","uniqueKey":"prompt.variables","typeLabel":"object"},"version":{"type":"string","maxLength":64,"description":"يشغّل هذا الإصدار المنشور من الإعداد المسبق بدلًا من الإصدار الحالي: نماذجه ومعاملاته وقالبه. استخدم تسمية إصدار مثل v3 أو 1.2.0 أو 2026.10.27، أو تسمية مثل production. يعادل تعيين model إلى @support-triage@production.","uniqueKey":"prompt.version","typeLabel":"string"}},"uniqueKey":"prompt","typeLabel":"object"},"system":{"oneOf":[{"type":"string","uniqueKey":"system.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"],"uniqueKey":"system.oneOf.1.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","uniqueKey":"system.oneOf.1.items.[INDEX].text","typeLabel":"string"},"cache_control":{"type":"object","description":"التحكم في ذاكرة المطالبات المؤقتة. استخدم type ephemeral مع ttl اختياري قيمته 5m أو 1h. ولا ينطبق scope إلا على سياسة تخزين مؤقت لـ Claude على المستوى الأعلى. تخزّن Amazon Bedrock وGoogle Vertex AI نماذج Claude 3.7 Sonnet و3.5 Sonnet و3 Opus مؤقتًا لمدة 5 دقائق فقط؛ وهناك يُحذف ttl، ويُبلَغ عن قيمة 1h المحذوفة في X-Phaseo-Dropped-Params باسم cache_control.ttl.","properties":{"type":{"type":"string","uniqueKey":"system.oneOf.1.items.[INDEX].cache_control.type","typeLabel":"string"},"ttl":{"type":"string","uniqueKey":"system.oneOf.1.items.[INDEX].cache_control.ttl","typeLabel":"string"},"scope":{"type":"string","uniqueKey":"system.oneOf.1.items.[INDEX].cache_control.scope","typeLabel":"string"}},"additionalProperties":true,"uniqueKey":"system.oneOf.1.items.[INDEX].cache_control","typeLabel":"object"}},"uniqueKey":"system.oneOf.1.items.[INDEX]","typeLabel":"object"},"uniqueKey":"system.oneOf.1","typeLabel":"object[]"}],"uniqueKey":"system","typeLabel":"string | object[]"},"service_tier":{"type":"string","description":"يحدد مستوى توجيه أو تسعير مدعومًا في واجهات API النصية المتوافقة.","enum":["standard","default","fast","ultrafast","priority","flex","batch","auto","standard_only"],"uniqueKey":"service_tier","typeLabel":"enum\u003cstring>"},"temperature":{"type":"number","minimum":0,"maximum":1,"uniqueKey":"temperature","typeLabel":"number"},"top_p":{"type":"number","minimum":0,"maximum":1,"uniqueKey":"top_p","typeLabel":"number"},"top_k":{"type":"integer","minimum":1,"uniqueKey":"top_k","typeLabel":"integer"},"tools":{"type":"array","description":"أدوات متوافقة مع Anthropic، بالإضافة إلى أدوات خادم تديرها البوابة.","items":{"oneOf":[{"type":"object","required":["name"],"properties":{"name":{"type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.0.name","typeLabel":"string"},"async":{"type":"boolean","description":"يسمح لنماذج OpenAI المدعومة بالاستمرار أثناء تنفيذ المستدعي لهذه الأداة. يُتجاهل عند التوجيه إلى مزودين آخرين.","uniqueKey":"tools.items.[INDEX].oneOf.0.async","typeLabel":"boolean"},"description":{"type":"string","uniqueKey":"tools.items.[INDEX].oneOf.0.description","typeLabel":"string"},"input_schema":{"type":"object","uniqueKey":"tools.items.[INDEX].oneOf.0.input_schema","typeLabel":"object"}},"uniqueKey":"tools.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"أداة خادم تديرها البوابة. تنفذ البوابة الاستعلام عن التاريخ والوقت، ثم تعيد النتيجة إلى دورة أدوات النموذج.","required":["type"],"properties":{"type":{"type":"string","enum":["phaseo:datetime","gateway:datetime"],"isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"parameters":{"type":"object","properties":{"timezone":{"type":"string","description":"اسم منطقة زمنية وفق IANA (مثال: Europe/London).","uniqueKey":"tools.items.[INDEX].oneOf.1.parameters.timezone","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"tools.items.[INDEX].oneOf.1.parameters","typeLabel":"object"},"timezone":{"type":"string","description":"اختصار قديم للمنطقة الزمنية الافتراضية (IANA).","uniqueKey":"tools.items.[INDEX].oneOf.1.timezone","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"tools.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","description":"أداة خادم تديرها البوابة. تنفذ البوابة بحثاً في الويب وتعيد نتائج البحث الموحّدة إلى دورة أدوات النموذج.","required":["type"],"properties":{"type":{"type":"string","enum":["phaseo:web_search","gateway:web_search"],"isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"},"parameters":{"type":"object","properties":{"engine":{"type":"string","enum":["auto","native","exa","firecrawl","parallel","perplexity","tinyfish","deepseek"],"uniqueKey":"tools.items.[INDEX].oneOf.2.parameters.engine","typeLabel":"enum\u003cstring>"},"max_results":{"type":"integer","minimum":1,"maximum":25,"uniqueKey":"tools.items.[INDEX].oneOf.2.parameters.max_results","typeLabel":"integer"},"language":{"type":"string","uniqueKey":"tools.items.[INDEX].oneOf.2.parameters.language","typeLabel":"string"},"page":{"type":"integer","minimum":0,"maximum":10,"uniqueKey":"tools.items.[INDEX].oneOf.2.parameters.page","typeLabel":"integer"},"include_text":{"type":"boolean","uniqueKey":"tools.items.[INDEX].oneOf.2.parameters.include_text","typeLabel":"boolean"},"include_highlights":{"type":"boolean","uniqueKey":"tools.items.[INDEX].oneOf.2.parameters.include_highlights","typeLabel":"boolean"}},"additionalProperties":false,"uniqueKey":"tools.items.[INDEX].oneOf.2.parameters","typeLabel":"object"},"max_results":{"type":"integer","minimum":1,"maximum":25,"uniqueKey":"tools.items.[INDEX].oneOf.2.max_results","typeLabel":"integer"},"engine":{"type":"string","enum":["auto","native","exa","firecrawl","parallel","perplexity","tinyfish","deepseek"],"uniqueKey":"tools.items.[INDEX].oneOf.2.engine","typeLabel":"enum\u003cstring>"},"language":{"type":"string","uniqueKey":"tools.items.[INDEX].oneOf.2.language","typeLabel":"string"},"page":{"type":"integer","minimum":0,"maximum":10,"uniqueKey":"tools.items.[INDEX].oneOf.2.page","typeLabel":"integer"},"include_text":{"type":"boolean","uniqueKey":"tools.items.[INDEX].oneOf.2.include_text","typeLabel":"boolean"},"include_highlights":{"type":"boolean","uniqueKey":"tools.items.[INDEX].oneOf.2.include_highlights","typeLabel":"boolean"}},"additionalProperties":false,"uniqueKey":"tools.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","description":"أداة خادم تديرها البوابة. تجلب البوابة صفحة واحدة عبر HTTP(S)، وتختصرها إلى نص محدود، ثم تعيد النتيجة إلى دورة أدوات النموذج.","required":["type"],"properties":{"type":{"type":"string","enum":["phaseo:web_fetch","gateway:web_fetch"],"isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"},"parameters":{"type":"object","properties":{"max_chars":{"type":"integer","minimum":1,"maximum":100000,"uniqueKey":"tools.items.[INDEX].oneOf.3.parameters.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"tools.items.[INDEX].oneOf.3.parameters","typeLabel":"object"},"max_chars":{"type":"integer","minimum":1,"maximum":100000,"uniqueKey":"tools.items.[INDEX].oneOf.3.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"tools.items.[INDEX].oneOf.3","typeLabel":"object"},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["phaseo:subagent"],"isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.4.type","typeLabel":"enum\u003cstring>"},"parameters":{"type":"object","additionalProperties":true,"uniqueKey":"tools.items.[INDEX].oneOf.4.parameters","typeLabel":"object"}},"uniqueKey":"tools.items.[INDEX].oneOf.4","typeLabel":"object"},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["phaseo:fusion"],"isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.5.type","typeLabel":"enum\u003cstring>"},"parameters":{"type":"object","required":["analysis_models"],"properties":{"analysis_models":{"type":"array","minItems":2,"maxItems":8,"items":{"type":"string","uniqueKey":"tools.items.[INDEX].oneOf.5.parameters.analysis_models.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.5.parameters.analysis_models","typeLabel":"string[]"},"model":{"type":"string","uniqueKey":"tools.items.[INDEX].oneOf.5.parameters.model","typeLabel":"string"}},"additionalProperties":true,"uniqueKey":"tools.items.[INDEX].oneOf.5.parameters","typeLabel":"object"}},"uniqueKey":"tools.items.[INDEX].oneOf.5","typeLabel":"object"},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["phaseo:search_models"],"isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.6.type","typeLabel":"enum\u003cstring>"},"parameters":{"type":"object","properties":{"max_results":{"type":"integer","minimum":1,"maximum":20,"uniqueKey":"tools.items.[INDEX].oneOf.6.parameters.max_results","typeLabel":"integer"}},"uniqueKey":"tools.items.[INDEX].oneOf.6.parameters","typeLabel":"object"}},"uniqueKey":"tools.items.[INDEX].oneOf.6","typeLabel":"object"}],"uniqueKey":"tools.items.[INDEX]","typeLabel":"object"},"uniqueKey":"tools","typeLabel":"object[]"},"tool_choice":{"oneOf":[{"type":"object","description":"كائن أو نص لاختيار أداة Anthropic. تُقبل أيضاً أسماء أدوات الخادم التي تديرها البوابة، وتعيد البوابة كتابتها.","uniqueKey":"tool_choice.oneOf.0","typeLabel":"object"},{"type":"string","description":"كائن أو نص لاختيار أداة Anthropic. تُقبل أيضاً أسماء أدوات الخادم التي تديرها البوابة، وتعيد البوابة كتابتها.","uniqueKey":"tool_choice.oneOf.1","typeLabel":"string"}],"uniqueKey":"tool_choice","typeLabel":"object | string"},"plugins":{"type":"array","description":"إضافات البوابة لهذا الطلب. تضيف `web` البحث على الويب وتضيف `web-fetch` قراءة الصفحات إلى أي نموذج، وتصلح `response-healing` ملفات JSON المشوّهة في الاستجابات المنظّمة غير المتدفقة. تُدمج الإعدادات الافتراضية لمساحة العمل والإعداد المسبق مع هذه القائمة. يعيد معرّف إضافة غير معروف الخطأ 400 `unknown_gateway_plugin`.","items":{"oneOf":[{"type":"object","description":"تضيف أداة الخادم `phaseo:web_search` إلى الطلب، ليتمكن أي نموذج من البحث على الويب. يعمل الطلب، وتُحتسب عمليات البحث وتُفوتر، تمامًا كما مع أداة `phaseo:web_search`. إذا كان الطلب يتضمن أداة بحث على الويب بالفعل، فلا تضيف الإضافة شيئًا. تُتجاهل الخيارات الأخرى.","required":["id"],"properties":{"id":{"type":"string","enum":["web"],"isRequired":true,"uniqueKey":"plugins.items.[INDEX].oneOf.0.id","typeLabel":"enum\u003cstring>"},"enabled":{"type":"boolean","default":true,"uniqueKey":"plugins.items.[INDEX].oneOf.0.enabled","typeLabel":"boolean"},"engine":{"type":"string","enum":["auto","native","exa","firecrawl","parallel","perplexity","tinyfish","deepseek"],"uniqueKey":"plugins.items.[INDEX].oneOf.0.engine","typeLabel":"enum\u003cstring>"},"max_results":{"type":"integer","minimum":1,"maximum":25,"uniqueKey":"plugins.items.[INDEX].oneOf.0.max_results","typeLabel":"integer"},"max_uses":{"type":"integer","minimum":1,"uniqueKey":"plugins.items.[INDEX].oneOf.0.max_uses","typeLabel":"integer"},"search_context_size":{"type":"string","enum":["low","medium","high"],"uniqueKey":"plugins.items.[INDEX].oneOf.0.search_context_size","typeLabel":"enum\u003cstring>"},"include_domains":{"type":"array","items":{"type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.0.include_domains.items.[INDEX]","typeLabel":"string"},"uniqueKey":"plugins.items.[INDEX].oneOf.0.include_domains","typeLabel":"string[]"},"exclude_domains":{"type":"array","items":{"type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.0.exclude_domains.items.[INDEX]","typeLabel":"string"},"uniqueKey":"plugins.items.[INDEX].oneOf.0.exclude_domains","typeLabel":"string[]"}},"uniqueKey":"plugins.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"تضيف أداة الخادم `phaseo:web_fetch` إلى الطلب، ليتمكن أي نموذج من قراءة صفحات الويب. يعمل الطلب، وتُحتسب عمليات الجلب وتُفوتر، تمامًا كما مع أداة `phaseo:web_fetch`. إذا كان الطلب يتضمن أداة جلب للويب بالفعل، فلا تضيف الإضافة شيئًا.","required":["id"],"properties":{"id":{"type":"string","enum":["web-fetch"],"isRequired":true,"uniqueKey":"plugins.items.[INDEX].oneOf.1.id","typeLabel":"enum\u003cstring>"},"enabled":{"type":"boolean","default":true,"uniqueKey":"plugins.items.[INDEX].oneOf.1.enabled","typeLabel":"boolean"},"engine":{"type":"string","enum":["auto","native","direct","exa","firecrawl","parallel","deepseek"],"uniqueKey":"plugins.items.[INDEX].oneOf.1.engine","typeLabel":"enum\u003cstring>"},"max_uses":{"type":"integer","minimum":1,"uniqueKey":"plugins.items.[INDEX].oneOf.1.max_uses","typeLabel":"integer"},"max_content_tokens":{"type":"integer","minimum":1,"maximum":100000,"uniqueKey":"plugins.items.[INDEX].oneOf.1.max_content_tokens","typeLabel":"integer"},"allowed_domains":{"type":"array","items":{"type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.1.allowed_domains.items.[INDEX]","typeLabel":"string"},"uniqueKey":"plugins.items.[INDEX].oneOf.1.allowed_domains","typeLabel":"string[]"},"blocked_domains":{"type":"array","items":{"type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.1.blocked_domains.items.[INDEX]","typeLabel":"string"},"uniqueKey":"plugins.items.[INDEX].oneOf.1.blocked_domains","typeLabel":"string[]"}},"uniqueKey":"plugins.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","description":"تُصلح ملفات JSON المشوّهة في الاستجابات غير المتدفقة التي طلبت مخرجات `json_object` أو `json_schema`. تُتخطّى في التدفقات.","required":["id"],"properties":{"id":{"type":"string","enum":["response-healing"],"isRequired":true,"uniqueKey":"plugins.items.[INDEX].oneOf.2.id","typeLabel":"enum\u003cstring>"},"enabled":{"type":"boolean","default":true,"uniqueKey":"plugins.items.[INDEX].oneOf.2.enabled","typeLabel":"boolean"},"mode":{"type":"string","enum":["safe","strict"],"default":"safe","uniqueKey":"plugins.items.[INDEX].oneOf.2.mode","typeLabel":"enum\u003cstring>"}},"uniqueKey":"plugins.items.[INDEX].oneOf.2","typeLabel":"object"}],"uniqueKey":"plugins.items.[INDEX]","typeLabel":"object"},"uniqueKey":"plugins","typeLabel":"object[]"},"stream":{"type":"boolean","uniqueKey":"stream","typeLabel":"boolean"},"metadata":{"type":"object","additionalProperties":true,"uniqueKey":"metadata","typeLabel":"object"},"session_id":{"type":"string","maxLength":256,"description":"معرّف فريد لتجميع الطلبات المرتبطة (مثل محادثة أو سير عمل وكيل) لأغراض قابلية المراقبة.","uniqueKey":"session_id","typeLabel":"string"},"reasoning":{"type":"object","properties":{"effort":{"oneOf":[{"type":"string","enum":["none","minimal","low","medium","high","xhigh","max"],"description":"مستوى جهد الاستدلال. عند حذفه أو ضبطه على null، يحدد `max_tokens` أو `enabled` أو الإعداد الافتراضي للنموذج نفسه مقدار استدلال النموذج.","uniqueKey":"reasoning.effort.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["none","minimal","low","medium","high","xhigh","max"],"description":"مستوى جهد الاستدلال. عند حذفه أو ضبطه على null، يحدد `max_tokens` أو `enabled` أو الإعداد الافتراضي للنموذج نفسه مقدار استدلال النموذج.","uniqueKey":"reasoning.effort.oneOf.1","typeLabel":"null"}],"uniqueKey":"reasoning.effort","typeLabel":"enum\u003cstring> | null"},"mode":{"type":"string","enum":["standard","pro"],"uniqueKey":"reasoning.mode","typeLabel":"enum\u003cstring>"},"summary":{"type":"string","enum":["auto","concise","detailed"],"default":"auto","uniqueKey":"reasoning.summary","typeLabel":"enum\u003cstring>"},"enabled":{"type":"boolean","uniqueKey":"reasoning.enabled","typeLabel":"boolean"},"max_tokens":{"type":"integer","minimum":0,"uniqueKey":"reasoning.max_tokens","typeLabel":"integer"}},"uniqueKey":"reasoning","typeLabel":"object"},"context_management":{"type":"object","description":"تحرير السياق من Anthropic. يقبل `edits` استراتيجيات `clear_tool_uses_*` و`clear_thinking_*`، ويُرسَل إلى Anthropic مع ترويسة beta الخاصة بها. يشغّل المزوّدون الآخرون الطلب من دونه ويُدرجون `context_management` في `X-Phaseo-Dropped-Params`. تعيد تعديلات الضغط (`compact_*`) الخطأ 400.","properties":{"edits":{"type":"array","items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","isRequired":true,"uniqueKey":"context_management.edits.items.[INDEX].type","typeLabel":"string"}},"additionalProperties":true,"uniqueKey":"context_management.edits.items.[INDEX]","typeLabel":"object"},"uniqueKey":"context_management.edits","typeLabel":"object[]"}},"additionalProperties":true,"uniqueKey":"context_management","typeLabel":"object"},"user":{"type":"string","description":"معرّف المستخدم النهائي، كما في Chat Completions. تستلمه نماذج Claude بوصفه `metadata.user_id` ما لم يُضبط `metadata.user_id`.","uniqueKey":"user","typeLabel":"string"},"prompt_cache_key":{"oneOf":[{"type":"string","description":"يجمع الطلبات المرتبطة لتبقى لدى المزوّد الذي يحتفظ بذاكرة المطالبات المؤقتة الخاصة بها. ترسل Phaseo إلى المزوّد تجزئة لمساحة العمل وهذا المفتاح، وليس المفتاح الخام أبدًا.","uniqueKey":"prompt_cache_key.oneOf.0","typeLabel":"string"},{"type":"null","description":"يجمع الطلبات المرتبطة لتبقى لدى المزوّد الذي يحتفظ بذاكرة المطالبات المؤقتة الخاصة بها. ترسل Phaseo إلى المزوّد تجزئة لمساحة العمل وهذا المفتاح، وليس المفتاح الخام أبدًا.","uniqueKey":"prompt_cache_key.oneOf.1","typeLabel":"null"}],"uniqueKey":"prompt_cache_key","typeLabel":"string | null"},"stop_sequences":{"type":"array","items":{"type":"string","uniqueKey":"stop_sequences.items.[INDEX]","typeLabel":"string"},"uniqueKey":"stop_sequences","typeLabel":"string[]"},"cache_control":{"type":"object","description":"التحكم في ذاكرة المطالبات المؤقتة. استخدم type ephemeral مع ttl اختياري قيمته 5m أو 1h. ولا ينطبق scope إلا على سياسة تخزين مؤقت لـ Claude على المستوى الأعلى. تخزّن Amazon Bedrock وGoogle Vertex AI نماذج Claude 3.7 Sonnet و3.5 Sonnet و3 Opus مؤقتًا لمدة 5 دقائق فقط؛ وهناك يُحذف ttl، ويُبلَغ عن قيمة 1h المحذوفة في X-Phaseo-Dropped-Params باسم cache_control.ttl.","properties":{"type":{"type":"string","uniqueKey":"cache_control.type","typeLabel":"string"},"ttl":{"type":"string","uniqueKey":"cache_control.ttl","typeLabel":"string"},"scope":{"type":"string","uniqueKey":"cache_control.scope","typeLabel":"string"}},"additionalProperties":true,"uniqueKey":"cache_control","typeLabel":"object"},"provider_options":{"type":"object","description":"خيارات خاصة بالمزوّد، اختيارية.","properties":{"openai":{"type":"object","properties":{"context_management":{"type":"object","description":"إعداد اختياري لإدارة السياق في OpenAI.","properties":{"type":{"type":"string","enum":["compaction"],"isRequired":true,"uniqueKey":"provider_options.openai.context_management.type","typeLabel":"enum\u003cstring>"},"compact_threshold":{"type":"number","uniqueKey":"provider_options.openai.context_management.compact_threshold","typeLabel":"number"}},"required":["type"],"uniqueKey":"provider_options.openai.context_management","typeLabel":"object"},"prompt_cache_retention":{"type":"string","uniqueKey":"provider_options.openai.prompt_cache_retention","typeLabel":"string"},"prompt_cache_options":{"type":"object","description":"وضع ذاكرة المطالبات المؤقتة ومدة صلاحيتها لـ OpenAI وAzure OpenAI بدءًا من GPT-5.6 (ttl 30m، أو 12h في OpenAI) ولـ DeepInfra (ttl 5m أو 1h). يُحذف للمزوّدين الآخرين.","properties":{"mode":{"type":"string","enum":["implicit","explicit"],"uniqueKey":"provider_options.openai.prompt_cache_options.mode","typeLabel":"enum\u003cstring>"},"ttl":{"type":"string","description":"أقل مدة صلاحية للتخزين المؤقت. OpenAI بدءًا من GPT-5.6: 30m (الافتراضية) أو 12h؛ ويُنفَّذ الطلب الذي يطلب 12h عبر Responses API من OpenAI. Azure OpenAI: 30m. DeepInfra: 5m أو 1h. والمسار الذي لا يقبل 12h يتلقى الطلب بدونها، ويُبلَّغ عن الحذف في X-Phaseo-Dropped-Params.","uniqueKey":"provider_options.openai.prompt_cache_options.ttl","typeLabel":"string"}},"additionalProperties":true,"uniqueKey":"provider_options.openai.prompt_cache_options","typeLabel":"object"}},"uniqueKey":"provider_options.openai","typeLabel":"object"},"anthropic":{"type":"object","properties":{"cache_control":{"type":"object","description":"التحكم في ذاكرة المطالبات المؤقتة. استخدم type ephemeral مع ttl اختياري قيمته 5m أو 1h. ولا ينطبق scope إلا على سياسة تخزين مؤقت لـ Claude على المستوى الأعلى. تخزّن Amazon Bedrock وGoogle Vertex AI نماذج Claude 3.7 Sonnet و3.5 Sonnet و3 Opus مؤقتًا لمدة 5 دقائق فقط؛ وهناك يُحذف ttl، ويُبلَغ عن قيمة 1h المحذوفة في X-Phaseo-Dropped-Params باسم cache_control.ttl.","properties":{"type":{"type":"string","uniqueKey":"provider_options.anthropic.cache_control.type","typeLabel":"string"},"ttl":{"type":"string","uniqueKey":"provider_options.anthropic.cache_control.ttl","typeLabel":"string"},"scope":{"type":"string","uniqueKey":"provider_options.anthropic.cache_control.scope","typeLabel":"string"}},"additionalProperties":true,"uniqueKey":"provider_options.anthropic.cache_control","typeLabel":"object"}},"uniqueKey":"provider_options.anthropic","typeLabel":"object"},"xai":{"type":"object","properties":{"conversation_id":{"type":"string","description":"معرّف محادثة xAI، ويُرسل في الترويسة x-grok-conv-id.","uniqueKey":"provider_options.xai.conversation_id","typeLabel":"string"}},"uniqueKey":"provider_options.xai","typeLabel":"object"},"google":{"type":"object","properties":{"cache_control":{"type":"object","description":"التحكم في ذاكرة المطالبات المؤقتة. استخدم type ephemeral مع ttl اختياري قيمته 5m أو 1h. ولا ينطبق scope إلا على سياسة تخزين مؤقت لـ Claude على المستوى الأعلى. تخزّن Amazon Bedrock وGoogle Vertex AI نماذج Claude 3.7 Sonnet و3.5 Sonnet و3 Opus مؤقتًا لمدة 5 دقائق فقط؛ وهناك يُحذف ttl، ويُبلَغ عن قيمة 1h المحذوفة في X-Phaseo-Dropped-Params باسم cache_control.ttl.","properties":{"type":{"type":"string","uniqueKey":"provider_options.google.cache_control.type","typeLabel":"string"},"ttl":{"type":"string","uniqueKey":"provider_options.google.cache_control.ttl","typeLabel":"string"},"scope":{"type":"string","uniqueKey":"provider_options.google.cache_control.scope","typeLabel":"string"}},"additionalProperties":true,"uniqueKey":"provider_options.google.cache_control","typeLabel":"object"},"cached_content":{"type":"string","uniqueKey":"provider_options.google.cached_content","typeLabel":"string"},"cache_ttl":{"type":"string","uniqueKey":"provider_options.google.cache_ttl","typeLabel":"string"}},"uniqueKey":"provider_options.google","typeLabel":"object"}},"uniqueKey":"provider_options","typeLabel":"object"},"usage":{"type":"boolean","uniqueKey":"usage","typeLabel":"boolean"},"meta":{"type":"boolean","uniqueKey":"meta","typeLabel":"boolean"},"echo_upstream_request":{"type":"boolean","uniqueKey":"echo_upstream_request","typeLabel":"boolean"},"debug":{"type":"object","description":"عناصر تحكم تصحيح أخطاء البوابة. لا تُمرر هذه العلامات إلى المزوّد مطلقًا.","properties":{"enabled":{"type":"boolean","uniqueKey":"debug.enabled","typeLabel":"boolean"},"return_upstream_request":{"type":"boolean","uniqueKey":"debug.return_upstream_request","typeLabel":"boolean"},"return_upstream_response":{"type":"boolean","uniqueKey":"debug.return_upstream_response","typeLabel":"boolean"},"trace":{"type":"boolean","uniqueKey":"debug.trace","typeLabel":"boolean"},"trace_level":{"type":"string","enum":["summary","full"],"uniqueKey":"debug.trace_level","typeLabel":"enum\u003cstring>"}},"uniqueKey":"debug","typeLabel":"object"},"provider":{"type":"object","description":"تفضيلات توجيه المزوّد لاختياره عبر البوابة.","properties":{"order":{"type":"array","items":{"type":"string","uniqueKey":"provider.order.items.[INDEX]","typeLabel":"string"},"uniqueKey":"provider.order","typeLabel":"string[]"},"only":{"type":"array","items":{"type":"string","uniqueKey":"provider.only.items.[INDEX]","typeLabel":"string"},"uniqueKey":"provider.only","typeLabel":"string[]"},"ignore":{"type":"array","items":{"type":"string","uniqueKey":"provider.ignore.items.[INDEX]","typeLabel":"string"},"uniqueKey":"provider.ignore","typeLabel":"string[]"},"include_alpha":{"type":"boolean","description":"تضمين مزوّدي alpha في التوجيه (معطّل افتراضيًا).","uniqueKey":"provider.include_alpha","typeLabel":"boolean"},"allow_fallbacks":{"oneOf":[{"type":"boolean","description":"السماح بالتحويل إلى مزوّد مؤهل آخر بعد الفشل.","uniqueKey":"provider.allow_fallbacks.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"السماح بالتحويل إلى مزوّد مؤهل آخر بعد الفشل.","uniqueKey":"provider.allow_fallbacks.oneOf.1","typeLabel":"null"}],"uniqueKey":"provider.allow_fallbacks","typeLabel":"boolean | null"},"require_parameters":{"oneOf":[{"type":"boolean","description":"اشتراط دعم المزوّد للمعلمات المطلوبة قبل التوجيه.","uniqueKey":"provider.require_parameters.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"اشتراط دعم المزوّد للمعلمات المطلوبة قبل التوجيه.","uniqueKey":"provider.require_parameters.oneOf.1","typeLabel":"null"}],"uniqueKey":"provider.require_parameters","typeLabel":"boolean | null"},"required_execution_region":{"oneOf":[{"type":"string","description":"قصر التوجيه على المزوّدين الذين لديهم منطقة التنفيذ المطلوبة.","uniqueKey":"provider.required_execution_region.oneOf.0","typeLabel":"string"},{"type":"null","description":"قصر التوجيه على المزوّدين الذين لديهم منطقة التنفيذ المطلوبة.","uniqueKey":"provider.required_execution_region.oneOf.1","typeLabel":"null"}],"uniqueKey":"provider.required_execution_region","typeLabel":"string | null"},"required_data_region":{"oneOf":[{"type":"string","description":"قصر التوجيه على المزوّدين الذين لديهم منطقة البيانات المطلوبة.","uniqueKey":"provider.required_data_region.oneOf.0","typeLabel":"string"},{"type":"null","description":"قصر التوجيه على المزوّدين الذين لديهم منطقة البيانات المطلوبة.","uniqueKey":"provider.required_data_region.oneOf.1","typeLabel":"null"}],"uniqueKey":"provider.required_data_region","typeLabel":"string | null"},"require_zero_data_retention":{"oneOf":[{"type":"boolean","description":"قصر التوجيه على المزوّدين الذين يدعمون الاحتفاظ بالبيانات لمدة صفرية.","uniqueKey":"provider.require_zero_data_retention.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"قصر التوجيه على المزوّدين الذين يدعمون الاحتفاظ بالبيانات لمدة صفرية.","uniqueKey":"provider.require_zero_data_retention.oneOf.1","typeLabel":"null"}],"uniqueKey":"provider.require_zero_data_retention","typeLabel":"boolean | null"},"data_collection":{"oneOf":[{"type":"string","description":"القيمة `allow` (الافتراضية) لا تُصفّي شيئًا. القيمة `deny` غير مدعومة بعد وتعيد الخطأ 400 unsupported_routing_filter.","enum":["allow","deny"],"uniqueKey":"provider.data_collection.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"القيمة `allow` (الافتراضية) لا تُصفّي شيئًا. القيمة `deny` غير مدعومة بعد وتعيد الخطأ 400 unsupported_routing_filter.","enum":["allow","deny"],"uniqueKey":"provider.data_collection.oneOf.1","typeLabel":"null"}],"uniqueKey":"provider.data_collection","typeLabel":"enum\u003cstring> | null"},"zdr":{"oneOf":[{"type":"boolean","uniqueKey":"provider.zdr.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"provider.zdr.oneOf.1","typeLabel":"null"}],"uniqueKey":"provider.zdr","typeLabel":"boolean | null"},"enforce_distillable_text":{"oneOf":[{"type":"boolean","description":"القيمة `false` (الافتراضية) لا تُصفّي شيئًا. القيمة `true` غير مدعومة بعد وتعيد الخطأ 400 unsupported_routing_filter.","uniqueKey":"provider.enforce_distillable_text.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"القيمة `false` (الافتراضية) لا تُصفّي شيئًا. القيمة `true` غير مدعومة بعد وتعيد الخطأ 400 unsupported_routing_filter.","uniqueKey":"provider.enforce_distillable_text.oneOf.1","typeLabel":"null"}],"uniqueKey":"provider.enforce_distillable_text","typeLabel":"boolean | null"},"quantizations":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"provider.quantizations.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"provider.quantizations.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"uniqueKey":"provider.quantizations.oneOf.1","typeLabel":"null"}],"uniqueKey":"provider.quantizations","typeLabel":"string[] | null"},"sort":{"oneOf":[{"type":"string","description":"رتّب المزوّدين لهذا الطلب، مثلاً حسب السعر أو زمن الاستجابة أو الإنتاجية.","uniqueKey":"provider.sort.oneOf.0","typeLabel":"string"},{"type":"object","description":"رتّب المزوّدين لهذا الطلب، مثلاً حسب السعر أو زمن الاستجابة أو الإنتاجية.","additionalProperties":true,"uniqueKey":"provider.sort.oneOf.1","typeLabel":"object"}],"uniqueKey":"provider.sort","typeLabel":"string | object"},"max_price":{"type":"object","properties":{"prompt":{"oneOf":[{"type":"number","uniqueKey":"provider.max_price.prompt.oneOf.0","typeLabel":"number"},{"type":"string","uniqueKey":"provider.max_price.prompt.oneOf.1","typeLabel":"string"}],"uniqueKey":"provider.max_price.prompt","typeLabel":"number | string"},"completion":{"oneOf":[{"type":"number","uniqueKey":"provider.max_price.completion.oneOf.0","typeLabel":"number"},{"type":"string","uniqueKey":"provider.max_price.completion.oneOf.1","typeLabel":"string"}],"uniqueKey":"provider.max_price.completion","typeLabel":"number | string"},"image":{"oneOf":[{"type":"number","uniqueKey":"provider.max_price.image.oneOf.0","typeLabel":"number"},{"type":"string","uniqueKey":"provider.max_price.image.oneOf.1","typeLabel":"string"}],"uniqueKey":"provider.max_price.image","typeLabel":"number | string"},"audio":{"oneOf":[{"type":"number","uniqueKey":"provider.max_price.audio.oneOf.0","typeLabel":"number"},{"type":"string","uniqueKey":"provider.max_price.audio.oneOf.1","typeLabel":"string"}],"uniqueKey":"provider.max_price.audio","typeLabel":"number | string"},"request":{"oneOf":[{"type":"number","uniqueKey":"provider.max_price.request.oneOf.0","typeLabel":"number"},{"type":"string","uniqueKey":"provider.max_price.request.oneOf.1","typeLabel":"string"}],"uniqueKey":"provider.max_price.request","typeLabel":"number | string"}},"uniqueKey":"provider.max_price","typeLabel":"object"},"preferred_min_throughput":{"oneOf":[{"type":"number","uniqueKey":"provider.preferred_min_throughput.oneOf.0","typeLabel":"number"},{"type":"object","additionalProperties":{"type":"number","uniqueKey":"provider.preferred_min_throughput.oneOf.1.additionalProperties","typeLabel":"number"},"uniqueKey":"provider.preferred_min_throughput.oneOf.1","typeLabel":"object"}],"uniqueKey":"provider.preferred_min_throughput","typeLabel":"number | object"},"preferred_max_latency":{"oneOf":[{"type":"number","uniqueKey":"provider.preferred_max_latency.oneOf.0","typeLabel":"number"},{"type":"object","additionalProperties":{"type":"number","uniqueKey":"provider.preferred_max_latency.oneOf.1.additionalProperties","typeLabel":"number"},"uniqueKey":"provider.preferred_max_latency.oneOf.1","typeLabel":"object"}],"uniqueKey":"provider.preferred_max_latency","typeLabel":"number | object"}},"uniqueKey":"provider","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"datetimeServerTool":{"title":"datetimeServerTool","summary":"Built-in datetime server tool","value":{"model":"anthropic/claude-sonnet-4","max_tokens":512,"stream":false,"messages":[{"role":"user","content":"What time is it in America/New_York right now?"}],"tools":[{"type":"gateway:datetime","parameters":{"timezone":"America/New_York"}}],"tool_choice":{"type":"auto"}}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"cdcc1d09-f30c-4a16-ace5-3a9c015bcbf7":{"description":"استجابة الرسالة","headers":{"x-request-id":{"description":"معرّف طلب عام ينشئه الخادم. في طلبات الاستدلال، هو معرّف الإنشاء المستخدم في الاستجابات وسجلات الطلبات. لا تستبدله قيم x-request-id التي يرسلها العميل.","schema":{"type":"string","pattern":"^G-[0-9A-HJKMNP-TV-Z]{26}$"}},"X-Phaseo-Requested-Model":{"description":"النموذج الذي طلبه الطلب. يُرسل فقط عندما يجيب توجيه النماذج المتوقفة عن الطلب بنموذج بديل.","schema":{"type":"string"}},"X-Phaseo-Model-Substitution":{"description":"سبب استبدال النموذج المطلوب وكيفيته، مثل `reason=unserved; from=lab/old-model; to=lab/new-model`. يُرسل فقط عندما يجيب توجيه النماذج المتوقفة عن الطلب بنموذج بديل.","schema":{"type":"string"}},"X-Phaseo-Dropped-Params":{"description":"معلمات أرسلها العميل ولا يدعمها المزوّد الذي يخدم الطلب، فحذفتها البوابة بدلًا من إرسالها إلى المزوّد أو رفض الطلب، مثل `top_k, min_p`. تُرسل فقط في الاستجابات الناجحة، وفقط عند حذف معلمة واحدة على الأقل من جسم الطلب. لا تُدرج المعلمات التي مصدرها إعداد مسبق أو قيمة افتراضية.","schema":{"type":"string"}},"X-Phaseo-Spend-Warning":{"description":"يُرسَل عندما تشمل قاعدةُ إنفاقٍ تحظر الطلبَ ويكون الإنفاق قد تجاوز آخر حد تنبيه لها دون أن يبلغ نقطة الحظر بعد. يذكر حتى ثلاث قواعد بصيغة rule_id وscope وresets_at، مثل `rule_id=...; scope=workspace; resets_at=2026-11-01T00:00:00.000Z`. عندما يبلغ الإنفاق نقطة الحظر، تتلقى الطلبات ضمن النطاق الخطأ 429 بالرمز spend_rule_blocked.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","uniqueKey":"id","typeLabel":"string"},"type":{"type":"string","uniqueKey":"type","typeLabel":"string"},"role":{"type":"string","enum":["assistant"],"uniqueKey":"role","typeLabel":"enum\u003cstring>"},"model":{"type":"string","uniqueKey":"model","typeLabel":"string"},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text","image","tool_use","tool_result"],"uniqueKey":"content.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","uniqueKey":"content.items.[INDEX].text","typeLabel":"string"},"cache_control":{"type":"object","description":"التحكم في ذاكرة المطالبات المؤقتة. استخدم type ephemeral مع ttl اختياري قيمته 5m أو 1h. ولا ينطبق scope إلا على سياسة تخزين مؤقت لـ Claude على المستوى الأعلى. تخزّن Amazon Bedrock وGoogle Vertex AI نماذج Claude 3.7 Sonnet و3.5 Sonnet و3 Opus مؤقتًا لمدة 5 دقائق فقط؛ وهناك يُحذف ttl، ويُبلَغ عن قيمة 1h المحذوفة في X-Phaseo-Dropped-Params باسم cache_control.ttl.","properties":{"type":{"type":"string","uniqueKey":"content.items.[INDEX].cache_control.type","typeLabel":"string"},"ttl":{"type":"string","uniqueKey":"content.items.[INDEX].cache_control.ttl","typeLabel":"string"},"scope":{"type":"string","uniqueKey":"content.items.[INDEX].cache_control.scope","typeLabel":"string"}},"additionalProperties":true,"uniqueKey":"content.items.[INDEX].cache_control","typeLabel":"object"},"source":{"type":"object","properties":{"type":{"type":"string","uniqueKey":"content.items.[INDEX].source.type","typeLabel":"string"},"media_type":{"type":"string","uniqueKey":"content.items.[INDEX].source.media_type","typeLabel":"string"},"data":{"type":"string","uniqueKey":"content.items.[INDEX].source.data","typeLabel":"string"},"url":{"type":"string","uniqueKey":"content.items.[INDEX].source.url","typeLabel":"string"}},"uniqueKey":"content.items.[INDEX].source","typeLabel":"object"},"id":{"type":"string","uniqueKey":"content.items.[INDEX].id","typeLabel":"string"},"name":{"type":"string","uniqueKey":"content.items.[INDEX].name","typeLabel":"string"},"input":{"type":"object","uniqueKey":"content.items.[INDEX].input","typeLabel":"object"},"tool_use_id":{"type":"string","uniqueKey":"content.items.[INDEX].tool_use_id","typeLabel":"string"},"content":{"type":"string","uniqueKey":"content.items.[INDEX].content","typeLabel":"string"}},"uniqueKey":"content.items.[INDEX]","typeLabel":"object"},"uniqueKey":"content","typeLabel":"object[]"},"stop_reason":{"type":"string","uniqueKey":"stop_reason","typeLabel":"string"},"stop_sequence":{"type":"string","uniqueKey":"stop_sequence","typeLabel":"string"},"usage":{"type":"object","properties":{"input_tokens":{"type":"integer","description":"رموز الإدخال غير المخزّنة مؤقتًا. كما في Anthropic، لا تشمل القراءات من التخزين المؤقت والكتابات إليه.","uniqueKey":"usage.input_tokens","typeLabel":"integer"},"cache_read_input_tokens":{"type":"integer","description":"رموز الإدخال المقروءة من ذاكرة المطالبات المؤقتة لدى المزوّد.","uniqueKey":"usage.cache_read_input_tokens","typeLabel":"integer"},"cache_creation_input_tokens":{"type":"integer","description":"رموز الإدخال المكتوبة في ذاكرة المطالبات المؤقتة لدى المزوّد.","uniqueKey":"usage.cache_creation_input_tokens","typeLabel":"integer"},"cache_creation":{"type":"object","description":"الكتابات إلى التخزين المؤقت مقسّمة حسب مدة صلاحية التخزين المؤقت.","properties":{"ephemeral_5m_input_tokens":{"type":"integer","description":"رموز الإدخال المكتوبة بمدة صلاحية تخزين مؤقت قدرها 5 دقائق.","uniqueKey":"usage.cache_creation.ephemeral_5m_input_tokens","typeLabel":"integer"},"ephemeral_1h_input_tokens":{"type":"integer","description":"رموز الإدخال المكتوبة بمدة صلاحية تخزين مؤقت قدرها ساعة واحدة.","uniqueKey":"usage.cache_creation.ephemeral_1h_input_tokens","typeLabel":"integer"}},"uniqueKey":"usage.cache_creation","typeLabel":"object"},"output_tokens":{"type":"integer","uniqueKey":"usage.output_tokens","typeLabel":"integer"},"cost":{"type":"number","format":"double","description":"تكلفة الطلب عليك بالدولار الأمريكي: المبلغ المخصوم من أرصدتك، وهو الرقم نفسه في `cost_nanos`، بعد أي خصم لمساهمة البيانات أو إعفاء عند انعدام المخرجات. يُعرض في استجابات Chat Completions وResponses وMessages والتضمينات بعد تسعير الطلب. في التدفق يظهر في آخر إطار للاستخدام (في Messages، آخر `message_delta`) ويغطي التدفق كاملًا. يحذفه التدفق عندما لا تكون الرسوم معروفة لحظة إرسال ذلك الإطار: في تدفق BYOK، الذي تُحسب رسوم خدمته عند انتهاء التدفق (ويعطي `cost_details.upstream_inference_cost` سعر النموذج بدلًا منه)، وفي تدفق فشل بالفعل، فلا يُفوتر.","example":0.001234567,"uniqueKey":"usage.cost","typeLabel":"number\u003cdouble>"},"cost_details":{"type":"object","description":"تفصيل تكلفة الطلب.","properties":{"upstream_inference_cost":{"oneOf":[{"type":"number","format":"double","description":"في طلب BYOK، ما يفرضه المزوّد على مفتاحك الخاص مقابل الاستدلال، بالدولار الأمريكي، وفق أسعار النموذج المعلنة. يكون null عندما يعمل الطلب بأرصدة Phaseo، إذ يمثل `cost` الرسوم كاملة.","example":null,"uniqueKey":"usage.cost_details.upstream_inference_cost.oneOf.0","typeLabel":"number\u003cdouble>"},{"type":"null","format":"double","description":"في طلب BYOK، ما يفرضه المزوّد على مفتاحك الخاص مقابل الاستدلال، بالدولار الأمريكي، وفق أسعار النموذج المعلنة. يكون null عندما يعمل الطلب بأرصدة Phaseo، إذ يمثل `cost` الرسوم كاملة.","example":null,"uniqueKey":"usage.cost_details.upstream_inference_cost.oneOf.1","typeLabel":"null"}],"uniqueKey":"usage.cost_details.upstream_inference_cost","typeLabel":"number\u003cdouble> | null"}},"uniqueKey":"usage.cost_details","typeLabel":"object"}},"uniqueKey":"usage","typeLabel":"object"},"context_management":{"type":"object","description":"يظهر عندما يستخدم الطلب `context_management` وتطبّق Anthropic تعديلًا. يسرد `applied_edits` كل تعديل مع ما أزاله. وفي التدفقات، يرد في حدث `message_delta` الأخير.","properties":{"applied_edits":{"type":"array","items":{"type":"object","additionalProperties":true,"uniqueKey":"context_management.applied_edits.items.[INDEX]","typeLabel":"object"},"uniqueKey":"context_management.applied_edits","typeLabel":"object[]"}},"uniqueKey":"context_management","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"\u003cstring>","type":"\u003cstring>","role":"assistant","model":"\u003cstring>","content":[{"type":"text","text":"\u003cstring>","cache_control":{"type":"\u003cstring>","ttl":"\u003cstring>","scope":"\u003cstring>"},"source":{"type":"\u003cstring>","media_type":"\u003cstring>","data":"\u003cstring>","url":"\u003cstring>"},"id":"\u003cstring>","name":"\u003cstring>","input":{},"tool_use_id":"\u003cstring>","content":"\u003cstring>"}],"stop_reason":"\u003cstring>","stop_sequence":"\u003cstring>","usage":{"input_tokens":123,"cache_read_input_tokens":123,"cache_creation_input_tokens":123,"cache_creation":{"ephemeral_5m_input_tokens":123,"ephemeral_1h_input_tokens":123},"output_tokens":123,"cost":0.001234567,"cost_details":{"upstream_inference_cost":null}},"context_management":{"applied_edits":[{}]}}}},"exampleType":"generated"},"text/event-stream":{"schema":{"type":"string","uniqueKey":"","typeLabel":"string"},"examples":{"Example":{"title":"Example","value":"\u003cstring>"}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"cb7d5b33-f1b7-46af-b31e-9ff277e4eaeb":{"BearerAuth":{"type":"http","scheme":"bearer","description":"المصادقة باستخدام رمز Bearer","scopes":[],"schemeName":"BearerAuth"}}},"servers":{"fc2906d2-87a6-4a7e-be1b-ec1274ee8e96":{"url":"https://api.phaseo.app/v1","description":"التوجيه العالمي"},"85cfda82-c6b9-4d71-9a1d-3780433292a5":{"url":"https://eu.api.phaseo.app/v1","description":"توجيه إقليمي إلى مزودي الاتحاد الأوروبي (نص فقط)"},"56680611-c21a-4cf6-802c-b8c71ec97427":{"url":"https://us.api.phaseo.app/v1","description":"توجيه إقليمي إلى مزودي الولايات المتحدة (نص فقط)"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"المصادقة باستخدام رمز Bearer","scopes":[],"schemeName":"BearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"المصادقة باستخدام رمز Bearer","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"BearerAuth","name":"Authorization"}],"title":"BearerAuth"}]},"originalFileLocation":"ar/openapi/v1/openapi.localized.yaml"},"subdomain":"aistats","siteName":"Phaseo Docs","title":"إنشاء رسالة - Phaseo Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/v1/api-reference/endpoint/anthropic-messages","matchLevel":1},"es":{"href":"/es/v1/api-reference/endpoint/anthropic-messages","matchLevel":1},"fr":{"href":"/fr/v1/api-reference/endpoint/anthropic-messages","matchLevel":1},"de":{"href":"/de/v1/api-reference/endpoint/anthropic-messages","matchLevel":1},"pt-BR":{"href":"/pt-BR/v1/api-reference/endpoint/anthropic-messages","matchLevel":1},"ja":{"href":"/ja/v1/api-reference/endpoint/anthropic-messages","matchLevel":1},"zh-Hans":{"href":"/zh-Hans/v1/api-reference/endpoint/anthropic-messages","matchLevel":1},"hi":{"href":"/hi/v1/api-reference/endpoint/anthropic-messages","matchLevel":1},"ar":{"href":"/ar/v1/api-reference/endpoint/anthropic-messages","matchLevel":0}}},"lastModified":"2026-11-11T23:37:45.030Z","gitLastModified":"2026-11-05T13:38:10.000Z","originalFileLocation":"ar/v1/api-reference/endpoint/anthropic-messages.mdx","locale":"ar"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"نقطة نهاية Messages المتوافقة مع Anthropic على /v1/messages.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Phaseo Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/aistats/e9OKRuK0XVSasMAN/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/aistats/e9OKRuK0XVSasMAN/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/aistats/e9OKRuK0XVSasMAN/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/aistats/e9OKRuK0XVSasMAN/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/aistats/e9OKRuK0XVSasMAN/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/aistats/e9OKRuK0XVSasMAN/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/aistats/e9OKRuK0XVSasMAN/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/aistats/e9OKRuK0XVSasMAN/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/aistats/e9OKRuK0XVSasMAN/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"إنشاء رسالة - Phaseo Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"نقطة نهاية Messages المتوافقة مع Anthropic على /v1/messages.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Phaseo Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://phaseo.app/docs/ar/v1/api-reference/endpoint/anthropic-messages\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://aistats.mintlify.site/docs/_mintlify/api/og/v2?division=%D8%A7%D9%84%D9%86%D8%B5\u0026amp;title=%D8%A5%D9%86%D8%B4%D8%A7%D8%A1+%D8%B1%D8%B3%D8%A7%D9%84%D8%A9\u0026amp;description=%D9%86%D9%82%D8%B7%D8%A9+%D9%86%D9%87%D8%A7%D9%8A%D8%A9+Messages+%D8%A7%D9%84%D9%85%D8%AA%D9%88%D8%A7%D9%81%D9%82%D8%A9+%D9%85%D8%B9+Anthropic+%D8%B9%D9%84%D9%89+%2Fv1%2Fmessages.\u0026amp;theme=8f1a8a6f41ec087882173e2f\u0026amp;signature=039c2fba7621b88764a33cdefa156c230990eb5f71a83a10a332c37af0cabec9\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"إنشاء رسالة - Phaseo Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"نقطة نهاية Messages المتوافقة مع Anthropic على /v1/messages.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://aistats.mintlify.site/docs/_mintlify/api/og/v2?division=%D8%A7%D9%84%D9%86%D8%B5\u0026amp;title=%D8%A5%D9%86%D8%B4%D8%A7%D8%A1+%D8%B1%D8%B3%D8%A7%D9%84%D8%A9\u0026amp;description=%D9%86%D9%82%D8%B7%D8%A9+%D9%86%D9%87%D8%A7%D9%8A%D8%A9+Messages+%D8%A7%D9%84%D9%85%D8%AA%D9%88%D8%A7%D9%81%D9%82%D8%A9+%D9%85%D8%B9+Anthropic+%D8%B9%D9%84%D9%89+%2Fv1%2Fmessages.\u0026amp;theme=8f1a8a6f41ec087882173e2f\u0026amp;signature=039c2fba7621b88764a33cdefa156c230990eb5f71a83a10a332c37af0cabec9\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/aistats/e9OKRuK0XVSasMAN/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Phaseo Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0069a8\">\u003clink data-mint-head rel=\"canonical\" href=\"https://phaseo.app/docs/ar/v1/api-reference/endpoint/anthropic-messages\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/ar/v1/api-reference/endpoint/anthropic-messages.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ar\" href=\"https://phaseo.app/docs/ar/v1/api-reference/endpoint/anthropic-messages\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://phaseo.app/docs/v1/api-reference/endpoint/anthropic-messages\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"es\" href=\"https://phaseo.app/docs/es/v1/api-reference/endpoint/anthropic-messages\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"fr\" href=\"https://phaseo.app/docs/fr/v1/api-reference/endpoint/anthropic-messages\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"de\" href=\"https://phaseo.app/docs/de/v1/api-reference/endpoint/anthropic-messages\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"pt-BR\" href=\"https://phaseo.app/docs/pt-BR/v1/api-reference/endpoint/anthropic-messages\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ja\" href=\"https://phaseo.app/docs/ja/v1/api-reference/endpoint/anthropic-messages\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh-Hans\" href=\"https://phaseo.app/docs/zh-Hans/v1/api-reference/endpoint/anthropic-messages\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"hi\" href=\"https://phaseo.app/docs/hi/v1/api-reference/endpoint/anthropic-messages\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://phaseo.app/docs/v1/api-reference/endpoint/anthropic-messages\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://phaseo.app/#organization\",\"name\":\"Phaseo Docs\",\"url\":\"https://phaseo.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/aistats/bxzzjromPyjBlHKc/logo/light.svg?fit=max\u0026auto=format\u0026n=bxzzjromPyjBlHKc\u0026q=85\u0026s=f1e10d307a46469852edc2ae198e3c2a\"}},{\"@type\":\"WebSite\",\"@id\":\"https://phaseo.app/docs#website\",\"name\":\"Phaseo Docs\",\"url\":\"https://phaseo.app/docs\",\"publisher\":{\"@id\":\"https://phaseo.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://phaseo.app/docs/ar/v1/api-reference/endpoint/anthropic-messages#webpage\",\"url\":\"https://phaseo.app/docs/ar/v1/api-reference/endpoint/anthropic-messages\",\"name\":\"إنشاء رسالة\",\"description\":\"نقطة نهاية Messages المتوافقة مع Anthropic على /v1/messages.\",\"dateModified\":\"2026-11-05T13:38:10.000Z\",\"isPartOf\":{\"@id\":\"https://phaseo.app/docs#website\"},\"breadcrumb\":{\"@id\":\"https://phaseo.app/docs/ar/v1/api-reference/endpoint/anthropic-messages#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://phaseo.app/docs/ar/v1/api-reference/endpoint/anthropic-messages#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"النص\",\"item\":\"https://phaseo.app/docs/ar/v1/api-reference/endpoint/responses\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"إنشاء رسالة\",\"item\":\"https://phaseo.app/docs/ar/v1/api-reference/endpoint/anthropic-messages\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://phaseo.app/docs/ar/v1/api-reference/endpoint/anthropic-messages#apireference\",\"headline\":\"إنشاء رسالة\",\"name\":\"إنشاء رسالة\",\"description\":\"نقطة نهاية Messages المتوافقة مع Anthropic على /v1/messages.\",\"url\":\"https://phaseo.app/docs/ar/v1/api-reference/endpoint/anthropic-messages\",\"mainEntityOfPage\":{\"@id\":\"https://phaseo.app/docs/ar/v1/api-reference/endpoint/anthropic-messages#webpage\"},\"dateModified\":\"2026-11-05T13:38:10.000Z\",\"publisher\":{\"@id\":\"https://phaseo.app/#organization\"},\"isPartOf\":{\"@id\":\"https://phaseo.app/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Phaseo Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Phaseo Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/ar/v1/api-reference/endpoint/anthropic-messages.md","siteName":"Phaseo Docs","nav":{"global":null,"languages":[{"language":"en","pages":[{"title":"en","href":"/v1/api-reference/endpoint/anthropic-messages"}]},{"language":"es","footer":{"socials":{"x":"https://x.com/phaseoteam","github":"https://github.com/phaseoteam/Phaseo","discord":"https://discord.gg/aQyywCvgZ5","linkedin":"https://www.linkedin.com/company/phaseoapp","reddit":"https://www.reddit.com/r/Phaseo"},"links":[{"items":[{"label":"Modelos","href":"https://phaseo.app/es-ES/models"},{"label":"Estado","href":"https://status.phaseo.app"},{"label":"Soporte","href":"https://phaseo.app/es-ES/help"}]}]},"navbar":{"primary":{"type":"button","label":"Obtener clave de API","href":"https://phaseo.app/es-ES/settings/keys"}},"pages":[{"title":"es","href":"/es/v1/api-reference/endpoint/anthropic-messages"}]},{"language":"fr","footer":{"socials":{"x":"https://x.com/phaseoteam","github":"https://github.com/phaseoteam/Phaseo","discord":"https://discord.gg/aQyywCvgZ5","linkedin":"https://www.linkedin.com/company/phaseoapp","reddit":"https://www.reddit.com/r/Phaseo"},"links":[{"items":[{"label":"Modèles","href":"https://phaseo.app/fr-FR/models"},{"label":"État","href":"https://status.phaseo.app"},{"label":"Assistance","href":"https://phaseo.app/fr-FR/help"}]}]},"navbar":{"primary":{"type":"button","label":"Obtenir une clé API","href":"https://phaseo.app/fr-FR/settings/keys"}},"pages":[{"title":"fr","href":"/fr/v1/api-reference/endpoint/anthropic-messages"}]},{"language":"de","footer":{"socials":{"x":"https://x.com/phaseoteam","github":"https://github.com/phaseoteam/Phaseo","discord":"https://discord.gg/aQyywCvgZ5","linkedin":"https://www.linkedin.com/company/phaseoapp","reddit":"https://www.reddit.com/r/Phaseo"},"links":[{"items":[{"label":"Modelle","href":"https://phaseo.app/de-DE/models"},{"label":"Status","href":"https://status.phaseo.app"},{"label":"Support","href":"https://phaseo.app/de-DE/help"}]}]},"navbar":{"primary":{"type":"button","label":"API-Schlüssel erstellen","href":"https://phaseo.app/de-DE/settings/keys"}},"pages":[{"title":"de","href":"/de/v1/api-reference/endpoint/anthropic-messages"}]},{"language":"pt-BR","footer":{"socials":{"x":"https://x.com/phaseoteam","github":"https://github.com/phaseoteam/Phaseo","discord":"https://discord.gg/aQyywCvgZ5","linkedin":"https://www.linkedin.com/company/phaseoapp","reddit":"https://www.reddit.com/r/Phaseo"},"links":[{"items":[{"label":"Modelos","href":"https://phaseo.app/pt-BR/models"},{"label":"Status","href":"https://status.phaseo.app"},{"label":"Suporte","href":"https://phaseo.app/pt-BR/help"}]}]},"navbar":{"primary":{"type":"button","label":"Obter chave de API","href":"https://phaseo.app/pt-BR/settings/keys"}},"pages":[{"title":"pt-BR","href":"/pt-BR/v1/api-reference/endpoint/anthropic-messages"}]},{"language":"ja","footer":{"socials":{"x":"https://x.com/phaseoteam","github":"https://github.com/phaseoteam/Phaseo","discord":"https://discord.gg/aQyywCvgZ5","linkedin":"https://www.linkedin.com/company/phaseoapp","reddit":"https://www.reddit.com/r/Phaseo"},"links":[{"items":[{"label":"モデル","href":"https://phaseo.app/ja/models"},{"label":"ステータス","href":"https://status.phaseo.app"},{"label":"サポート","href":"https://phaseo.app/ja/help"}]}]},"navbar":{"primary":{"type":"button","label":"API キーを取得","href":"https://phaseo.app/ja/settings/keys"}},"pages":[{"title":"ja","href":"/ja/v1/api-reference/endpoint/anthropic-messages"}]},{"language":"zh-Hans","footer":{"socials":{"x":"https://x.com/phaseoteam","github":"https://github.com/phaseoteam/Phaseo","discord":"https://discord.gg/aQyywCvgZ5","linkedin":"https://www.linkedin.com/company/phaseoapp","reddit":"https://www.reddit.com/r/Phaseo"},"links":[{"items":[{"label":"模型","href":"https://phaseo.app/zh-Hans/models"},{"label":"状态","href":"https://status.phaseo.app"},{"label":"支持","href":"https://phaseo.app/zh-Hans/help"}]}]},"navbar":{"primary":{"type":"button","label":"获取 API 密钥","href":"https://phaseo.app/zh-Hans/settings/keys"}},"pages":[{"title":"zh-Hans","href":"/zh-Hans/v1/api-reference/endpoint/anthropic-messages"}]},{"language":"hi","footer":{"socials":{"x":"https://x.com/phaseoteam","github":"https://github.com/phaseoteam/Phaseo","discord":"https://discord.gg/aQyywCvgZ5","linkedin":"https://www.linkedin.com/company/phaseoapp","reddit":"https://www.reddit.com/r/Phaseo"},"links":[{"items":[{"label":"मॉडल","href":"https://phaseo.app/hi/models"},{"label":"स्थिति","href":"https://status.phaseo.app"},{"label":"सहायता","href":"https://phaseo.app/hi/help"}]}]},"navbar":{"primary":{"type":"button","label":"API कुंजी प्राप्त करें","href":"https://phaseo.app/hi/settings/keys"}},"pages":[{"title":"hi","href":"/hi/v1/api-reference/endpoint/anthropic-messages"}]},{"language":"ar","footer":{"socials":{"x":"https://x.com/phaseoteam","github":"https://github.com/phaseoteam/Phaseo","discord":"https://discord.gg/aQyywCvgZ5","linkedin":"https://www.linkedin.com/company/phaseoapp","reddit":"https://www.reddit.com/r/Phaseo"},"links":[{"items":[{"label":"النماذج","href":"https://phaseo.app/ar-SA/models"},{"label":"الحالة","href":"https://status.phaseo.app"},{"label":"الدعم","href":"https://phaseo.app/ar-SA/help"}]}]},"navbar":{"primary":{"type":"button","label":"احصل على مفتاح API","href":"https://phaseo.app/ar-SA/settings/keys"}},"tabs":[{"tab":"الوثائق","icon":"book","pages":[{"title":"الوثائق","href":"/ar/v1"}]},{"tab":"مرجع API","icon":"server","groups":[{"group":"أدلة API","icon":"book-open","expanded":true,"pages":[{"title":"نظرة عامة على Gateway API","sidebarTitle":"نظرة عامة","icon":"map","href":"/ar/v1/api-reference/introduction"},{"title":"المصادقة","icon":"key-round","href":"/ar/v1/developers/authentication"},{"title":"المعاملات","icon":"sliders-horizontal","href":"/ar/v1/api-reference/parameters"},{"title":"البث","icon":"radio","href":"/ar/v1/guides/streaming"},{"title":"حدود المعدل","icon":"gauge","href":"/ar/v1/api-reference/limits"},{"title":"الأخطاء وتصحيحها","icon":"bug","href":"/ar/v1/api-reference/errors"}]},{"group":"النص","icon":"message-square-text","pages":[{"title":"إنشاء استجابة","sidebarTitle":"إنشاء استجابة","openapi":"ar/openapi/v1/openapi.localized.yaml POST /responses","href":"/ar/v1/api-reference/endpoint/responses"},{"title":"إنشاء إكمال محادثة","sidebarTitle":"إنشاء إكمال محادثة","openapi":"ar/openapi/v1/openapi.localized.yaml POST /chat/completions","description":"ولّد إكمالات محادثة باستخدام نقطة نهاية الدردشة المتوافقة مع OpenAI.","href":"/ar/v1/api-reference/endpoint/chat-completions"},{"title":"إنشاء رسالة","sidebarTitle":"إنشاء رسالة (Anthropic)","openapi":"ar/openapi/v1/openapi.localized.yaml POST /messages","href":"/ar/v1/api-reference/endpoint/anthropic-messages"}]},{"group":"صورة","icon":"image","pages":[{"title":"إنشاء صورة","sidebarTitle":"إنشاء صورة","openapi":"ar/openapi/v1/openapi.localized.yaml POST /images/generations","description":"ينشئ صورة استنادًا إلى موجّه.","href":"/ar/v1/api-reference/endpoint/images-generations"},{"title":"تحرير صورة","sidebarTitle":"تحرير صورة","openapi":"ar/openapi/v1/openapi.localized.yaml POST /images/edits","href":"/ar/v1/api-reference/endpoint/images-edits"}]},{"group":"فيديو","icon":"video","tag":"Alpha","pages":[{"title":"إنشاء فيديو","openapi":"ar/openapi/v1/openapi.localized.yaml POST /videos","href":"/ar/v1/api-reference/endpoint/video-create"},{"title":"الحصول على حالة فيديو","openapi":"ar/openapi/v1/openapi.localized.yaml GET /videos/{video_id}","href":"/ar/v1/api-reference/endpoint/video-status"},{"title":"تنزيل محتوى فيديو","openapi":"ar/openapi/v1/openapi.localized.yaml GET /videos/{video_id}/content","href":"/ar/v1/api-reference/endpoint/video-content"},{"title":"إنشاء رابط تنزيل موقّع","openapi":"ar/openapi/v1/openapi.localized.yaml POST /videos/{video_id}/download_url","href":"/ar/v1/api-reference/endpoint/video-download-url"},{"title":"إلغاء فيديو","openapi":"ar/openapi/v1/openapi.localized.yaml POST /videos/{video_id}/cancel","href":"/ar/v1/api-reference/endpoint/video-cancel"},{"title":"حذف فيديو","openapi":"ar/openapi/v1/openapi.localized.yaml DELETE /videos/{video_id}","href":"/ar/v1/api-reference/endpoint/video-delete"},{"title":"سرد مقاطع الفيديو","openapi":"ar/openapi/v1/openapi.localized.yaml GET /videos","href":"/ar/v1/api-reference/endpoint/video-list"},{"title":"سرد نماذج الفيديو","openapi":"ar/openapi/v1/openapi.localized.yaml GET /videos/models","href":"/ar/v1/api-reference/endpoint/video-models"}]},{"group":"التضمينات","icon":"braces","pages":[{"title":"إنشاء التضمينات","sidebarTitle":"إنشاء التضمينات","openapi":"ar/openapi/v1/openapi.localized.yaml POST /embeddings","href":"/ar/v1/api-reference/endpoint/embeddings"}]},{"group":"القرارات","icon":"signpost","pages":[{"title":"اتخاذ قرار","openapi":"ar/openapi/v1/openapi.localized.yaml POST /decisions","href":"/ar/v1/api-reference/endpoint/decisions"},{"title":"استخراج القيم","icon":"list-filter","openapi":"ar/openapi/v1/openapi.localized.yaml POST /extractions","href":"/ar/v1/api-reference/endpoint/extractions"}]},{"group":"الإشراف","icon":"shield-check","pages":[{"title":"إنشاء عملية إشراف","sidebarTitle":"إنشاء عملية إشراف","openapi":"ar/openapi/v1/openapi.localized.yaml POST /moderations","href":"/ar/v1/api-reference/endpoint/moderations"}]},{"group":"إعادة الترتيب","icon":"arrow-down-wide-narrow","pages":[{"title":"إعادة ترتيب المستندات","sidebarTitle":"إعادة ترتيب المستندات","openapi":"ar/openapi/v1/openapi.localized.yaml POST /rerank","href":"/ar/v1/api-reference/endpoint/rerank"}]},{"group":"المستندات","icon":"file-text","pages":[{"title":"استخراج النص باستخدام OCR","sidebarTitle":"استخراج النص","openapi":"ar/openapi/v1/openapi.localized.yaml POST /ocr","href":"/ar/v1/api-reference/endpoint/ocr"},{"title":"تحليل صورة مستند","sidebarTitle":"تحليل مستند","openapi":"ar/openapi/v1/openapi.localized.yaml POST /parse","href":"/ar/v1/api-reference/endpoint/parse"}]},{"group":"الكلام","icon":"audio-lines","pages":[{"title":"إنشاء كلام","sidebarTitle":"إنشاء كلام","openapi":"ar/openapi/v1/openapi.localized.yaml POST /audio/speech","href":"/ar/v1/api-reference/endpoint/audio-speech"}]},{"group":"التفريغ النصي","icon":"captions","pages":[{"title":"إنشاء تفريغ صوتي","sidebarTitle":"إنشاء تفريغ صوتي","openapi":"ar/openapi/v1/openapi.localized.yaml POST /audio/transcriptions","href":"/ar/v1/api-reference/endpoint/audio-transcriptions"}]},{"group":"الترجمة","icon":"languages","pages":[{"title":"إنشاء ترجمة","sidebarTitle":"إنشاء ترجمة","openapi":"ar/openapi/v1/openapi.localized.yaml POST /audio/translations","href":"/ar/v1/api-reference/endpoint/audio-translations"}]},{"group":"الموسيقى","icon":"music","pages":[{"title":"إنشاء موسيقى","sidebarTitle":"إنشاء موسيقى","openapi":"ar/openapi/v1/openapi.localized.yaml POST /music/generate","href":"/ar/v1/api-reference/endpoint/music-generate"},{"title":"الحصول على عملية توليد الموسيقى","sidebarTitle":"الحصول على عملية توليد الموسيقى","openapi":"ar/openapi/v1/openapi.localized.yaml GET /music/generate/{music_id}","href":"/ar/v1/api-reference/endpoint/music-status"}]},{"group":"المهام والملفات وWebhook","icon":"layers","pages":[{"group":"معالجة دفعية","tag":"Beta","expanded":true,"pages":[{"title":"إنشاء دفعة","openapi":"ar/openapi/v1/openapi.localized.yaml POST /batches","href":"/ar/v1/api-reference/endpoint/batches-create"},{"title":"الحصول على حالة دفعة","openapi":"ar/openapi/v1/openapi.localized.yaml GET /batches/{batch_id}","href":"/ar/v1/api-reference/endpoint/batches-retrieve"},{"title":"تنزيل نتائج دفعة","openapi":"ar/openapi/v1/openapi.localized.yaml GET /batches/{batch_id}/results","href":"/ar/v1/api-reference/endpoint/batches-results"},{"title":"سرد طلبات دفعة","openapi":"ar/openapi/v1/openapi.localized.yaml GET /batches/{batch_id}/requests","href":"/ar/v1/api-reference/endpoint/batches-requests"},{"title":"إلغاء دفعة","openapi":"ar/openapi/v1/openapi.localized.yaml POST /batches/{batch_id}/cancel","href":"/ar/v1/api-reference/endpoint/batches-cancel"},{"title":"سرد الدفعات","openapi":"ar/openapi/v1/openapi.localized.yaml GET /batches","href":"/ar/v1/api-reference/endpoint/batches-list"},{"title":"رفع ملف دفعة","openapi":"ar/openapi/v1/openapi.localized.yaml POST /batches/files","href":"/ar/v1/api-reference/endpoint/batches-files-upload"},{"title":"استرجاع ملف دفعة","openapi":"ar/openapi/v1/openapi.localized.yaml GET /batches/files/{file_id}","href":"/ar/v1/api-reference/endpoint/batches-files-retrieve"},{"title":"تنزيل محتوى ملف دفعة","openapi":"ar/openapi/v1/openapi.localized.yaml GET /batches/files/{file_id}/content","href":"/ar/v1/api-reference/endpoint/batches-files-content"},{"title":"سرد ملفات الدفعات","openapi":"ar/openapi/v1/openapi.localized.yaml GET /batches/files","href":"/ar/v1/api-reference/endpoint/batches-files-list"},{"title":"سرد نماذج المعالجة على دفعات","openapi":"ar/openapi/v1/openapi.localized.yaml GET /batches/models","href":"/ar/v1/api-reference/endpoint/batches-models"},{"title":"سرد إمكانات مزوّدي المعالجة على دفعات","openapi":"ar/openapi/v1/openapi.localized.yaml GET /batches/capabilities","href":"/ar/v1/api-reference/endpoint/batches-capabilities"}]},{"group":"الملفات","expanded":true,"pages":[{"title":"تحميل ملف","sidebarTitle":"تحميل ملف","openapi":"ar/openapi/v1/openapi.localized.yaml POST /files","href":"/ar/v1/api-reference/endpoint/files"},{"title":"استرجاع ملف","sidebarTitle":"استرجاع الملف","openapi":"ar/openapi/v1/openapi.localized.yaml GET /files/{file_id}","href":"/ar/v1/api-reference/endpoint/files-retrieve"},{"title":"تنزيل محتوى الملف","sidebarTitle":"تنزيل محتوى الملف","openapi":"ar/openapi/v1/openapi.localized.yaml GET /files/{file_id}/content","href":"/ar/v1/api-reference/endpoint/files-content"},{"title":"عرض الملفات","sidebarTitle":"عرض الملفات","openapi":"ar/openapi/v1/openapi.localized.yaml GET /files","href":"/ar/v1/api-reference/endpoint/files-list"}]},{"group":"نقاط نهاية Webhook","tag":"Beta","expanded":true,"pages":[{"title":"إنشاء نقطة نهاية webhook","openapi":"ar/openapi/v1/openapi.localized.yaml POST /webhook-endpoints","href":"/ar/v1/api-reference/endpoint/webhook-endpoints-create"},{"title":"عرض نقطة نهاية webhook","openapi":"ar/openapi/v1/openapi.localized.yaml GET /webhook-endpoints/{id}","href":"/ar/v1/api-reference/endpoint/webhook-endpoints-get"},{"title":"تحديث نقطة نهاية webhook","openapi":"ar/openapi/v1/openapi.localized.yaml PATCH /webhook-endpoints/{id}","href":"/ar/v1/api-reference/endpoint/webhook-endpoints-update"},{"title":"تدوير سر webhook","openapi":"ar/openapi/v1/openapi.localized.yaml POST /webhook-endpoints/{id}/rotate-secret","href":"/ar/v1/api-reference/endpoint/webhook-endpoints-rotate-secret"},{"title":"حذف نقطة نهاية webhook","openapi":"ar/openapi/v1/openapi.localized.yaml DELETE /webhook-endpoints/{id}","href":"/ar/v1/api-reference/endpoint/webhook-endpoints-delete"},{"title":"عرض قائمة نقاط نهاية webhook","openapi":"ar/openapi/v1/openapi.localized.yaml GET /webhook-endpoints","href":"/ar/v1/api-reference/endpoint/webhook-endpoints-list"}]}]},{"group":"النماذج والتسعير","icon":"boxes","pages":[{"title":"عرض النماذج","sidebarTitle":"عرض النماذج","openapi":"ar/openapi/v1/openapi.localized.yaml GET /models","href":"/ar/v1/api-reference/endpoint/models"},{"title":"عرض قدرات نقاط نهاية النموذج","openapi":"ar/openapi/v1/openapi.localized.yaml GET /models/{author}/{slug}/endpoints","href":"/ar/v1/api-reference/endpoint/model-endpoints"},{"title":"عرض المزوّدين","sidebarTitle":"عرض المزوّدين","openapi":"ar/openapi/v1/openapi.localized.yaml GET /providers","href":"/ar/v1/api-reference/endpoint/providers"},{"title":"عرض نقاط النهاية","sidebarTitle":"عرض نقاط النهاية","openapi":"ar/openapi/v1/openapi.localized.yaml GET /endpoints","href":"/ar/v1/api-reference/endpoint/endpoints"},{"title":"عرض أسعار النماذج","sidebarTitle":"عرض أسعار النماذج","openapi":"ar/openapi/v1/openapi.localized.yaml GET /pricing/models","href":"/ar/v1/api-reference/endpoint/pricing-models"},{"title":"حساب الأسعار","sidebarTitle":"حساب الأسعار","openapi":"ar/openapi/v1/openapi.localized.yaml POST /pricing/calculate","href":"/ar/v1/api-reference/endpoint/pricing-calculate"},{"title":"عرض المؤسسات","sidebarTitle":"عرض المؤسسات","openapi":"ar/openapi/v1/openapi.localized.yaml GET /organisations","href":"/ar/v1/api-reference/endpoint/organisations"}]},{"group":"التوجيه والسياسات","icon":"route","pages":[{"group":"التوجيه","expanded":false,"pages":[{"title":"الحصول على إعدادات مساحة العمل","sidebarTitle":"الحصول على الإعدادات","openapi":"ar/openapi/v1/openapi.localized.yaml GET /settings","href":"/ar/v1/api-reference/endpoint/workspace-settings-get"},{"title":"تحديث إعدادات مساحة العمل","sidebarTitle":"تحديث الإعدادات","openapi":"ar/openapi/v1/openapi.localized.yaml PATCH /settings","href":"/ar/v1/api-reference/endpoint/workspace-settings-update"},{"title":"إنشاء مسار ديناميكي","sidebarTitle":"إنشاء مسار","openapi":"ar/openapi/v1/openapi.localized.yaml POST /routing/dynamic-routes","href":"/ar/v1/api-reference/endpoint/dynamic-routes-create"},{"title":"الحصول على مسار ديناميكي","sidebarTitle":"الحصول على المسار","openapi":"ar/openapi/v1/openapi.localized.yaml GET /routing/dynamic-routes/{id}","href":"/ar/v1/api-reference/endpoint/dynamic-routes-get"},{"title":"تحديث مسار ديناميكي","sidebarTitle":"تحديث المسار","openapi":"ar/openapi/v1/openapi.localized.yaml PATCH /routing/dynamic-routes/{id}","href":"/ar/v1/api-reference/endpoint/dynamic-routes-update"},{"title":"استبدال مفاتيح المسار الديناميكي","sidebarTitle":"إرفاق المفاتيح","openapi":"ar/openapi/v1/openapi.localized.yaml PUT /routing/dynamic-routes/{id}/keys","href":"/ar/v1/api-reference/endpoint/dynamic-routes-keys-update"},{"title":"نشر إصدار مسار ديناميكي","sidebarTitle":"نشر الإصدار","openapi":"ar/openapi/v1/openapi.localized.yaml POST /routing/dynamic-routes/{id}/versions/{version}/deploy","href":"/ar/v1/api-reference/endpoint/dynamic-routes-deploy"},{"title":"حذف مسار ديناميكي","sidebarTitle":"حذف المسار","openapi":"ar/openapi/v1/openapi.localized.yaml DELETE /routing/dynamic-routes/{id}","href":"/ar/v1/api-reference/endpoint/dynamic-routes-delete"},{"title":"عرض المسارات الديناميكية","sidebarTitle":"عرض المسارات","openapi":"ar/openapi/v1/openapi.localized.yaml GET /routing/dynamic-routes","href":"/ar/v1/api-reference/endpoint/dynamic-routes-list"},{"title":"جلب إعدادات التوجيه التلقائي","sidebarTitle":"جلب التوجيه التلقائي","openapi":"ar/openapi/v1/openapi.localized.yaml GET /routing/auto","href":"/ar/v1/api-reference/endpoint/routing-auto-get"},{"title":"تحديث إعدادات التوجيه التلقائي","sidebarTitle":"تحديث التوجيه التلقائي","openapi":"ar/openapi/v1/openapi.localized.yaml PATCH /routing/auto","href":"/ar/v1/api-reference/endpoint/routing-auto-update"},{"title":"عرض بدائل النماذج اللاحقة","sidebarTitle":"عرض البدائل","openapi":"ar/openapi/v1/openapi.localized.yaml GET /routing/successor/replacements","href":"/ar/v1/api-reference/endpoint/successor-replacements-list"},{"title":"حفظ بديل لنموذج لاحق","sidebarTitle":"حفظ البديل","openapi":"ar/openapi/v1/openapi.localized.yaml PUT /routing/successor/replacements","href":"/ar/v1/api-reference/endpoint/successor-replacements-save"},{"title":"إزالة بديل لنموذج لاحق","sidebarTitle":"إزالة البديل","openapi":"ar/openapi/v1/openapi.localized.yaml DELETE /routing/successor/replacements","href":"/ar/v1/api-reference/endpoint/successor-replacements-remove"}]},{"group":"الإعدادات المسبقة","expanded":false,"pages":[{"title":"إنشاء إعداد مسبق","sidebarTitle":"إنشاء إعداد مسبق","openapi":"ar/openapi/v1/openapi.localized.yaml POST /presets","href":"/ar/v1/api-reference/endpoint/presets-create"},{"title":"الحصول على إعداد مسبق","sidebarTitle":"الحصول على الإعداد المسبق","openapi":"ar/openapi/v1/openapi.localized.yaml GET /presets/{id}","href":"/ar/v1/api-reference/endpoint/presets-get"},{"title":"تحديث مسودة الإعداد المسبق","sidebarTitle":"تحديث الإعداد المسبق","openapi":"ar/openapi/v1/openapi.localized.yaml PATCH /presets/{id}","href":"/ar/v1/api-reference/endpoint/presets-update"},{"title":"نشر إصدار الإعداد المسبق","sidebarTitle":"نشر الإصدار","openapi":"ar/openapi/v1/openapi.localized.yaml POST /presets/{id}/versions","href":"/ar/v1/api-reference/endpoint/presets-version-publish"},{"title":"عرض إصدارات الإعداد المسبق","sidebarTitle":"عرض الإصدارات","openapi":"ar/openapi/v1/openapi.localized.yaml GET /presets/{id}/versions","href":"/ar/v1/api-reference/endpoint/presets-versions-list"},{"title":"سرد تسميات الإعداد المسبق","sidebarTitle":"سرد التسميات","openapi":"ar/openapi/v1/openapi.localized.yaml GET /presets/{id}/labels","href":"/ar/v1/api-reference/endpoint/presets-labels-list"},{"title":"تعيين تسمية للإعداد المسبق","sidebarTitle":"تعيين تسمية","openapi":"ar/openapi/v1/openapi.localized.yaml PUT /presets/{id}/labels/{label}","href":"/ar/v1/api-reference/endpoint/presets-label-set"},{"title":"إزالة تسمية من الإعداد المسبق","sidebarTitle":"إزالة التسمية","openapi":"ar/openapi/v1/openapi.localized.yaml DELETE /presets/{id}/labels/{label}","href":"/ar/v1/api-reference/endpoint/presets-label-delete"},{"title":"تفريع إعداد مسبق عام","sidebarTitle":"تفريع الإعداد المسبق","openapi":"ar/openapi/v1/openapi.localized.yaml POST /presets/{id}/fork","href":"/ar/v1/api-reference/endpoint/presets-fork"},{"title":"تطبيق الإصدار من المصدر preset version","sidebarTitle":"تطبيق الإصدار من المصدر","openapi":"ar/openapi/v1/openapi.localized.yaml POST /presets/{id}/upstream","href":"/ar/v1/api-reference/endpoint/presets-upstream-apply"},{"title":"أرشفة إعداد مسبق","sidebarTitle":"أرشفة الإعداد المسبق","openapi":"ar/openapi/v1/openapi.localized.yaml DELETE /presets/{id}","href":"/ar/v1/api-reference/endpoint/presets-delete"},{"title":"عرض الإعدادات المسبقة","sidebarTitle":"عرض الإعدادات المسبقة","openapi":"ar/openapi/v1/openapi.localized.yaml GET /presets","href":"/ar/v1/api-reference/endpoint/presets-list"},{"title":"الحصول على ناشر الإعداد المسبق","sidebarTitle":"الحصول على الناشر","openapi":"ar/openapi/v1/openapi.localized.yaml GET /presets/publisher","href":"/ar/v1/api-reference/endpoint/presets-publisher-get"},{"title":"تحديث ناشر الإعداد المسبق","sidebarTitle":"تحديث الناشر","openapi":"ar/openapi/v1/openapi.localized.yaml PUT /presets/publisher","href":"/ar/v1/api-reference/endpoint/presets-publisher-update"}]},{"group":"النماذج الخاصة","expanded":false,"pages":[{"title":"إنشاء نموذج خاص","sidebarTitle":"إنشاء نموذج خاص","openapi":"ar/openapi/v1/openapi.localized.yaml POST /private-models","href":"/ar/v1/api-reference/endpoint/private-models-create"},{"title":"الحصول على نموذج خاص","sidebarTitle":"الحصول على نموذج خاص","openapi":"ar/openapi/v1/openapi.localized.yaml GET /private-models/{id}","href":"/ar/v1/api-reference/endpoint/private-models-get"},{"title":"تحديث نموذج خاص","sidebarTitle":"تحديث نموذج خاص","openapi":"ar/openapi/v1/openapi.localized.yaml PATCH /private-models/{id}","href":"/ar/v1/api-reference/endpoint/private-models-update"},{"title":"حذف نموذج خاص","sidebarTitle":"حذف نموذج خاص","openapi":"ar/openapi/v1/openapi.localized.yaml DELETE /private-models/{id}","href":"/ar/v1/api-reference/endpoint/private-models-delete"},{"title":"سرد النماذج الخاصة","sidebarTitle":"سرد النماذج الخاصة","openapi":"ar/openapi/v1/openapi.localized.yaml GET /private-models","href":"/ar/v1/api-reference/endpoint/private-models-list"}]},{"group":"بيانات اعتماد المزودين","expanded":false,"pages":[{"title":"إنشاء بيانات اعتماد للمزوّد","sidebarTitle":"إنشاء بيانات اعتماد","openapi":"ar/openapi/v1/openapi.localized.yaml POST /byok","href":"/ar/v1/api-reference/endpoint/provider-credentials-create"},{"title":"الحصول على بيانات اعتماد المزوّد","sidebarTitle":"الحصول على بيانات الاعتماد","openapi":"ar/openapi/v1/openapi.localized.yaml GET /byok/{id}","href":"/ar/v1/api-reference/endpoint/provider-credentials-get"},{"title":"تحديث بيانات اعتماد المزوّد","sidebarTitle":"تحديث بيانات الاعتماد","openapi":"ar/openapi/v1/openapi.localized.yaml PATCH /byok/{id}","href":"/ar/v1/api-reference/endpoint/provider-credentials-update"},{"title":"إعادة ترتيب بيانات اعتماد المزوّد","sidebarTitle":"إعادة ترتيب بيانات الاعتماد","openapi":"ar/openapi/v1/openapi.localized.yaml POST /byok/reorder","href":"/ar/v1/api-reference/endpoint/provider-credentials-reorder"},{"title":"حذف بيانات اعتماد المزوّد","sidebarTitle":"حذف بيانات الاعتماد","openapi":"ar/openapi/v1/openapi.localized.yaml DELETE /byok/{id}","href":"/ar/v1/api-reference/endpoint/provider-credentials-delete"},{"title":"عرض بيانات اعتماد المزوّد","sidebarTitle":"عرض بيانات الاعتماد","openapi":"ar/openapi/v1/openapi.localized.yaml GET /byok","href":"/ar/v1/api-reference/endpoint/provider-credentials-list"}]},{"group":"ضوابط الحماية","expanded":false,"pages":[{"icon":"shield-check","title":"واجهة API للضوابط الوقائية","sidebarTitle":"نظرة عامة","href":"/ar/v1/api-reference/endpoint/guardrails"},{"title":"إنشاء حاجز حماية","sidebarTitle":"إنشاء حاجز حماية","openapi":"ar/openapi/v1/openapi.localized.yaml POST /guardrails","href":"/ar/v1/api-reference/endpoint/guardrails-create"},{"title":"الحصول على حاجز حماية","sidebarTitle":"الحصول على حاجز الحماية","openapi":"ar/openapi/v1/openapi.localized.yaml GET /guardrails/{id}","href":"/ar/v1/api-reference/endpoint/guardrails-get"},{"title":"تحديث حاجز الحماية","sidebarTitle":"تحديث حاجز الحماية","openapi":"ar/openapi/v1/openapi.localized.yaml PATCH /guardrails/{id}","href":"/ar/v1/api-reference/endpoint/guardrails-update"},{"title":"حذف حاجز الحماية","sidebarTitle":"حذف حاجز الحماية","openapi":"ar/openapi/v1/openapi.localized.yaml DELETE /guardrails/{id}","href":"/ar/v1/api-reference/endpoint/guardrails-delete"},{"title":"عرض حواجز الحماية","sidebarTitle":"عرض حواجز الحماية","openapi":"ar/openapi/v1/openapi.localized.yaml GET /guardrails","href":"/ar/v1/api-reference/endpoint/guardrails-list"},{"title":"إضافة مفاتيح إلى حاجز الحماية","sidebarTitle":"إضافة المفاتيح المعيّنة","openapi":"ar/openapi/v1/openapi.localized.yaml POST /guardrails/{id}/keys/add","href":"/ar/v1/api-reference/endpoint/guardrail-keys-add"},{"title":"استبدال مفاتيح حاجز الحماية","sidebarTitle":"استبدال المفاتيح المعيّنة","openapi":"ar/openapi/v1/openapi.localized.yaml PUT /guardrails/{id}/keys","href":"/ar/v1/api-reference/endpoint/guardrail-keys-replace"},{"title":"إزالة مفاتيح حاجز الحماية","sidebarTitle":"إزالة المفاتيح المعيّنة","openapi":"ar/openapi/v1/openapi.localized.yaml POST /guardrails/{id}/keys/remove","href":"/ar/v1/api-reference/endpoint/guardrail-keys-remove"},{"title":"عرض مفاتيح حاجز الحماية","sidebarTitle":"عرض المفاتيح المعيّنة","openapi":"ar/openapi/v1/openapi.localized.yaml GET /guardrails/{id}/keys","href":"/ar/v1/api-reference/endpoint/guardrail-keys-list"},{"title":"إضافة أعضاء إلى حاجز الحماية","sidebarTitle":"إضافة الأعضاء المعيّنين","openapi":"ar/openapi/v1/openapi.localized.yaml POST /guardrails/{id}/members/add","href":"/ar/v1/api-reference/endpoint/guardrail-members-add"},{"title":"إزالة أعضاء حاجز الحماية","sidebarTitle":"إزالة الأعضاء المعيّنين","openapi":"ar/openapi/v1/openapi.localized.yaml POST /guardrails/{id}/members/remove","href":"/ar/v1/api-reference/endpoint/guardrail-members-remove"},{"title":"عرض أعضاء حاجز الحماية","sidebarTitle":"عرض الأعضاء المعيّنين","openapi":"ar/openapi/v1/openapi.localized.yaml GET /guardrails/{id}/members","href":"/ar/v1/api-reference/endpoint/guardrail-members-list"}]}]},{"group":"الاستخدام والمراقبة","icon":"chart-no-axes-combined","pages":[{"group":"الاستخدام والتحليلات","expanded":true,"pages":[{"title":"الحصول على عملية توليد","sidebarTitle":"الحصول على عملية توليد","openapi":"ar/openapi/v1/openapi.localized.yaml GET /generations","href":"/ar/v1/api-reference/endpoint/generation"},{"title":"عرض قائمة النشاط","sidebarTitle":"عرض قائمة النشاط","openapi":"ar/openapi/v1/openapi.localized.yaml GET /activity","href":"/ar/v1/api-reference/endpoint/activity"},{"title":"عرض أحداث تدقيق مساحة العمل","sidebarTitle":"أحداث التدقيق","openapi":"ar/openapi/v1/openapi.localized.yaml GET /audit-events","href":"/ar/v1/api-reference/endpoint/audit-events"},{"title":"الحصول على تحليلات مساحة العمل","sidebarTitle":"الحصول على التحليلات","openapi":"ar/openapi/v1/openapi.localized.yaml GET /analytics","href":"/ar/v1/api-reference/endpoint/analytics-get"},{"title":"تصدير تحليلات مساحة العمل","sidebarTitle":"تصدير التحليلات","openapi":"ar/openapi/v1/openapi.localized.yaml GET /analytics/export","href":"/ar/v1/api-reference/endpoint/analytics-export"},{"title":"التحقق من سلامة البوابة","sidebarTitle":"فحص الحالة","openapi":"ar/openapi/v1/openapi.localized.yaml GET /health","href":"/ar/v1/api-reference/endpoint/health"}]},{"group":"السجلات","expanded":true,"pages":[{"title":"عرض قائمة سجلات طلبات Gateway","sidebarTitle":"عرض سجلات طلبات Gateway","openapi":"ar/openapi/v1/openapi.localized.yaml GET /logs","href":"/ar/v1/api-reference/endpoint/logs-list"},{"title":"عرض سجل طلبات Gateway","openapi":"ar/openapi/v1/openapi.localized.yaml GET /logs/{requestId}","href":"/ar/v1/api-reference/endpoint/logs-get"}]},{"group":"قابلية الملاحظة","expanded":true,"pages":[{"title":"الحصول على سياسة تسجيل قابلية الرصد","sidebarTitle":"الحصول على سياسة التسجيل","openapi":"ar/openapi/v1/openapi.localized.yaml GET /observability/logging-policy","href":"/ar/v1/api-reference/endpoint/observability-logging-policy-get"},{"title":"تحديث سياسة تسجيل بيانات قابلية الملاحظة","sidebarTitle":"تحديث سياسة التسجيل","openapi":"ar/openapi/v1/openapi.localized.yaml PATCH /observability/logging-policy","href":"/ar/v1/api-reference/endpoint/observability-logging-policy-update"},{"title":"إنشاء وجهة لقابلية الرصد","sidebarTitle":"إنشاء الوجهة","openapi":"ar/openapi/v1/openapi.localized.yaml POST /observability/destinations","href":"/ar/v1/api-reference/endpoint/observability-destinations-create"},{"title":"الحصول على وجهة قابلية الرصد","sidebarTitle":"الحصول على الوجهة","openapi":"ar/openapi/v1/openapi.localized.yaml GET /observability/destinations/{id}","href":"/ar/v1/api-reference/endpoint/observability-destinations-get"},{"title":"تحديث وجهة قابلية الملاحظة","sidebarTitle":"تحديث الوجهة","openapi":"ar/openapi/v1/openapi.localized.yaml PATCH /observability/destinations/{id}","href":"/ar/v1/api-reference/endpoint/observability-destinations-update"},{"title":"حذف وجهة قابلية الرصد","sidebarTitle":"حذف الوجهة","openapi":"ar/openapi/v1/openapi.localized.yaml DELETE /observability/destinations/{id}","href":"/ar/v1/api-reference/endpoint/observability-destinations-delete"},{"title":"عرض وجهات قابلية الرصد","sidebarTitle":"عرض الوجهات","openapi":"ar/openapi/v1/openapi.localized.yaml GET /observability/destinations","href":"/ar/v1/api-reference/endpoint/observability-destinations-list"},{"title":"اختبار إعدادات الوجهة","sidebarTitle":"اختبار الإعدادات","openapi":"ar/openapi/v1/openapi.localized.yaml POST /observability/destinations/test","href":"/ar/v1/api-reference/endpoint/observability-destinations-test-config"},{"title":"التحقق من اتصال الوجهة","sidebarTitle":"التحقق من الاتصال","openapi":"ar/openapi/v1/openapi.localized.yaml POST /observability/destinations/{id}/test","href":"/ar/v1/api-reference/endpoint/observability-destinations-test"},{"title":"إرسال تتبع تجريبي","sidebarTitle":"إرسال تتبع تجريبي","openapi":"ar/openapi/v1/openapi.localized.yaml POST /observability/destinations/{id}/sample","href":"/ar/v1/api-reference/endpoint/observability-destinations-sample"},{"title":"اختبار مصنّف الطلبات","sidebarTitle":"اختبار المصنّف","openapi":"ar/openapi/v1/openapi.localized.yaml POST /classifiers/test","href":"/ar/v1/api-reference/endpoint/classifiers-test"}]},{"group":"الملاحظات والتقييمات","tag":"Alpha","expanded":false,"pages":[{"title":"إنشاء ملاحظات Gateway","openapi":"ar/openapi/v1/openapi.localized.yaml POST /feedback","href":"/ar/v1/api-reference/endpoint/feedback-create"},{"title":"عرض قائمة ملاحظات Gateway","openapi":"ar/openapi/v1/openapi.localized.yaml GET /feedback","href":"/ar/v1/api-reference/endpoint/feedback-list"},{"title":"تلخيص ملاحظات Gateway","openapi":"ar/openapi/v1/openapi.localized.yaml GET /feedback/summary","href":"/ar/v1/api-reference/endpoint/feedback-summary"},{"title":"إنشاء حدث قابل للمراقبة","openapi":"ar/openapi/v1/openapi.localized.yaml POST /events","href":"/ar/v1/api-reference/endpoint/events-create"},{"title":"عرض قائمة أحداث قابلية المراقبة","openapi":"ar/openapi/v1/openapi.localized.yaml GET /events","href":"/ar/v1/api-reference/endpoint/events-list"},{"title":"إنشاء تشغيل اختبار لإعداد مسبق","openapi":"ar/openapi/v1/openapi.localized.yaml POST /preset-test-runs","href":"/ar/v1/api-reference/endpoint/preset-test-run-create"},{"title":"عرض تشغيل اختبار الإعداد المسبق","openapi":"ar/openapi/v1/openapi.localized.yaml GET /preset-test-runs/{id}","href":"/ar/v1/api-reference/endpoint/preset-test-run-get"},{"title":"تحديث تشغيل اختبار الإعداد المسبق","openapi":"ar/openapi/v1/openapi.localized.yaml PATCH /preset-test-runs/{id}","href":"/ar/v1/api-reference/endpoint/preset-test-run-update"},{"title":"عرض قائمة تشغيل اختبارات الإعدادات المسبقة","sidebarTitle":"عرض اختبارات الإعدادات المسبقة","openapi":"ar/openapi/v1/openapi.localized.yaml GET /preset-test-runs","href":"/ar/v1/api-reference/endpoint/preset-test-runs-list"}]}]},{"group":"إدارة مساحات العمل","icon":"users","pages":[{"group":"مساحات العمل","expanded":false,"pages":[{"title":"إنشاء مساحة عمل","sidebarTitle":"إنشاء مساحة عمل","openapi":"ar/openapi/v1/openapi.localized.yaml POST /workspaces","href":"/ar/v1/api-reference/endpoint/workspaces-create"},{"title":"الحصول على مساحة عمل","sidebarTitle":"الحصول على مساحة العمل","openapi":"ar/openapi/v1/openapi.localized.yaml GET /workspaces/{id}","href":"/ar/v1/api-reference/endpoint/workspaces-get"},{"title":"تحديث مساحة العمل","sidebarTitle":"تحديث مساحة العمل","openapi":"ar/openapi/v1/openapi.localized.yaml PATCH /workspaces/{id}","href":"/ar/v1/api-reference/endpoint/workspaces-update"},{"title":"حذف مساحة عمل","sidebarTitle":"حذف مساحة العمل","openapi":"ar/openapi/v1/openapi.localized.yaml DELETE /workspaces/{id}","href":"/ar/v1/api-reference/endpoint/workspaces-delete"},{"title":"عرض مساحات العمل","sidebarTitle":"عرض مساحات العمل","openapi":"ar/openapi/v1/openapi.localized.yaml GET /workspaces","href":"/ar/v1/api-reference/endpoint/workspaces-list"},{"title":"إضافة أعضاء إلى مساحة العمل","sidebarTitle":"إضافة أعضاء","openapi":"ar/openapi/v1/openapi.localized.yaml POST /workspaces/{id}/members/add","href":"/ar/v1/api-reference/endpoint/workspace-members-add"},{"title":"تحديث دور عضو مساحة العمل","sidebarTitle":"تحديث دور العضو","openapi":"ar/openapi/v1/openapi.localized.yaml PATCH /workspaces/{id}/members/{user_id}","href":"/ar/v1/api-reference/endpoint/workspace-member-role-update"},{"title":"إزالة أعضاء مساحة العمل","sidebarTitle":"إزالة الأعضاء","openapi":"ar/openapi/v1/openapi.localized.yaml POST /workspaces/{id}/members/remove","href":"/ar/v1/api-reference/endpoint/workspace-members-remove"},{"title":"عرض أعضاء مساحة العمل","sidebarTitle":"عرض الأعضاء","openapi":"ar/openapi/v1/openapi.localized.yaml GET /workspaces/{id}/members","href":"/ar/v1/api-reference/endpoint/workspace-members-list"},{"title":"إنشاء دعوة لمساحة العمل","sidebarTitle":"إنشاء دعوة","openapi":"ar/openapi/v1/openapi.localized.yaml POST /workspaces/{id}/invites","href":"/ar/v1/api-reference/endpoint/workspace-invites-create"},{"title":"حذف دعوة مساحة العمل","sidebarTitle":"حذف الدعوة","openapi":"ar/openapi/v1/openapi.localized.yaml DELETE /workspaces/{id}/invites/{invite_id}","href":"/ar/v1/api-reference/endpoint/workspace-invites-delete"},{"title":"عرض دعوات مساحة العمل","sidebarTitle":"عرض الدعوات","openapi":"ar/openapi/v1/openapi.localized.yaml GET /workspaces/{id}/invites","href":"/ar/v1/api-reference/endpoint/workspace-invites-list"},{"title":"عرض طلبات الانضمام إلى مساحة العمل","sidebarTitle":"عرض طلبات الانضمام","openapi":"ar/openapi/v1/openapi.localized.yaml GET /workspaces/{id}/join-requests","href":"/ar/v1/api-reference/endpoint/workspace-join-requests-list"},{"title":"الموافقة على طلب الانضمام إلى مساحة العمل","sidebarTitle":"الموافقة على طلب الانضمام","openapi":"ar/openapi/v1/openapi.localized.yaml POST /workspaces/{id}/join-requests/{request_id}/approve","href":"/ar/v1/api-reference/endpoint/workspace-join-request-approve"},{"title":"رفض طلب الانضمام إلى مساحة العمل","sidebarTitle":"رفض طلب الانضمام","openapi":"ar/openapi/v1/openapi.localized.yaml POST /workspaces/{id}/join-requests/{request_id}/reject","href":"/ar/v1/api-reference/endpoint/workspace-join-request-reject"},{"title":"قبول دعوة إلى مساحة عمل","sidebarTitle":"قبول الدعوة","openapi":"ar/openapi/v1/openapi.localized.yaml POST /invites/accept","href":"/ar/v1/api-reference/endpoint/invites-accept"},{"title":"عرض طلبات الانضمام الخاصة بك","sidebarTitle":"عرض طلباتك","openapi":"ar/openapi/v1/openapi.localized.yaml GET /invites/requests","href":"/ar/v1/api-reference/endpoint/invites-requests-list"},{"title":"جلب مستوى حد المعدل","sidebarTitle":"جلب مستوى حد المعدل","openapi":"ar/openapi/v1/openapi.localized.yaml GET /rate-limits/tier","href":"/ar/v1/api-reference/endpoint/rate-limits-tier-get"},{"title":"رفع مستوى حد المعدل","sidebarTitle":"رفع مستوى حد المعدل","openapi":"ar/openapi/v1/openapi.localized.yaml POST /rate-limits/tier/raise","href":"/ar/v1/api-reference/endpoint/rate-limits-tier-raise"}]},{"group":"مفاتيح API","expanded":false,"pages":[{"title":"الحصول على مفتاح API الحالي","sidebarTitle":"الحصول على مفتاح API الحالي","openapi":"ar/openapi/v1/openapi.localized.yaml GET /key","href":"/ar/v1/api-reference/endpoint/key-current"},{"title":"إنشاء مفتاح API","sidebarTitle":"إنشاء مفتاح API","openapi":"ar/openapi/v1/openapi.localized.yaml POST /keys","href":"/ar/v1/api-reference/endpoint/keys-create"},{"title":"الحصول على مفتاح API","sidebarTitle":"الحصول على مفتاح API","openapi":"ar/openapi/v1/openapi.localized.yaml GET /keys/{id}","href":"/ar/v1/api-reference/endpoint/keys-get"},{"title":"تحديث مفتاح API","sidebarTitle":"تحديث مفتاح API","openapi":"ar/openapi/v1/openapi.localized.yaml PATCH /keys/{id}","href":"/ar/v1/api-reference/endpoint/keys-update"},{"title":"تدوير مفتاح API","openapi":"ar/openapi/v1/openapi.localized.yaml POST /keys/{id}/rotate","href":"/ar/v1/api-reference/endpoint/keys-rotate"},{"title":"إبطال ذاكرة تخزين مفاتيح API","openapi":"ar/openapi/v1/openapi.localized.yaml POST /keys/{id}/invalidate","href":"/ar/v1/api-reference/endpoint/keys-invalidate"},{"title":"حذف مفتاح API","sidebarTitle":"حذف مفتاح API","openapi":"ar/openapi/v1/openapi.localized.yaml DELETE /keys/{id}","href":"/ar/v1/api-reference/endpoint/keys-delete"},{"title":"عرض مفاتيح API","sidebarTitle":"عرض مفاتيح API","openapi":"ar/openapi/v1/openapi.localized.yaml GET /keys","href":"/ar/v1/api-reference/endpoint/keys-list"},{"title":"الإبلاغ عن مفتاح API مسرّب","sidebarTitle":"الإبلاغ عن مفتاح مسرّب","openapi":"ar/openapi/v1/openapi.localized.yaml POST /security/report-leaked-key","href":"/ar/v1/api-reference/endpoint/security-report-leaked-key"},{"title":"عرض سياسات أحمال العمل الموثوقة","sidebarTitle":"عرض سياسات أحمال العمل الموثوقة","openapi":"ar/openapi/v1/openapi.localized.yaml GET /workload-identity/policies","href":"/ar/v1/api-reference/endpoint/trusted-workloads-list"},{"title":"إنشاء سياسة حمل عمل موثوق","sidebarTitle":"إنشاء سياسة حمل عمل موثوق","openapi":"ar/openapi/v1/openapi.localized.yaml POST /workload-identity/policies","href":"/ar/v1/api-reference/endpoint/trusted-workloads-create"},{"title":"الحصول على سياسة حمل عمل موثوق","sidebarTitle":"الحصول على سياسة حمل عمل موثوق","openapi":"ar/openapi/v1/openapi.localized.yaml GET /workload-identity/policies/{id}","href":"/ar/v1/api-reference/endpoint/trusted-workloads-get"},{"title":"تحديث سياسة حمل عمل موثوق","sidebarTitle":"تحديث سياسة حمل عمل موثوق","openapi":"ar/openapi/v1/openapi.localized.yaml PATCH /workload-identity/policies/{id}","href":"/ar/v1/api-reference/endpoint/trusted-workloads-update"},{"title":"حذف سياسة حمل عمل موثوق","sidebarTitle":"حذف سياسة حمل عمل موثوق","openapi":"ar/openapi/v1/openapi.localized.yaml DELETE /workload-identity/policies/{id}","href":"/ar/v1/api-reference/endpoint/trusted-workloads-delete"}]},{"group":"مفاتيح الإدارة","expanded":false,"pages":[{"title":"إنشاء مفتاح إدارة","sidebarTitle":"إنشاء مفتاح إدارة","openapi":"ar/openapi/v1/openapi.localized.yaml POST /management-keys","href":"/ar/v1/api-reference/endpoint/management-keys-create"},{"title":"الحصول على مفتاح الإدارة","sidebarTitle":"الحصول على مفتاح الإدارة","openapi":"ar/openapi/v1/openapi.localized.yaml GET /management-keys/{id}","href":"/ar/v1/api-reference/endpoint/management-keys-get"},{"title":"تحديث مفتاح الإدارة","sidebarTitle":"تحديث مفتاح الإدارة","openapi":"ar/openapi/v1/openapi.localized.yaml PATCH /management-keys/{id}","href":"/ar/v1/api-reference/endpoint/management-keys-update"},{"title":"حذف مفتاح الإدارة","sidebarTitle":"حذف مفتاح الإدارة","openapi":"ar/openapi/v1/openapi.localized.yaml DELETE /management-keys/{id}","href":"/ar/v1/api-reference/endpoint/management-keys-delete"},{"title":"عرض مفاتيح الإدارة","sidebarTitle":"عرض مفاتيح الإدارة","openapi":"ar/openapi/v1/openapi.localized.yaml GET /management-keys","href":"/ar/v1/api-reference/endpoint/management-keys-list"}]},{"group":"الأرصدة والميزانيات","expanded":false,"pages":[{"title":"عرض الأرصدة","sidebarTitle":"عرض الأرصدة","openapi":"ar/openapi/v1/openapi.localized.yaml GET /credits","href":"/ar/v1/api-reference/endpoint/credits"},{"title":"إنشاء ميزانية لمساحة العمل","sidebarTitle":"إنشاء ميزانية","openapi":"ar/openapi/v1/openapi.localized.yaml POST /budgets","href":"/ar/v1/api-reference/endpoint/budgets-create"},{"title":"الحصول على ميزانية مساحة العمل","sidebarTitle":"الحصول على الميزانية","openapi":"ar/openapi/v1/openapi.localized.yaml GET /budgets/{id}","href":"/ar/v1/api-reference/endpoint/budgets-get"},{"title":"تحديث ميزانية مساحة العمل","sidebarTitle":"تحديث الميزانية","openapi":"ar/openapi/v1/openapi.localized.yaml PATCH /budgets/{id}","href":"/ar/v1/api-reference/endpoint/budgets-update"},{"title":"حذف ميزانية مساحة العمل","sidebarTitle":"حذف الميزانية","openapi":"ar/openapi/v1/openapi.localized.yaml DELETE /budgets/{id}","href":"/ar/v1/api-reference/endpoint/budgets-delete"},{"title":"عرض ميزانيات مساحة العمل","sidebarTitle":"عرض الميزانيات","openapi":"ar/openapi/v1/openapi.localized.yaml GET /budgets","href":"/ar/v1/api-reference/endpoint/budgets-list"}]},{"group":"قواعد الإنفاق","expanded":false,"pages":[{"title":"إنشاء قاعدة إنفاق","sidebarTitle":"إنشاء قاعدة","openapi":"ar/openapi/v1/openapi.localized.yaml POST /spend-rules","href":"/ar/v1/api-reference/endpoint/spend-rules-create"},{"title":"الحصول على قاعدة إنفاق","sidebarTitle":"الحصول على قاعدة","openapi":"ar/openapi/v1/openapi.localized.yaml GET /spend-rules/{id}","href":"/ar/v1/api-reference/endpoint/spend-rules-get"},{"title":"تحديث قاعدة إنفاق","sidebarTitle":"تحديث قاعدة","openapi":"ar/openapi/v1/openapi.localized.yaml PATCH /spend-rules/{id}","href":"/ar/v1/api-reference/endpoint/spend-rules-update"},{"title":"حذف قاعدة إنفاق","sidebarTitle":"حذف قاعدة","openapi":"ar/openapi/v1/openapi.localized.yaml DELETE /spend-rules/{id}","href":"/ar/v1/api-reference/endpoint/spend-rules-delete"},{"title":"عرض قواعد الإنفاق","sidebarTitle":"عرض القواعد","openapi":"ar/openapi/v1/openapi.localized.yaml GET /spend-rules","href":"/ar/v1/api-reference/endpoint/spend-rules-list"},{"title":"معاينة قاعدة إنفاق","sidebarTitle":"معاينة قاعدة","openapi":"ar/openapi/v1/openapi.localized.yaml GET /spend-rules/{id}/preview","href":"/ar/v1/api-reference/endpoint/spend-rules-preview"},{"title":"إرسال تنبيه إنفاق تجريبي","sidebarTitle":"إرسال اختبار","openapi":"ar/openapi/v1/openapi.localized.yaml POST /spend-rules/{id}/test","href":"/ar/v1/api-reference/endpoint/spend-rules-test"},{"title":"عرض سجل قاعدة إنفاق","sidebarTitle":"سجل القاعدة","openapi":"ar/openapi/v1/openapi.localized.yaml GET /spend-rules/{id}/history","href":"/ar/v1/api-reference/endpoint/spend-rules-history"},{"title":"عرض حظر الإنفاق","sidebarTitle":"عرض الحظر","openapi":"ar/openapi/v1/openapi.localized.yaml GET /spend-blocks","href":"/ar/v1/api-reference/endpoint/spend-blocks-list"},{"title":"رفع حظر الإنفاق","sidebarTitle":"رفع الحظر","openapi":"ar/openapi/v1/openapi.localized.yaml POST /spend-blocks/{id}/lift","href":"/ar/v1/api-reference/endpoint/spend-blocks-lift"}]},{"group":"تطبيقات OAuth","expanded":false,"pages":[{"title":"إنشاء عميل OAuth","openapi":"ar/openapi/v1/openapi.localized.yaml POST /oauth-clients","href":"/ar/v1/api-reference/endpoint/oauth-clients-create"},{"title":"عرض عميل OAuth","openapi":"ar/openapi/v1/openapi.localized.yaml GET /oauth-clients/{client_id}","href":"/ar/v1/api-reference/endpoint/oauth-clients-get"},{"title":"تحديث عميل OAuth","openapi":"ar/openapi/v1/openapi.localized.yaml PATCH /oauth-clients/{client_id}","href":"/ar/v1/api-reference/endpoint/oauth-clients-update"},{"title":"إعادة إنشاء سر OAuth","openapi":"ar/openapi/v1/openapi.localized.yaml POST /oauth-clients/{client_id}/regenerate-secret","href":"/ar/v1/api-reference/endpoint/oauth-clients-regenerate-secret"},{"title":"حذف عميل OAuth","openapi":"ar/openapi/v1/openapi.localized.yaml DELETE /oauth-clients/{client_id}","href":"/ar/v1/api-reference/endpoint/oauth-clients-delete"},{"title":"عرض قائمة عملاء OAuth","openapi":"ar/openapi/v1/openapi.localized.yaml GET /oauth-clients","href":"/ar/v1/api-reference/endpoint/oauth-clients-list"},{"title":"جلب المستخدم الذي سجّل الدخول","sidebarTitle":"جلب المستخدم الحالي","openapi":"ar/openapi/v1/openapi.localized.yaml GET /me","href":"/ar/v1/api-reference/endpoint/me-get"},{"title":"جلب ملفك الشخصي","sidebarTitle":"جلب الملف الشخصي","openapi":"ar/openapi/v1/openapi.localized.yaml GET /me/profile","href":"/ar/v1/api-reference/endpoint/profile-get"},{"title":"تحديث ملفك الشخصي","sidebarTitle":"تحديث الملف الشخصي","openapi":"ar/openapi/v1/openapi.localized.yaml PATCH /me/profile","href":"/ar/v1/api-reference/endpoint/profile-update"},{"title":"عرض التطبيقات المصرّح بها","sidebarTitle":"عرض التطبيقات المصرّح بها","openapi":"ar/openapi/v1/openapi.localized.yaml GET /me/authorized-apps","href":"/ar/v1/api-reference/endpoint/authorized-apps-list"},{"title":"إزالة نطاقات من تطبيق مصرّح به","sidebarTitle":"تقليص نطاقات التطبيق","openapi":"ar/openapi/v1/openapi.localized.yaml PATCH /me/authorized-apps/{id}","href":"/ar/v1/api-reference/endpoint/authorized-apps-update-scopes"},{"title":"إلغاء تصريح تطبيق","sidebarTitle":"إلغاء تصريح التطبيق","openapi":"ar/openapi/v1/openapi.localized.yaml DELETE /me/authorized-apps/{id}","href":"/ar/v1/api-reference/endpoint/authorized-apps-revoke"}]},{"group":"SSO وSCIM","tag":"Beta","expanded":false,"pages":[{"title":"عرض SSO لمساحة العمل","openapi":"ar/openapi/v1/openapi.localized.yaml GET /identity/sso","href":"/ar/v1/api-reference/endpoint/identity-sso-get"},{"title":"تحديث SSO لمساحة العمل","openapi":"ar/openapi/v1/openapi.localized.yaml PUT /identity/sso","href":"/ar/v1/api-reference/endpoint/identity-sso-update"},{"title":"عرض SCIM لمساحة العمل","openapi":"ar/openapi/v1/openapi.localized.yaml GET /identity/scim","href":"/ar/v1/api-reference/endpoint/identity-scim-get"},{"title":"تحديث SCIM لمساحة العمل","openapi":"ar/openapi/v1/openapi.localized.yaml PUT /identity/scim","href":"/ar/v1/api-reference/endpoint/identity-scim-update"},{"title":"إنشاء رمز SCIM","openapi":"ar/openapi/v1/openapi.localized.yaml POST /identity/scim/tokens","href":"/ar/v1/api-reference/endpoint/identity-scim-token-create"},{"title":"إلغاء رمز SCIM","openapi":"ar/openapi/v1/openapi.localized.yaml DELETE /identity/scim/tokens/{id}","href":"/ar/v1/api-reference/endpoint/identity-scim-token-revoke"},{"title":"عرض قائمة أحداث تدقيق SCIM","openapi":"ar/openapi/v1/openapi.localized.yaml GET /identity/scim/audit","href":"/ar/v1/api-reference/endpoint/identity-scim-audit-list"}]},{"group":"الدليل والأقسام","tag":"Beta","expanded":false,"pages":[{"title":"عرض دليل مساحة العمل","openapi":"ar/openapi/v1/openapi.localized.yaml GET /identity/directory","href":"/ar/v1/api-reference/endpoint/identity-directory-get"},{"title":"تحديث عضو الدليل","openapi":"ar/openapi/v1/openapi.localized.yaml PUT /identity/directory/members/{id}","href":"/ar/v1/api-reference/endpoint/identity-directory-member-update"},{"title":"إنشاء قسم لمساحة العمل","openapi":"ar/openapi/v1/openapi.localized.yaml POST /identity/departments","href":"/ar/v1/api-reference/endpoint/identity-department-create"},{"title":"تحديث قسم مساحة العمل","openapi":"ar/openapi/v1/openapi.localized.yaml PATCH /identity/departments/{id}","href":"/ar/v1/api-reference/endpoint/identity-department-update"},{"title":"حذف قسم مساحة العمل","openapi":"ar/openapi/v1/openapi.localized.yaml DELETE /identity/departments/{id}","href":"/ar/v1/api-reference/endpoint/identity-department-delete"},{"title":"عرض قائمة أقسام مساحة العمل","openapi":"ar/openapi/v1/openapi.localized.yaml GET /identity/departments","href":"/ar/v1/api-reference/endpoint/identity-departments-list"},{"title":"تعيين عضوية القسم","openapi":"ar/openapi/v1/openapi.localized.yaml PUT /identity/departments/{departmentId}/members/{userId}","href":"/ar/v1/api-reference/endpoint/identity-department-member-set"},{"title":"حذف عضوية القسم","openapi":"ar/openapi/v1/openapi.localized.yaml DELETE /identity/departments/{departmentId}/members/{userId}","href":"/ar/v1/api-reference/endpoint/identity-department-member-delete"},{"title":"إنشاء تعيين مجموعة الدليل","openapi":"ar/openapi/v1/openapi.localized.yaml POST /identity/group-mappings","href":"/ar/v1/api-reference/endpoint/identity-group-mapping-create"},{"title":"تحديث تعيين مجموعة الدليل","openapi":"ar/openapi/v1/openapi.localized.yaml PATCH /identity/group-mappings/{id}","href":"/ar/v1/api-reference/endpoint/identity-group-mapping-update"},{"title":"حذف تعيين مجموعة الدليل","openapi":"ar/openapi/v1/openapi.localized.yaml DELETE /identity/group-mappings/{id}","href":"/ar/v1/api-reference/endpoint/identity-group-mapping-delete"},{"title":"عرض قائمة تعيينات مجموعات الدليل","openapi":"ar/openapi/v1/openapi.localized.yaml GET /identity/group-mappings","href":"/ar/v1/api-reference/endpoint/identity-group-mappings-list"}]},{"group":"الإشعارات","expanded":false,"pages":[{"title":"عرض إعدادات الإشعارات","openapi":"ar/openapi/v1/openapi.localized.yaml GET /notifications/settings","href":"/ar/v1/api-reference/endpoint/notifications-settings-get"},{"title":"تحديث إعدادات الإشعارات","openapi":"ar/openapi/v1/openapi.localized.yaml PATCH /notifications/settings","href":"/ar/v1/api-reference/endpoint/notifications-settings-update"},{"title":"إنشاء وجهة إشعارات","openapi":"ar/openapi/v1/openapi.localized.yaml POST /notifications/destinations","href":"/ar/v1/api-reference/endpoint/notifications-destination-create"},{"title":"اختبار إعداد الوجهة","openapi":"ar/openapi/v1/openapi.localized.yaml POST /notifications/destinations/test","href":"/ar/v1/api-reference/endpoint/notifications-destination-config-test"},{"title":"اختبار وجهة الإشعارات","openapi":"ar/openapi/v1/openapi.localized.yaml POST /notifications/destinations/{id}/test","href":"/ar/v1/api-reference/endpoint/notifications-destination-test"},{"title":"تدوير سر webhook الإشعارات","openapi":"ar/openapi/v1/openapi.localized.yaml POST /notifications/destinations/{id}/rotate-secret","href":"/ar/v1/api-reference/endpoint/notifications-destination-rotate-secret"},{"title":"حذف وجهة إشعارات","openapi":"ar/openapi/v1/openapi.localized.yaml DELETE /notifications/destinations/{id}","href":"/ar/v1/api-reference/endpoint/notifications-destination-delete"},{"title":"عرض قائمة وجهات الإشعارات","openapi":"ar/openapi/v1/openapi.localized.yaml GET /notifications/destinations","href":"/ar/v1/api-reference/endpoint/notifications-destinations-list"},{"title":"عرض قائمة مسارات الإشعارات","openapi":"ar/openapi/v1/openapi.localized.yaml GET /notifications/routes","href":"/ar/v1/api-reference/endpoint/notifications-routes-list"},{"title":"تحديث مسار الإشعارات","openapi":"ar/openapi/v1/openapi.localized.yaml PUT /notifications/routes/{eventKind}","href":"/ar/v1/api-reference/endpoint/notifications-route-update"}]},{"group":"التطبيقات","expanded":false,"pages":[{"title":"عرض قائمة تطبيقات مساحة العمل","openapi":"ar/openapi/v1/openapi.localized.yaml GET /apps","href":"/ar/v1/api-reference/endpoint/apps-list"},{"title":"تحديث تطبيق مساحة العمل","openapi":"ar/openapi/v1/openapi.localized.yaml PATCH /apps/{id}","href":"/ar/v1/api-reference/endpoint/app-update"},{"title":"دمج تطبيقات مساحة العمل","openapi":"ar/openapi/v1/openapi.localized.yaml POST /apps/{id}/merge","href":"/ar/v1/api-reference/endpoint/app-merge"}]},{"group":"المساهمة بالبيانات","expanded":false,"pages":[{"title":"عرض إعدادات المساهمة بالبيانات","openapi":"ar/openapi/v1/openapi.localized.yaml GET /data-contribution","href":"/ar/v1/api-reference/endpoint/data-contribution-get"},{"title":"تحديث الموافقة على المساهمة بالبيانات","openapi":"ar/openapi/v1/openapi.localized.yaml PATCH /data-contribution/consent","href":"/ar/v1/api-reference/endpoint/data-contribution-consent-update"},{"title":"إنشاء مصنّف مساهمات البيانات","openapi":"ar/openapi/v1/openapi.localized.yaml POST /data-contribution/classifiers","href":"/ar/v1/api-reference/endpoint/data-contribution-classifier-create"},{"title":"تحديث مصنّف مساهمات البيانات","openapi":"ar/openapi/v1/openapi.localized.yaml PATCH /data-contribution/classifiers/{id}","href":"/ar/v1/api-reference/endpoint/data-contribution-classifier-update"},{"title":"حذف مصنّف مساهمات البيانات","openapi":"ar/openapi/v1/openapi.localized.yaml DELETE /data-contribution/classifiers/{id}","href":"/ar/v1/api-reference/endpoint/data-contribution-classifier-delete"}]}]}]},{"tab":"SDK العميل","icon":"package","menu":[{"item":"AI SDK من Vercel","icon":"https://mintlify.s3.us-west-1.amazonaws.com/aistats/icons/brands/vercel.svg","pages":[{"title":"AI SDK من Vercel","href":"/ar/v1/sdk-reference/sdk/ai-sdk"}]},{"item":"حزم Phaseo SDK","icon":"code","pages":[{"title":"حزم Phaseo SDK","href":"/ar/v1/sdk-reference/client/overview"}]}],"pages":[{"title":"SDK العميل","href":"/ar/v1/sdk-reference/sdk/ai-sdk"}]},{"tab":"حزمة SDK للوكلاء","icon":"bot","pages":[{"title":"حزمة SDK للوكلاء","href":"/ar/v1/sdk-reference/agent/overview"}]},{"tab":"دليل الوصفات","icon":"chef-hat","pages":[{"title":"دليل الوصفات","href":"/ar/v1/cookbook"}]},{"tab":"سجل التغييرات","icon":"history","pages":[{"title":"سجل التغييرات","href":"/ar/v1/changelog"}]}]}]},"basePath":"","title":"إنشاء رسالة - Phaseo Docs","buildId":"dpl_5Wnaxc3m8t3HZwdvwe36fSBdcT12","deploymentId":"dpl_5Wnaxc3m8t3HZwdvwe36fSBdcT12","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-sRLpiqpE.js","utils-S4bU2zRv.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-BC7mpg-s.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-DTEUL5hG.js","snippetPresets-DXO56z8S.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","Page-SC_m0zVE.js","ApiExamples-CuiF8xsJ.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-ToTaBa32.js","shallow-Bw_UfCTY.js","getApiPlaygroundDisplay-BFcVyT7w.js","CodeSnippet-DWwGgYk5.js","CodeSnippets-hAOKmdpX.js","getPastedJson-Q2Yr4e7m.js","icon-CJxLAsPX.js","MethodPill-DBZG10H9.js","DuplicateIcon-BJD7Hrp4.js","createIcon-ja-oQVJo.js","DynamicMarkdown-CKZBuKr4.js","SectionHeading-L-1JTZQZ.js","axios-vUo_bRtp.js","Markdown-Z1l8BMeJ.js","dist-B4nDkaYj.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","katex-YMM-FMeD.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js","AssistantPageLink-ilslkC03.js"]}