Skip to main content

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.

Creates a new profile for the authenticated user. Each user can have multiple profiles to organize their media preferences and watch history. Profiles are independent and can have their own lists, ratings, and viewing history. Note: There may be limits on the number of profiles per user (check your account settings).

Parameters

NameTypeRequiredDescription
namestringYesThe display name for the profile. Must be a non-empty string.
avatarUrlstring (uri)YesThe URL of the profile avatar image. Must be a non-empty string.

Returns

CreateProfileResponse — Profile created successfully
{
  "profileId": "string"
}

Example

import { DiscovrClient } from "discovr";
import type { CreateProfilePayload, CreateProfileResponse } from "discovr";

const discovr = new DiscovrClient("your-client-id", {
  basePath: "https://api.discovr.media",
});

// After sign-in and profile selection …
const response: CreateProfileResponse = await discovr.createProfile("Sci-Fi Lover", "https://example.com/avatar.jpg");
console.log(response);