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

# Connect Catalog Item

> Materialize a trusted OpenAPI template and start its OAuth flow.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/connections/catalog/{item_id}/connect
openapi: 3.1.0
info:
  description: >-
    Modular and extensible framework for building AI agents. This API requires
    JWT Bearer token authentication for most endpoints. Include your JWT token
    in the Authorization header. Public endpoints include /, /health, /docs,
    /redoc, and /openapi.json.
  title: AgentArea API
  version: 0.1.0
servers: []
security:
  - bearer: []
paths:
  /v1/connections/catalog/{item_id}/connect:
    post:
      tags:
        - v1
        - protected
        - connections
      summary: Connect Catalog Item
      description: Materialize a trusted OpenAPI template and start its OAuth flow.
      operationId: connect_catalog_item_v1_connections_catalog__item_id__connect_post
      parameters:
        - in: path
          name: item_id
          required: true
          schema:
            format: uuid
            title: Item Id
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CatalogConnectionRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CatalogConnectionResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    CatalogConnectionRequest:
      additionalProperties: false
      description: Connect with AgentArea credentials, or override them from Advanced.
      properties:
        client_id:
          anyOf:
            - maxLength: 512
              minLength: 1
              type: string
            - type: 'null'
          title: Client Id
        client_secret:
          anyOf:
            - maxLength: 4096
              minLength: 1
              type: string
            - type: 'null'
          title: Client Secret
        credential_mode:
          default: managed
          enum:
            - managed
            - custom
          title: Credential Mode
          type: string
        return_to:
          default: ''
          maxLength: 2048
          title: Return To
          type: string
      title: CatalogConnectionRequest
      type: object
    CatalogConnectionResponse:
      properties:
        authorize_url:
          title: Authorize Url
          type: string
        connection_id:
          format: uuid
          title: Connection Id
          type: string
      required:
        - connection_id
        - authorize_url
      title: CatalogConnectionResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    bearer:
      bearerFormat: JWT
      description: JWT Bearer token for authentication
      scheme: bearer
      type: http
    HTTPBearer:
      scheme: bearer
      type: http

````