---
agentTools:
  projectIndex: https://paddieswitch.readme.io/llms.txt
---

# Authentication

To make API calls on Paddieswitch, you will have to pass a Bearer Token

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Paddieswitch",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://sandbox.paddieswitch.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://example.com/oauth2/token",
            "scopes": {}
          }
        }
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/api/v1/auth": {
      "post": {
        "summary": "Authentication",
        "description": "To make API calls on Paddieswitch, you will have to pass a Bearer Token",
        "operationId": "getting-started-with-your-api",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "password": {
                    "type": "string",
                    "description": "This is the registered merchant password",
                    "default": "********"
                  },
                  "rememberMe": {
                    "type": "boolean",
                    "description": "Set the value to either true or false",
                    "default": true
                  },
                  "username": {
                    "type": "string",
                    "description": "This is the registered merchant email address",
                    "default": "edet@gmail.com"
                  }
                }
              },
              "examples": {
                "Authentication request": {
                  "value": {
                    "password": "*********",
                    "rememberMe": true,
                    "username": "edet@gmail.com"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Authentication Response": {
                    "value": "{\n    \"uuid\": \"4229cc43-3865-4bbc-8b4d-0c19d6eee417\",\n    \"username\": \"edet@gmail.com\",\n    \"firstName\": \"Edet\",\n    \"lastName\": \"Akpan\",\n    \"email\": \"edet@gmail.com\",\n    \"roles\": [\n        \"MERCHANT\"\n    ],\n    \"permissions\": [\n        \"ROLE_CAN_CHANGE_PROFILE\",\n        \"ROLE_CAN_MAKE_TRANSACTION\",\n        \"ROLE_CAN_VIEW_TRANSACTION\"\n    ],\n    \"token\": \"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJvcGVy\nYXRpb25zQHBheXBhZGRpZS5jb20iLCJhdXRoIjoiUk9\nMRV9DQU5fVklFV19UUkFOU0FDVElPTixST0xFX0NB\nTl9DSEFOR0VfUFJPRklMRSxST0xFX0NBTl9NQUtFX1RSQ\nU5TQUNUSU9OIiwiZXhwIjoxNjU0Njk5MTU3fQ.bVrfIQB\nZNf9uCcUTMmG8mXHT4MMZ66nO60iLeq5EFLSeAKsie\n0HW905ZnofcS-dmZOecLyan_l********\",\n  \"expiresIn\": 2592000,\n    \"lastLoggedIn\": \"2022-05-09 02:39:17\",\n    \"createdAt\": \"2022-03-27 04:24:36\"\n}\n"
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false,
        "security": []
      }
    }
  },
  "x-readme": {
    "headers": [
      {
        "key": "accept",
        "value": "application/json"
      },
      {
        "key": "Content-Type",
        "value": "application/json"
      }
    ],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "62c83452eca9cf0268dfe556:62c83452eca9cf0268dfe55a"
}
```