Skip to main content
Your SECRET_KEY is required on every authenticated API request. If you have lost your key, retrieve it here and update your environment variables.

Endpoint

GET /clients/settings/get-keys

Headers

Authorization
string
required
Bearer YOUR_ACCESS_TOKEN
SECRET_KEY
string
required
Your current API secret key. Required to authenticate this request.
businessId
string
required
Your business ID.

Response

status
boolean
true on success.
message
string
Human-readable outcome.
data.publicKey
string
Your account’s public key.
data.secretKey
string
Your account’s secret key. Treat this like a password — never expose it in client-side code or logs.

Code examples

curl -X GET https://sandbox.stellasbank.com/api/v1/clients/settings/get-keys \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "SECRET_KEY: YOUR_SECRET_KEY" \
  -H "businessId: YOUR_BUSINESS_ID"

Example response

{
  "status": true,
  "message": "Keys retrieved successfully",
  "data": {
    "publicKey": "pk_live_abc123",
    "secretKey": "sk_live_xyz789"
  }
}