List customers
The directory, most recently heard from first. One row per person rather than per browser: visitors sharing an email fold into a single customer.
GET
/customersAuthorization
AuthorizationBearer token · headerrequired`MEDIAN_KEY` from Settings under API, or an MCP OAuth access token. A key acts as the organization; a token acts as the person who approved it.
Query parameters
limitintegerUp to 100. Default 50.
Responses
200The customers.
customersCustomerSummary[]Show propertiesHide properties
Array of
CustomerSummaryidstringnamestring | nullcustomerNumberinteger | nullemailstring | nullisVerifiedbooleanThe host's site vouched for who this is.
firstSeenAtintegerlastSeenAtinteger | nullconversationCountintegerhasMoreConversationsboolean401The bearer token is missing, revoked, or expired.
errorobjectShow propertiesHide properties
codestringmessagestring429Too many requests. Wait the seconds in `Retry-After`. Limits depend on the plan. See [rate limits](/api/errors-and-limits#rate-limits).
errorobjectShow propertiesHide properties
codestringmessagestringRequest
curl -X GET "https://api.median.sh/v1/customers" \
-H "Authorization: Bearer YOUR_TOKEN"const response = await fetch("https://api.median.sh/v1/customers", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_TOKEN"
}
});Response
{
"customers": [
{
"id": "string",
"name": "string",
"customerNumber": 0,
"email": "string",
"isVerified": true,
"firstSeenAt": 0,
"lastSeenAt": 0,
"conversationCount": 0,
"hasMoreConversations": true
}
]
}{
"error": {
"code": "string",
"message": "string"
}
}{
"error": {
"code": "string",
"message": "string"
}
}