Skip to main content
GET
/
pages
/
{pageId}
/
rows
TypeScript
import { DiscovrClient } from "discovr";
import type { GetRowsResponse } from "discovr";

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

// After sign-in and profile selection …
const response: GetRowsResponse = await discovr.getRows("example", { nextPageToken: "example", limit: 5 });
console.log(response);
{
  "rows": [
    {
      "id": "<string>",
      "title": "<string>",
      "pageId": "<string>",
      "type": "media",
      "createdAt": "2023-11-07T05:31:56Z"
    }
  ],
  "hasMore": true,
  "nextPageToken": "<string>"
}

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}

Path Parameters

pageId
string
required

The unique identifier of the page

Query Parameters

nextPageToken
string

Opaque pagination token returned from the previous page

limit
integer
default:5

Maximum number of rows to return

Required range: 1 <= x <= 50

Response

List of rows retrieved successfully

Paginated list of rows for the page.

rows
object[]
required
hasMore
boolean
required

Whether there are more rows available

nextPageToken
string

Opaque token to fetch the next page of results