Create a workflow
Picks prompts by id from the domain's custom prompts. Omit `analyzer` for a raw-response workflow that stores each answer as-is.
AuthorizationBearer <JWT>Session JWT signed with HS256. Verification pins the algorithm and rejects expired tokens, per RFC8725.
domainId*stringPublic UUID of the domain
application/json- body
name*stringdescription?stringpromptIds*array<string>Ids of the domain's custom prompts this workflow runs, in wallet order
marketLanguagePairId?stringId of one of the domain's market/language pairs the prompts run in; omit to use the domain's primary market
analyzer?Omit for a raw-response workflow that stores each answer as-is
chartConfig?Omit for a bar chart
Workflow created
application/json- response
id*stringPublic UUID of the workflow
domainId*stringUUID of the domain the workflow belongs to
organizationId*stringUUID of the owning organization
createdBy*stringUUID of the user who created the workflow
name*stringName shown in the dashboard
description?stringWhat the workflow measures
promptIds*array<string>UUIDs of the custom prompts run on every execution
marketLanguagePairId?stringId of the domain market/language pair the prompts run in; absent when the workflow follows the domain's primary market
analyzer?Scoring step applied to each answer; absent on raw-response workflows, which only store the answers
chartConfig*How the results are charted
status*stringWhether the workflow still runs
"active""archived"createdAt*stringWhen the workflow was created
date-timeupdatedAt*stringWhen the workflow was last modified
date-timecurl -X POST 'https://api.getmint.ai/api/domains/3fa85f64-5717-4562-b3fc-2c963f66afa6/workflows' \ -H 'Content-Type: application/json' \ -d '{ "name": "Brand Visibility Tracker", "promptIds": [ "3fa85f64-5717-4562-b3fc-2c963f66afa6" ]}'{ "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "domainId": "7c9e6679-7425-40de-944b-e07fc1f90ae7", "organizationId": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d", "createdBy": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "name": "Recommendation rate", "description": "Share of answers that recommend us by name", "promptIds": [ "3fa85f64-5717-4562-b3fc-2c963f66afa6" ], "marketLanguagePairId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "analyzer": { "prompt": "Does the answer recommend the brand? Reply with true or false.", "outputType": "boolean", "outputConfig": { "min": 0, "max": 10 } }, "chartConfig": { "chartType": "line" }, "status": "active", "createdAt": "2026-05-25T10:30:00.000Z", "updatedAt": "2026-05-25T10:30:00.000Z"}