The Flowingly Public API has an endpoint to get an access token.

Please note that the user account must be a Flowingly Business Administrator.

The content type for this endpoint needs to be set to application/x-www-form-urlencoded

cURL example to get an authorization token:

curl --location --request POST 'https://publicapi.flowingly.net/public/authorise?username=tester@test.net&password=tester1234' \

--header 'Content-Type: application/x-www-form-urlencoded' \

C# example to get an authorization token using RestSharp:

var client = new RestClient("https://publicapi.flowingly.net/public/authorise?username=tester@test.net&password=tester1234");

var request = new RestRequest(Method.POST);

request.AddHeader("Content-Type", "application/x-www-form-urlencoded");

IRestResponse response = client.Execute(request);

The response from the authorise endpoint looks like this:

{
"accessToken": "theAccessTokenValue",
"refreshToken": null,
"idToken": "",
"tokenType": "Bearer",
"expiresIn": 0
}

The next step is to copy the accessToken value and add it into the HTTP header.

  • Key : Authorization

  • Value : Bearer and the accessToken value.

curl --location --request POST 'https://publicapi.flowingly.net/public/startFlow' \
--header 'Authorization: Bearer theAccessTokenValue' \
--header 'Content-Type: application/json' \
--data-raw '{
"Name": "Test Flow",
"Subject": "Test Public API",
"ActorsToStartFlowFor": [
{
"UserEmail": "tester@test.net",
}
],
"CCActors": [
],
"FlowInitiator": "tester@test.net"
}'

Did this answer your question?