> ## Documentation Index
> Fetch the complete documentation index at: https://docs.custral.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Read an embed block's rows

> Read the records behind your own embed block, filtered by the block's saved filters and the viewer's permissions. You cannot send filters. **Requires an embed token** (from `custral:init`) holding `records:read`, not an API key: an API key gets `embed_token_required`, and a token minted for another block gets `component_not_found`.



## OpenAPI

````yaml /openapi-v1.json post /v1/components/{id}/rows
openapi: 3.1.0
info:
  title: Custral API
  version: v1
  description: >-
    The curated, versioned, API-key-authenticated public REST surface (`/v1`).
    Every endpoint here is what the official SDKs (`@custral/sdk`) and the MCP
    server are built on. Authenticate with a secret API key (`sk_…`) created in
    **Settings → Developers → Applications**.


    Every `/v1` response is sent with **HTTP 200**, success and failure alike. A
    success carries `data`; a failure carries `error` with a machine-readable
    `code` (see the `Error` schema), so branch on `error`, never on the status.
    `POST /v1/mcp` is the one exception: it answers auth failures with real 401
    / 403 / 429 statuses, as MCP clients expect.
  contact:
    name: Custral Support
    email: hello@custral.com
    url: https://custral.com
  license:
    name: Proprietary
    url: https://custral.com
servers:
  - url: https://api.custral.com
    description: Production
security:
  - ApiKey: []
tags:
  - name: Identity
    description: Introspect the calling API key.
  - name: Records
    description: Create, list, retrieve, and update records on any object.
  - name: Objects
    description: Read the object (table) schema of your workspace.
  - name: Conversations
    description: View, manage, and ingest conversations and their messages.
  - name: MCP
    description: Custral's MCP server, and the tool surface a key sees on it.
  - name: Documents
    description: Read record notes / page documents as markdown.
  - name: Connectors
    description: The MCP servers Stella can use tools from.
  - name: Property agents
    description: AI auto-fill agents on properties.
  - name: Usage modules
    description: Metered-product setups, their usage events, and per-record usage.
  - name: Applications & keys
    description: Developer applications and the API keys they hold.
  - name: Widget identity
    description: Vouch for who a chat widget visitor is.
  - name: Embeds & real-time
    description: Read the rows behind your own embed block, with an embed token.
  - name: Lists
    description: Read lists and change who is on them.
  - name: Customer journeys
    description: The workspace's customer journey, and where each customer is in it.
  - name: Quotes
    description: Quotes, contracts and contract templates.
  - name: Billing
    description: >-
      Customer billing, invoices, subscriptions, revenue metrics, the billing
      page, Stripe customer links, billing setup, products and plans.
paths:
  /v1/components/{id}/rows:
    post:
      tags:
        - Embeds & real-time
      summary: Read an embed block's rows
      description: >-
        Read the records behind your own embed block, filtered by the block's
        saved filters and the viewer's permissions. You cannot send filters.
        **Requires an embed token** (from `custral:init`) holding
        `records:read`, not an API key: an API key gets `embed_token_required`,
        and a token minted for another block gets `component_not_found`.
      operationId: listEmbedComponentRows
      parameters:
        - name: id
          in: path
          required: true
          description: The block instance's component id, from `custral:init`.
          schema:
            type: string
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EmbedRowsBody'
      responses:
        '200':
          description: A page of rows.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/EmbedRows'
                  reqId:
                    $ref: '#/components/schemas/RequestId'
      security:
        - EmbedToken: []
components:
  schemas:
    EmbedRowsBody:
      type: object
      properties:
        limit:
          type: integer
          description: Rows per page (1–200).
          minimum: 1
          maximum: 200
          default: 50
        cursor:
          type: string
          description: '`nextCursor` from the previous page.'
    EmbedRows:
      type: object
      description: >-
        A page of the records behind one embed block, filtered by the block's
        own settings.
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/Record'
        total:
          type: integer
          description: Rows matching the block's filters.
        limit:
          type: integer
        nextCursor:
          type:
            - string
            - 'null'
          description: Cursor for the next page, or null at the end.
      required:
        - data
    RequestId:
      type: string
      description: >-
        A per-request id (`req_…`). Quote it to support when reporting a
        problem.
      example: req_2a1f9c8e7b6d5
    Record:
      type: object
      description: >-
        A record on an object. The concrete fields depend on the object's
        schema.
      additionalProperties: true
      properties:
        id:
          type: string
          example: rec_123
        name:
          type:
            - string
            - 'null'
          example: Jane Doe
        objectId:
          type: string
          example: obj_123
      required:
        - id
  securitySchemes:
    ApiKey:
      type: http
      scheme: bearer
      bearerFormat: sk_...
      description: >-
        A Custral API key, created in Settings → Developers → Applications, sent
        as `Authorization: Bearer sk_…`. The `X-Api-Key` header is also accepted
        and takes precedence. Use a **secret** key (`sk_…`) from your server; a
        publishable key (`pk_…`) may hold only `objects:read` and `usage:write`.
        Never expose a secret key in a browser.
    EmbedToken:
      type: http
      scheme: bearer
      bearerFormat: emb_...
      description: >-
        A short-lived embed token (`emb_…`) that Custral hands an embed block's
        frame in `custral:init`. Scoped to one block instance; expires in 15
        minutes.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.