Median

POST /customers/{id}/refresh-profile

Updated Oct 1, 20261 minute read

Refresh the profile

Asks the learned profile to catch up on settled conversations. rebuild: true wipes it and reads the history afresh. Calling it again while nothing needs doing is free.

Part of Customers.

Parameters

NameInTypeRequiredDescription
idpathstringYesA customer id.

Request body

application/json, optional.

FieldTypeRequiredDescription
rebuildbooleanNo

Responses

StatusDescription
202Accepted. The work happens in the background.
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.

202 body

FieldTypeRequiredDescription
okbooleanNo

Example request

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

Still need help?

    Esc