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

# Connectors

> Discover external service connectors, link workspace accounts via OAuth or credentials, and scope which connections a project can read.

The **Connectors** API distinguishes two concepts:

* **Connector (`connector_id`)** — A supported catalog service (`github`, `notion`, `google-drive`, `getty`, `s3`, or social platforms such as `youtube`, `instagram`, `tiktok`, `x`, `linkedin`). Returned by `GET /connectors` with its auth method (`oauth` or `credentials`), exact `input_schema`, and `permission_options`.
* **Connection (`id`)** — A specific authenticated account connected to your workspace (UUID, returned by `GET /connections`). Pass connection `id`s—not `connector_id`s—when scoping a [Project](https://docs.motion.so/api/projects) (`connectors: [{ id, actions }]`) or drafting a [Social post](https://docs.motion.so/api/social-posting) (`connection_id`).

> [!NOTE]
>
> **Required scopes:** `motion:connectors:read` to discover connectors and list/read connections; `motion:connectors:write` to connect or disconnect accounts.

## Authentication models & project scoping

* **OAuth connectors** (`github`, `notion`, `google-drive`, and social platforms): `POST /connections` returns `status: "pending_authorization"` and an `authorization_url` for a user to approve in a browser.
* **Credential connectors** (`getty`, `s3`): `POST /connections` verifies submitted `credentials` immediately and returns `status: "connected"`. Secrets are encrypted at rest and never returned.
* **Project scoping:** On `POST /projects` or `POST /projects/{id}/messages`, omit `connectors` to keep the current selection, pass `[{ "id": "CONNECTION_UUID", "actions": [...] }]` to restrict to specific accounts/actions, or pass `[]` to disable all connectors.

## The Connection object

```json theme={null}
{
  "connection": {
    "id": "6f1c0c1e-2b8a-4c55-9a51-0b6c1f0f7d10",
    "connector_id": "github",
    "scope": "organization",
    "visibility": "private",
    "organization_id": "org_123",
    "workspace_id": "9f8e7d6c-5b4a-4321-8765-abcdef012345",
    "name": "acme-inc",
    "status": "connected",
    "can_use": true,
    "capabilities": {
      "repositories": true,
      "code": true
    },
    "permission_options": [
      { "id": "repositories", "label": "Repositories", "write": false },
      { "id": "code", "label": "Code", "write": false }
    ],
    "verified_at": "2026-11-23T09:05:00.000Z",
    "created_at": "2026-11-20T14:22:00.000Z",
    "updated_at": "2026-11-23T09:05:00.000Z",
    "error": null
  }
}
```

**id** `string`

Unique UUID of the connected workspace account. Pass as `connectors[].id` on `POST /projects` or `connection_id` on `POST /social/posts`.

**connector\_id** `enum`

Catalog service identifier (`github`, `notion`, `google-drive`, `getty`, `s3`, `tiktok`, `youtube`, `instagram`, `facebook`, `x`, `threads`, `linkedin`, `reddit`, `mastodon`, `bluesky`, `snapchat`).

**scope** `enum`

Always `"organization"`—connections belong to the credential's organization and workspace.

**visibility** `enum`

Always `"private"`.

**status** `enum`

Verification state: `connected` (verified and ready), `unverified` (not yet checked), or `needs_attention` (reauthorization or credential update needed).

**can\_use** `boolean`

`true` when the connection is verified and permitted for use by this credential.

**capabilities** `object`

Map of action IDs to booleans showing which actions are currently authorized. Project-level `actions` can narrow from this set.

**permission\_options** `object[]`

Supported action descriptors for this connector, each containing `id`, `label`, and `write`.

## Endpoints

| Method & Path | Description |
| - | - |
| [`GET /connectors`](https://docs.motion.so/api/connectors/list-connectors) | List available catalog services, auth methods, `input_schema`, and permissions. |
| [`GET /connections`](https://docs.motion.so/api/connectors/list-connections) | List connected workspace accounts and their verification status. |
| [`POST /connections`](https://docs.motion.so/api/connectors/create-connection) | Start an OAuth flow or save verified credentials for a connector. |
| [`GET /connections/{connection_id}`](https://docs.motion.so/api/connectors/retrieve-connection) | Retrieve one connection's status, `can_use` flag, and capabilities. |
| [`DELETE /connections/{connection_id}`](https://docs.motion.so/api/connectors/delete-connection) | Disconnect an account and revoke its provider grant where supported. |


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