openai_delete_project_api_key
Delete an API key from a project; if the key belongs to a service account, delete the service account instead to revoke it.
Instructions
Delete an API key from a project.
Fails if the key belongs to a service account — delete the service
account instead (openai_delete_service_account) to revoke that key.
Args:
project_id: The project's ID (see openai_list_projects).
api_key_id: The API key's ID (see openai_list_project_api_keys).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_id": "<project_id>",
"api_key_id": "<api_key_id>"
},
"name": "openai_delete_project_api_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key_id | Yes | ||
| project_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |