mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-08-17 20:44:07 +00:00
docs: add scoped key deletion endpoint to auth docs (#756)
Documents the new DELETE /v3/auth/scoped-key/:keyId endpoint for disabling container-scoped API keys. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
3a36a673bf
commit
bd69e2f061
1 changed files with 16 additions and 0 deletions
|
|
@ -100,4 +100,20 @@ This works for Google Drive, Notion, and OneDrive. See the full setup in [Custom
|
|||
```
|
||||
|
||||
Use the returned key exactly like a normal API key — it just won't work outside its container scope.
|
||||
|
||||
### Disable a scoped key
|
||||
|
||||
To revoke a scoped key, send a `DELETE` request with the `id` returned at creation time. This disables the key immediately — any subsequent requests using it will get a `401`. Memories and container tags are **not** affected.
|
||||
|
||||
```bash
|
||||
curl https://api.supermemory.ai/v3/auth/scoped-key/KEY_ID \
|
||||
--request DELETE \
|
||||
--header 'Authorization: Bearer YOUR_API_KEY'
|
||||
```
|
||||
|
||||
**Response:**
|
||||
|
||||
```json
|
||||
{ "success": true }
|
||||
```
|
||||
</Accordion>
|
||||
Loading…
Add table
Add a link
Reference in a new issue