Median

GET /config

Updated Oct 1, 20261 minute read

Get the config

Your organization's name and the agent that answers. Renaming the agent in the dashboard is reflected here.

Part of Conversations.

Responses

StatusDescription
200The organization and its agent.
401missing_api_key: no bearer token. invalid_api_key: the key matches no organization or was revoked. publishable_key: a median_pk_ key was sent. An OAuth access token is refused here with invalid_api_key.
429The organization's API allowance for this class of request is used up. Wait the Retry-After header's seconds. Limits depend on the plan. See rate limits.

200 body

FieldTypeRequiredDescription
orgNamestringYes
agentobjectYesWho answered. Covers both the AI and your team.
agent.kind"ai" | "human"Yes
agent.namestringYes
agent.avatarUrlanyYes

Example response

{
  "orgName": "Acme",
  "agent": {
    "kind": "ai",
    "name": "Median AI",
    "avatarUrl": null
  }
}

Example request

curl https://api.median.sh/v1/config \
  -H "Authorization: Bearer $MEDIAN_KEY"

Still need help?

    Esc