# Get incoming message capabilities

```{raw} html
<div class="mo-api-page-show-toc" aria-hidden="true"></div>
```

Get incoming message capabilities.

```text
GET https://api.moi.matrixorigin.cn/v5/workspaces/{workspace_id}/ingress-capabilities
```

## Before you call this API

Prepare a personal access token with access to the target Workspace and permission for the operation. The path Workspace must match X-Workspace-ID. Examples use jq. See [Shared information](objects.md) for variables, objects, and states.

## Request example

:::::::{div} mo-api-tabs
::::::{tab-set}
:::::{tab-item} Request example

```bash
curl -X GET "https://api.moi.matrixorigin.cn/v5/workspaces/$WORKSPACE_ID/ingress-capabilities" \
  -H "X-API-Key: $AI_STUDIO_API_KEY" \
  -H "X-Workspace-ID: $WORKSPACE_ID"
```

:::::
:::::{tab-item} Parameters

Returns supported provider/channel_type/receive_modes combinations. This does not establish that current provider credentials, networking, receivers, or production functionality are ready.

This operation does not accept a request body.

:::::
::::::
:::::::

## Successful response

:::::::{div} mo-api-tabs mo-api-response-tabs
::::::{tab-set}
:::::{tab-item} Response example

```json
{
  "code": 0,
  "data": {
    "items": [
      {
        "provider": "slack",
        "channel_type": "slack_app",
        "receive_modes": [
          "callback",
          "managed_stream"
        ]
      }
    ]
  }
}
```

:::::
:::::{tab-item} Fields

| Field | Type | Description |
| --- | --- | --- |
| `code` | integer | 0 on success. |
| `data` | object | Result object; see the shared object descriptions for fields. |

:::::
::::::
:::::::

## Error responses

Handle HTTP status, business results, and error fields separately. See [Errors and environments](objects.md#错误与环境). On source or version conflicts, read the current state; do not automatically retry with a different identity, resource, or request ID.
