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

# Get connection status

> Polls the status of an in-progress OAuth connection. The connect_id is returned by the Start OAuth Connection endpoint. Poll this endpoint until the status changes from "pending" to "connected". The connect_id expires after 10 minutes.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/integrations/connect/{connect_id}/status
openapi: 3.0.0
info:
  description: >-
    REST API for accessing and managing your Nex data. Generate API keys from
    the Nex web UI and use them to authenticate requests.
  title: Nex Developer API
  contact: {}
  version: '1.0'
servers:
  - url: https://app.nex.ai/api/developers
security: []
paths:
  /v1/integrations/connect/{connect_id}/status:
    get:
      tags:
        - Integrations
      summary: Get connection status
      description: >-
        Polls the status of an in-progress OAuth connection. The connect_id is
        returned by the Start OAuth Connection endpoint. Poll this endpoint
        until the status changes from "pending" to "connected". The connect_id
        expires after 10 minutes.
      operationId: getConnectStatus
      parameters:
        - description: Connect ID returned by the start connect endpoint
          name: connect_id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Current connection status
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/developer.ConnectStatusResponse'
        '400':
          description: Invalid connect_id
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/httpx.APIError'
        '401':
          description: Unauthorized - Invalid or missing API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/httpx.APIError'
        '410':
          description: Connect ID has expired (10 minute TTL)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/httpx.APIError'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/httpx.APIError'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    developer.ConnectStatusResponse:
      type: object
      properties:
        status:
          type: string
          description: >-
            Connection status: "pending" while waiting, "connected" when
            complete
          enum:
            - pending
            - connected
          example: connected
        connection_id:
          type: integer
          description: >-
            ID of the newly created connection (only present when status is
            "connected")
          example: 12345
    httpx.APIError:
      type: object
      properties:
        code:
          type: integer
        message:
          type: string
  securitySchemes:
    ApiKeyAuth:
      description: 'API key for authentication (format: "Bearer YOUR_API_KEY")'
      type: apiKey
      name: Authorization
      in: header

````