Identities

Create new identity

Create an identity for an individual or an organization.

POST/identities

Authorization

If set, the API uses an API key for authentication. Include the following header in your requests: X-blnk-key: <api-key>.

Replace <api-key> with your secret API key. Ensure the key is kept secure and not exposed in public repositories or client-side code.

See also: Core API key.

Body

identity_idstringbody

Your own identity id. When you send it, it must start with idt_ and a valid UUID, for example idt_11111111-1111-4111-8111-111111111111. Leave it out and Blnk generates one. A duplicate id returns 400 with IDT_VALIDATION_ERROR.

identity_typestringbody

individual or organization.

organization_namestringbody

Name of the organization.

first_namestringbody

First name of the individual.

last_namestringbody

Last name of the individual.

other_namesstringbody

Other names linked to the individual.

genderstringbody

Gender of the individual.

dobstringbody

Date of birth, as an ISO 8601 timestamp.

email_addressstringbody

Email address of the identity.

phone_numberstringbody

Contact number of the identity.

nationalitystringbody

Nationality of the individual.

categorystringbody

A label for this customer, such as customer or vip.

streetstringbody

Street address of the identity.

countrystringbody

Country of the identity.

statestringbody

State or region of the identity.

post_codestringbody

Postal code of the identity.

citystringbody

City of the identity.

meta_dataobjectbody

Custom metadata linked to the identity.

Response

The response is the identity Blnk stored. created_at is set by Blnk. A field you omit comes back empty.

identity_idstringrequired

Id of the created identity.

identity_typestring

individual or organization.

organization_namestring

Name of the organization.

first_namestring

First name of the individual.

last_namestring

Last name of the individual.

other_namesstring

Other names linked to the individual.

genderstring

Gender of the individual.

dobstring

Date of birth.

email_addressstring

Email address of the identity.

phone_numberstring

Contact number of the identity.

nationalitystring

Nationality of the individual.

categorystring

Label stored for this customer.

streetstring

Street address of the identity.

countrystring

Country of the identity.

statestring

State or region of the identity.

post_codestring

Postal code of the identity.

citystring

City of the identity.

created_atstringrequired

When Blnk created the identity.

meta_dataobject

Custom metadata linked to the identity.