Authentication
Every call to https://api.senjaropay.com must include a valid Public Key and API secret in headers.
In the dashboard, the Public Key maps directly to x-api-key.
The merchant API uses POST for every endpoint, including reads. Send a JSON body (use {} when there are no parameters).
Request headers
Use HTTPS only. API keys are for server-side use—never from browsers, mobile apps, or other untrusted environments.
Issuing and rotating keys
- Sign in to the SenjaroPay dashboard.
- Go to Settings → API keys.
- Copy the Public Key (use as
x-api-key) and Secret Key (use asx-api-secret). - Store both in server-side secrets. Do not expose them in client apps.
If a secret is lost, leaked, or no longer needed: revoke it in the dashboard and issue a new key. Prefer rotation over reusing compromised material.
Example
Supply the secret from your deployment configuration (environment variable, vault, or managed secrets). Use POST, Content-Type: application/json, and a JSON body on every call.
Raw request shape:
Scopes
Request only the credentials that belong to the environment you are integrating (sandbox vs production), and keep them server-side.
Errors
401 — response body (example)
403 — response body (example)
For 403, verify the account permissions and environment keys being used.
Security
- Store secrets outside source control; never commit keys or paste them into tickets or chat.
- Use distinct keys per environment where the product supports it (for example sandbox vs production).
- Rotate on a schedule and revoke immediately if exposure is suspected.
- Avoid logging request headers or full key values; redact when debugging.
