الانتقال إلى المحتوى الرئيسي
GET
curl
واجهة List Conversations API في Didit تُرجع محادثات تطبيقك، ولكل محادثة العضو الذي يملكها وعدد الردود غير المقروءة. المحادثة تجمع كل الرسائل المتبادلة مع شخص واحد، عبر كل القنوات.
صفِّ النتائج باستخدام status (open أو needs_reply أو closed) وassignee، وقسِّمها إلى صفحات باستخدام limit وoffset. يأخذ assignee معرّف عضو، تمامًا كما يظهر في حقل assignee الخاص بالمحادثة، ولا يعرض إلا المحادثات المعيّنة لذلك العضو. يحسب unread_count الردود التي وصلت منذ آخر مرة قُرئت فيها المحادثة عبر read_up_to، وهو يتبع المحادثة لا العضو. يحتاج مفتاح API محدد النطاق إلى صلاحية القراءة للرسائل والجلسات، وتنطبق عليه حدود سير العمل وحدود الجلسات المقتصرة على الجلسات المقبولة: أي محادثة خارج هذه الحدود تُستبعد من القائمة. ذات صلة: تعيين محادثة أو وضع علامة عليها كمقروءة وإضافة عنوان URL للاشتراك في أحداث محادثة واحدة.

التفويضات

x-api-key
string
header
مطلوب

Your application's API key, from Developers -> API keys in the Business Console. The primary key has full access. A named key can be scoped: none, read or write per resource, limited to some workflows or to approved sessions, to a list of IP addresses, and to an expiry date. 401 means the key is wrong, revoked or expired; 403 means no key was sent, the key has no access to this resource or action, or the request came from an address outside its IP list; 404 on a session route means the session is outside the key's workflows or statuses. A key without media access receives image, video and PDF URLs as null, and a key without sessions write receives session links and tokens as null. See https://docs.didit.me/console/api-keys.

معلمات الاستعلام

status
enum<string>

needs_reply: the person wrote last and nobody answered yet. closed: a team member closed the thread.

الخيارات المتاحة:
open,
needs_reply,
closed
assignee
string

A member's id, exactly as assignee shows it on a conversation: only the conversations assigned to that member are listed. The value is compared as it is; this operation takes your application's credential, which has no member behind it.

Maximum string length: 64
limit
integer
افتراضي:20
النطاق المطلوب: 1 <= x <= 100
offset
integer
افتراضي:0
النطاق المطلوب: x >= 0

الاستجابة

A page of conversations.

count
integer
مطلوب
next
string<uri> | null
مطلوب
previous
string<uri> | null
مطلوب
results
object[]
مطلوب
آخر تعديل في ٢٤ نوفمبر ٢٠٢٦