const url = ' https://platform.fomr.io/v1/forms/example/workflows ' ;
const options = {method: ' GET ' , headers: {Authorization: ' Bearer <token> ' }} ;
const response = await fetch ( url , options );
const data = await response . json ();
--url https://platform.fomr.io/v1/forms/example/workflows \
--header ' Authorization: Bearer <token> '
Lists the workflows of a form, oldest first, without their graphs: name, whether each is enabled, and the result of its last enable check. Private Templates have no workflows and answer 404. Needs forms:read and workflows:read. Costs 1 API credit.
string
>= 10 characters <= 10 characters /^[A-Za-z0-9_-]+$/
The public ID of the form or Private Template.
Media type application/json
object Every workflow of the form, oldest first.
Array<object>
A workflow of a form without its graph, as listFormWorkflows returns it.
object The public ID of the workflow. Use it in the other workflow calls.
string
>= 1 characters <= 22 characters /^[A-Za-z0-9_-]+$/
Workflow name shown in the Workflows tab of the form.
string
>= 1 characters <= 100 characters
Whether the workflow runs when a respondent completes the form. Change it with enable and disable.
boolean
validation_status required
Unchecked until the workflow is first enabled, valid once it passed the enable checks, invalid when the last check failed.
string
Allowed values: unchecked valid invalid
validation_error_code required
Any of:
string
Allowed values: WORKFLOW_VALIDATION_TOO_MANY_WORKFLOWS WORKFLOW_VALIDATION_TOO_MANY_NODES WORKFLOW_VALIDATION_TOO_MANY_EDGES WORKFLOW_VALIDATION_NODE_CONFIG_TOO_LARGE WORKFLOW_VALIDATION_NODE_CONFIG_INVALID WORKFLOW_VALIDATION_MISSING_TRIGGER WORKFLOW_VALIDATION_MULTIPLE_TRIGGERS WORKFLOW_VALIDATION_UNSUPPORTED_NODE_TYPE WORKFLOW_VALIDATION_INTEGRATION_CONNECTION_UNAVAILABLE WORKFLOW_VALIDATION_INVALID_EDGE WORKFLOW_VALIDATION_CYCLE WORKFLOW_VALIDATION_UNREACHABLE_NODE WORKFLOW_VALIDATION_RUNTIME_PHASE_MISMATCH
When the workflow was created.
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/
When the workflow last changed.
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/
Example
"validation_status" : " unchecked " ,
"validation_error_code" : " WORKFLOW_VALIDATION_TOO_MANY_WORKFLOWS "
Media type application/json
object The stable code to branch on.
string
Allowed values: INVALID_INPUT UNAUTHORIZED PERSONAL_ACCESS_TOKEN_EXPIRED PERSONAL_ACCESS_TOKEN_REVOKED PLAN_LIMIT_REACHED PRO_FEATURE_REQUIRED FORBIDDEN FORM_PUBLISH_EMAIL_UNVERIFIED ORGANIZATION_MEMBER_BLOCKED PERSONAL_ACCESS_TOKEN_NOT_PERMITTED NOT_FOUND FORM_NOT_PUBLISHED NO_DRAFT_DURING_PUBLISH FORM_ARCHIVED FORM_CONVERSION_BLOCKED FORM_PUBLISH_REVISION_CONFLICT PAYLOAD_TOO_LARGE FORM_PUBLISH_VALIDATION_FAILED FORM_SAFETY_REJECTED TOO_MANY_REQUESTS API_COOLDOWN SERVER AI_SERVICE_UNAVAILABLE SERVICE_UNAVAILABLE
A human-readable explanation. Not part of the contract; never branch on it.
string
The ID of the failed request, also sent as the X-Request-Id response header.
string
Every value the request got wrong.
Array<object>
object The path into the request, with property names and numeric array indexes.
Array
What is wrong with the value at this path.
string
The stable code for the issue. Branch on it, and use it with params to write your own text.
string
accepted_values
Accepted values when a node type or enum value is rejected.
Array
params
The values the message was built from, keyed by name, for clients that write their own text for each code.
object
Media type application/json
object The stable code to branch on.
string
Allowed values: INVALID_INPUT UNAUTHORIZED PERSONAL_ACCESS_TOKEN_EXPIRED PERSONAL_ACCESS_TOKEN_REVOKED PLAN_LIMIT_REACHED PRO_FEATURE_REQUIRED FORBIDDEN FORM_PUBLISH_EMAIL_UNVERIFIED ORGANIZATION_MEMBER_BLOCKED PERSONAL_ACCESS_TOKEN_NOT_PERMITTED NOT_FOUND FORM_NOT_PUBLISHED NO_DRAFT_DURING_PUBLISH FORM_ARCHIVED FORM_CONVERSION_BLOCKED FORM_PUBLISH_REVISION_CONFLICT PAYLOAD_TOO_LARGE FORM_PUBLISH_VALIDATION_FAILED FORM_SAFETY_REJECTED TOO_MANY_REQUESTS API_COOLDOWN SERVER AI_SERVICE_UNAVAILABLE SERVICE_UNAVAILABLE
A human-readable explanation. Not part of the contract; never branch on it.
string
The ID of the failed request, also sent as the X-Request-Id response header.
string
Media type application/json
object The stable code to branch on.
string
Allowed values: INVALID_INPUT UNAUTHORIZED PERSONAL_ACCESS_TOKEN_EXPIRED PERSONAL_ACCESS_TOKEN_REVOKED PLAN_LIMIT_REACHED PRO_FEATURE_REQUIRED FORBIDDEN FORM_PUBLISH_EMAIL_UNVERIFIED ORGANIZATION_MEMBER_BLOCKED PERSONAL_ACCESS_TOKEN_NOT_PERMITTED NOT_FOUND FORM_NOT_PUBLISHED NO_DRAFT_DURING_PUBLISH FORM_ARCHIVED FORM_CONVERSION_BLOCKED FORM_PUBLISH_REVISION_CONFLICT PAYLOAD_TOO_LARGE FORM_PUBLISH_VALIDATION_FAILED FORM_SAFETY_REJECTED TOO_MANY_REQUESTS API_COOLDOWN SERVER AI_SERVICE_UNAVAILABLE SERVICE_UNAVAILABLE
A human-readable explanation. Not part of the contract; never branch on it.
string
The ID of the failed request, also sent as the X-Request-Id response header.
string
required_permission required
Media type application/json
object Returned for a form or workflow that does not exist, is in Trash or deleted, belongs to another organization, or for a Private Template, which has no workflows. These cases are not told apart.
string
Allowed value: NOT_FOUND
A human-readable explanation. Not part of the contract; never branch on it.
string
The ID of the failed request, also sent as the X-Request-Id response header.
string
A rejected call. The organization budget names the policy it rejected the call under; the request floor that bounds hammering sends the envelope alone.
Media type application/json
Any of:
object The stable code to branch on.
string
Allowed values: INVALID_INPUT UNAUTHORIZED PERSONAL_ACCESS_TOKEN_EXPIRED PERSONAL_ACCESS_TOKEN_REVOKED PLAN_LIMIT_REACHED PRO_FEATURE_REQUIRED FORBIDDEN FORM_PUBLISH_EMAIL_UNVERIFIED ORGANIZATION_MEMBER_BLOCKED PERSONAL_ACCESS_TOKEN_NOT_PERMITTED NOT_FOUND FORM_NOT_PUBLISHED NO_DRAFT_DURING_PUBLISH FORM_ARCHIVED FORM_CONVERSION_BLOCKED FORM_PUBLISH_REVISION_CONFLICT PAYLOAD_TOO_LARGE FORM_PUBLISH_VALIDATION_FAILED FORM_SAFETY_REJECTED TOO_MANY_REQUESTS API_COOLDOWN SERVER AI_SERVICE_UNAVAILABLE SERVICE_UNAVAILABLE
A human-readable explanation. Not part of the contract; never branch on it.
string
The ID of the failed request, also sent as the X-Request-Id response header.
string
The policy that rejected the call.
string
Allowed values: minute burst
The plan whose numbers were applied.
string
Allowed values: free pro
The policy limit in credits.
integer
>= -9007199254740991 <= 9007199254740991
Credits already spent in the open window.
integer
>= -9007199254740991 <= 9007199254740991
Credits still available under the policy.
integer
>= -9007199254740991 <= 9007199254740991
What the rejected call would have cost.
integer
>= -9007199254740991 <= 9007199254740991
How long the policy window lasts.
integer
>= -9007199254740991 <= 9007199254740991
Any of:
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/
When the window that rejected the call ends.
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/
retry_after_seconds required
Seconds to wait before retrying. Also sent as the Retry-After response header.
integer
>= -9007199254740991 <= 9007199254740991
object The stable code to branch on.
string
Allowed values: INVALID_INPUT UNAUTHORIZED PERSONAL_ACCESS_TOKEN_EXPIRED PERSONAL_ACCESS_TOKEN_REVOKED PLAN_LIMIT_REACHED PRO_FEATURE_REQUIRED FORBIDDEN FORM_PUBLISH_EMAIL_UNVERIFIED ORGANIZATION_MEMBER_BLOCKED PERSONAL_ACCESS_TOKEN_NOT_PERMITTED NOT_FOUND FORM_NOT_PUBLISHED NO_DRAFT_DURING_PUBLISH FORM_ARCHIVED FORM_CONVERSION_BLOCKED FORM_PUBLISH_REVISION_CONFLICT PAYLOAD_TOO_LARGE FORM_PUBLISH_VALIDATION_FAILED FORM_SAFETY_REJECTED TOO_MANY_REQUESTS API_COOLDOWN SERVER AI_SERVICE_UNAVAILABLE SERVICE_UNAVAILABLE
A human-readable explanation. Not part of the contract; never branch on it.
string
The ID of the failed request, also sent as the X-Request-Id response header.
string
Media type application/json
object The stable code to branch on.
string
Allowed values: INVALID_INPUT UNAUTHORIZED PERSONAL_ACCESS_TOKEN_EXPIRED PERSONAL_ACCESS_TOKEN_REVOKED PLAN_LIMIT_REACHED PRO_FEATURE_REQUIRED FORBIDDEN FORM_PUBLISH_EMAIL_UNVERIFIED ORGANIZATION_MEMBER_BLOCKED PERSONAL_ACCESS_TOKEN_NOT_PERMITTED NOT_FOUND FORM_NOT_PUBLISHED NO_DRAFT_DURING_PUBLISH FORM_ARCHIVED FORM_CONVERSION_BLOCKED FORM_PUBLISH_REVISION_CONFLICT PAYLOAD_TOO_LARGE FORM_PUBLISH_VALIDATION_FAILED FORM_SAFETY_REJECTED TOO_MANY_REQUESTS API_COOLDOWN SERVER AI_SERVICE_UNAVAILABLE SERVICE_UNAVAILABLE
A human-readable explanation. Not part of the contract; never branch on it.
string
The ID of the failed request, also sent as the X-Request-Id response header.
string