Loading...
Was this page helpful?
This documentation provides a reference to the revokeApiKeysWorkflow
. It belongs to the @medusajs/medusa/core-flows
package.
This workflow revokes one or more API keys. If the API key is a secret, it can't be used for authentication anymore. If it's publishable, it can't be used by client applications.
This workflow is used by the Revoke API Key API Route.
You can use this workflow within your customizations or your own custom workflows, allowing you to revoke API keys within your custom flows.
Source CodeWorkflow hook
Step conditioned by when
View step details
RevokeApiKeysWorkflowInput
RevokeApiKeysWorkflowInputselector
FilterableApiKeyPropsrevoke
RevokeApiKeyDTORevokeApiKeysWorkflowOutput
RevokeApiKeysWorkflowOutputid
stringtoken
stringredacted
stringsk_...123
.title
stringtype
ApiKeyTypelast_used_at
null | Datecreated_by
stringcreated_at
Dateupdated_at
Datedeleted_at
null | Daterevoked_by
null | stringrevoked_at
null | Date