latestOpenAPI 3.1.02026-08-197104501.1 MB

8fbaab4fc7c5

key management

Key Health

Check the health of the key

Checks:

  • If key based logging is configured correctly - sends a test log

Usage

Pass the key in the request header

curl -X POST "http://localhost:4000/key/health"      -H "Authorization: Bearer sk-1234"      -H "Content-Type: application/json"

Response when logging callbacks are setup correctly:

{
  "key": "healthy",
  "logging_callbacks": {
    "callbacks": [
      "gcs_bucket"
    ],
    "status": "healthy",
    "details": "No logger exceptions triggered, system is healthy. Manually check if logs were sent to ['gcs_bucket']"
  }
}

Response when logging callbacks are not setup correctly:

{
  "key": "unhealthy",
  "logging_callbacks": {
    "callbacks": [
      "gcs_bucket"
    ],
    "status": "unhealthy",
    "details": "Logger exceptions triggered, system is unhealthy: Failed to load vertex credentials. Check to see if credentials containing partial/invalid information."
  }
}
post/key/health

Response

Successful Response

key'healthy' | 'unhealthy'