Customer Contacts API

Get access to your customer contacts data through Cloudbox's v1 API.

Retrieving Customer Contacts

People: contacts at B2B customer accounts (contact_type b2b) and standalone retail customers (b2c).

Use GET /api/v1/customer-contacts to page through every record in your organization, or GET /api/v1/customer-contacts/{id} to fetch a single record. The id is a string, and a 404 means it doesn't exist in your organization.

API Endpoint

GET
/api/v1/customer-contacts
GET
/api/v1/customer-contacts/{id}

Required Headers

Every request must include the following:

Header Key
Description
org-api-key
Your Organization API key. Contact Cloudbox Support For Access: support@cloudboxapp.com.
user-api-key
Your User API Key

Requests missing either header will return 401 Unauthorized

Example Request

bash curl -X GET "https://app.cloudboxapp.com/api/v1/customer-contacts?limit=100" \ -H "org-api-key: YOUR_ORG_API_KEY" \ -H "user-api-key: YOUR_USER_API_KEY" \ -H "Accept: application/json"

Response Schema

Column
Type
Description
id
integer
Unique ID
customer_account_id
string (uuid), nullable
References CustomerAccounts. Filterable (exact)
contact_type
string
Filterable (exact)
first_name
string, nullable
last_name
string, nullable
Sortable
email
string, nullable
Filterable (exact)
phone
string, nullable
title
string, nullable
is_primary
boolean, nullable
address
string, nullable
city
string, nullable
state
string, nullable
zip
string, nullable
created_at
string (ISO 8601)
Creation timestamp (UTC). Sortable

Filters

limitPage size (default 100, max 1000)
offsetNumber of records to skip (default 0)
sortOne of: last_name, created_at
orderasc | desc
customer_account_idContacts at this customer account
contact_typeb2b | b2c
emailExact email match
searchCase-insensitive partial match on last name
default sortcreated_at descending

Errors

Cloudbox uses standard HTTP status codes to indicate API success or failure:

  • 200–299 – Request succeeded
  • 400 – Bad request (missing parameters, invalid values)
  • 401 – Unauthorized (missing or invalid API keys)
  • 404 – Resource not found
  • 429 – Too many requests (rate limited)