Authentication
Get your API keys
Sign in to your Poggah account to get your api keys, you will need your public and private key to generate token.
You can alway generate new keys from your dashboard at any time if you fee your keys has been compromised.
Poggah primarily utilizes two types of authorization: [Token] and [Signature]. However, in most scenarios, you will only need to provide the signature.
The Token can be generated by passing the public and private keys obtained from your dashboard as a JSON body to the Generate Token endpoint. The Signature, on the other hand, is simply your access token retrieved from your dashboard.
Generate Token
POST {{BASE_URL}} /v1/auth/generate-token
Use this endpoint to generate your token
Body
Public_key
string
public key gotten from your dashboard (use the test public key during testing)
true
Private_key
string
private key gotten from your dashboard (use the test private key during testing)
true
Request Body
{
"Public_key" : "PG_TEST_PUK_FFGGG6BFFDFFFREREROPWYVJFW16BB47IL1V2KEJISK",
"Private_key" : "PG_TEST_PRK__LDFKSDWWO343EE0DSSERW0EWEWJPRK61HRLBXKD7RG"
}Response
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJQR0xQVUtfRjY2QkZDNVlBUVRKTzdaTUZJWVZKRlcxNkdsfdfrwerr0ddsfr6ImRiOTdjYzY4LTgxNDktNDM0ZC1iMGZhLTQ3NjE4ZDU0NjkwYSIsImxpdmVfcHVibGljX2tleSI6IlBHTFBVS19GNjZCRkM1WUFRVEpPN1pNRklZVkpGVzE2QkI0N0lMMVYyS0VKSVNLIiwibGl2ZV9wcml2YXRlX2tleSI6IlBHTFBSS19UQUNXN1k5N1lJWFZBQVIzQ1BCVkI1VERKUFJLNjFIUkxCWEtEN1JHIiwiZXhwIjoxNzI0NDMzNjQ5LCJpc3MiOiJQb2dnYWhKV1RBdXRoZW50aWNhdGlvbiIsImF1ZCI6IlBvZ2dhaEpXVFNlcnZpY2VDbGllbnQifQ.GDLPbQOHfYT38O0kPVv3MwQtZBWoUXq7ekzmHlzz_oE"
}{
"status": "Failed",
"message": "Couldn't generate token, please check fields",
"data": {
"errorMessage": "",
"reference": ""
}
}Last updated