Getting started
Create an API key, authenticate a request, and retrieve customers from your SalesBinder account.
Create an API key
- Sign in to SalesBinder.
- Open your profile.
- Select API Keys.
- Enter a descriptive key name.
- Choose whether the key should inherit all actions allowed by your permissions or use restricted scopes.
- Create the key and copy it immediately.
The complete API key is displayed only once. SalesBinder stores a secure hash and cannot show the complete key again.
Make your first request
Pass the API key in the Authorization header using the Bearer authentication scheme:
curl "https://yourbusiness.salesbinder.com/api/v3/customers?limit=5" \
--header "Accept: application/json" \
--header "Authorization: Bearer YOUR_API_KEY"A successful request returns a list object:
{
"object": "list",
"url": "/api/v3/customers",
"has_more": true,
"data": [
{
"id": "709d2a43-12a9-4d85-a9d9-cb16e66cef53",
"object": "customer",
"customer_number": 527,
"name": "Example Customer"
}
],
"pagination": {
"page": 1,
"per_page": 5,
"total_pages": 4,
"total_records": 20
}
}Examples in this documentation may omit unchanged fields for readability. Resource reference pages show the complete response object.
Send JSON data
For POST, PUT, and PATCH requests, send a JSON object and set Content-Type: application/json:
curl "https://yourbusiness.salesbinder.com/api/v3/customers" \
--request POST \
--header "Accept: application/json" \
--header "Authorization: Bearer YOUR_API_KEY" \
--header "Content-Type: application/json" \
--data '{"name":"Example Customer"}'Next steps
- Review authentication and key security.
- Understand permissions and scopes.
- Learn how to handle rate limits.
- Read the customers reference.
- Read the prospects reference.
- Learn how errors are formatted.