Enrols a subject into a configured flow and returns a reusable journey link.
curl --request POST \
--url https://verify.dev.securecitizen.cloud/journey/generate-flow-link \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"idNumber": "9001015009087",
"mobileNumber": "+27821234567",
"clientCode": "sc-citizen-rv",
"passportNumber": "A12345678",
"cRef": "customer-12345",
"email": "user@example.com",
"uUid": "f9c0d93e-9a1e-4c59-a55b-1c9e5b0d9f4a",
"flowCode": "identity-verification"
}
'import requests
url = "https://verify.dev.securecitizen.cloud/journey/generate-flow-link"
payload = {
"idNumber": "9001015009087",
"mobileNumber": "+27821234567",
"clientCode": "sc-citizen-rv",
"passportNumber": "A12345678",
"cRef": "customer-12345",
"email": "user@example.com",
"uUid": "f9c0d93e-9a1e-4c59-a55b-1c9e5b0d9f4a",
"flowCode": "identity-verification"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
idNumber: '9001015009087',
mobileNumber: '+27821234567',
clientCode: 'sc-citizen-rv',
passportNumber: 'A12345678',
cRef: 'customer-12345',
email: 'user@example.com',
uUid: 'f9c0d93e-9a1e-4c59-a55b-1c9e5b0d9f4a',
flowCode: 'identity-verification'
})
};
fetch('https://verify.dev.securecitizen.cloud/journey/generate-flow-link', 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://verify.dev.securecitizen.cloud/journey/generate-flow-link",
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([
'idNumber' => '9001015009087',
'mobileNumber' => '+27821234567',
'clientCode' => 'sc-citizen-rv',
'passportNumber' => 'A12345678',
'cRef' => 'customer-12345',
'email' => 'user@example.com',
'uUid' => 'f9c0d93e-9a1e-4c59-a55b-1c9e5b0d9f4a',
'flowCode' => 'identity-verification'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://verify.dev.securecitizen.cloud/journey/generate-flow-link"
payload := strings.NewReader("{\n \"idNumber\": \"9001015009087\",\n \"mobileNumber\": \"+27821234567\",\n \"clientCode\": \"sc-citizen-rv\",\n \"passportNumber\": \"A12345678\",\n \"cRef\": \"customer-12345\",\n \"email\": \"user@example.com\",\n \"uUid\": \"f9c0d93e-9a1e-4c59-a55b-1c9e5b0d9f4a\",\n \"flowCode\": \"identity-verification\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://verify.dev.securecitizen.cloud/journey/generate-flow-link")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"idNumber\": \"9001015009087\",\n \"mobileNumber\": \"+27821234567\",\n \"clientCode\": \"sc-citizen-rv\",\n \"passportNumber\": \"A12345678\",\n \"cRef\": \"customer-12345\",\n \"email\": \"user@example.com\",\n \"uUid\": \"f9c0d93e-9a1e-4c59-a55b-1c9e5b0d9f4a\",\n \"flowCode\": \"identity-verification\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://verify.dev.securecitizen.cloud/journey/generate-flow-link")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"idNumber\": \"9001015009087\",\n \"mobileNumber\": \"+27821234567\",\n \"clientCode\": \"sc-citizen-rv\",\n \"passportNumber\": \"A12345678\",\n \"cRef\": \"customer-12345\",\n \"email\": \"user@example.com\",\n \"uUid\": \"f9c0d93e-9a1e-4c59-a55b-1c9e5b0d9f4a\",\n \"flowCode\": \"identity-verification\"\n}"
response = http.request(request)
puts response.read_body{
"url": "https://verify.securecitizen.cloud/Ab12Xy",
"pin": "Ab12Xy",
"message": "Success",
"isSuccessful": true
}Journey API
Enrols a subject into a configured flow and returns a reusable journey link.
This endpoint creates or reuses a subject record based on either an RSA ID number or passport number, validates the selected flow and controller, checks whether an active incomplete journey already exists, and then returns a verification URL and pin.
Rules:
- Provide either
IdNumberorPassportNumber, but not both. MobileNumberis required.FlowCodeandClientCodemust reference existing records.- Passport journeys cannot be used with ID-only components.
- RSA ID journeys cannot be used with passport-only components.
If an incomplete non-expired journey already exists for the same subject, controller, and flow, the existing pin and URL are returned instead of creating a new journey.
Enrols a subject into a configured flow and returns a reusable journey link.
curl --request POST \
--url https://verify.dev.securecitizen.cloud/journey/generate-flow-link \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"idNumber": "9001015009087",
"mobileNumber": "+27821234567",
"clientCode": "sc-citizen-rv",
"passportNumber": "A12345678",
"cRef": "customer-12345",
"email": "user@example.com",
"uUid": "f9c0d93e-9a1e-4c59-a55b-1c9e5b0d9f4a",
"flowCode": "identity-verification"
}
'import requests
url = "https://verify.dev.securecitizen.cloud/journey/generate-flow-link"
payload = {
"idNumber": "9001015009087",
"mobileNumber": "+27821234567",
"clientCode": "sc-citizen-rv",
"passportNumber": "A12345678",
"cRef": "customer-12345",
"email": "user@example.com",
"uUid": "f9c0d93e-9a1e-4c59-a55b-1c9e5b0d9f4a",
"flowCode": "identity-verification"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
idNumber: '9001015009087',
mobileNumber: '+27821234567',
clientCode: 'sc-citizen-rv',
passportNumber: 'A12345678',
cRef: 'customer-12345',
email: 'user@example.com',
uUid: 'f9c0d93e-9a1e-4c59-a55b-1c9e5b0d9f4a',
flowCode: 'identity-verification'
})
};
fetch('https://verify.dev.securecitizen.cloud/journey/generate-flow-link', 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://verify.dev.securecitizen.cloud/journey/generate-flow-link",
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([
'idNumber' => '9001015009087',
'mobileNumber' => '+27821234567',
'clientCode' => 'sc-citizen-rv',
'passportNumber' => 'A12345678',
'cRef' => 'customer-12345',
'email' => 'user@example.com',
'uUid' => 'f9c0d93e-9a1e-4c59-a55b-1c9e5b0d9f4a',
'flowCode' => 'identity-verification'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://verify.dev.securecitizen.cloud/journey/generate-flow-link"
payload := strings.NewReader("{\n \"idNumber\": \"9001015009087\",\n \"mobileNumber\": \"+27821234567\",\n \"clientCode\": \"sc-citizen-rv\",\n \"passportNumber\": \"A12345678\",\n \"cRef\": \"customer-12345\",\n \"email\": \"user@example.com\",\n \"uUid\": \"f9c0d93e-9a1e-4c59-a55b-1c9e5b0d9f4a\",\n \"flowCode\": \"identity-verification\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://verify.dev.securecitizen.cloud/journey/generate-flow-link")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"idNumber\": \"9001015009087\",\n \"mobileNumber\": \"+27821234567\",\n \"clientCode\": \"sc-citizen-rv\",\n \"passportNumber\": \"A12345678\",\n \"cRef\": \"customer-12345\",\n \"email\": \"user@example.com\",\n \"uUid\": \"f9c0d93e-9a1e-4c59-a55b-1c9e5b0d9f4a\",\n \"flowCode\": \"identity-verification\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://verify.dev.securecitizen.cloud/journey/generate-flow-link")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"idNumber\": \"9001015009087\",\n \"mobileNumber\": \"+27821234567\",\n \"clientCode\": \"sc-citizen-rv\",\n \"passportNumber\": \"A12345678\",\n \"cRef\": \"customer-12345\",\n \"email\": \"user@example.com\",\n \"uUid\": \"f9c0d93e-9a1e-4c59-a55b-1c9e5b0d9f4a\",\n \"flowCode\": \"identity-verification\"\n}"
response = http.request(request)
puts response.read_body{
"url": "https://verify.securecitizen.cloud/Ab12Xy",
"pin": "Ab12Xy",
"message": "Success",
"isSuccessful": true
}Authorizations
Body
application/jsontext/jsonapplication/*+json
The enrolment details used to identify the subject and create the journey.
Request used to enrol a subject into a verification journey.
Response
Error
Response returned when a verification or QID journey link is generated.

