Skip to main content
POST
/
activity-definitions
/
generate-ui-code
Generate UI code for activity
curl --request POST \
  --url https://app.azalt.co/api/v1/activity-definitions/generate-ui-code \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "inputs": [
    {
      "name": "<string>",
      "type": "string",
      "required": true,
      "example": "<string>"
    }
  ],
  "model": "<string>",
  "provider": "openai",
  "notes": "<string>",
  "calcCode": "<string>"
}
'
{
  "code": "<string>",
  "response": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
inputs
object[]
required
model
string
required
provider
enum<string>
required
Available options:
openai,
anthropic
notes
string
calcCode
string

Response

Successful response

code
string
required
response
string
required