Skip to main content
POST
/
activity-definitions
/
generate-calc-code
Generate calculation code for activity
curl --request POST \
  --url https://app.azalt.co/api/v1/activity-definitions/generate-calc-code \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "systemPrompt": "<string>",
  "messages": [
    {
      "role": "user",
      "content": "<string>"
    }
  ],
  "model": "<string>"
}
'
{
  "calcCode": "<string>",
  "response": "<string>",
  "metadataSchema": {}
}

Authorizations

Authorization
string
header
required

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

Body

application/json
systemPrompt
string
required
messages
object[]
required
Required array length: 1 - 50 elements
model
string
required

Response

Successful response

calcCode
string
required
response
string
required
metadataSchema
object