> ## Documentation Index
> Fetch the complete documentation index at: https://docs.messagedesk.com/llms.txt
> Use this file to discover all available pages before exploring further.

# API reference

> How to read the MessageDesk Developer API reference and try requests from the playground.

# API reference

Endpoints are grouped the way integrations use them: **Context lookups**, **Actions** and **Triggers**.

> [!NOTE]
>
> **Paths are namespaced by provider.** Every endpoint here lives under `/integrations/developer/zapier`, the namespace for the only provider supported today. Additional namespaces will follow when general API access opens up; the request and response shapes are designed to stay the same.

***

## Using the playground

1. Paste an OAuth 2.0 access token into the **Authorization** field. See [Authentication](https://docs.messagedesk.com/developer/authentication.md) for how tokens are issued.
2. Fill in the body or query fields and send. Required fields are marked. `developerProvider` names the calling provider and is `zapier` for the endpoints listed here.

***

## Zapier steps and their endpoints

Zapier is the only provider today, so a Zap's task history is the most common place you'll meet these endpoints. Each step is one request. Setup questions belong in the [Zapier integration guide](https://docs.messagedesk.com/integrations/zapier.md); this table is for matching a step to its reference page.

| Zapier step | Endpoint |
| - | - |
| **Workspace Name** dropdown | [List my workspaces](https://docs.messagedesk.com/developer/api-reference/endpoints/list-my-workspaces.md) |
| **From** dropdown | [List outbound channels](https://docs.messagedesk.com/developer/api-reference/endpoints/list-outbound-channels.md) |
| **Mentions** dropdown | [List workspace users](https://docs.messagedesk.com/developer/api-reference/endpoints/list-workspace-users.md) |
| Custom fields on contact steps | [List contact properties](https://docs.messagedesk.com/developer/api-reference/endpoints/list-contact-properties.md) |
| **Send Message** | [Send a message](https://docs.messagedesk.com/developer/api-reference/endpoints/send-a-message.md) |
| **Send Group Message** | [Send a group message](https://docs.messagedesk.com/developer/api-reference/endpoints/send-a-group-message.md) |
| **Send Broadcast Message** | [Send a broadcast](https://docs.messagedesk.com/developer/api-reference/endpoints/send-a-broadcast.md) |
| **Create or Update Contact** | [Create or update a contact](https://docs.messagedesk.com/developer/api-reference/endpoints/create-or-update-a-contact.md) |
| **Create Comment** | [Create a comment](https://docs.messagedesk.com/developer/api-reference/endpoints/create-a-comment.md) |
| **Create Opt Out** | [Create an opt out](https://docs.messagedesk.com/developer/api-reference/endpoints/create-an-opt-out.md) |
| **Find or Create Contact** | [Find contacts](https://docs.messagedesk.com/developer/api-reference/endpoints/find-contacts.md), then [Create a contact](https://docs.messagedesk.com/developer/api-reference/endpoints/create-a-contact.md) if there's no match |
| **Find or Create Conversation** | [Find conversations](https://docs.messagedesk.com/developer/api-reference/endpoints/find-conversations.md), then [Create a conversation](https://docs.messagedesk.com/developer/api-reference/endpoints/create-a-conversation.md) if there's no match |
| Turning a Zap on or off | [Subscribe to an event](https://docs.messagedesk.com/developer/api-reference/endpoints/subscribe-to-an-event.md), [Unsubscribe from an event](https://docs.messagedesk.com/developer/api-reference/endpoints/unsubscribe-from-an-event.md) |
| Trigger sample data | The matching **Sample ...** endpoint under Triggers. Real recent records, or generated placeholders when the workspace has none, in exactly the webhook's shape. |

***

## Reading the schemas

* Names are prefixed with the internal package that defines them (`developer.`, `entities.`, `enums.`). The prefix has no meaning on the wire.
* **`entities.*`** schemas are full records as MessageDesk stores them and include nested relationships. Context lookups return them; actions return the smaller **`developer.*Response`** shapes.
* Fields typed as `object` with no properties accept or return arbitrary JSON, for example a contact's custom `properties`.

***

## Download

* [openapi.json](https://docs.messagedesk.com/developer/api-reference/openapi.json)
* [openapi.yaml](https://docs.messagedesk.com/developer/api-reference/openapi.yaml)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.