hail.sodocs
POST
/providers/{layer}/validate

Path Parameters

layer*Layer

Header Parameters

authorization?string|null

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Body of POST /providers/{layer}/validate — a live key probe.

All fields optional: with an empty body the layer's active provider and its stored key are tested. provider tests that provider's stored key instead. api_key tests a key that has not been saved yet.

Response Body

application/json

application/json

curl -X POST "https://example.com/providers/string/validate" \  -H "Content-Type: application/json" \  -d '{}'
{  "status": "string",  "message": "string"}