Authentication
Use your app public/secret key pair to obtain a JWT. This token is required for merchant payment and subscription endpoints.
Key prefixes indicate environment: sandbox keys use pk_test_ / sk_test_ and production keys use pk_live_ / sk_live_. Secret keys are shown only once.
POST https://api.tinkerpayments.com/v1/auth/token
Content-Type: application/x-www-form-urlencoded
credentials=base64(public_key:secret_key)Example Response
{
"success": true,
"data": {
"token": "eyJhbGciOiJIUzI1Ni...",
"expires_in": 3600,
"token_type": "Bearer"
}
}