Authorization

Learn how to use your generated access token

To authenticate your requests, include the 'token' in the Authorization header as a Bearer token:

Authorization: Bearer YOUR_API_KEY

Example of Including the API Key in Request Headers

headers = {
    'Authorization': 'Bearer YOUR_API_KEY'
}
axios.get(url, {
    headers: {
        'Authorization': `Bearer YOUR_API_KEY`
    }
})

Making Your First Request

Here's a quick example to get you started with making a GET request:

import requests

url = "https://api.wapipay.com/your_endpoint"
headers = {
    'Authorization': 'Bearer YOUR_API_KEY'
}

response = requests.get(url, headers=headers)
print(response.json())
const axios = require('axios');

const url = "https://api.wapipay.com/your_endpoint";
const headers = {
    'Authorization': `Bearer YOUR_API_KEY`
};

axios.get(url, { headers })
    .then(response => {
        console.log(response.data);
    })
    .catch(error => {
        console.error(error);
    });