---
title: "Create Connection"
method: POST
path: "/triggers/connections/"
tags: ["Triggers"]
---

# Create Connection

`POST /triggers/connections/`

## Request body

- TriggerConnectionCreateRequest
  - `connection` TriggerConnectionCreate, required
    - `flags` object, nullable
    - `tags` object, nullable
    - `meta` object, nullable
    - `name` string, nullable
    - `description` string, nullable
    - `slug` string, nullable
    - `provider_key` 'composio', required
    - `integration_key` string, required
    - `data` TriggerConnectionCreateData
      - `callback_url` string, nullable
      - `auth_scheme` 'oauth' | 'api_key'
      - `connected_account_id` string, nullable
      - `auth_config_id` string, nullable
      - `redirect_url` string, nullable
      - `project_id` string, nullable
      - `no_auth` boolean, nullable

## Response `200`

Successful Response

- TriggerConnectionResponse
  - `count` integer
  - `connection` TriggerConnection
    - `flags` object, nullable
    - `tags` object, nullable
    - `meta` object, nullable
    - `created_at` string, date-time, nullable
    - `updated_at` string, date-time, nullable
    - `deleted_at` string, date-time, nullable
    - `created_by_id` string, uuid, nullable
    - `updated_by_id` string, uuid, nullable
    - `deleted_by_id` string, uuid, nullable
    - `name` string, nullable
    - `description` string, nullable
    - `slug` string, nullable
    - `id` string, uuid, nullable
    - `provider_key` 'composio', required
    - `integration_key` string, required
    - `data` object, nullable
    - `status` TriggerConnectionStatus
      - `redirect_url` string, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/agenta-ai/apis/agenta-api.md) · [All operations](https://skmtc.net/agenta-ai/apis/agenta-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/agenta-ai/agenta-api/versions/ea6421d829f1/schema)
