What is an API Key?

An API key is a unique secret string a client includes with its requests to identify itself and prove it's authorized to use a given API.

Unlike OAuth tokens, which are typically scoped, short-lived, and tied to a specific user's delegated permission, an API key is usually a longer-lived, coarser credential tied to an application or account rather than an individual end user. It's simple to implement — generate a key, check it on each request — which makes it popular for server-to-server integrations and simpler third-party APIs. Because an API key is a static secret, its security depends entirely on how carefully it's stored and transmitted: leaking one in a public repo, a client-side bundle, or a log file effectively hands over whatever access that key grants. Best practice treats API keys the way any password is treated — encrypted at rest, never logged, transmitted only over TLS, and rotated periodically or immediately if exposure is suspected. Many providers now support scoped or restricted API keys — limited to specific endpoints, IP ranges, or rate limits — precisely to reduce the blast radius if a key does leak, since a single unscoped key that can do anything the account can do is a much bigger liability than a narrowly permissioned one.

In practice with Neotask

Neotask stores every connected provider's API key encrypted at rest in the secret store, injects it into the sandbox container only at call time, and never writes it to logs or transcripts — the same discipline applied to OAuth tokens.

Related terms

Start free

Plans

Free

$0/mo

Download without a card and start for free.

Individual

$50/mo

The full personal agent platform for one person.

Enterprise

$200/mo

Multiple workspaces and capacity for larger teams.

Continue