Create an Entity

POST: Create entity token

POST to /entities/persons

HTTP Request: POST https://sandbox.alloy.co/v1/entities/persons

Example Request

curl --request POST \
  --url https://sandbox.alloy.co/v1/entities/persons \
  --header 'Authorization: Basic {base64string}' \
  --header 'Content-Type: application/json' \
  --data '{
	"external_entity_id": "123",
	"name_first": "John",
	"name_last": "Doe",
	"birth_date": "1990-01-01",
	"document_ssn": "887887766",
	"emails": [
		{
			"email_address": "[email protected]"
		}
	],
	"phones": [
		{
			"phone_number": "+12223334545"
		}
	],
	"addresses": [
		{
			"address_line_1": "187 Elizabeth St",
			"address_city": "New York",
			"address_state": "NY",
			"address_postal_code": "10002",
			"address_country_code": "US",
			"type": "primary"
		}
	]
}'