3. Create Person

2026-05-11

Call create person api. You will be required to pass fullName, clientReferenceId and email This will return an personId

Written by: Tarun

Overview

This endpoint creates a new person record in the system. It accepts person details including their full name, email, client reference ID.

Endpoint: {{baseURL}}/person
Method: POST
Content-Type: application/json Authentication: Bearer {{token}}.

Request Body Parameters

The request accepts a JSON payload with the following fields:

ParameterTypeRequiredDescription
fullNamestringYesThe full name of the person being created
emailstringYesThe email address of the person (must be valid email format)
clientReferenceIdstringYesA unique reference identifier for the client’s records

Example Request Body

{
  "fullName": "John Doe",
  "email": "john.doe@example.com",
  "clientReferenceId": "CLIENT-12345"
}

Response Codes

201 Created

Success - The person was created successfully.

Response Body:

{
  "personId": "unique-person-identifier"
}

The personId returned in the response is the unique identifier for the newly created person and should be stored for future reference.

422 Unprocessable Entity

Validation Error - The request contains invalid parameters or failed validation.

Response Body:

{
  "message": "Validation error description"
}

Common causes:

500 Internal Server Error

Server Error - An unexpected error occurred on the server.

Response Body:

{
  "message": "Error description"
}

This indicates a server-side issue that should be reported if it persists.