Revoke Access Keys
Revoke existing Access Keys
The Object Storage API provides endpoints to revoke individual Access Keys, or all keys associated with a principal.
Revoke an individual access key
To revoke an access key, first create a JSON object that specifies the key ID, such as the example data.json
.
{"accessKey": "CWABCDEFGHIJKLMN"}
Then, submit the request to the /revoke-access-key/access-key
endpoint with the JSON object in the body. Replace {API_ACCESS_TOKEN}
with your API access token.
$curl -X POST https://api.coreweave.com/v1/cwobject/revoke-access-key/access-key \-H "Content-Type: application/json" \-H "Authorization: Bearer {API_ACCESS_TOKEN}" \-d @data.json
A successful response returns an empty object and the key is revoked.
{}
Revoke all Access Keys for a principal
To revoke all Access Keys for a principal, create a JSON object that specifies the principal name.
Then, submit the request to the /revoke-access-key/principal
endpoint with the JSON object in the body. Replace {API_ACCESS_TOKEN}
with your API access token.
$curl -X POST https://api.coreweave.com/v1/cwobject/revoke-access-key/principal \-H "Content-Type: application/json" \-H "Authorization: Bearer {API_ACCESS_TOKEN}" \-d @data.json
A successful response returns an empty object and all keys for the principal are revoked.
{}