Skip to main content
GET
/
profiles
Get user profiles
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.discovr.media/profiles', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "profiles": [
    {
      "id": "profile_abc123xyz",
      "name": "Sci-Fi Lover",
      "avatarUrl": "https://example.com/avatar.jpg",
      "createdAt": "2023-01-01T00:00:00.000Z"
    },
    {
      "id": "profile_def456uvw",
      "name": "Action Movie Fan",
      "avatarUrl": "https://example.com/avatar2.jpg",
      "createdAt": "2023-01-02T00:00:00.000Z"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.discovr.media/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer token authentication.

  • Identity-tier endpoints (/profiles, /auth/session-token, /auth/session) accept a long-lived refresh token (rt_<hex>).
  • Session-tier endpoints (/pages/*, /profile/*) accept a short-lived session JWT.

SDK clients use two typed API accessors (identityApi() with the refresh token vs sessionApi() with the session JWT) — see the SDK DiscovrAuth helper.

Format: Authorization: Bearer {token}

Response

List of profiles retrieved successfully

profiles
object[]
required

Array of profiles belonging to the authenticated user. Profiles are ordered by creation date (newest first).

Example:
[
{
"id": "profile_abc123xyz",
"name": "Sci-Fi Lover",
"avatarUrl": "https://example.com/avatar.jpg",
"createdAt": "2023-01-01T00:00:00.000Z"
},
{
"id": "profile_def456uvw",
"name": "Action Movie Fan",
"avatarUrl": "https://example.com/avatar2.jpg",
"createdAt": "2023-01-02T00:00:00.000Z"
}
]