Get user public data

GET
/api/users/[user_id]/public_data

Path Parameters

user_id
string
Required

User Id

Authentication

X-API-KEY
header
Required

Api key needed to access the endpoints. X-API-KEY: Your_API_Key

Headers

accept
string
  • application/json
  • application/problem+json

Responses

200
OK
422
Unprocessable Entity
404
Not Found
401
Unauthorized
403
Forbidden

Request Example

Request
curl -X GET "https://<your-domain>/api/users/{user_id}/public_data" \
 -H "X-API-KEY: <your-api-key>" \
 -H "Accept: application/json"

Response Example

Response
200 OK
{
"public_data": {
"color_preference": { "dashboard": "monochrome"
}, "send_emails": true, "days_to_retain": 1
} }