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

# Get Access Token

> Get JWT access token from Cynopsis CRM (Demo or Production) using the OAuth2 client_credentials flow.
Only the following server URLs are used for this endpoint:
  - Demo: https://crm-demo.cynopsis.co
  - Production: https://crm.cynopsis.co




## OpenAPI

````yaml /openapi/ares_openapi.yaml post /oauth/token
openapi: 3.0.0
info:
  title: Cynopsis CRM OAuth2 Token API
  version: '1.0'
servers:
  - url: https://d1.cynopsis.co
    description: Demo Service API URL
  - url: https://util.cynopsis.co
    description: Production Service API URL
security: []
paths:
  /oauth/token:
    post:
      summary: Get Access Token
      description: >
        Get JWT access token from Cynopsis CRM (Demo or Production) using the
        OAuth2 client_credentials flow.

        Only the following server URLs are used for this endpoint:
          - Demo: https://crm-demo.cynopsis.co
          - Production: https://crm.cynopsis.co
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                grant_type:
                  type: string
                  example: client_credentials
                client_id:
                  type: string
                  example: your_client_id
                client_secret:
                  type: string
                  example: your_secret_key
              required:
                - grant_type
                - client_id
                - client_secret
      responses:
        '200':
          description: Successful Access Token Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  access_token:
                    type: string
                  token_type:
                    type: string
                    example: Bearer
                  expires_in:
                    type: integer
                  scope:
                    type: string
        '400':
          description: Invalid request
        '401':
          description: Unauthorized
      servers:
        - url: https://crm-demo.cynopsis.co
          description: Demo Environment (Only for /oauth/token)
        - url: https://crm.cynopsis.co
          description: Production Environment (Only for /oauth/token)

````