> ## 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.

# Start Chatgpt Sign In

> Start the ChatGPT device-code sign-in of a ChatGPT subscription provider: the user opens verification_uri and enters user_code. The device code itself stays on the server, bound to the caller and this configuration.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/workspaces/{workspace}/provider-configs/{config_id}/chatgpt-sign-in
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.2.0
servers: []
security:
  - bearer: []
paths:
  /v1/workspaces/{workspace}/provider-configs/{config_id}/chatgpt-sign-in:
    post:
      tags:
        - v1
        - protected
        - provider-configs
      summary: Start Chatgpt Sign In
      description: >-
        Start the ChatGPT device-code sign-in of a ChatGPT subscription
        provider: the user opens verification_uri and enters user_code. The
        device code itself stays on the server, bound to the caller and this
        configuration.
      operationId: >-
        start_chatgpt_sign_in_v1_provider_configs__config_id__chatgpt_sign_in_post
      parameters:
        - in: path
          name: config_id
          required: true
          schema:
            format: uuid
            title: Config Id
            type: string
        - description: Slug of the workspace the request acts in
          in: path
          name: workspace
          required: true
          schema:
            description: Slug of the workspace the request acts in
            maxLength: 120
            pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$
            title: Workspace
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChatGPTDeviceCodeResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    ChatGPTDeviceCodeResponse:
      properties:
        expires_in:
          description: Seconds the code stays valid
          title: Expires In
          type: integer
        interval:
          description: Seconds to wait between checks
          title: Interval
          type: integer
        user_code:
          description: The code the user enters at verification_uri
          title: User Code
          type: string
        verification_uri:
          title: Verification Uri
          type: string
      required:
        - user_code
        - verification_uri
        - interval
        - expires_in
      title: ChatGPTDeviceCodeResponse
      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

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.