---
title: "POST /api/v1/organizations/{organization_id}/agent_integrations"
method: POST
path: "/api/v1/organizations/{organization_id}/agent_integrations"
tags: ["organizations"]
---

# POST /api/v1/organizations/{organization_id}/agent_integrations

`POST /api/v1/organizations/{organization_id}/agent_integrations`

## Request

- Base URL: `https://composal.com` (the document declares no server; this is the origin it was published from)
- URL: `https://composal.com/api/v1/organizations/{organization_id}/agent_integrations`
- Auth: HTTP bearer

Create an organization account before browser authorization. Include a stable creation_key in the body to make retries return the original account, even after it is renamed or revoked. Reusing that key with different toolkit/name input returns 409. Keys are scoped to organization and initiating user. Idempotency-Key, when supplied, must match creation_key. Older servers reject the explicit creation_key field rather than silently performing an unsafe retry. Omitting creation_key preserves legacy create-per-request behavior.

## Path parameters

- `organization_id` string, required

## Headers

- `Idempotency-Key` string

## Request body

- object
  - `toolkit` string, required
  - `name` string, required
  - `creation_key` string: Stable identity for retrying this creation; retain it after an uncertain response.

## Response `200`

Connection response

- object
  - `connection` OrganizationAgentConnection, required
    - `id` string, required
    - `toolkit` string, required
    - `name` string, required
    - `status` 'pending' | 'active' | 'expired' | 'revoked' | 'error', required
    - `generation` integer, required
    - `provider_identity` ProviderIdentity, required
      - `status` 'verified' | 'unavailable', required
      - `account_label` string, nullable, required
      - `workspace_label` string, nullable, required
      - `checked_at` string, date-time, nullable, required
    - `provider_disabled_reason` string, nullable, required
    - `can_enable` boolean, required
    - `can_reconnect` boolean, required
    - `can_disconnect` boolean, required

## Other responses

- `201`: Connection response
- `401`: Authentication required
- `403`: Connection owner access required
- `404`: Connection or feature not found
- `409`: Creation key belongs to different original input
- `422`: Invalid connection input
- `502`: Bad gateway
- `503`: Connection provider unavailable

---

[API](https://skmtc.dev/composal/apis/vex-api.md) - [All operations](https://skmtc.dev/composal/apis/vex-api/llms.txt) - [OpenAPI document](https://skmtc.dev/composal/apis/vex-api/revisions/19698ba051dc?raw)
