#Users

The users section of our public API allows you to retrieve information about all the users that have been identified by Poool.
It is necessary to recover the user ID on the front side to be able to use this part of the API:

#GET /identity/:id

Provides various information about a user identified by Poool.
Parameters
id
Type: String
Required
User ID

#GET /identity/:id/answers

Allows you to get all the answers to surveys answered by a Poool user.
Parameters
id
Type: String
Required
User ID
from
Type: Date
Default: startOfWeek(new Date())
Starting date of search
to
Type: Date
Default: endOfWeek(new Date())
Ending date of search
page
Type: Number
Default: 1
Current page
size
Type: Number
Default: 10
Results per page

#POST /identity/:id/segment

Allows manual modification of a user's segment.
Parameters
id
Type: String
Required
User ID
segment
Type: String
Required
Group filter