Users
Identify a new user
Users
Identify a new user
Identify a new user.
POST
/
users
curl --request POST \
--url https://app.trophy.so/api/users \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '{
"email": "user@example.com",
"name": "User",
"tz": "Europe/London",
"subscribeToEmails": true,
"id": "user-id"
}'
{
"email": "user@example.com",
"name": "User",
"tz": "Europe/London",
"subscribeToEmails": true,
"id": "user-id",
"control": false,
"created": "2021-01-01T00:00:00Z",
"updated": "2021-01-01T00:00:00Z"
}
Authorizations
Body
application/json
The user object.
Response
201
application/json
Identified user
A user of your application.
Was this page helpful?
curl --request POST \
--url https://app.trophy.so/api/users \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '{
"email": "user@example.com",
"name": "User",
"tz": "Europe/London",
"subscribeToEmails": true,
"id": "user-id"
}'
{
"email": "user@example.com",
"name": "User",
"tz": "Europe/London",
"subscribeToEmails": true,
"id": "user-id",
"control": false,
"created": "2021-01-01T00:00:00Z",
"updated": "2021-01-01T00:00:00Z"
}