Get log

Returns one authorized log. Canonical API request events retain bounded, redacted details only for failed requests; successful requests remain metadata-only, and expired failure detail reports detail_status=expired. Other integration logs keep their existing source-specific detail behavior. A log id that belongs to another workspace returns 404 NOT_FOUND.
https://api.unipost.dev
GET/v1/logs/:id
Authorization
In header ยท Bearer <token>
Path
integer

Authorization

AuthorizationBearer <token>In header
Workspace API key, or a dashboard Clerk session.

Path Params

idinteger
Positive numeric ID returned by List logs.

Response Body

200
data.idinteger
Positive numeric log ID.
data.workspace_idstring
Owning workspace. Always your authenticated workspace.
data.tsstring
RFC3339 event timestamp.
data.levelstring
Severity level.
data.statusstring
Outcome status.
data.categorystring
Log category.
data.actionstring
Specific log action.
data.sourcestring
Origin of the log.
data.messagestring
Human-readable summary.
data.metadataobject
Structured, log-specific context.
data.has_error_detailboolean
For canonical API request events, indicates whether bounded failure detail was captured. Omitted for other log types.
data.detail_status"available" | "expired"
Failure-detail lifecycle for a canonical API request event. expired means the metadata remains available but its bounded detail is no longer retained.
data.request_payloadobject | string | null
Optional, redacted, bounded request detail. Canonical API requests save it only on failure; it may be omitted or truncated.
data.response_payloadobject | string | null
Optional, redacted, bounded response detail. Canonical API requests save it only on failure; it may be omitted or truncated.
request_idstring
Request identifier for this API call.
401
error.codestring
Usually "UNAUTHORIZED" or "NOT_FOUND".
error.normalized_codestring
Lowercase alias such as "not_found".
error.messagestring
Human-readable error message.
request_idstring
Request identifier for debugging and support.
404
error.codestring
Usually "UNAUTHORIZED" or "NOT_FOUND".
error.normalized_codestring
Lowercase alias such as "not_found".
error.messagestring
Human-readable error message.
request_idstring
Request identifier for debugging and support.
500
error.codestring
Usually "UNAUTHORIZED" or "NOT_FOUND".
error.normalized_codestring
Lowercase alias such as "not_found".
error.messagestring
Human-readable error message.
request_idstring
Request identifier for debugging and support.