انتقل إلى المحتوى
قائمة الوثائق

ما تدعمه كل قناة

GET /v1/channels/capabilities — ما تدعمه كل قناة

.md
الطريقةالمسارالصلاحيةإجراء MCP
GET/v1/channels/capabilitiestickets:readlist_channel_capabilities

الوصف

Per channel type: what can be sent (text, files and their kinds and sizes), the text limit, the reply window and what may go out after it, the actions on public items and the delivery statuses reported; and, per conversation kind, the composer, the text limit in the unit the channel counts, each file kind’s limits, the private reply, message actions, the identity, how a ticket may be started and whether the AI agent may reply. The composer offers only these.

الاعتماد

أرسل Authorization: Bearer <key> بمفتاح أو تطبيق OAuth يملك الصلاحية tickets:read. مفتاح الاختبار rbk_test_… يعمل على فضاء الاختبار دون أثر على العملاء.

المعاملات

الاسمالموضعالنوعمطلوبالوصف
Rabt-Organizationheaderstring (uuid)لاThe organization the request acts in (its id). Needed with a session, and with a personal key or app that acts in several organizations (API-8155); it must be one of the credential's (API-8105).

الاستجابات

الحالةالوصفالمخطط
200The capabilities.ChannelCapabilitiesList
400AUTH-1041: no organization was named (send its id in the Rabt-Organization header). API-8155: the personal key or app acts in several organizations and the request named none.ProblemDetails
401AUTH-1001: not signed in, or the session has ended. API-8101: the API key or access token is not valid.ProblemDetails
403AUTH-1040: you are not a member of the organization named. API-8102: the API key or app lacks the tickets:read scope. API-8105: the Rabt-Organization header names an organization the API key or app does not act in.ProblemDetails
422API-8001: some fields are missing or not valid. details.fields lists each invalid field with its own code (e.g. API-8002 required, API-8012 wrong format).ProblemDetails
429API-8004: a rate limit quota is used up (see RateLimit). Try again after Retry-After seconds.ProblemDetails
defaultAny other error, with its code: e.g. API-8005 the body is not valid JSON, API-8006 the body is too large, API-8007 the body is not JSON, API-8008 no such endpoint, API-8009 the request cannot be read, API-8010 the request took too long, API-8022 or API-8023 the body compression or character set is not supported, AUTH-1014 a change sent with the session cookie (or a sign-in) that does not come from a Rabt web page, SYS-1002 or SYS-1011 a dependency is unreachable, SYS-1041 the organization is using its full share of the server, SYS-1042 the server is overloaded (retry after Retry-After), SYS-1070 Rabt is in read-only mode during an incident (changes are refused; reading works), SYS-1071 a non-essential feature (search) is paused during an incident, SYS-9000 an unexpected error.ProblemDetails

مثال على الاستجابة (200)

{
  "data": [
    {
      "channel_type": "whatsapp",
      "kinds": [
        "private"
      ],
      "composer": "chat",
      "send": {
        "text": true,
        "media": [
          "image"
        ],
        "location": true,
        "contacts": true,
        "poll": true,
        "poll_limits": {
          "min_options": 1,
          "max_options": 1,
          "option": 1,
          "question": 1
        },
        "share": true,
        "heart": true,
        "interactive": true,
        "reaction": true,
        "quote": true,
        "template": true,
        "email": true
      },
      "max_text_length": 1,
      "max_attachment_bytes": 1,
      "reply_window": {
        "hours": 1,
        "outside": "template"
      },
      "public_actions": [
        "reply"
      ],
      "statuses": [
        "sent"
      ],
      "conversations": {
        "private": {
          "composer": "chat",
          "text": {
            "max": 1,
            "unit": "code_points"
          },
          "caption_max": 1,
          "media": [
            {
              "kind": "image",
              "max_bytes": 1,
              "mime_types": [
                "example"
              ],
              "caption": true
            }
          ],
          "max_attachments": 1,
          "max_total_bytes": 1,
          "voice_note": true,
          "fixed_subject": true,
          "limit_codes": {
            "text": "Hello, how can we help?",
            "attachments": "example"
          },
          "album": {
            "kinds": [
              "image"
            ],
            "max_items": 1
          },
          "preparation": {
            "id": "example",
            "image": {
              "accept": [
                "example"
              ],
              "max_bytes": 1,
              "max_bytes_by_type": {
                "key": 1
              },
              "stickers": {
                "accept": [
                  "example"
                ],
                "max_bytes": 1
              }
            },
            "video": {
              "accept": [
                "example"
              ],
              "max_bytes": 1,
              "max_duration_ms": 1,
              "max_width": 1,
              "max_height": 1,
              "codecs": {
                "video": [
                  "example"
                ],
                "audio": [
                  "example"
                ]
              }
            },
            "audio": {
              "accept": [
                "example"
              ],
              "max_bytes": 1,
              "codecs_by_type": {
                "key": [
                  "example"
                ]
              },
              "target": "ogg_opus"
            },
            "document": {
              "accept": [
                "example"
              ],
              "max_bytes": 1
            }
          }
        },
        "public": {
          "composer": "chat",
          "text": {
            "max": 1,
            "unit": "code_points"
          },
          "caption_max": 1,
          "media": [
            {
              "kind": "image",
              "max_bytes": 1,
              "mime_types": [
                "example"
              ],
              "caption": true
            }
          ],
          "max_attachments": 1,
          "max_total_bytes": 1,
          "voice_note": true,
          "fixed_subject": true,
          "limit_codes": {
            "text": "Hello, how can we help?",
            "attachments": "example"
          },
          "album": {
            "kinds": [
              "image"
            ],
            "max_items": 1
          },
          "preparation": {
            "id": "example",
            "image": {
              "accept": [
                "example"
              ],
              "max_bytes": 1,
              "max_bytes_by_type": {
                "key": 1
              },
              "stickers": {
                "accept": [
                  "example"
                ],
                "max_bytes": 1
              }
            },
            "video": {
              "accept": [
                "example"
              ],
              "max_bytes": 1,
              "max_duration_ms": 1,
              "max_width": 1,
              "max_height": 1,
              "codecs": {
                "video": [
                  "example"
                ],
                "audio": [
                  "example"
                ]
              }
            },
            "audio": {
              "accept": [
                "example"
              ],
              "max_bytes": 1,
              "codecs_by_type": {
                "key": [
                  "example"
                ]
              },
              "target": "ogg_opus"
            },
            "document": {
              "accept": [
                "example"
              ],
              "max_bytes": 1
            }
          }
        }
      },
      "window": {
        "hours": 1,
        "free_entry_hours": 1,
        "tag": {
          "hours": 1,
          "human_only": true
        },
        "budget": {
          "max_messages": 1,
          "exceeded": "example"
        },
        "outside": "template",
        "enforced": "queue",
        "codes": {
          "closed": "example",
          "automatic_closed": "example"
        }
      },
      "private_reply": {
        "within_hours": 1,
        "per_comment": 1,
        "text_only": true,
        "codes": {
          "already_sent": "example",
          "expired": "example",
          "not_a_comment": "example",
          "text_only": "example"
        }
      },
      "thread_context": {
        "max_items": 1
      },
      "private_conversation": {
        "via": "private_reply"
      },
      "actions": {
        "reaction": {
          "send": true,
          "receive": true
        },
        "typing": {
          "send": true,
          "with_read": true,
          "from_room": true
        },
        "mark_read": true,
        "edits": {
          "receive": true,
          "new_id": true,
          "own": true,
          "own_window_minutes": 1
        },
        "deletes": {
          "receive": true,
          "own": {
            "private": [
              "for_me"
            ],
            "public": [
              "for_me"
            ]
          }
        },
        "media_retry": {
          "kept_hours": 1
        }
      },
      "identity": "phone",
      "starts_with": "any",
      "ai_replies": true,
      "exclusive_account": true,
      "block_by_handle": true,
      "profile_photo": true,
      "phone_addressed": true,
      "end_to_end": {
        "source_ref_prefix": "example"
      },
      "group_chats": true,
      "replies_by_email": true,
      "replies_via": "contact_channels",
      "threading": "thread",
      "public_tickets": "conversation",
      "max_poll_gap_hours": 1,
      "catch_up": true
    }
  ]
}

الأخطاء

استدعِها

curl -X GET 'https://api.rabt.systems/v1/channels/capabilities' \
  -H "Authorization: Bearer $RABT_API_KEY"

عبر MCP

الإجراء list_channel_capabilities هو نفس العملية بصلاحياتها وأخطائها (انظر دليل MCP).

{
  "action": "list_channel_capabilities",
  "params": {}
}