Logo

Token Request

The WapiPay API uses OAuth 2.0 authentication. This POST request is responsible for exchanging your credentials for a Bearer token.

Authentication Mechanism

This request returns a bearer token that must be included in the Authorization header of every subsequent API call as:Bearer {token}.

Security Warning

Tokens expire after one hour. Your application should be designed to handle 401 Unauthorized responses by automatically requesting a new token.

Required Parameters

client_id

The unique ID assigned to your application.

client_secret

The secure key used to sign requests.

grant_type

Determines how credentials are sent (e.g., client_credentials).

scope

Defines the level of access requested.

POST/connect/token

Generate Access Token

Target URL: https://sandbox-test.wapipay.com/connect/token