Skip to main content
POST
/
v1
/
policy-holders
cURL
curl --request POST \
  --url https://dev-api-cj-agc-vie.fnstack.dev/v1/policy-holders \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "last_name": "MALONGA",
  "phone_number": "242059758563",
  "date_of_birth": "1974-12-02",
  "gender": "MALE",
  "first_name": "Jules"
}
'
{
  "policy_holder_id": "phol_2c1x7V4r47ynM4RABVm1Co0UKkG"
}

Authorizations

x-api-key
string
header
required

Headers

x-api-key
string
required
Minimum string length: 1

Body

application/json
last_name
string
required
Required string length: 1 - 250
Example:

"MALONGA"

phone_number
string
required
Minimum string length: 1
Example:

"242059758563"

date_of_birth
string
required
Minimum string length: 1
Example:

"1974-12-02"

gender
enum<string>
default:MALE
Available options:
FEMALE,
MALE
Example:

"MALE"

first_name
string
Maximum string length: 250
Example:

"Jules"

Response

'Create a policy holder' command accepted and ongoing

policy_holder_id
string
required
Minimum string length: 1
Example:

"phol_2c1x7V4r47ynM4RABVm1Co0UKkG"