Authentication
Send your key in an Authorization header on every request.
Send the key as a bearer token. Keep it secret like a password: anyone who has it can act as that member.
Authorization: Bearer vsa_YOUR_API_KEYYour first request, to check the key works (it tells you the workspace and whom the key acts as):
curl "https://api.crm.thevisionsage.com/v1/api/me" \
-H "Authorization: Bearer vsa_YOUR_API_KEY"- A request without a valid key answers 401.
- A key stops working at once if it is revoked, or if the member who made it leaves the workspace.
- The key can't do more than its member: a counsellor's key sees only their own leads.
- If your plan has ended, reading still works but changes are refused (402).
Something missing or unclear? Tell us and we will fix this page.