Authentication

The Salesgear API uses API keys to authenticate requests.

Get Your API Key

  1. Log in to Salesgear
  2. Go to Settings > API Keys
  3. Click Generate New Key
  4. Copy the key and store it securely — you won't be able to view it again
📘

Keep your API key secret

Don't commit your API key to version control or expose it in client-side code.

Making Authenticated Requests

Include your API key in the Authorization header of every request:

```
curl https://api.salesgear.io/v1/contacts
-H "Authorization: Bearer YOUR_API_KEY"
```

Rotating or Revoking a Key

If a key is compromised, go to Settings > API Keys and click Revoke next to the affected key. Requests using a revoked key will return a 401 Unauthorized error.


Next: API Reference to explore available endpoints.


Did this page help you?