Skip to main content
Every request to SafeConduct carries an API key. A key belongs to your account, spends your account’s balance, and has its own settings.

Create a key

1

Sign in

Open safeconduct.ai and sign in. SafeConduct is invite-only for now: if you have no account, join the waitlist on the sign-up page and the invite arrives by email with your first API key.
2

Open API keys

In the console, go to API keys.
3

Name the key and create it

Under Create a key, type a name that says what will use it, for example tm-bot-eu, and press Create key.
4

Copy it now

The full key is shown once. It starts with sy_live_. Copy it and keep it in an environment variable or a secret store; the console only shows its first characters afterwards.
Use one key per bot or per environment. Each key has its own routing settings and its own daily cap, and the console shows what each one spent.

Send the key

To check that a key works, read your balance. It costs nothing.
A missing, wrong or revoked key gets 401 with the code UNAUTHORIZED.

Keep it safe

  • Set a daily cap. A key without one can spend the whole balance if it leaks. The cap is one of the key’s settings.
  • Don’t put it in code you publish, in a browser page or in a URL you log. The 2Captcha format carries the key in the request’s parameters, so prefer the form body to the query string there.

Revoke a key

On API keys, open the key and revoke it. It stops working within 30 seconds, for good. Tasks already running finish and are billed normally. Create a new key to replace it; a revoked key can’t be brought back.