Skip to content

Delete an API Key

DELETE /api/open/v1/keys/:id
ParameterInTypeRequiredDescription
idpathintegerYesKey ID, a positive integer
Terminal window
curl -X DELETE https://www.routeapi.ai/api/open/v1/keys/12 \
-H "Authorization: Bearer $ROUTEAPI_MANAGEMENT_KEY"
{
"success": true,
"message": "",
"data": null
}
HTTPcodeScenario
400invalid_requestid is not a positive integer
404not_foundThe Key does not exist or does not belong to you

For other common error codes, see Platform API errors.

  • Deletion cannot be undone, and model requests using the Key fail immediately. If you only need to stop a Key temporarily, send {"status": 2} to the update endpoint instead; deletion is the permanent option.
  • Deleting a Key through the Platform API is recorded in the audit log.