Permission required:
service_account:updatePath Parameters
string
required
Key identifier
Headers
string
Optional but recommended. Retrying with the same value replays the first result — it does not mint a second key.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
curl -X POST 'https://app.memorylake.ai/openapi/memorylake/admin/v1/api-keys/312/rotate' \
-H 'Authorization: Bearer sk-xxxxxx' \
-H 'Idempotency-Key: 7c1d2e3f-0a9b-4c8d-b7e6-f5a4d3c2b1a0'
{
"success": true,
"message": "Operation completed successfully",
"data": {
"id": "312",
"name": "ci-pipeline",
"key_prefix": "f6e5d4c3",
"key": "sk-f6e5d4c3...redacted...b2a1"
}
}
Replaces the key material and returns the new value once
POST /openapi/memorylake/admin/v1/api-keys/{id}/rotate
Idempotency-Key — a blind retry would invalidate the key you just received.service_account:updatecurl -X POST 'https://app.memorylake.ai/openapi/memorylake/admin/v1/api-keys/312/rotate' \
-H 'Authorization: Bearer sk-xxxxxx' \
-H 'Idempotency-Key: 7c1d2e3f-0a9b-4c8d-b7e6-f5a4d3c2b1a0'
{
"success": true,
"message": "Operation completed successfully",
"data": {
"id": "312",
"name": "ci-pipeline",
"key_prefix": "f6e5d4c3",
"key": "sk-f6e5d4c3...redacted...b2a1"
}
}