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

# Start the OAuth flow for a new connection



## OpenAPI

````yaml /api-reference/openapi.json post /v1/integrations/connections
openapi: 3.1.0
info:
  title: Feather API
  description: >-
    Unified customer experience platform API. Manages identity, conversations,
    memory, agents, procedures, policies, model routing, knowledge bases,
    integrations, and runtime execution.
  version: 1.21.0
servers:
  - url: https://api-sandbox.featherhq.com
    description: Sandbox
  - url: http://localhost:8000
    description: Local dev
security: []
paths:
  /v1/integrations/connections:
    post:
      tags:
        - integrations
      summary: Start the OAuth flow for a new connection
      operationId: createConnection
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConnectionCreate'
        required: true
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConnectionCreateResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    ConnectionCreate:
      properties:
        integration_key:
          $ref: '#/components/schemas/IntegrationKey'
        nickname:
          type: string
          title: Nickname
      additionalProperties: false
      type: object
      required:
        - integration_key
        - nickname
      title: ConnectionCreate
    ConnectionCreateResponse:
      properties:
        connection_id:
          type: string
          format: uuid
          title: Connection Id
        session_token:
          type: string
          title: Session Token
        expires_at:
          type: string
          format: date-time
          title: Expires At
        vendor:
          type: string
          title: Vendor
      type: object
      required:
        - connection_id
        - session_token
        - expires_at
        - vendor
      title: ConnectionCreateResponse
      description: |-
        Returned by ``POST /v1/integrations/connections``.

        Carries everything the Connect-UI frontend needs to open the OAuth
        popup without a second round-trip: the row id (to poll), the vendor
        session token, its expiry, and the vendor name so the frontend can
        pick the right SDK (``@nangohq/frontend`` for ``"nango"``).
    ErrorResponse:
      properties:
        error:
          type: string
          title: Error
        message:
          type: string
          title: Message
      type: object
      required:
        - error
        - message
      title: ErrorResponse
      description: Standard error response returned by all API error handlers.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    IntegrationKey:
      type: string
      enum:
        - slack
        - custom_mcp
        - notion
        - google_drive
        - calcom
        - twilio
        - email
      title: IntegrationKey
      description: |-
        Stable identifier for each supported integration.

        The string value must match the vendor's per-provider identifier
        (for Nango: ``provider_config_key``). Persisted on
        ``integration_connections.integration_key`` and
        ``integration_connection_tools.integration_key``.

        Adding a new integration: append a member here, add an
        ``IntegrationSpec`` to ``INTEGRATIONS``, register the provider in the
        vendor cloud via ``src/integrations/bootstrap.py`` (Step 3).
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: x-api-key

````