Skip to the page

List logs

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

GET/v1/logs
Needs the scopelogs:read

Query parameters

  • 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

  • keyIdstring

    Only requests made with this API key.

  • resourceIdstring

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

  • toolstring

    Only MCP requests that called this tool.

Returns

  • 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[].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.