Skip to the page

Look into another account

Counts what a key can read in a Resend account: domains, contacts, templates, webhooks and the rest, and says which of them an import brings over. It reads and changes nothing, there or here, and the key is not kept.

opensend.imports.inspect(input)
Needs the scopeimports:writeFrom a terminalopensend imports inspect

Input

  • sourcestring

    The service to read the account from. Without it, resend.

    One ofresend

  • apiKeystringRequired

    A key of the other account with full access. At Resend it starts with re_. It is used to read, never to send or to change anything there.

Returns

The call resolves to the answer, already parsed. A call the API refuses throws OpenSendError with the code and the message of the answer. SDK lists the errors of the client itself.

  • object"import_inventory"

    Always import_inventory.

  • sourcestring

    The service whose account was looked into: resend.

    One ofresend

  • resourcesobject[]

    Everything the key can read there, with how much of it there is.

  • resources[].resourcestring

    What was counted.

    One ofdomainssuppressionsaudiencescontactstemplatesbroadcastswebhooksapi_keystopicscontact_propertiesautomationsevents

  • resources[].countinteger

    How many the first page holds, up to 100.

  • resources[].moreboolean

    Whether there are more than that.

  • resources[].importableboolean

    Whether an import brings it over.

  • resources[].notestring

    What to know before bringing it over: why it stays behind when it does, or how it arrives. Empty when there is nothing to add.