Get the workflow schema
/api/v1/workflows/schemaReturns the catalogue a workflow is built from: every trigger, condition and action with its id, the operators a condition accepts and the shape of the value each one takes, plus the rules for combining them. Read it before creating or updating a workflow; the same catalogue is used to validate those requests.
Where a value is an id (valueSource / source, for example queue, user, tag), look the id up with the matching endpoint of this API.
Required ability: workflows:read.
Request
Authorization
Bearer Token
Provide your API token in the Authorization header. See Authentication to issue one.
Example:Authorization: Bearer ********************
typestringoptionalOptional. Only
workflowhas a schema;slaandticket_slaare answered with 400.Allowed values:"workflow"
Responses
200The catalogue. The example is shortened.
The catalogue. The example is shortened.
typestringoptionalAllowed values:"workflow"
triggersarray[object]optionalChild attributes
idstringoptionalThe value to put in
trigger.events.namestringoptionaldescriptionstringoptionalsupportsDelaybooleanoptionalWhether the trigger needs
trigger.delaySeconds.exclusivebooleanoptionalWhether the trigger must be the only one.
conditionsarray[object]optionalChild attributes
idstringoptionalThe value to put in a condition's
key.namestringoptionaloperatorsarray[string]optionaloperatorOptionalbooleanoptionalvalueTypestringoptionalThe shape of the condition's
values.valueSourcestringoptionalWhat kind of id the value is, when it is one.
notesstringoptional
actionsarray[object]optionalChild attributes
idstringoptionalThe value to put in an action's
key.namestringoptionaldescriptionstringoptionalvalueTypestringoptionalWhether the action's
valuesis a string or an object.fieldsarray[object]optionalThe fields of an object
values.valueobjectoptionalThe rule for a string
values.repeatablebooleanoptionalWhether the action may appear more than once.
supportsStampbooleanoptionalnullablebooleanoptional
operatorsarray[object]optionalChild attributes
idstringoptionalnamestringoptional
conditionExtrasarray[string]optionalOptional display fields a condition may carry.
actionExtrasarray[string]optionalOptional fields an action may carry.
rulesarray[string]optionalThe rules for combining triggers, conditions and actions, in plain text.
400type is not workflow.
type is not workflow.
messagestringrequirederrorstringoptionalstatusCodeintegerrequired
The API token is missing or invalid.
403The API token does not have the ability this endpoint requires. See "Token abilities" in the introduction.
The API token does not have the ability this endpoint requires. See "Token abilities" in the introduction.
messagestringrequirederrorstringoptionalstatusCodeintegerrequired