Stockertim Dictionary · Technology · Cybersecurity
API key
Also called API keys, API token
In short
A long secret string that a program presents to an application programming interface to prove it is allowed access; anyone holding the key can act with its permissions.
- Advanced
- Technology
- Checked
In detail
Application programming interfaces let software talk to other software: a budgeting app reads bank transactions, a trading bot places orders with a broker, a website pulls market data. An API key is one of the simplest ways to control that access. The provider issues a unique string to a developer or account, the calling program sends it with each request, and the provider checks it before responding and often uses it to count usage and apply rate limits.
Because the key works for whoever presents it, it must be treated like a password. Keys leaked in public code repositories, pasted into chat messages, embedded in mobile apps or stored in plain text are routinely found and abused by automated scanners. A stolen broker or exchange key with trading or withdrawal rights can drain an account within minutes.
Good practice limits the damage a key can do. Providers let users restrict a key to read-only access, specific actions, set IP addresses or an expiry date. Keys are stored in secret management tools or environment settings rather than in code, rotated regularly, and revoked immediately when exposed. More sensitive systems combine keys with stronger methods such as OAuth tokens, signed requests or mutual certificates.
Worked example
A trader creates an exchange API key for a portfolio tracker and a separate one for an automated strategy.
- Tracker key: read-only, no trading, no withdrawals.
- Strategy key: trading allowed, withdrawals disabled, restricted to one server's IP address.
- When the tracker company reports a breach, the trader revokes that key.
Separate, narrowly scoped keys mean the breach exposes balances but cannot move funds.
In practice
Open banking, crypto exchanges, brokers and market data vendors in the UK, Nigeria and elsewhere issue API keys to developers and customers. Security teams scan code for exposed keys, and many providers revoke keys automatically when they spot them published online.
Watch out
- Never share an API key with a signal group, bot seller or support agent; it hands over control.
- An API key identifies a program or account; it is not the same as a crypto private key, though both must be kept secret.
Learn it properly
- Payment and trading-system security: FIX, APIs and keys15 min lesson Free course: Cybersecurity in financial services
- Connecting AI to tools and data: connectors and MCP explained15 min lesson Free course: Build AI automations and agents
- Access and identity for AI tools and agents15 min lesson Free course: AI safety and security at work
Official sources
- API technical and data standards · Government Digital Service
- OWASP API Security Project · OWASP Foundation
Facts last checked on 4 November 2026.
Education, not advice: the Stockertim Dictionary explains what terms mean. It never recommends buying or selling anything.