v63

latestOpenAPI 3.0.0Proprietaryraw.githubusercontent.com2026-08-0110571.8 MB
Projects
API Keys
Organization Management

Delete and generate new API key for project

Generates a new API key for the specified project, invalidating any existing API keys for that project. This operation creates a fresh API key with a new random name and key value. All existing API keys for this project will be marked as deleted.

post/api/v3.1/org/owner/project/{nano_id}/regenerate_api_key

Path parameters

nano_idstring projectId required

Unique identifier (Nano ID) of the project to regenerate API key for

Example:pr_1a2b3c4d5e6f

Unique identifier (Nano ID) of the project to regenerate API key for

Response

API key regenerated successfully. Returns the new API key details.

messagestring required

Success message

Example response

{
  "api_key": {
    "id": "01H4DKRF5SMP7NQCA3BWT0JYB6",
    "name": "epic_avatar",
    "key": "ak_a1b2c3d4e5f6g7h8i9j0",
    "created_at": "2023-05-16T14:30:00.000Z"
  },
  "message": "API key regenerated successfully"
}