BYOK
Delete a BYOK provider credential
Changed onDelete (soft-delete) a bring-your-own-key (BYOK) provider credential by its id. The encrypted key material is wiped and the record is marked as deleted. A workspace-scoped management key only reaches credentials in its own workspace; any other id returns 404. Management key required.
delete/byok/{id}
Request
- Base URLhttps://openrouter.ai/api/v1
- AuthHTTP bearer
Path parameters
id, string uuid required
The BYOK credential ID (UUID).
Example:11111111-2222-3333-4444-555555555555
Response
BYOK credential deleted successfully
Delete BYOKKey Response required
deleted, true required
Confirmation that the BYOK credential was deleted.
Example response
{
"deleted": true
}Changes
- info
added the non-success response with the status
- info
- info
endpoint added
- info