Business accounts and API
API Keys Safely: Test vs Live Keys and Your Registration Number
How to handle Hollyway Business API keys: keep test and live apart, store secrets properly, revoke quickly and understand the registration number.
By Hollyway Editorial Team5 min read
In this guide
An API key works like a staff ID card that never gets tired and never asks questions. Whoever holds it can act as your business, as fast as a computer can send requests. That is why handling keys well matters more than almost any other part of an integration.
This guide covers the habits that keep keys safe, and explains why Hollyway Business API calls need both a key and your business registration number.
Test keys and live keys
Verified business accounts can create keys in two kinds. A test key is for building and trying things out. A live key acts on your real business, with real customers and real money.
Treat them as different tools:
- Use the test key on developers' machines and in any early version of your software.
- Use the live key only on the finished system, on the server where it will really run.
- Never put a live key in a place where a test key would be acceptable, such as a shared chat, a screenshot or a demo.
If you are unsure whether something is safe to share, assume it is not.
Why two pieces of information
Every Business API call needs the key and your business registration number. This works as a second check. A stranger who found a key by accident would also need to know which business it belongs to, and your registration number is not a secret in the way a key is, but it must match.
Do not be comforted too much by this. Your registration number appears on company documents and may be known to many people. Think of it as a second lock that stops accidents and casual misuse, not as protection against a determined thief. The key itself still needs full protection.
Where to keep a key
Most leaks are not clever attacks. They are ordinary mistakes. These are the ones we see people make most often:
- Pasting the key into a WhatsApp group so "everyone can test".
- Saving it in a document called "passwords" that is shared with the whole team.
- Writing it directly into program code that is then uploaded to a public code site.
- Emailing it to a freelancer, who forwards it to a colleague.
Better habits are simple. Ask your developer to keep keys in environment settings or a proper secrets manager on the server, never inside the code itself. Keep a short list, kept privately, of who has been given access. Many platforms show a secret only once when it is created, so if a key you need is no longer visible, do not hunt for it in old messages. Create a new one and retire the old.
Create fewer, name them clearly
Having one key used by five systems is hard to manage. If it leaks, you must change all five at once. Where the platform allows it, create a separate key for each system or person, and give each a clear label, such as "website stock sync" or "accounts export". Then when something looks wrong, you know where to look and what to switch off.
Revoking a key
Revoking means switching a key off so it no longer works. Do it without hesitation in these situations:
- A developer or staff member who knew the key has left.
- The key appeared anywhere public or shared, even briefly.
- You see requests you do not recognise.
- A laptop or phone that held the key was lost or stolen.
After revoking, create a replacement and give it only to the system that needs it. A short disruption is much cheaper than someone else acting as your business.
Every few months, review your list. Remove keys nobody can explain. An unused key is risk with no benefit.
Rate limits and being a good API citizen
APIs commonly limit how many requests you can send within a given period, so that one busy customer does not slow everyone else down. The public documentation at /developers is where to check how this applies to you. For your developer, the practical advice is:
- Do not ask the same question every few seconds. Use webhooks to be told about changes instead.
- If a request is refused because you are sending too many, wait before trying again rather than retrying instantly.
- Test with small volumes first. A mistake in a loop can send thousands of requests in seconds.
A short key checklist
- Test and live keys are kept separate, and the live key is only on the production server.
- No key lives in shared chats, screenshots, emails or public code.
- Each system has its own named key where possible.
- You know who has access, and you review the list regularly.
- You know exactly how to revoke a key, and who is allowed to do it.
- Your developer knows the registration number must go with every call.
Also give team members only the access they need. Verified businesses can assign roles and permission levels of none, view or manage for each area, so a person who only reads reports should not be able to create keys.
How Hollyway can help
Keys, webhooks and the public documentation sit together for verified businesses, and the guide at /developers explains how requests are made. If you suspect a key has been exposed, revoke it first, then write to us through the contact page so the team can help you check what happened. Live chat runs Monday to Saturday, 8am to 6pm Lagos time. Hollyway will never ask for your passwords or card details in chat.
Cover photo: Estormiz, CC0, via Wikimedia Commons.
More business accounts and api
What you need to upgrade to a verified Hollyway business account, how review works and which features it unlocks for your team and systems.
How to give colleagues the right level of access on a verified Hollyway business account, and how to remove people cleanly when roles change.
A plain overview of the Hollyway Business API for shop owners: what it connects, who it suits and what you need in place before your developer starts.
What a webhook is, how it differs from checking manually, and what test and live addresses and signatures mean, so you can brief your developer well.
How to read the analytics and usage figures on a Hollyway business account, which trends matter, and which warning signs to act on early.
