POST
/
v1
/
design-api
curl --request POST \
  --url https://api.critique-labs.ai/v1/design-api \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "id": 123,
  "original_prompt": "<string>",
  "template_prompt": "<string>",
  "inputs": [
    {}
  ],
  "output_format": {},
  "api_name": "<string>",
  "stub": "<string>",
  "nodes": [
    {
      "id": "<string>",
      "type": "<string>",
      "name": "<string>",
      "system_prompt": "<string>",
      "output_format": {},
      "configuration": {}
    }
  ],
  "edges": [
    {
      "id": "<string>",
      "source": "<string>",
      "target": "<string>"
    }
  ]
}'
"<any>"

Authorizations

X-API-Key
string
header
required

Body

application/json
id
integer | null
original_prompt
string | null
default:
template_prompt
string | null
default:
inputs
object[] | null
output_format
object | null
api_name
string | null
default:
stub
string | null
default:
nodes
object[] | null
edges
object[] | null

Response

200
application/json
Successful Response

The response is of type any.