status
Get project health and breaker status.
GET
/v1/projects/:project_id/status
Get project health status
Auth:
User API key
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
project_id |
path | uuid | Yes | Project ID |
Responses
200
Project status
closed_countlast_eval_msopen_count
Headers:
ETag: Weak ETag for conditional requests
304
Not modified (ETag match)
Example
Request
curl https://api.tripswitch.dev/v1/projects/PROJECT_ID/status \
-H "Authorization: Bearer YOUR_USER_API_KEY"
Response
{
"closed_count": 5,
"open_count": 1,
"last_eval_ms": 1705312200000
}
HEAD
/v1/projects/:project_id/status
Check project status (headers only, no body)
Auth:
User API key
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
project_id |
path | uuid | Yes | Project ID |
Responses
200
Status check (headers only)
Headers:
ETag: Weak ETag for conditional requests
304
Not modified (ETag match)
Example
Request
curl -I https://api.tripswitch.dev/v1/projects/PROJECT_ID/status \
-H "Authorization: Bearer YOUR_USER_API_KEY"
Response
HTTP/2 200
ETag: W/"abc123"
Content-Type: application/json