Median

GET /customers/{id}

Updated Oct 1, 20261 minute read

Get a customer

The whole person: their history, the browser context the widget noticed, and the facts learned from resolved conversations.

Part of Customers.

Parameters

NameInTypeRequiredDescription
idpathstringYesA customer id.

Responses

StatusDescription
200The customer.
401The bearer token is missing, revoked, or expired.
404Not one of yours, or not there at all.
429Too many requests. Wait the seconds in Retry-After. Limits depend on the plan. See rate limits.

200 body

FieldTypeRequiredDescription
idstringNo
nameanyNo
customerNumberanyNo
emailanyNo
isVerifiedbooleanNoThe host's site vouched for who this is.
firstSeenAtintegerNo
lastSeenAtanyNo
conversationCountintegerNo
hasMoreConversationsbooleanNo
metadataobjectNo
contextobjectNoWhat the widget noticed about their browser, or null.
context.timeZonestringNo
context.localestringNo
context.browserstringNo
context.osstringNo
context.device"desktop" | "tablet" | "mobile"No
context.screenstringNo
conversationsobject[]No
conversations[].idstringNo
conversations[].threadIdanyNo
conversations[].subjectstringNo
conversations[].previewstringNo
conversations[].statusstringNo
conversations[].aiStatusstringNo
conversations[].lastMessageAtintegerNo
factsobject[]No
facts[].idstringNo
facts[].kind"identity" | "setup" | "billing" | "preference" | "promise"No
facts[].textstringNo
facts[].learnedAtintegerNo

Example request

curl https://api.median.sh/v1/customers/id \
  -H "Authorization: Bearer $BEARER_AUTH"

Still need help?

    Esc