Skip to main content
POST
/
v1
/
design-api
Design Api With Key
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": "",
  "template_prompt": "",
  "inputs": [],
  "output_format": {},
  "api_name": "",
  "stub": "",
  "nodes": [],
  "edges": []
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

X-API-Key
string
header
required

Your API key for authentication. Get one at https://critique-labs.ai/en/dashboard

Body

application/json
id
integer | null
original_prompt
string | null
default:""
template_prompt
string | null
default:""
inputs
Inputs · object[] | null
output_format
Output Format · object
api_name
string | null
default:""
stub
string | null
default:""
nodes
ApiGraphNode · object[] | null
edges
ApiGraphEdge · object[] | null

Response

Successful Response