younifyd
Menu

Server Health

Health

GET/server/health

Use it in a workflow

  1. Add a step and choose the Directus connector.
  2. Pick the Server Health action (under Server).
  3. Fill in the fields below, then reference the result from later steps as {{serverHealth.response.data}}.

Fields

baseUrlstring

The API host this action calls. Override to point at a different environment.

Default "/"

forwardAllHeadersboolean

If enabled, all headers from the incoming request will be forwarded. Additional headers below will override forwarded ones.

Default false

headerskeyvalue

Extra HTTP headers to include, beyond what this action already declares. These override forwarded or declared headers with the same name.

queryParamskeyvalue

Extra URL query parameters to include, beyond what this action already declares. These override declared query parameters with the same name.

Response

Returns 200 with an object. Read it in later steps with {{serverHealth.response.data.<field>}}.

statusstring

One of ok, warn, error.

One ofokwarnerror

releaseIdstring

Directus version in use. Only returned when authenticated as admin.

serviceIdstring

Public URL of the current Directus instance. Only returned when authenticated as admin.

checksobject

Object keyed by service name (e.g. "pg:responseTime"), each containing an array of health check results for that service. Only returned when authenticated as admin.

json
{
  "status": "warn",
  "releaseId": "10.0.0",
  "serviceId": "https://directus.example.com",
  "checks": {}
}

Need more? See the Directus guide for connection setup and behaviour shared by every action.

Was this page helpful?
Server Health — Directus — Documentation