API Reference
The Selling Lane API provides programmatic access to your contacts, inventory and companies. All responses are JSON. The base URL for all endpoints is https://success.sellinglane.com/api/.
Authentication
Every request (except /api/keys/generate/) requires an API key. Pass it using any of the three methods below — the Authorization header is recommended.
| Method | Format | Example |
|---|---|---|
| Authorization header | Bearer token | Authorization: Bearer {key} |
| X-API-Key header | Raw key | X-API-Key: {key} |
| Query parameter | URL param | ?api_key={key} |
Get your first key
Use /api/keys/generate/ with your account credentials to bootstrap your first key — no existing key required.
curl -X POST https://success.sellinglane.com/api/keys/generate/ \ -d "email=you@example.com" \ -d "password=yourpassword" \ -d "key_name=My First Key"
Pagination
All list endpoints support offset pagination via page and per_page query parameters. Responses include a meta object with totals.
| Parameter | Type | Description |
|---|---|---|
| pageoptional | integer | Page number, starting at 1. Defaults to 1. |
| per_pageoptional | integer | Results per page, 1–200. Defaults to 50. |
{
"success": true,
"data": [ /* array of records */ ],
"meta": {
"total": 348,
"page": 1,
"per_page": 50,
"total_pages": 7
}
}
Contacts
Contacts represent individual people in your account.
Returns a paginated list of contacts ordered by last name, first name.
curl "https://success.sellinglane.com/api/contacts/?page=1&per_page=25" \ -H "Authorization: Bearer {your_api_key}"
Retrieve a single contact by ID.
curl https://success.sellinglane.com/api/contacts/view/42/ \ -H "Authorization: Bearer {your_api_key}"
Inventory
Inventory items represent vehicles or products tracked in your account.
Returns a paginated list of inventory items ordered by creation date descending. Filter by status with the optional status parameter.
| Parameter | Type | Description |
|---|---|---|
| statusoptional | string | Filter by item status, e.g. inAuction or sold. |
curl "https://success.sellinglane.com/api/inventory/?status=available&per_page=25" \ -H "Authorization: Bearer {your_api_key}"
Retrieve a single inventory item by ID.
curl https://success.sellinglane.com/api/inventory/view/101/ \ -H "Authorization: Bearer {your_api_key}"
Companies
Companies represent business entities linked to contacts in your account.
Returns a paginated list of companies ordered alphabetically by name.
curl https://success.sellinglane.com/api/companies/ \ -H "Authorization: Bearer {your_api_key}"
Retrieve a single company by ID.
curl https://success.sellinglane.com/api/companies/view/15/ \ -H "Authorization: Bearer {your_api_key}"
API Key Management
Create and manage the API keys used to authenticate requests to this API.
List all API keys for your account. Key values are masked; only a short preview is returned.
curl https://success.sellinglane.com/api/keys/ \ -H "Authorization: Bearer {your_api_key}"
Create a new API key for your account.
| Parameter | Type | Description |
|---|---|---|
| key_nameoptional | string | A label for this key. Defaults to New Key. |
curl -X POST https://success.sellinglane.com/api/keys/create/ \ -H "Authorization: Bearer {your_api_key}" \ -d "key_name=Production"
Revoke an API key by ID. The key is deactivated immediately and all requests using it will be rejected.
curl -X POST https://success.sellinglane.com/api/keys/revoke/3/ \ -H "Authorization: Bearer {your_api_key}"
Bootstrap your first API key using your Selling Lane email and password. No existing API key is required.
| Parameter | Type | Description |
|---|---|---|
| emailrequired | string | Your Selling Lane account email address. |
| passwordrequired | string | Your Selling Lane account password. |
| key_nameoptional | string | A label for the key. Defaults to Default. |
curl -X POST https://success.sellinglane.com/api/keys/generate/ \ -d "email=you@example.com" \ -d "password=yourpassword" \ -d "key_name=My First Key"