Skip to the page

List API keys

The API keys of the workspace, with what each may do and when it was last used.

api_keys_list
Needs the scopeapi_keys:read
Only reads

Arguments

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

  • accessstring

    Only keys with this access: full or sending.

    One offullsending

  • modestring

    Only keys in this mode: live or test.

    One oflivetest

Returns

The answer comes back under structuredContent, with the same JSON as text in content. A call the API refuses comes back with isError set, and the code and the message under structuredContent.error. MCP shows how to connect a client.

  • object"list"

    Always list.

  • dataobject[]

    The items on this page.

  • data[].object"api_key"

    Always api_key.

  • data[].idstring

    The id of the key.

  • data[].namestring

    The name you gave the key.

  • data[].accessstring

    What the key may do: full for everything, sending for sending email and nothing else.

    One offullsending

  • data[].modestring

    live for a key that sends real email, test for a key whose emails are simulated and reach nobody.

    One oflivetest

  • data[].previewstring

    The start of the key, enough to recognise it.

  • data[].domainIdstring | null

    The id of the one domain a sending key may send from, or null when it may send from any.

  • data[].domainstring | null

    The name of that domain, or null.

  • data[].lastUsedAtstring | null

    When the key last made a request, or null if it never has.

  • data[].createdAtstring

    When the key was made.

  • totalinteger

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

  • hasMoreboolean

    Whether more items follow this page.