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

# Oauth Callback

> OAuth callback — validates CSRF state, exchanges the code for tokens,
stores them as the connector's credentials, and marks it connected.

Public (no auth) — the provider redirects the user's browser here.



## OpenAPI

````yaml /openapi.json get /v1/connectors/oauth/callback
openapi: 3.1.0
info:
  description: Causeloop Platform Backend
  title: Causeloop API
  version: 1.0.0
servers: []
security: []
paths:
  /v1/connectors/oauth/callback:
    get:
      tags:
        - connectors
      summary: Oauth Callback
      description: |-
        OAuth callback — validates CSRF state, exchanges the code for tokens,
        stores them as the connector's credentials, and marks it connected.

        Public (no auth) — the provider redirects the user's browser here.
      operationId: oauth_callback_v1_connectors_oauth_callback_get
      parameters:
        - in: query
          name: code
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Code
        - in: query
          name: state
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: State
        - in: query
          name: error
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Error
      responses:
        '200':
          content:
            application/json:
              schema: {}
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    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

````