Import a screenshot with its labels
Adds a screenshot from a catalog with the labels of its `entry`, then runs every stage but kit. An import never replaces a label from the model or the curator. Needs the admin token (`Authorization: Bearer <token>`) or the curator's session.
/v1/ingest/importAdds a screenshot from a catalog with the labels of its entry, then runs every stage but kit. An import never replaces a label from the model or the curator. Needs the admin token (Authorization: Bearer <token>) or the curator's session.
Request Body
multipart/form-data
TypeScript Definitions
Use the request body type in TypeScript.
binaryResponse Body
application/json
application/json
application/json
curl -X POST "https://api.conjure.design/v1/ingest/import" \
-F file="string" \
-F entry="string"
{
"screen": {
"id": "string",
"sha256": "string",
"mediaType": "image/png",
"width": -9007199254740991,
"height": -9007199254740991,
"byteSize": -9007199254740991,
"scale": {
"value": 0,
"basis": "confirmed"
},
"source": {
"_tag": "Upload",
"filename": "string"
},
"brand": "string",
"createdAt": "string",
"status": {
"renditions": {
"_tag": "Done"
},
"measure": {
"_tag": "Done"
},
"label": {
"_tag": "Done"
},
"kit": {
"_tag": "Done"
}
},
"renditions": [
{
"kind": "thumb",
"sha256": "string",
"mediaType": "image/jpeg",
"width": -9007199254740991,
"height": -9007199254740991
}
],
"facets": {
"screenType": "home",
"theme": "dark",
"density": "compact"
}
},
"created": true,
"ran": [
"renditions"
],
"estimatedScale": 0
}
{
"error": {
"code": "bad_request",
"message": "string",
"requestId": "string"
}
}
{
"error": {
"code": "bad_request",
"message": "string",
"requestId": "string"
}
}
Get a guide GET
Returns one design guide as markdown, for an agent to read before it designs: `anti-slop`, `rhythm` (spacing) or `clean-copy`.
Run the stages of screens POST
Brings the stages of the given screens (default every screen) up to date and returns what ran for each. `stages` defaults to all but kit, and `force` reruns stages that are current. Needs the admin token (`Authorization: Bearer <token>`) or the curator's session.