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.

Selects an active profile (after sign-in) and mints a 30-minute session JWT. Session tokens are used for all API calls. Call this after sign-in, before calling createPage or any session-tier methods.

Parameters

NameTypeRequiredDescription
profileIdstringYesThe ID of the profile to select. Obtain from getProfiles().

Returns

void — Session token is minted and stored internally. Ready to call API methods.

Example

const { profiles } = await client.getProfiles();
await client.selectProfile(profiles[0].id);
// Ready to call session-tier API methods
const page = await client.createPage();