Skip to content
Start free

Deploy a build that passed its checks to a live address

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.

POST
/v1/code/tasks/{id}/deploy
curl --request POST \  --url https://api.xovris.ai/v1/code/tasks/example/deploy \  --header 'Authorization: Bearer <token>' \  --header 'Content-Type: application/json' \  --data '{ "grant": null, "to": "string", "connection": "string", "via": "string", "name": "string" }'

Needs a token that can read and change. A token without change access is refused with token_read_only and the step to take.

id
required
string
Media typeapplication/json
object
grant
to
string
connection
string
via
string
name
string

Example

{  "grant": null,  "to": "string",  "connection": "string",  "via": "string",  "name": "string"}

Done.

Media typeapplication/json
object
says
required
string
checkpoint
string
history
string
createdAt
required
string
startedAt
required
One of:
string
endedAt
required
One of:
string
read
required
string
events
required
string
backend
string
analytics
string
preview
required
One of:
string
firstPage
required
boolean
live
required
One of:
string
watched
required
One of:
object
placed
required
number
kept
required
number
places
required
number
items
required
Array<object>
object
name
required
string
target
required
string
what
required
string
Allowed values: page table backend
research
required
checklist
required
One of:
Array
stop
required
One of:
string
stopping
required
One of:
string
cancelled
required
One of:
object
shares
required
string
download
string
said
One of:
object
pullRequest
One of:
object
change
One of:
object
changed
object
proof
object
tried
object
next
One of:
object
ranIn
One of:
object
walk
One of:
object
deployed
One of:
object
id
required
string
kind
required
string
Allowed values: public deploy connected scratch
repository
required
string
words
required
string
via
required
string
state
required
string
beside
required
One of:
number
waitingUntil
required
One of:
string
after
required
One of:
string
waiting
required
One of:
object
says
required
string
on
required
string
Allowed values: answer date review ci go ticket reply
ref
required
One of:
string
until
required
One of:
string
since
required
string
asked
required
string
woke
required
Array<object>
object
on
required
string
Allowed values: answer date review ci go ticket reply
ref
required
One of:
string
at
required
string
said
required
string
waitedMs
required
number
since
required
string
plan
required
One of:
object
lines
required
Array<string>
by
required
string
at
required
One of:
string
waitingForGo
required
boolean
project
required
One of:
string
from
required
One of:
string
restored
required
One of:
string
steps
required
Array<object>
object
at
required
string
words
required
string
gate
required
One of:
object
at
required
string
figures
required
Array<object>
object
key
required
string
label
required
string
value
required
One of:
number
unit
required
string
Allowed values: score count
target
required
number
passed
required
boolean
detail
required
string
passed
required
boolean
measured
required
number
total
required
number
proven
required
boolean
checked
required
One of:
Array
chose
required
object
model
required
One of:
string
effort
required
string
chosen
required
One of:
object
model
required
string
name
required
string
effort
required
One of:
string

Example

{  "says": "string",  "checkpoint": "string",  "history": "string",  "createdAt": "string",  "startedAt": "string",  "endedAt": "string",  "read": "string",  "events": "string",  "backend": "string",  "analytics": "string",  "preview": "string",  "firstPage": true,  "live": "string",  "watched": {    "placed": 1,    "kept": 1,    "places": 1,    "items": [      {        "name": "string",        "target": "string",        "what": "page"      }    ]  },  "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.

Media typeapplication/json
One of:
object
connect
required
object
key
additional properties
says
required
string
next
required
string
then
required
object
method
required
string
path
required
string
body
required
object
to
required
string
live
One of:
string
kind
required
string
state
required
string
of
required
string
to
required
string

Example

{  "connect": {},  "says": "string",  "next": "string",  "then": {    "method": "string",    "path": "string",    "body": {      "to": "string"    }  },  "live": "string",  "kind": "string",  "state": "string",  "of": "string",  "to": "string"}

Not signed in: the token is missing, expired or revoked. The answer says how to get a new one.

Media typeapplication/json
object
error
required
object
code
required

A stable code a program can branch on.

string
message
required

What happened, in plain words.

string
nextStep
required

What to do next.

string
decisionId

The recorded authorisation decision, when a role refused it.

string

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.

Media typeapplication/json
object
error
required
object
code
required

A stable code a program can branch on.

string
message
required

What happened, in plain words.

string
nextStep
required

What to do next.

string
decisionId

The recorded authorisation decision, when a role refused it.

string

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.

Media typeapplication/json
object
error
required
object
code
required

A stable code a program can branch on.

string
message
required

What happened, in plain words.

string
nextStep
required

What to do next.

string
decisionId

The recorded authorisation decision, when a role refused it.

string

Example generated

{  "error": {    "code": "example",    "message": "example",    "nextStep": "example",    "decisionId": "example"  }}

Any other refusal or failure. The answer says what happened and what to do next.

Media typeapplication/json
object
error
required
object
code
required

A stable code a program can branch on.

string
message
required

What happened, in plain words.

string
nextStep
required

What to do next.

string
decisionId

The recorded authorisation decision, when a role refused it.

string

Example generated

{  "error": {    "code": "example",    "message": "example",    "nextStep": "example",    "decisionId": "example"  }}

Ask Xovris

Open the full page

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.