Skip to main content
Workers

Serverless Health Check

Probe a serverless URL and return the protocol version reported by its metadata endpoint.

Metadata fetch failures are returned as a failure result in a successful HTTP response.

POST https://api.rivet.dev/runner-configs/serverless-health-check

Examples

Authentication

Send your namespace token as a bearer token in the Authorization header. Every control plane request also requires the namespace query parameter. See Authentication.

Query Parameters

NameTypeRequiredDescription
namespacestringYesName of the namespace to operate in.

Request Body

Content type: application/json.

FieldTypeRequiredDescription
headersobjectNoHeaders to include in the metadata request.
urlstringYesServerless URL to probe.

Responses

200

A success result with the reported version or a failure result with error details.

{
  "success": {
    "version": "<version>"
  }
}