Skip to the page

Retrieve log

One request: what was asked, what was answered and how long it took.

opensend logs get <id>
Needs the scopelogs:read
Only reads

Flags

  • <id>stringRequired

    The id of the item. Up to 64 characters.

Returns

The command prints the answer: as JSON when its output goes to a file or another program, and as a table or a list of fields in a terminal. When the API refuses, the error goes to the error stream and the command ends with a code that names the failure. Output and scripts lists the codes.

  • object"log"

    Always log.

  • idstring

    The id of the log entry.

  • methodstring

    The HTTP verb of the request.

    One ofGETPOSTPATCHDELETE

  • pathstring

    The path that was asked for.

  • statusinteger

    The HTTP status of the answer.

  • outcomestring

    success for a 2xx answer, client_error for 4xx, server_error for 5xx.

    One ofsuccessclient_errorserver_error

  • durationMsnumber

    How long the request took, in milliseconds.

  • keyIdstring | null

    The id of the API key that made it, or null.

  • modestring

    test when a test key made the request, otherwise live.

    One oflivetest

  • userAgentstring

    What the client called itself.

  • requestIdstring

    The id the answer carried in its request id header. Empty on an older entry.

  • errorobject | null

    Why the request failed, or null when it did not.

  • error.typestring

    The kind of error, as in the answer.

  • error.codestring

    The code of the error, as in the answer.

  • error.messagestring

    What the answer said was wrong.

  • resourceobject | null

    What a request that changed something made or changed, or null.

  • resource.objectstring

    The kind of thing, such as email or domain.

  • resource.idstring

    Its id.

  • toolstring | null

    The tool an MCP request called, such as emails_send, or null.

  • createdAtstring

    When the request was made.