Users

register a new user

post

This operation registers a new user in hosted API. After a new user is registered, a scan for this user can be registered with /scans.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
emailstring · email | nullableOptional

The email address of the user

Example: [email protected]
tokenstringRequired

A unique token for the user provided by the partner

Example: unique-user-token
sexstring · enumRequired

The user's sex

Example: malePossible values:
regionstring · enumRequired

The user's region

Example: north_americaPossible values:
usaResidencestringOptional

The user's state of residence

Example: California
birthDatestringRequired

The user's birth date

Example: 1990-01-01
researchConsentbooleanRequired

Whether the user has consented to their data being used for research

Example: true
Responses
post
/users
201Success

get meta data of a user

get

This operation provides the meta data for a specific user.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
tokenstringRequired

A unique token for the user provided by the partner

Example: unique-user-token
Query parameters
unit-systemstring · enumOptional

The unit system in which values will be returned

Possible values:
Responses
200Success
application/json;v=1
get
/users/{token}
200Success

delete a user

delete

This operation deletes a specific user.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
tokenstringRequired

A unique token for the user provided by the partner

Example: unique-user-token
Responses
200Success
application/json;v=1
delete
/users/{token}
200Success

update meta data of a user

patch

This operation updates the meta data for a specific user.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
tokenstringRequired

A unique token for the user provided by the partner

Example: unique-user-token
Body
emailstring · email | nullableOptional

The email address of the user

Example: [email protected]
tokenstringOptional

A unique token for the user provided by the partner

Example: unique-user-token
sexstring · enumOptional

The user's sex

Example: malePossible values:
regionstring · enumOptional

The user's region

Example: north_americaPossible values:
usaResidencestringOptional

The user's state of residence

Example: California
birthDatestringOptional

The user's birth date

Example: 1990-01-01
researchConsentbooleanOptional

Whether the user has consented to their data being used for research

Example: true
Responses
200Success
application/json;v=1
patch
/users/{token}
200Success

Last updated