Skip to the page

List logs

Every request an API key has made, newest first, by method, outcome and time.

opensend logs list [flags]
Needs the scopelogs:read
Only reads

Flags

  • --qstring

    Text to search for. Only items that contain it are returned. Up to 40 characters.

  • --limitinteger

    How many items to return, from 1 to 100. Without it you get 25.

  • --offsetinteger

    How many items to skip. Use it with limit to read the next page. Default: 0.

  • --afterstring

    The id of the last item you have. The answer starts with the item that follows it, which reads a long list without skipping or repeating when it changes meanwhile. Up to 64 characters.

  • --beforestring

    The id of the first item you have. The answer ends with the item just before it. Give this or after, not both. Up to 64 characters.

  • --rangestring

    The period to look at: today, week, month, year, all or custom. Without it there is no limit in time.

    One oftodayweekmonthyearallcustom

  • --fromstring

    The first day of a custom period, as a date such as 2026-11-01.

  • --tostring

    The last day of a custom period, as a date such as 2026-11-30.

  • --methodstring

    Only requests with this HTTP verb.

    One ofGETPOSTPATCHDELETE

  • --outcomestring

    Only requests that ended this way: success, client_error or server_error.

    One ofsuccessclient_errorserver_error

  • --key-idstring

    Only requests made with this API key.

  • --resource-idstring

    Only requests that made or changed the thing with this id, such as an email.

  • --toolstring

    Only MCP requests that called this tool.

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"list"

    Always list.

  • dataobject[]

    The items on this page.

  • data[].object"log"

    Always log.

  • data[].idstring

    The id of the log entry.

  • data[].methodstring

    The HTTP verb of the request.

    One ofGETPOSTPATCHDELETE

  • data[].pathstring

    The path that was asked for.

  • data[].statusinteger

    The HTTP status of the answer.

  • data[].outcomestring

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

    One ofsuccessclient_errorserver_error

  • data[].durationMsnumber

    How long the request took, in milliseconds.

  • data[].keyIdstring | null

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

  • data[].modestring

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

    One oflivetest

  • data[].userAgentstring

    What the client called itself.

  • data[].requestIdstring

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

  • data[].errorobject | null

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

  • data[].error.typestring

    The kind of error, as in the answer.

  • data[].error.codestring

    The code of the error, as in the answer.

  • data[].error.messagestring

    What the answer said was wrong.

  • data[].resourceobject | null

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

  • data[].resource.objectstring

    The kind of thing, such as email or domain.

  • data[].resource.idstring

    Its id.

  • data[].toolstring | null

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

  • data[].createdAtstring

    When the request was made.

  • totalinteger

    How many items match in all, on every page together.

  • hasMoreboolean

    Whether more items follow this page.