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 [flags]
Needs the scopeimports:write
Changes data

Flags

  • --sourcestring

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

    One ofresend

  • --api-keystringRequired

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