BOS API/Leads
Leads API
Create, retrieve, update, and delete leads in your BOS workspace.
Authentication
Every request to the Leads API must include a valid BOS API key.
Authorization: Bearer $BOS_API_KEYYour API key must have the scope required by the endpoint you are calling.
Base URL
All BOS API requests use the following base URL.
https://www.betazu.com/api/v1Endpoints
GET
/api/v1/leadsList leads
Retrieve leads available to your authenticated BOS application.
bos:leads:read
POST
/api/v1/leadsCreate a lead
Create a new lead in your BOS workspace.
bos:leads:create
PATCH
/api/v1/leads/:idUpdate a lead
Update an existing lead.
bos:leads:update
DELETE
/api/v1/leads/:idDelete a lead
Delete an existing lead.
bos:leads:delete
Example request
Retrieve leads using your BOS API key.
curl https://www.betazu.com/api/v1/leads \
-H "Authorization: Bearer $BOS_API_KEY"Store your API key securely
Store the secret generated by BOS as an environment variable. Never expose it in browser-side code or commit it to source control.
BOS_API_KEY=bz_live_xxxxxxxxxxxxxxxxxxxxxxxxxRequired scopes
Each operation requires the corresponding permission on your API key.
OperationScope
Read leads
bos:leads:readCreate leads
bos:leads:createUpdate leads
bos:leads:updateDelete leads
bos:leads:delete