Read the request log
const url = 'https://example.com/api/v1/request-log?from=example&to=example';const options = { method: 'GET', headers: {cookie: 'bl_%3Cslug%3E_session=%3Cbl_%3Cslug%3E_session%3E'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/api/v1/request-log?from=example&to=example' \ --cookie bl_%3Cslug%3E_session=%3Cbl_%3Cslug%3E_session%3EThe data plane’s log of data requests of this participant (decisions #61, #62), from the log storage, as JSON Lines in time order, streamed hour by hour. A line with error (log_store_failed) ends a stream that failed halfway.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Start, RFC 3339.
End, RFC 3339; at most 31 days after from.
The lowest level: error, warn or info (default).
Only requests with this counterparty (a DID).
Only requests of this process (a transfer id).
Responses
Section titled “Responses”One JSON object per logged request.
object
Example generated
{}from or to is not RFC 3339, the period is empty or longer than 31 days, or the level is unknown.
The body of every failed call to a management API.
object
object
Stable, machine-readable: invalid_request, unauthenticated,
forbidden, not_found, conflict, upstream_unavailable,
unavailable, internal, or a more specific code of the operation.
For people; may change between versions.
Example
{ "error": { "code": "not_found", "message": "unknown negotiation" }}No valid session, DPoP-bound token or API key.
The body of every failed call to a management API.
object
object
Stable, machine-readable: invalid_request, unauthenticated,
forbidden, not_found, conflict, upstream_unavailable,
unavailable, internal, or a more specific code of the operation.
For people; may change between versions.
Example
{ "error": { "code": "not_found", "message": "unknown negotiation" }}The caller lacks the role this operation needs; or a change with the session cookie came from a page of another site (cross_site_request, decisions #83).
The body of every failed call to a management API.
object
object
Stable, machine-readable: invalid_request, unauthenticated,
forbidden, not_found, conflict, upstream_unavailable,
unavailable, internal, or a more specific code of the operation.
For people; may change between versions.
Example
{ "error": { "code": "not_found", "message": "unknown negotiation" }}log_store_not_configured: the connector has no log storage.
The body of every failed call to a management API.
object
object
Stable, machine-readable: invalid_request, unauthenticated,
forbidden, not_found, conflict, upstream_unavailable,
unavailable, internal, or a more specific code of the operation.
For people; may change between versions.
Example
{ "error": { "code": "not_found", "message": "unknown negotiation" }}