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.

MethodFormatExample
Authorization headerBearer tokenAuthorization: Bearer {key}
X-API-Key headerRaw keyX-API-Key: {key}
Query parameterURL 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
curl -X POST https://success.sellinglane.com/api/keys/generate/ \
  -d "email=you@example.com" \
  -d "password=yourpassword" \
  -d "key_name=My First Key"
Store your API key securely — it is shown only once and cannot be retrieved later.

Contacts

Contacts represent individual people in your account.

GEThttps://success.sellinglane.com/api/contacts/

Returns a paginated list of contacts ordered by last name, first name.

curl
curl "https://success.sellinglane.com/api/contacts/?page=1&per_page=25" \
  -H "Authorization: Bearer {your_api_key}"
GEThttps://success.sellinglane.com/api/contacts/view/{id}/

Retrieve a single contact by ID.

curl
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.

GEThttps://success.sellinglane.com/api/inventory/

Returns a paginated list of inventory items ordered by creation date descending. Filter by status with the optional status parameter.

ParameterTypeDescription
statusoptionalstringFilter by item status, e.g. inAuction or sold.
curl
curl "https://success.sellinglane.com/api/inventory/?status=available&per_page=25" \
  -H "Authorization: Bearer {your_api_key}"
GEThttps://success.sellinglane.com/api/inventory/view/{id}/

Retrieve a single inventory item by ID.

curl
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.

GEThttps://success.sellinglane.com/api/companies/

Returns a paginated list of companies ordered alphabetically by name.

curl
curl https://success.sellinglane.com/api/companies/ \
  -H "Authorization: Bearer {your_api_key}"
GEThttps://success.sellinglane.com/api/companies/view/{id}/

Retrieve a single company by ID.

curl
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.

GEThttps://success.sellinglane.com/api/keys/

List all API keys for your account. Key values are masked; only a short preview is returned.

curl
curl https://success.sellinglane.com/api/keys/ \
  -H "Authorization: Bearer {your_api_key}"
POSThttps://success.sellinglane.com/api/keys/create/

Create a new API key for your account.

ParameterTypeDescription
key_nameoptionalstringA label for this key. Defaults to New Key.
curl
curl -X POST https://success.sellinglane.com/api/keys/create/ \
  -H "Authorization: Bearer {your_api_key}" \
  -d "key_name=Production"
POSThttps://success.sellinglane.com/api/keys/revoke/{id}/

Revoke an API key by ID. The key is deactivated immediately and all requests using it will be rejected.

curl
curl -X POST https://success.sellinglane.com/api/keys/revoke/3/ \
  -H "Authorization: Bearer {your_api_key}"
POSThttps://success.sellinglane.com/api/keys/generate/

Bootstrap your first API key using your Selling Lane email and password. No existing API key is required.

ParameterTypeDescription
emailrequiredstringYour Selling Lane account email address.
passwordrequiredstringYour Selling Lane account password.
key_nameoptionalstringA label for the key. Defaults to Default.
curl
curl -X POST https://success.sellinglane.com/api/keys/generate/ \
  -d "email=you@example.com" \
  -d "password=yourpassword" \
  -d "key_name=My First Key"