Create a form
curl --request POST \
--url https://api.flowforma.com/v1/processActions/createForm \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"FlowFormaURL": "https://contoso.sharepoint.com/sites/flow",
"FlowId": "12",
"StepCode": "S1",
"AssignTo": "user@contoso.com",
"QuestionValues": [
{
"StepCode": "S1",
"QuestionCode": "Q1",
"Value": "Approved"
}
]
}
'import requests
url = "https://api.flowforma.com/v1/processActions/createForm"
payload = {
"FlowFormaURL": "https://contoso.sharepoint.com/sites/flow",
"FlowId": "12",
"StepCode": "S1",
"AssignTo": "user@contoso.com",
"QuestionValues": [
{
"StepCode": "S1",
"QuestionCode": "Q1",
"Value": "Approved"
}
]
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
FlowFormaURL: 'https://contoso.sharepoint.com/sites/flow',
FlowId: '12',
StepCode: 'S1',
AssignTo: 'user@contoso.com',
QuestionValues: [{StepCode: 'S1', QuestionCode: 'Q1', Value: 'Approved'}]
})
};
fetch('https://api.flowforma.com/v1/processActions/createForm', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.flowforma.com/v1/processActions/createForm",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'FlowFormaURL' => 'https://contoso.sharepoint.com/sites/flow',
'FlowId' => '12',
'StepCode' => 'S1',
'AssignTo' => 'user@contoso.com',
'QuestionValues' => [
[
'StepCode' => 'S1',
'QuestionCode' => 'Q1',
'Value' => 'Approved'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.flowforma.com/v1/processActions/createForm"
payload := strings.NewReader("{\n \"FlowFormaURL\": \"https://contoso.sharepoint.com/sites/flow\",\n \"FlowId\": \"12\",\n \"StepCode\": \"S1\",\n \"AssignTo\": \"user@contoso.com\",\n \"QuestionValues\": [\n {\n \"StepCode\": \"S1\",\n \"QuestionCode\": \"Q1\",\n \"Value\": \"Approved\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.flowforma.com/v1/processActions/createForm")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"FlowFormaURL\": \"https://contoso.sharepoint.com/sites/flow\",\n \"FlowId\": \"12\",\n \"StepCode\": \"S1\",\n \"AssignTo\": \"user@contoso.com\",\n \"QuestionValues\": [\n {\n \"StepCode\": \"S1\",\n \"QuestionCode\": \"Q1\",\n \"Value\": \"Approved\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.flowforma.com/v1/processActions/createForm")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"FlowFormaURL\": \"https://contoso.sharepoint.com/sites/flow\",\n \"FlowId\": \"12\",\n \"StepCode\": \"S1\",\n \"AssignTo\": \"user@contoso.com\",\n \"QuestionValues\": [\n {\n \"StepCode\": \"S1\",\n \"QuestionCode\": \"Q1\",\n \"Value\": \"Approved\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"FormId": 123,
"FormTitle": "<string>"
}{
"code": "400",
"message": "Page does not exist."
}{
"code": "400",
"message": "Page does not exist."
}{
"code": "400",
"message": "Page does not exist."
}Process Actions
Create a form
Creates a new form for the given flow in a live FlowForma environment and submits the supplied question values. This endpoint requires a FlowForma integration access token (not an Azure AD bearer token).
POST
/
v1
/
processActions
/
createForm
Create a form
curl --request POST \
--url https://api.flowforma.com/v1/processActions/createForm \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"FlowFormaURL": "https://contoso.sharepoint.com/sites/flow",
"FlowId": "12",
"StepCode": "S1",
"AssignTo": "user@contoso.com",
"QuestionValues": [
{
"StepCode": "S1",
"QuestionCode": "Q1",
"Value": "Approved"
}
]
}
'import requests
url = "https://api.flowforma.com/v1/processActions/createForm"
payload = {
"FlowFormaURL": "https://contoso.sharepoint.com/sites/flow",
"FlowId": "12",
"StepCode": "S1",
"AssignTo": "user@contoso.com",
"QuestionValues": [
{
"StepCode": "S1",
"QuestionCode": "Q1",
"Value": "Approved"
}
]
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
FlowFormaURL: 'https://contoso.sharepoint.com/sites/flow',
FlowId: '12',
StepCode: 'S1',
AssignTo: 'user@contoso.com',
QuestionValues: [{StepCode: 'S1', QuestionCode: 'Q1', Value: 'Approved'}]
})
};
fetch('https://api.flowforma.com/v1/processActions/createForm', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.flowforma.com/v1/processActions/createForm",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'FlowFormaURL' => 'https://contoso.sharepoint.com/sites/flow',
'FlowId' => '12',
'StepCode' => 'S1',
'AssignTo' => 'user@contoso.com',
'QuestionValues' => [
[
'StepCode' => 'S1',
'QuestionCode' => 'Q1',
'Value' => 'Approved'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.flowforma.com/v1/processActions/createForm"
payload := strings.NewReader("{\n \"FlowFormaURL\": \"https://contoso.sharepoint.com/sites/flow\",\n \"FlowId\": \"12\",\n \"StepCode\": \"S1\",\n \"AssignTo\": \"user@contoso.com\",\n \"QuestionValues\": [\n {\n \"StepCode\": \"S1\",\n \"QuestionCode\": \"Q1\",\n \"Value\": \"Approved\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.flowforma.com/v1/processActions/createForm")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"FlowFormaURL\": \"https://contoso.sharepoint.com/sites/flow\",\n \"FlowId\": \"12\",\n \"StepCode\": \"S1\",\n \"AssignTo\": \"user@contoso.com\",\n \"QuestionValues\": [\n {\n \"StepCode\": \"S1\",\n \"QuestionCode\": \"Q1\",\n \"Value\": \"Approved\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.flowforma.com/v1/processActions/createForm")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"FlowFormaURL\": \"https://contoso.sharepoint.com/sites/flow\",\n \"FlowId\": \"12\",\n \"StepCode\": \"S1\",\n \"AssignTo\": \"user@contoso.com\",\n \"QuestionValues\": [\n {\n \"StepCode\": \"S1\",\n \"QuestionCode\": \"Q1\",\n \"Value\": \"Approved\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"FormId": 123,
"FormTitle": "<string>"
}{
"code": "400",
"message": "Page does not exist."
}{
"code": "400",
"message": "Page does not exist."
}{
"code": "400",
"message": "Page does not exist."
}Authorizations
FlowForma integration access token, copied from FlowForma Settings. Send it as the raw Authorization header value, without a Bearer prefix.
Body
application/json
URL of the FlowForma environment (SharePoint site).
Numeric ID of the flow, as a string.
Step code whose questions are being set.
Email or login name of the user or group to assign the form to.
Show child attributes
Show child attributes
⌘I

