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

# Generate Token

> Generates an Oauth token to later use in our API's



## OpenAPI

````yaml /auth-api-reference/openapi.json post /oauth/token
openapi: 3.0.1
info:
  title: Authentication
  description: APIs for authentication
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://production.yasmina.ai
  - url: https://sandbox.yasmina.ai
security:
  - bearerAuth: []
paths:
  /oauth/token:
    servers:
      - url: https://sandbox.yasmina.ai
      - url: https://production.yasmina.ai
    post:
      tags:
        - Oauth 2.0
      summary: Generate Token
      description: Generates an Oauth token to later use in our API's
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                grant_type:
                  type: string
                  enum:
                    - client_credentials
                  default: client_credentials
                  description: The type of OAuth grant being used.
                client_id:
                  type: string
                  example: your-client-key
                  description: The Client ID issued by the authorization server.
                client_secret:
                  type: string
                  example: your-client-secret
                  description: The client secret issued by the authorization server.
              required:
                - grant_type
                - client_id
                - client_secret
      responses:
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                example:
                  error: invalid_client
                  error_description: Client authentication failed
                  message: Client authentication failed
      security: []
components: {}

````