api-keys

Regenerate Api Key

Changed on

Regenerate an API key (revokes old key, creates new one with same name).

Issue #169: Secret regeneration feature. Issue #1752: the owner is emailed a security notice after the commit.

WARNING: This immediately invalidates the old key. Update all applications.

post/api/v1/config/api-keys/{key_id}/regenerate

Request

  • Base URL: https://memory.kagura-ai.com (the document declares no server; this is the origin it was published from)
  • URL: https://memory.kagura-ai.com/api/v1/config/api-keys/{key_id}/regenerate
  • Auth: none declared

Path parameters

key_idstring required

Public id of the API key (akey_ + 22 base62 characters).

Example:akey_0000000000000000000000

Headers

authorizationstring nullable

Response

Successful Response

idunknown required
key_prefixunknown required
nameunknown required
user_idunknown required
created_atunknown required
last_used_atunknown
revoked_atunknown
expires_atunknown
statusunknown required
default_context_idunknown
default_context_nameunknown
api_keyunknown required

Changes

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status