API 库 / Zendesk Conversations
Zendesk Conversations 基于 Sunshine Conversations 能力,帮助企业在 Web、移动端和第三方消息渠道中统一管理客户对话,并通过 API 读取和操作用户、会话、消息和集成相关数据。使用 API 前,管理员需要在 Zendesk Admin Center 中创建 Conversations API key,并将 App ID、Key ID 和 Secret Key 提供给集成连接使用。
预置 API
- Update WebhookUpdates the specified webhook associated with a Sunshine Conversations Connect integration or a custom integration.
- Update UserUpdates a user.
- Update Switchboard IntegrationUpdates a switchboard integration record.
- Update SwitchboardUpdates a switchboard record.
- Update IntegrationAllows you to update certain fields of existing integrations. If updating a specific property is not supported, you must delete the integration and re-create it with the new data.
- Update ConversationUpdates a conversation record.
- Update AppUpdates an app.
- Synchronize UserSynchronize a messaging user with its core Zendesk user counterpart. Messaging users are separate objects linked to a core Zendesk user record by `zendeskId`. It is possible for changes to be made ...
- Release ControlThe releaseControl action releases the control of the conversation by nullifying its switchboard state. For more information, see the [switchboard guide](https://developer.zendesk.com/documentation...
- Post MessageSend a message in a particular conversation.
- Post Conversion EventsThis API can be used to track your end user's interactions with third party channels.
- Post ActivityNotify Sunshine Conversations of different conversation activities. Supported activity types are: * Typing activity * Conversation read event
- Pass ControlThe passControl action marks the selected switchboard integration as active and transitions all the other switchboard integrations to standby status. For information about the idempotency of this A...
- Offer ControlThe offerControl action will invite a switchboard integration to accept control of the conversation (changing its status to pending), and trigger a webhook signal to that integration indicating tha...
- Leave ConversationRemoves a user from a conversation using either their userId, userExternalId, or participantId.
- Download Message RefWhen a third party channel provides a reference of a data, this API can be used to download the reference and fetch the full data. Currently, only apple channel is supported.
- Delete AttachmentRemove an attachment uploaded to Sunshine Conversations through the Upload attachment API. See [Attachments for Messages](#section/Attachments-for-Messages) to have attachments automatically delete...
- Create WebhookCreates a new webhook associated with a Sunshine Conversations Connect integration or a custom integration.
- Create UserCreates a new user.
- Create Switchboard IntegrationCreate a switchboard integration.
- Create Integration KeyCreates an API key for the specified custom integration. The response body will include a secret as well it’s corresponding id, which you can use to generate JSON Web Tokens to securely make API ca...
- Create IntegrationThe Create Integration endpoint allows you to provision apps with front-end messaging channels. Selecting a `custom` integration allows the creation of webhooks.
- Create ConversationCreate a conversation for the specified user(s).
- Create ClientCreate a client and link it to a channel specified by the `matchCriteria.type`. Note that the client is initially created with a `pending` status. The status of the linking request can be tracked b...
- Accept ControlThe acceptControl action transfers the control of the conversation to the pending switchboard integration. When using integration auth scope, a 403 is returned if the pending switchboard integratio...
- Upload AttachmentUpload an attachment to Sunshine Conversations to use in future messages. Files are uploaded using the multipart/form-data content type. Use the returned mediaUrl to send a file, image or carousel ...
- Remove ClientRemove a particular client and unsubscribe it from all connected conversations.
- List WebhooksLists all webhooks for a given Sunshine Conversations Connect integration or custom integration.
- List Switchboard IntegrationsLists all switchboard integrations linked to the switchboard.
- List ParticipantsLists all the participants of a particular conversation. This API is paginated through [cursor pagination](#section/Introduction/API-Pagination-and-Records-Limits). ```shell /v2/apps/:appId/conver...
- List MessagesList all messages for a particular conversation. This API is paginated through [cursor pagination](#section/Introduction/API-Pagination-and-Records-Limits), in the _backwards_ direction, with the m...
- List Integration KeysLists all API keys for a given integration.
- List DevicesGet all the devices for a particular user. The Devices are sorted based on last seen time.
- List ClientsGet all the clients for a particular user, including both linked clients and pending clients. This API is paginated through [cursor pagination](#section/Introduction/API-Pagination-and-Records-Limi...
- Join ConversationAdds a user to a conversation using either their userId or userExternalId. The endpoint only supports adding a participant to a sdkGroup conversation.
- Get WebhookGets the specified webhook associated with a Sunshine Conversations Connect integration or a custom integration.
- Get Integration KeyGet the specified API key.
- Get UserFetches an individual user.
- Get IntegrationGet integration.
- Get ConversationFetches an individual conversation.
- Get DeviceFetches a specific Device.
- Delete WebhookDeletes the specified webhook associated with a Sunshine Conversations Connect integration or a custom integration.
- Delete User Personal InformationDelete a user’s personal information. Calling this API will clear `givenName`, `surname`, `email` and `avatarUrl` and every custom property for the specified user. For every client owned by the use...
- Delete Switchboard IntegrationDeletes the switchboard integration. If the deleted switchboard integration had an active status for some conversations, the active switchboard integration will be re-selected following the <a href...
- Delete UserDelete a user, its clients and its conversation history. The user is considered completely deleted once the `user:delete` webhook is fired. To only delete a user’s personal information, see [Delete...
- Delete MessageDelete a single message of a particular conversation.
- Delete SwitchboardDeletes the switchboard and all its switchboard integrations. The integrations linked to these switchboard integrations are not deleted and will start receiving all conversation events.
- Delete IntegrationDelete the specified integration.
- Delete Integration KeyRemoves an API key.
- Delete ConversationDelete an entire conversation record, along with its messages and attachments. Note that the default conversation cannot be deleted, but the messages contained [can be](#operation/DeleteAllMessages).
- Delete All MessagesDelete all messages of a particular conversation.
- List UsersLists users by their email identity. The `identities.email` filter parameter is required, and it will match users based on emails found in the `identities` array. This endpoint will not match again...
- List SwitchboardsLists all switchboards belonging to the app.
- List IntegrationsList available integrations. This API is paginated through [cursor pagination](#section/Introduction/API-Pagination-and-Records-Limits). ```shell /v2/apps/:appId/integrations?page[after]=5e16067625...
- List ConversationsLists all conversations that a user is part of. This API is paginated through [cursor pagination](#section/Introduction/API-Pagination-and-Records-Limits). ```shell /v2/apps/:appId/conversations?fi...
- Get AppFetches an individual app.
- Create SwitchboardCreate a switchboard.
未找到匹配的接口
对接说明
官方网站:https://www.zendesk.com/
API 文档:https://developer.zendesk.com/documentation/conversations/getting-started/api-authentication/
如何开始使用 Zendesk Conversations?
1. 以 Zendesk 管理员身份进入 Admin Center,打开 Apps and integrations > APIs > Conversations API。

2. 点击 Create API key,输入便于识别的密钥名称,然后继续创建新的 Conversations API key。

3. 复制 App ID。App ID 用于标识当前 Zendesk Conversations app,API 路径通常会包含 /sc/v2/apps/{app_id}。

4. 复制 Key ID 和 Secret Key。使用 Basic authentication 时,Key ID 作为用户名,Secret Key 作为密码;请妥善保存 Secret Key。

最后,在连接设置中填写调用 API 所需的对应参数信息。