Skip to main content

Create Design Cues

Create a new design cue in the authenticated workspace. A design cue is a reusable instruction that can be attached to prompts or designs to guide generation.

Endpoint

POST designCues/create

Authentication

Include your Enterprise API credentials in the request headers:

sivi-api-key: YOUR_API_KEY

Request Body Example

{
"instruction": "Use bold typography with high contrast",
"type": "design",
"bId": "b_s87vFxpfM0R"
}

Request Parameters

ParameterTypeRequiredDescription
instructionStringYesThe design instruction text
typeStringNoCue type (e.g. design, prompt). Defaults to design
bIdStringNoBrand ID to associate the cue with
abstractUserIdStringNoUnique identifier for the user (Enterprise/Super API only)

Response

Success Response (200 OK)

{
"status": 200,
"body": {
"designCue": {
"dcId": "abc123",
"wId": "w_abc123",
"bId": "b_s87vFxpfM0R",
"uId": "usr1",
"type": "design",
"instruction": "Use bold typography with high contrast",
"addedBy": "system",
"source": "prompt",
"createdOn": 1723300000,
"updatedOn": 1723300000
}
}
}

Response Body Parameters

ParameterTypeDescription
dcIdStringDesign cue identifier
wIdStringWorkspace ID the cue belongs to
bIdStringBrand ID the cue is associated with (or null)
uIdStringUser ID of the creator (or null)
typeStringCue type
instructionStringThe design instruction text
addedByStringWho added the cue
sourceStringSource of the cue
createdOnNumberCreation timestamp
updatedOnNumberLast update timestamp

Error Responses

Authentication Error (401 Unauthorized)

{
"status": 401,
"body": {
"message": "Failed to authenticate request. Please add sivi-api-key header in request"
}
}

Invalid Input (422 Unprocessable Entity)

{
"status": 422,
"body": {
"message": "instruction is required"
}
}

Server Error (500 Internal Server Error)

{
"status": 500,
"body": {
"message": "Server internal error"
}
}

Usage Notes

  • wId and uId are derived from the authenticated session and cannot be set in the request body
  • addedBy defaults to system and source defaults to prompt
  • A unique dcId is auto-generated for each new cue