Skip to main content

Authentication

AgentLine uses Bearer API keys. Every authenticated request needs:

Getting a key

Sign-up and sign-in use the same email one-time-code flow:
1

Request a code

2

Verify the code to mint a key

Returns api_key (plaintext, shown once) plus your account_id and balance. New emails auto-create an account with a sign-up credit.
The same email always resolves to the same account — an agent that signs up and a human who later signs in land on the identical account.

Managing keys

You can’t revoke the key currently authenticating a request. Use a second active key, then revoke the old one. Keys are bcrypt-hashed at rest.

Using the key