openapi: 3.0.3
info:
  title: UGSMS
  description: ''
  version: 1.0.0
servers:
  -
    url: 'http://localhost'
paths:
  /api/v2:
    get:
      summary: 'Display Swagger API page.'
      operationId: displaySwaggerAPIPage
      description: ''
      parameters: []
      responses:
        500:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  message: 'Server Error'
                properties:
                  message:
                    type: string
                    example: 'Server Error'
      tags:
        - Endpoints
      security: []
  /api/oauth2-callback:
    get:
      summary: 'Display Oauth2 callback pages.'
      operationId: displayOauth2CallbackPages
      description: ''
      parameters: []
      responses:
        200:
          description: ''
          content:
            text/plain:
              schema:
                type: string
                example: "<!doctype html>\n<html lang=\"en-US\">\n<body>\n<script src=\"oauth2-redirect.js\"></script>\n</body>\n</html>\n"
      tags:
        - Endpoints
      security: []
  /api/v2/sms/send:
    get:
      summary: ''
      operationId: getApiV2SmsSend
      description: ''
      parameters: []
      responses:
        401:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  error: 'API key is required'
                  help: 'Provide X-API-Key header or api_key parameter'
                properties:
                  error:
                    type: string
                    example: 'API key is required'
                  help:
                    type: string
                    example: 'Provide X-API-Key header or api_key parameter'
      tags:
        - Endpoints
      security: []
  /api/v2/account/balance:
    get:
      summary: ''
      operationId: getApiV2AccountBalance
      description: ''
      parameters: []
      responses:
        401:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  error: 'API key is required'
                  help: 'Provide X-API-Key header or api_key parameter'
                properties:
                  error:
                    type: string
                    example: 'API key is required'
                  help:
                    type: string
                    example: 'Provide X-API-Key header or api_key parameter'
      tags:
        - Endpoints
      security: []
  /api/generate-key:
    post:
      summary: ''
      operationId: postApiGenerateKey
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                expiry_days:
                  type: integer
                  description: 'Must be at least 1. Must not be greater than 365.'
                  example: 3
                  nullable: true
      security: []
  /api/revoke-key:
    post:
      summary: ''
      operationId: postApiRevokeKey
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /api/regenerate-key:
    post:
      summary: ''
      operationId: postApiRegenerateKey
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                expiry_days:
                  type: integer
                  description: 'Must be at least 1. Must not be greater than 365.'
                  example: 9
                  nullable: true
      security: []
tags:
  -
    name: Endpoints
    description: ''
