Skip to main content
POST
https://api.getmalakai.com/api/
/
api
/
workflows
/
generate
Generate a Workflow
curl --request POST \
  --url https://api.getmalakai.com/api/api/workflows/generate \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --header 'x-access-token: <x-access-token>' \
  --data '
{
  "prompt": "<string>"
}
'
{
  "responseCode": "<string>",
  "message": "<string>",
  "data": {},
  "data.nodes": [
    {}
  ],
  "data.edges": [
    {}
  ]
}

Headers

Authorization
string
required
Your API key for authentication. Prefix with Bearer .
x-access-token
string
required
Your access token for authentication.

Body

prompt
string
required
The prompt explaining the usecase or what the user wants the workflow to do.

Response

responseCode
string
Confirms the request was successful.
message
string
A human-readable message about the request’s outcome.
data
object
An object containing the details of the workflow.
data.nodes
object[]
An array containing the details of the nodes in the workflow.
data.edges
object[]
An array containing the details of theedges in the workflow.