Agent-readable docs index: /llms.txt. Full docs in one file: /llms-full.txt. Download /docs.zip to grep all markdown files locally.

Test OpenRouter connectivity

/api/v1/owner/providers/openrouter/testPOST
Makes a provider request using saved configuration; it may consume provider credits. Does not create a run or authorize an operation.
Examples are synthetic and illustrate response shape; IDs, signatures, and credentials are not usable authority.
Authorization
ownerSession *cookie halfspan_session
Authenticated HttpOnly owner session. Not an executor credential.
Request Bodyapplication/json
Type: object
Response
200 · Successful response. A paused run is an application outcome, not an HTTP error.
ok *true
model *string
latencyMs *number
message *string
400 · Request validation failed.
error *string
reasonCode?string
401 · Sign in to the Halfspan workspace.
error *string
reasonCode?string
403 · Console requests must come from the local owner workspace.
error *string
reasonCode?string
409 · An OpenRouter connection test is already running.
error *string
reasonCode?string
500 · The local service could not complete this request.
error *string
reasonCode?string
Request example
curl -X POST "https://service.example.com/api/v1/owner/providers/openrouter/test" \ -H "x-halfspan-owner: 1" \ -b "halfspan_session=<token>" \ -H "Content-Type: application/json" \ -d '{}'
Response example
{ "ok": true, "model": "openai/gpt-4.1-mini", "latencyMs": 650, "message": "Provider returned a valid response." }