# Integrations and connections

List the Marketing Cloud Engagement and Jira connections of a workspace and read their state. Connections are set up in the web workspace.

A connection links a workspace to an outside system that its agents work with. Each connection belongs to one workspace and has an `id`, which is the value an agent refers to in its `connections` list. Today the API covers two kinds of connection: Salesforce Marketing Cloud Engagement, with one connection per business unit, and Jira Cloud, with one connection per Atlassian site.

An API key with the `read` scope can list both kinds and read their state, for example to find a connection `id` or to check that a connection is still `connected` before a run depends on it. Responses do not include access tokens, refresh tokens or client secrets. See [Authentication](https://centerofagentic.com/docs/authentication) for keys and scopes.

Creating, editing, authorizing, testing and deleting a connection is done in the web workspace under Settings by a signed-in workspace admin; authorization finishes on the provider's consent screen in a browser. API keys cannot perform these steps: even a key with the `admin` scope receives `403` with the error code `admin_session_required`.

## Marketing Cloud Engagement connections

Each connection links the workspace to one Marketing Cloud Engagement business unit through the package installed in that business unit. A connection starts as `pending` and becomes `connected` when a workspace admin authorizes it. It moves to `error` when a connection test or a token refresh fails, or when the provider rejects the stored authorization during a tool call. It returns to `pending` when an admin starts a new authorization or changes the connection's `region`, `mceTenantId` or `mceClientId`.

### GET /api/integrations/mce

List Marketing Cloud Engagement connections

Returns every Marketing Cloud Engagement connection in the workspace, most recently updated first. The list is not paginated and takes no parameters. Use `status`, `lastTestedAt` and `toolCount` to monitor a connection, and `id` to match it against an agent's `connections` list.

**Access:** API key with the `read` scope, or a signed-in workspace member.

**Returns:** `{ connections: Connection[] }`. Each connection has `id`, `name`, `region` (`us` or `eu`), `mceTenantId`, `mceClientId`, `businessUnit` (string or `null`), `status` (`pending`, `connected` or `error`), `scopes` (the scopes the provider reported at the last authorization or token refresh; empty until then), `hasToken`, `staysSignedIn` (a refresh token is held), `toolCount` (tools found by the last connection test; `null` before the first test and after a failed one), `lastTestedAt` (`null` before the first test), `lastError` (a fixed generic message, or `null`), `lastRefreshedAt` (when the connection record last changed), `createdAt` and `updatedAt`. `tokenLast4` is always `null`. `lastTestedAt` and `lastRefreshedAt` are ISO 8601 timestamps. `createdAt` and `updatedAt` are JavaScript date strings as shown in the example, not ISO 8601; read `lastRefreshedAt` when you need the last change as an ISO 8601 timestamp.

**Errors**

| Status | Code | When |
| --- | --- | --- |
| 502 | `connection_request_failed` | The list could not be read. The response describes the failed request, not the state of any connection; retry the request. |

```bash
curl https://centerofagentic.com/api/integrations/mce \
  -H "Authorization: Bearer $COA_API_KEY"
```

```json
{
  "connections": [
    {
      "id": "3f1c2a9e-0b7d-4e55-9a51-6f2f1c0e8d11",
      "name": "Example business unit",
      "region": "eu",
      "mceTenantId": "mc-example-tenant-subdomain",
      "mceClientId": "example-package-client-id",
      "businessUnit": "Example BU",
      "hasToken": true,
      "tokenLast4": null,
      "scopes": ["email_read", "email_write"],
      "status": "connected",
      "lastTestedAt": "2026-11-20T09:14:03.120Z",
      "lastError": null,
      "toolCount": 12,
      "staysSignedIn": true,
      "lastRefreshedAt": "2026-11-20T09:14:03.120Z",
      "createdAt": "Thu Nov 19 2026 10:02:11 GMT+0000 (Coordinated Universal Time)",
      "updatedAt": "Fri Nov 20 2026 09:14:03 GMT+0000 (Coordinated Universal Time)"
    }
  ]
}
```

## Jira connections

Each connection links the workspace to one Jira Cloud site through the workspace's own Atlassian OAuth app. The site is resolved when a workspace admin authorizes the connection, so `cloudId` and `siteUrl` are `null` until then. Status values and transitions are the same as for Marketing Cloud Engagement connections; a Jira connection returns to `pending` when an admin starts a new authorization or replaces the client id or client secret of the Atlassian app.

### GET /api/integrations/jira

List Jira connections

Returns every Jira connection in the workspace, most recently updated first. The list is not paginated and takes no parameters. The client secret of the Atlassian app is not returned; `hasClientSecret` only reports whether one is stored.

**Access:** API key with the `read` scope, or a signed-in workspace member.

**Returns:** `{ connections: JiraConnection[] }`. Each connection has `id`, `name`, `oauthClientId` (the client id of the Atlassian app, or `null`), `hasClientSecret`, `cloudId` and `siteUrl` (the authorized Jira site, or `null`), `defaultProject` (string or `null`), `status` (`pending`, `connected` or `error`), `scopes` (the scopes Atlassian reported at the last authorization or token refresh; empty until then), `hasToken`, `staysSignedIn` (a refresh token is held), `toolCount` (the number of Jira tools recorded by the last connection test; `null` before the first test and after a failed one), `lastTestedAt` (`null` before the first test), `lastError` (a fixed generic message, or `null`), `lastRefreshedAt` (when the connection record last changed), `createdAt` and `updatedAt`. `tokenLast4` is always `null`. `lastTestedAt` and `lastRefreshedAt` are ISO 8601 timestamps. `createdAt` and `updatedAt` are JavaScript date strings as shown in the example, not ISO 8601; read `lastRefreshedAt` when you need the last change as an ISO 8601 timestamp.

**Errors**

| Status | Code | When |
| --- | --- | --- |
| 502 | `connection_request_failed` | The list could not be read. The response describes the failed request, not the state of any connection; retry the request. |

```bash
curl https://centerofagentic.com/api/integrations/jira \
  -H "Authorization: Bearer $COA_API_KEY"
```

```json
{
  "connections": [
    {
      "id": "8b2e4d17-5c3a-4f90-b6e1-2a7d9c0f4e33",
      "name": "Example Jira site",
      "oauthClientId": "example-atlassian-client-id",
      "cloudId": "1d9f3b6a-7e24-4c58-a0b3-5e8c2f7d6a19",
      "siteUrl": "https://example.atlassian.net",
      "defaultProject": "OPS",
      "hasToken": true,
      "tokenLast4": null,
      "hasClientSecret": true,
      "scopes": ["read:jira-work", "write:jira-work", "read:jira-user", "offline_access"],
      "status": "connected",
      "lastTestedAt": "2026-11-20T09:20:41.507Z",
      "lastError": null,
      "toolCount": 4,
      "staysSignedIn": true,
      "lastRefreshedAt": "2026-11-20T09:20:41.507Z",
      "createdAt": "Thu Nov 19 2026 10:30:52 GMT+0000 (Coordinated Universal Time)",
      "updatedAt": "Fri Nov 20 2026 09:20:41 GMT+0000 (Coordinated Universal Time)"
    }
  ]
}
```

Source: https://centerofagentic.com/docs/api/integrations

## Related pages

- [Authentication](https://centerofagentic.com/docs/authentication)
