Read one log entry
Owners and admins only. The entry, what it touched by name, and when it is about a conversation, everything else logged about that conversation in order, capped at 50.
GET
/logs/{id}Authorization
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.
Path parameters
idstringrequiredThe entry's id from GET /logs.
Responses
200The entry, what it touched, and its conversation's other entries.
entryobjectrequiredShow propertiesHide properties
idstringatnumbereventstringcategorystringoutcomestringmessagestringsummarystring | nullerrorstring | nullactorKindstringactorIdstring | nullfeaturestring | nulldurationMsnumber | nulldetailsobjectconversationIdstring | nulldocIdstring | nullsignalIdstring | nullcustomerIdstring | nullrelatedobject[]requiredShow propertiesHide properties
Array of
objectidstringatnumbereventstringcategorystringoutcomestringmessagestringsummarystring | nullerrorstring | nullactorKindstringactorIdstring | nullfeaturestring | nulldurationMsnumber | nulldetailsobjectconversationIdstring | nulldocIdstring | nullsignalIdstring | nullcustomerIdstring | nullrelatedLimitedbooleanrequiredaboutobject[]requiredShow propertiesHide properties
Array of
objectkindstringrequiredAllowed:
conversationdocsignalcustomerlabelstringrequiredhrefstringrequired400The request is malformed, and the message names the field.
errorobjectShow propertiesHide properties
codestringmessagestring401The bearer token is missing, revoked, or expired.
errorobjectShow propertiesHide properties
codestringmessagestring403The token's person does not hold the role this needs.
errorobjectShow propertiesHide properties
codestringmessagestring404Not one of yours, or not there at all.
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/logs/string" \
-H "Authorization: Bearer YOUR_TOKEN"const response = await fetch("https://api.median.sh/v1/logs/string", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_TOKEN"
}
});Response
{
"entry": {
"id": "string",
"at": 0,
"event": "string",
"category": "string",
"outcome": "string",
"message": "string",
"summary": "string",
"error": "string",
"actorKind": "string",
"actorId": "string",
"feature": "string",
"durationMs": 0,
"details": {},
"conversationId": "string",
"docId": "string",
"signalId": "string",
"customerId": "string"
},
"related": [
{
"id": "string",
"at": 0,
"event": "string",
"category": "string",
"outcome": "string",
"message": "string",
"summary": "string",
"error": "string",
"actorKind": "string",
"actorId": "string",
"feature": "string",
"durationMs": 0,
"details": {},
"conversationId": "string",
"docId": "string",
"signalId": "string",
"customerId": "string"
}
],
"relatedLimited": true,
"about": [
{
"kind": "conversation",
"label": "string",
"href": "string"
}
]
}{
"error": {
"code": "string",
"message": "string"
}
}{
"error": {
"code": "string",
"message": "string"
}
}{
"error": {
"code": "string",
"message": "string"
}
}{
"error": {
"code": "string",
"message": "string"
}
}{
"error": {
"code": "string",
"message": "string"
}
}