DocumentationAuthentication
Authentication
All requests to the 3ribe API must be authenticated with your assigned API credentials. 3ribe uses an API Key and API Secret to verify and authorise requests from integrated applications.
API KeyAPI SecretSandboxProduction
Required on every protected endpoint
Authentication is required for all protected 3ribe API endpoints. Individual endpoint pages refer back to this page for the required headers and environment base URLs.
GET STARTED
Required headers
Include the following headers in every API request.
HeaderDescriptionHeader / Description
apikeyHeader
Your assigned 3ribe API Key.
apisecretkeyHeader
Your assigned 3ribe API Secret Key.
Content-TypeHeader
application/json
Sample request headers
apikey: YOUR_API_KEY
apisecretkey: YOUR_API_SECRET_KEY
Content-Type: application/jsonAdd the headers to every request
- 01Retrieve your API Key and API Secret from the Developer section of your 3ribe dashboard.
- 02Store both values securely on your backend, for example in environment variables or a secrets manager.
- 03Send apikey, apisecretkey and Content-Type on every request from your server to the 3ribe API.
Never send credentials from the browser or app
Make 3ribe API calls from your backend only. Anything shipped in frontend code or a mobile app can be read by users.
Base URLs
Use the base URL that matches your environment, then append the endpoint path.
EnvironmentBase URLEnvironment / Base URL
SandboxDevelopment & testing
https://merchantb2bstagingapi.3ribestaging.com
ProductionLive payments
https://businessapis.3ribe.io
Some operations are production only
Check each endpoint page for environment limits. For example, the Virtual Account API is only available in the production environment.
Security guidelines
Your API Key and API Secret grant access to your merchant account. Treat them like passwords.
GuidelineWhat to doGuideline / What to do
Keep credentials confidential
Keep your API Key and API Secret private to your organisation.
Backend only
Never expose your API credentials in frontend applications, mobile application source code or publicly accessible repositories.
Store them securely
Store credentials using environment variables or a secrets management solution.
Limit access
Do not share production credentials with unauthorised persons.
Test first
Use the sandbox environment for integration testing before moving to production.
Compromised credentials
If you believe your credentials have been exposed, contact 3ribe immediately so they can be secured.
Outstanding details
The source covers headers, base URLs and security guidance only. Confirm these items with 3ribe before relying on them.
AreaConfirmation requiredArea / Confirmation required
Authentication failures
The response body and HTTP status code returned for missing or invalid credentials.
Credential rotation
How to regenerate or replace an API Key and API Secret, and whether old values stop working immediately.
Protected endpoints
Which endpoints are protected and which, if any, are public.
Rate limits
Any request limits that apply per API Key.
CONTINUE READINGCollection APIAccept payments with Card Pay, Apple Pay, Google Pay and Pay By Bank.