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

# Request OAuth2 authorization

> Start OAuth2 authorization flow



## OpenAPI

````yaml get /oauth/authorize
openapi: 3.1.0
info:
  title: Capital Check In API
  description: >-
    API for the Capital Check In platform - Employee check-in management system
    with identity verification, geolocation, and schedule management
  license:
    name: MIT
  version: 1.0.0
  contact:
    name: Capital Check In Support
    email: hi@capitalcheckin.app
    url: https://capitalcheckin.app
servers:
  - url: https://api.capitalcheckin.app
    description: Production
security:
  - bearerAuth: []
paths:
  /oauth/authorize:
    get:
      tags:
        - OAuth2
      summary: Request OAuth2 authorization
      description: Start OAuth2 authorization flow
      parameters:
        - name: client_id
          in: query
          required: true
          description: OAuth2 client ID
          schema:
            type: string
        - name: redirect_uri
          in: query
          required: true
          description: Authorized redirect URI
          schema:
            type: string
            format: uri
        - name: response_type
          in: query
          required: true
          description: Tipo de respuesta (debe ser 'code')
          schema:
            type: string
            enum:
              - code
        - name: scope
          in: query
          description: Permisos solicitados
          schema:
            type: string
        - name: state
          in: query
          description: Valor aleatorio para prevenir CSRF
          schema:
            type: string
      responses:
        '200':
          description: Authorization page
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OAuthAuthorizationResponse'
        '400':
          description: Invalid parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    OAuthAuthorizationResponse:
      type: object
      properties:
        success:
          type: boolean
          description: Indica si la solicitud fue exitosa
        message:
          type: string
          description: Descriptive message
        state_id:
          type: string
          description: Authorization state ID
        client:
          $ref: '#/components/schemas/OAuthClient'
        requires_consent:
          type: boolean
          description: Indica si se requiere consentimiento del usuario
        scopes_requested:
          type: string
          description: Permisos solicitados
        state:
          type: string
          description: Valor de state original
    Error:
      type: object
      required:
        - error
        - message
      properties:
        error:
          type: string
          description: Error code
        message:
          type: string
          description: Descriptive error message
        details:
          type: object
          description: Additional error details
    OAuthClient:
      type: object
      properties:
        id:
          type: string
          description: ID del cliente
        name:
          type: string
          description: Application name
        description:
          type: string
          description: Application description
        logo:
          type: string
          format: uri
          description: Application logo URL
        redirect_uri:
          type: string
          format: uri
          description: Authorized redirect URI
        grant_types:
          type: array
          items:
            type: string
          description: Tipos de grant soportados
        scopes:
          type: array
          items:
            type: string
          description: Permisos disponibles
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: OAuth2
      description: OAuth2 access token for authentication

````

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