Health API

Check whether the Factory API deployment is serving requests.

GET/api/health

Check that the Factory API is up

Returns 200 while this deployment serves requests, with the commit it was built from, the region it serves, and the client address it saw. It reads no credential.

No authentication required.

cURL
curl 'https://api.factory.ai/api/health'

Responses

200Response for status 200

application/json

statusstringrequired

Allowed values

ok
debugVersionintegerrequired

Build marker for diagnostics; carries no other meaning

timestampstring <date-time>required

Server time

deployShastring | nullrequired

Git commit the deployment was built from, or null outside a Vercel deployment

regionstringrequired

Data-residency region this deployment serves

Allowed values

globaleu
clientIpstring | nullrequired

The `x-real-ip` header the request reached the deployment with, or null without one

500Response for status 500

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

defaultResponse for status default

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users