Delete BYOK key
import requests
url = "https://api.auriko.ai/v1/workspaces/{workspace_id}/byok-keys/{byok_key_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.auriko.ai/v1/workspaces/{workspace_id}/byok-keys/{byok_key_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request DELETE \
--url https://api.auriko.ai/v1/workspaces/{workspace_id}/byok-keys/{byok_key_id} \
--header 'Authorization: Bearer <token>'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"propagation_status": "pending",
"message": "<string>"
}{
"error": {
"message": "API key is invalid.",
"type": "authentication_error",
"param": null,
"code": "invalid_api_key"
}
}{
"error": {
"message": "The requested resource was not found.",
"type": "not_found_error",
"param": null,
"code": "resource_not_found"
}
}BYOK
Delete BYOK key
Deletes a BYOK key
DELETE
/
v1
/
workspaces
/
{workspace_id}
/
byok-keys
/
{byok_key_id}
Delete BYOK key
import requests
url = "https://api.auriko.ai/v1/workspaces/{workspace_id}/byok-keys/{byok_key_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.auriko.ai/v1/workspaces/{workspace_id}/byok-keys/{byok_key_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request DELETE \
--url https://api.auriko.ai/v1/workspaces/{workspace_id}/byok-keys/{byok_key_id} \
--header 'Authorization: Bearer <token>'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"propagation_status": "pending",
"message": "<string>"
}{
"error": {
"message": "API key is invalid.",
"type": "authentication_error",
"param": null,
"code": "invalid_api_key"
}
}{
"error": {
"message": "The requested resource was not found.",
"type": "not_found_error",
"param": null,
"code": "resource_not_found"
}
}Requires
All parameters, request/response schemas, and examples are auto-generated from the OpenAPI specification.
byok:write scope. Naturally idempotent. Audit event: byok_key.deleted.
If the deleted key was the provider’s default, Auriko stops routing through it within about 5 minutes. May return
202 with propagation_status: "pending" while the change takes effect.Authorizations
API key authentication.
Keys start with ak_ prefix.
Example: Authorization: Bearer ak_live_xxxxxxxxxxxx
Path Parameters
Workspace identifier
BYOK key identifier
Response
Accepted — deletion queued for propagation