Answer a session's question so its work carries on
What you can call today
Every example here runs against api.xovris.ai with a key from your account’s settings. GET /v1/health and GET /v1/public/status answer without one.
const url = 'https://api.xovris.ai/v1/sessions/example/answers';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"needId":null,"choice":null,"digest":null,"place":null,"key":null,"at":null}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.xovris.ai/v1/sessions/example/answers \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "needId": null, "choice": null, "digest": null, "place": null, "key": null, "at": null }'Needs a token that can read and change. A token without change access is refused with token_read_only and the step to take.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Body
Section titled “Request Body”object
Example
{ "needId": null, "choice": null, "digest": null, "place": null, "key": null, "at": null}Responses
Section titled “Responses”Done.
object
object
object
object
object
Example
{ "says": "string", "history": "string", "createdAt": "string", "startedAt": "string", "endedAt": "string", "read": "string", "events": "string", "backend": "string", "analytics": "string", "preview": "string", "firstPage": true, "live": "string", "watched": null, "research": null, "checklist": [ null ], "stop": "string", "stopping": "string", "cancelled": {}, "shares": "string", "download": "string", "said": {}, "pullRequest": {}, "change": {}, "changed": {}, "proof": {}, "tried": {}, "next": {}, "ranIn": {}, "walk": {}, "deployed": {}, "id": "string", "kind": "public", "repository": "string", "words": "string", "via": "string", "state": "string", "beside": 1, "waitingUntil": "string", "after": "string", "waiting": { "says": "string", "on": "answer", "ref": "string", "until": "string", "since": "string", "asked": "string" }, "woke": [ { "on": "answer", "ref": "string", "at": "string", "said": "string", "waitedMs": 1, "since": "string" } ], "plan": { "lines": [ "string" ], "by": "string", "at": "string", "waitingForGo": true }, "project": "string", "from": "string", "restored": "string", "steps": [ { "at": "string", "words": "string" } ], "gate": { "at": "string", "figures": [ { "key": "string", "label": "string", "value": 1, "unit": "score", "target": 1, "passed": true, "detail": "string" } ], "passed": true, "measured": 1, "total": 1 }, "proven": true, "checked": [ null ], "chose": { "model": "string", "effort": "string" }, "chosen": { "model": "string", "name": "string" }, "effort": "string"}Started: the answer says where to follow it.
object
object
object
object
object
object
object
object
object
object
object
Example
{ "runId": "string", "approved": true, "delivered": true, "receipt": { "fixReport": { "incident": "string", "when": "string" }, "decisionId": "string", "recordedAt": "string", "timelineSeq": 1, "by": "string", "decision": "string", "packageDigest": {}, "packageVersion": 1, "rehearsal": { "safe": true, "summary": "string", "zoneSize": 1 }, "wayBack": "string", "afterTests": [ "string" ] }}Not signed in: the token is missing, expired or revoked. The answer says how to get a new one.
object
object
A stable code a program can branch on.
What happened, in plain words.
What to do next.
The recorded authorisation decision, when a role refused it.
Example generated
{ "error": { "code": "example", "message": "example", "nextStep": "example", "decisionId": "example" }}Signed in, but this token or role may not do this. The answer names the permission it needs.
object
object
A stable code a program can branch on.
What happened, in plain words.
What to do next.
The recorded authorisation decision, when a role refused it.
Example generated
{ "error": { "code": "example", "message": "example", "nextStep": "example", "decisionId": "example" }}Nothing with that id here, or it belongs to another workspace. Nothing was changed.
object
object
A stable code a program can branch on.
What happened, in plain words.
What to do next.
The recorded authorisation decision, when a role refused it.
Example generated
{ "error": { "code": "example", "message": "example", "nextStep": "example", "decisionId": "example" }}default
Section titled “default”Any other refusal or failure. The answer says what happened and what to do next.
object
object
A stable code a program can branch on.
What happened, in plain words.
What to do next.
The recorded authorisation decision, when a role refused it.
Example generated
{ "error": { "code": "example", "message": "example", "nextStep": "example", "decisionId": "example" }}Your data is never used to train our AI. How your data is kept
A problem is called fixed only once it works again. How each fix is checked
XOVRIS LTD, registered in England and Wales, company number 17499910. Registered office: 66 Paul Street, London EC2A 4NA.