Create Person

POST
/api/v1/persons

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

distinctId*string
email?string|null
name?string|null

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/v1/persons" \  -H "Content-Type: application/json" \  -d '{    "distinctId": "string"  }'
{  "personId": "string",  "distinctId": "string",  "email": "string",  "name": "string"}
{  "_tag": "Api/PersonInvalidAnonymousIdError",  "id": "string"}
{  "_tag": "Api/ActionForbiddenError",  "message": "string"}
{  "_tag": "Api/PersonServiceError",  "cause": "string"}