Get the kit of a screen
Returns the component kit of a screen and the markdown an agent gets for it. A screen with a brand gets the brand's best kit, which can come from another screen of the brand (`from`). `kit` is null until the kit stage has run, and `markdown` is null unless the kit is extracted.
/v1/screens/{id}/kitReturns the component kit of a screen and the markdown an agent gets for it. A screen with a brand gets the brand's best kit, which can come from another screen of the brand (from). kit is null until the kit stage has run, and markdown is null unless the kit is extracted.
Path Parameters
^scr_Response Body
application/json
application/json
application/json
curl -X GET "https://api.conjure.design/v1/screens/string/kit"
{
"status": {
"_tag": "Done"
},
"brand": "string",
"from": "string",
"kit": {
"_tag": "Extracted",
"source": {
"_tag": "Model",
"provider": "string",
"model": "string",
"promptVersion": "string"
},
"theme": {
"summary": "string",
"googleFonts": [
"string"
],
"fontSans": "string",
"fontMono": "string",
"vars": [
{
"name": "string",
"value": "string"
}
],
"slots": [
{
"slot": "button.base",
"classes": "string"
}
],
"snippets": [
{
"name": "string",
"description": "string",
"jsx": "string",
"box": {
"x": 0,
"y": 0,
"w": 0,
"h": 0
}
}
]
},
"check": {
"rounds": -9007199254740991,
"issues": [
{
"snippet": "string",
"check": "string",
"detail": "string"
}
],
"scores": [
{
"snippet": "string",
"similarity": 0,
"widthRatio": 0,
"heightRatio": 0
}
]
}
},
"markdown": "string"
}
{
"error": {
"code": "bad_request",
"message": "string",
"requestId": "string"
}
}
{
"error": {
"code": "bad_request",
"message": "string",
"requestId": "string"
}
}
Get an image of a screen GET
Returns the bytes of one image of a screen (`thumb`, `preview` or `original`) with its own content type, its hash as the ETag and an immutable cache header. 404 when the screen has no such image yet. `v` is a cache key for clients, such as a rendition sha from the screen, and the server ignores it.
Get the preview page of a kit GET
Returns an HTML page that shows every primitive of the screen's kit (the brand's, when the screen has a brand) in the kit's theme. 404 when there is no extracted kit.