Skip to the page

Revoke API key

Revokes an API key at once. Requests that use it are refused from then on.

opensend api-keys remove <id>
Needs the scopeapi_keys:write
Destroys something

Flags

  • <id>stringRequired

    The id of the item. Up to 64 characters.

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.

  • objectstring

    What kind of thing was removed.

    One oflistemailbroadcastaudiencetemplatetemplate_versiontemplate_starterautomationmetricsdomainapi_keywebhooklogworkspacemembermethodaccountinbound_emailwebhook_deliverycontactplancheckoutinvoiceask_answersuppressionchatautomation_runeventevent_receiptimportimport_inventorytopiccontact_propertyimageserver

  • idstring

    The id of what was removed.

  • deletedtrue

    Always true: it is gone for good.