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

# oauth/token



## OpenAPI

````yaml /mintlify/docs/openapi.yaml post /oauth/token
openapi: 3.0.1
info:
  title: EzzyRest API
  version: 1.0.0
servers:
  - url: https://app.ezzydoc.com/EzzyService.svc/Rest/
    description: Production Server
security: []
paths:
  /oauth/token:
    post:
      tags:
        - EzzyRest
      summary: oauth/token
      operationId: oauthEzzyBillsToken
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OAuthTokenRequest'
          text/json:
            schema:
              $ref: '#/components/schemas/OAuthTokenRequest'
          application/*+json:
            schema:
              $ref: '#/components/schemas/OAuthTokenRequest'
      responses:
        '200':
          description: Success
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/JWTTokenSS'
            application/json:
              schema:
                $ref: '#/components/schemas/JWTTokenSS'
            text/json:
              schema:
                $ref: '#/components/schemas/JWTTokenSS'
        '400':
          description: Bad Request
        '500':
          description: Internal Server Error
components:
  schemas:
    OAuthTokenRequest:
      type: object
      properties:
        client_id:
          type: string
        client_secret:
          type: string
        grant_type:
          type: string
    JWTTokenSS:
      type: object
      properties:
        service_status:
          $ref: '#/components/schemas/Servicestatus'
        token:
          type: string
    Servicestatus:
      type: object
      properties:
        invoice_id:
          type: integer
        message:
          type: string
        status:
          type: integer
          enum:
            - 0
            - 1
            - 2
            - 3
          x-enumNames:
            - OK
            - FAILED
            - NO_MORE_INVOICES
            - NOT_PERMITTED

````