← Back to home
Docs

API tokens

A bearer credential for clients that can't sign in through a browser. Each token stops working after 30, 90, or 365 days. Most people never need one: Claude Code and other OAuth-capable agents connect without any key to copy.

Try OAuth first. Install the plugin and run /mcp → spawnpoint → Authenticate; see Getting started. Use a token only when the client is a script, a CI job, or something else that can't do a browser sign-in.

What it is

A token is a bearer credential tied to your account. It looks like spk_live_1a2b3c…. Your client sends it to the MCP server on every call, and spawnpoint uses it to figure out which account the deploy belongs to. The endpoint accepts it in place of an OAuth access token.

When to use one

OAuth is the default because you never paste a secret anywhere: you approve once in the browser, and your agent stores and refreshes the credentials itself. Use a token where OAuth does not work: a shell script, a cron job, a CI pipeline, or an MCP client with no OAuth support.

Create one

  1. Sign in to your console.
  2. Open the API tokens panel, choose how long the token works (30 days, 90 days, or 1 year; 90 days unless you change it), and click Create token. If you are on a team, Deploys as picks whether the token deploys your own apps or the team's: a team token deploys to every app on that team.
  3. Copy the spk_live_… value immediately: it is shown only once.

Use it

Send it as the bearer token on the MCP endpoint:

Authorization: Bearer spk_live_your_token

How we keep it safe

Good practice

If you lose a token, you can't view it again. Revoke it in the console and create a new one.