# Token API

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /oauth/token:
    post:
      summary: Token API
      deprecated: false
      description: ''
      tags:
        - 'Expense  ERP Integration/APIs - Expense '
      parameters:
        - name: Content-Type
          in: header
          description: ''
          required: true
          example: application/x-www-form-urlencoded
          schema:
            type: string
        - name: Cookie
          in: header
          description: ''
          required: true
          example: >-
            _cfuvid=7CCLyHoOJa2xNTaH_4WyYansrKY1.z2UTK46Y9C6y1o-1740464351061-0.0.1.1-604800000;
            _cfuvid=XaDRMESmSsZ2.84q0q6E02VcslOznNUwPX1Kg67TUZQ-1740479309936-0.0.1.1-604800000;
            JSESSIONID=3BB78CC75CEDD150743D7EE2E24722FC
          schema:
            type: string
        - name: Authorization
          in: header
          description: ''
          required: false
          example: ••••••
          schema:
            type: string
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                username:
                  example: '6982129990'
                  type: string
                grant_type:
                  example: password
                  type: string
                password:
                  example: Test@1234567
                  type: string
              required:
                - username
                - grant_type
                - password
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  access_token:
                    type: string
                  token_type:
                    type: string
                  refresh_token:
                    type: string
                  expires_in:
                    type: integer
                  scope:
                    type: string
                required:
                  - access_token
                  - token_type
                  - refresh_token
                  - expires_in
                  - scope
              example:
                access_token: P3Dqn26dcUdYQP_11CNZHbyCpNE
                token_type: bearer
                refresh_token: aR8dFcfjUZsa9BoO3WhBDS9OuV0
                expires_in: 86399
                scope: read write trust
          headers: {}
          x-apidog-name: Success
      security:
        - basic: []
      x-apidog-folder: 'Expense  ERP Integration/APIs - Expense '
      x-apidog-status: developing
      x-run-in-apidog: https://app.apidog.com/web/project/616243/apis/api-14269895-run
components:
  schemas: {}
  securitySchemes:
    basic:
      type: http
      scheme: basic
servers:
  - url: https://ekpayout-uat.enkash.in
    description: Testing Env
security: []

```
