Regenerate API key
Issues a new secret for the given key, invalidating the previous secret. The raw secret (key) is returned only in this response.
Authorizations
A logged-in user session bearer token (WorkOS AuthKit access token from signup/login).
Path Parameters
UUID of the developer organization.
UUID of the API key to regenerate.
Response
Key regenerated. The new raw secret (key) is returned only in this response and the previous secret stops working immediately. key_prefix changes to match the new secret. (Body captured verbatim from the live sandbox.)
An API key. The secret is returned only once at create/regenerate (see DeveloperApiKeyWithSecret).
Unique identifier for this resource.
UUID identifier.
Human-readable display name.
Key prefix.
One of: test, live.
test, live Permission scopes granted to this key; empty means unscoped (full access within the account).
RFC 3339 timestamp.
IP address of the most recent request made with this key; null if never used.
RFC 3339 timestamp of when this value expires.
RFC 3339 timestamp of when the key was revoked; null while the key is active.
UUID identifier.
RFC 3339 timestamp of when the resource was created.
The raw secret key — shown only once.