Profile

The route to retrieve detailed user profile data. Returns user's information such as their timezone, user_id, biological information, and more.

Properties

  • Name
    user_id
    Type
    string
    Description

    UUID of the user for whom the profile data is requested. Must be a valid UUID format.


GET/api/v1/profile/{user_id}

Retrieve User Profile

This endpoint retrieves the profile data for a specified user ID, including metadata and related user attributes like created_at and home_timezone.

Request

GET
/api/v1/profile/{user_id}
curl -G https://api.onetwentyone.ai/api/v1/profile/123e4567-e89b-12d3-a456-426614174000 \
-H "Authorization: Bearer {token}"

Response

{
  "limit": {
    "X-RateLimit-Limit": 1000,
    "X-RateLimit-Remaining": 999,
    "X-RateLimit-Reset": 1715126400
  },
  "data": {
    "user_id": "123e4567-e89b-12d3-a456-426614174000",
    "created_at": "2022-01-01T00:00:00Z",
    "home_timezone": "America/New_York",
    "scopes": ["profile", "sleep"],
    // Additional data fields...
  }
}

Was this page helpful?