An API is a way for one program to ask another program for something, or to give it something. When your automation adds a row to a sheet or reads an order from a shop, it usually does so through an API. You do not need to write code to use one, but you do need to know three things: what a key is, what a limit is, and how to keep both safe.
The Waiter Comparison
Think of a restaurant. You do not walk into the kitchen. You tell the waiter what you want, and the waiter brings it back. The API is the waiter. It accepts only requests in the format it knows, and it can refuse requests you are not allowed to make.
What an API Key Is
A key is a long secret text that tells the service who is asking. Anyone who has it can act as you, within what the key allows. Treat it like a password:
- Do not paste it into emails, chats, screenshots or shared documents.
- Store it in the secret or connection field of your automation tool, not in a spreadsheet cell.
- Give each automation its own key where the service allows it, so you can switch one off without breaking the others.
- If a key may have been seen by someone else, replace it at once.
Least Access
Many services let you choose what a key may do, for example read only, or one folder only. Choose the smallest permission that lets the automation work. A report that only reads data should not be able to delete it.
What a Limit Is
Services limit how many requests you can make in a period, and some limit how much data each request can carry. If you go over, the service refuses requests for a while. Limits differ by service and plan and change over time, so read the service’s own documentation and do not rely on a number you heard elsewhere.
- Do not ask for the same data more often than you need it.
- Process items in small groups when you can.
- Expect a refusal sometimes and let the automation wait and try again, rather than fail (see our error handling guide).
Questions to Ask Before You Connect
- Which data will this connection see?
- Who in my business can change or remove it?
- Does the service charge by the request?
- How do I revoke access if I stop using this?
Keep a Record
On each automation’s page, note which services it connects to and which key it uses, but never the key itself. When someone leaves your business, review what they set up.