Skip to main content

Authentication

The ABC Sales AI API authenticates requests with an API key sent as a Bearer token in the Authorization header.

Authorization: Bearer <YOUR_API_KEY>

A request without a valid key is rejected with 401 Unauthorized.

Getting your API key

Each company is issued one API key, generated automatically when the company account is created. You don't create keys through the API; find your key in the app under your company settings (it is shown to logged-in users). The key is a random 32-byte string, base64url-encoded, with no prefix.

Scope

The key is scoped to your company, not to an individual user. It grants access to your company's resources across the public API.

Authenticating a request

curl https://api.abcsalesbot.com/v1/companies/me \
-H "Authorization: Bearer $ABC_API_KEY"

The API also accepts the key via HTTP Basic auth (any username, the API key as the password), which is convenient for tools that only support Basic credentials:

curl https://api.abcsalesbot.com/v1/companies/me \
-u "api:$ABC_API_KEY"
Keep your key secret

Treat the API key like a password. Never commit it to source control or expose it in client-side code. If a key is compromised, contact your ABC Sales AI account manager.