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

# Create Access Token

> Retrieve an access token using OAuth2 client credentials grant



## OpenAPI

````yaml /openapi.json post /auth/oauth/token
openapi: 3.0.0
info:
  title: goLance API
  version: 1.0.0
servers:
  - url: https://golance.com
security: []
paths:
  /auth/oauth/token:
    post:
      tags:
        - Authentication
      summary: Create Access Token
      description: Retrieve an access token using OAuth2 client credentials grant
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                clientId:
                  type: string
                  minLength: 2
                  maxLength: 100
                clientSecret:
                  type: string
                  minLength: 2
                  maxLength: 100
                grantType:
                  type: string
                  enum:
                    - client_credentials
              required:
                - clientId
                - clientSecret
                - grantType
      responses:
        '200':
          description: Access token response
          content:
            application/json:
              schema:
                type: object
                properties:
                  access_token:
                    type: string
                  token_type:
                    type: string
                    enum:
                      - Bearer
                  expires_in:
                    type: number
                    minimum: 0
                    description: Expiration time in seconds
                required:
                  - access_token
                  - token_type
                  - expires_in

````