Payments and finance

Wise API tokens: find, store, rotate, and use them safely with AI agents

Wise personal API tokens are created in a Wise business account under Your Account → Connect and manage apps → API tokens, need 2-step verification, and are shown only once. A Wise personal token stays active until you revoke it and only reaches certain endpoints; partners that need broader access use OAuth 2.0.

Wise key types

TypePrefixSecret?ScopeExpiry
Personal API token
Funding transfers and balance statements through the API are not supported with personal tokens, except for accounts based in the US, Canada, Australia, New Zealand, Singapore and Malaysia.
—YesLimited endpoints, such as quotes, recipients, creating transfers and batch groups, and tracking transfer eventsDoes not expire; stays active until revoked

How to create a Wise key

  1. Log in to your Wise business account on the Wise website (API tokens are not available in the app).
  2. Make sure 2-step verification is set up for your login.
  3. Go to Your Account → Connect and manage apps → API tokens.
  4. Click Add new token and complete 2-step verification.
  5. Copy the token into a secrets manager; it is shown only once.

Limiting what the key can do

Wise personal tokens are limited by endpoint rather than by selectable scopes. Create a separate token for each application so one can be revoked without breaking the others. For access beyond the personal-token endpoints, Wise points to a partnership and OAuth 2.0.

How to rotate a Wise key

  1. Create a new token under Your Account → Connect and manage apps → API tokens with Add new token.
  2. Deploy the new token to the application.
  3. Revoke the old token on the same page.

Wise recommends revoking and regenerating a token if you suspect it is compromised. A revoked token stops working immediately.

How to revoke a Wise key

  1. Go to Your Account → Connect and manage apps → API tokens.
  2. Find the token and choose Revoke. It stops working immediately.

If your Wise key leaked

  1. Revoke the exposed token under Your Account → Connect and manage apps → API tokens.
  2. Create a new token and update the application that used the old one.
  3. Review recent transfers and recipients on the account for anything you did not create.
  4. Use separate tokens for separate applications so a leak affects only one.

Things that catch people out

  • The token is shown once.
  • Sandbox tokens do not work in production, and production tokens do not work in sandbox.
  • Never log the token or put it in a URL; send it only as Authorization Bearer.
  • Wise's error guide warns against renewing tokens on every 401 or 403: a 403 can mean profile access or strong customer authentication, which a new token does not fix.

Common Wise authentication errors

invalid_token

HTTP 401; the token is missing, invalid, revoked or not suitable for the requested profile.

Using your Wise key with AI agents

A coding agent that can read your .env file or your shell history can read the key, and anything in its context can end up in logs, transcripts or a prompt-injected request. The safer pattern is to keep the key in a credential broker that performs the authenticated step for the agent and hands back only the result.

BotPassword works this way. For a Wise key, these intents fit:

IntentWhat BotPassword does
run_withRuns a command with the key injected as an environment variable or a 0600 temporary file, never on the command line, and redacts the key from the output.
http_requestMakes an authenticated API call after checking the destination against the hosts this key may be sent to. The response comes back with credential-shaped values redacted, and one that holds the key itself is refused.
rotatePartly built: creates a new key, stores it as pending, verifies it, promotes it, then revokes the old key after a grace period. Today it works for Cloudflare tokens and AWS IAM keys you have set up, and an agent can start it only under a grant with autopilot; other providers cannot be rotated through their API yet.
store_secretSaves a value the agent already holds as a new vault item.

Set it up in your agent: Aider · Amp · Claude Code · Claude Desktop · Cline · OpenAI Codex CLI · all agents

Frequently asked questions

How do I get a Wise API token?

In a Wise business account open Your Account → Connect and manage apps → API tokens, click Add new token, pass 2-step verification and copy the token.

Can I see my Wise API token again?

No. A Wise personal token is shown once, so revoke it and create a new one if it is lost.

Do Wise personal API tokens expire?

No. Wise personal tokens stay active until they are revoked.

Do Wise personal tokens have full API access?

No. They are limited to endpoints such as quotes, recipients, transfers and transfer events; broader access needs a Wise partnership and OAuth 2.0.

Is there a Wise sandbox?

Yes. Wise offers a free sandbox account pre-funded with test credit, and sandbox tokens only work in sandbox.

Can an AI agent use my Wise key without seeing it?

Yes, if the key never enters the agent's context. Instead of pasting the key into a chat or leaving it in a .env file the agent can read, keep it in a credential broker that injects it into the command or request on the agent's behalf. BotPassword does this with run_with, http_request, store_secret, so the agent gets the result and never the value.

Stop pasting Wise keys into agents

BotPassword is in early access. Request an invite and we'll email you when your spot opens.