Skip to main content

Regenerate API Key

POST 

/api/portal/api-keys/:key/regenerate

Replaces the key's secret and returns the new one. The old secret stops working immediately — use this to rotate a key that may have leaked. Name and scopes are kept.

Not yet available to API tokens

This endpoint currently requires session authentication; Personal Access Token scope support is in progress.

This is the only response that contains the new key (plaintext). For a key with feed:read (including the feed link) csv_url and json_url are included too.

Returns 404 when the key does not exist or belongs to another buyer or account. Viewers get 403 viewer_read_only. Rate limited to 10 requests/minute.

Request​

Responses​

OK

Response Headers
    Content-Type