Admin

Regenerate an API Key access key

Regenerate the access key for an existing API key while maintaining its other properties.

post/admin/api-keys/{key_id}/regenerate

Request

  • Base URL: https://api.presscart.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.presscart.com/admin/api-keys/{key_id}/regenerate
  • Auth: HTTP bearer

Path parameters

key_idstring uuid required
Example:de7974cb-fe75-4d86-bd37-43b44017b7a8

Response

API Key access key regenerated successfully

idstring uuid required
access_key_prefixstring nullable required
access_key_last4string nullable required
token_type'read_only' | 'full_access' | 'custom' required
descriptionstring nullable required
lifespannumber nullable required
level'team' | 'admin' required
created_by_idstring uuid required
updated_by_idstring uuid nullable required
team_idstring uuid nullable required
access_keystring required

Example response

{
  "access_key_prefix": "pc_e364",
  "access_key_last4": "YMQq",
  "token_type": "read_only",
  "description": "Order sync for the n8n workflow",
  "lifespan": 2592000,
  "level": "team",
  "access_key": "pc_e364_iE8En1p_WyNa5sVQ_XDcDYMQq"
}

Changes

No recorded changes to this operation across all 3 revisions of this API.