---
title: "Read website text"
method: POST
path: "/api/agents/website-text"
tags: ["agents"]
---

# Read website text

`POST /api/agents/website-text`

## Request

- Base URL: `https://beta.getsales.io/unibox/v1`
- URL: `https://beta.getsales.io/unibox/v1/api/agents/website-text`
- Auth: HTTP bearer and API key in header `Team-SID`

The team's site as text, to read yourself and write the cards from: the home page and up to four pages that say what the company is, each with url, title and text (6,000 characters a page, 16,000 in all), the home page's language, truncated when cut. No model runs, nothing is spent; the Brief's draft is read_agent_website. 422 website_invalid, or website_unreadable (under 200 characters of text, an error page, no answer).

Contract:
- MCP tool `read_website_text`, registry package `mcp.unibox/agents`, mount `unibox.website`.
- Operation `action`, response envelope `action`.
- Flags: read only.

## Request body

- ReadWebsiteTextRequest: Request body of `read_website_text`.
  - `url` string, required: The team's website, with or without https:// (the probe's final_url when it answered).
  - `max_pages` integer: How many pages at most, the home page counted; default 5.

## Response `200`

`action` success envelope.

- ReadWebsiteTextResponse
  - `success` true, required
  - `operation` 'action', required
  - `action` string, required: kebab-case verb; matches the route segment.
  - `item` unknown, required
  - `result` object, required
    - `url` string, required: The home address that answered.
    - `language` string, nullable, required: The home page's lang as its two-letter code.
    - `pages` object[], required: The home page first, then up to four pages that say what the company is.
      - `url` string, required: The page's address.
      - `title` string, nullable, required: The title tag, null when the page has none.
      - `text` string, required: The page's text with the chrome dropped, 6,000 characters at most.
    - `chars` integer, required: The characters kept over every page, 16,000 at most.
    - `truncated` boolean, required: A page was cut, or left out for want of room.
  - `meta` object, required
    - `trace_id` string, required: UUID v7; same 128-bit value as the X-Trace-Id header.
    - `span_id` string, required: 16 hex chars, root span of this request.
    - `timestamp` string, required: ISO 8601 UTC (Y-m-dTH:i:sZ), response time.
    - `duration_ms` integer, required: Server-side wall clock.
    - `team_sid` string, nullable: The team this call ran in (the token team, or the team_sid override). Null when unauthenticated; absent from pre-2026-08-20 backends.
    - `actor_type` string, nullable: user | agent | api_key | system. Null when unauthenticated; absent from pre-2026-08-20 backends.

## Other responses

- `4XX`: MCP error envelope. `error.code` is one of validation_failed, nothing_to_update, not_found, relation_not_found, invalid_transition, limit_exceeded, payment_required, duplicate_rejected, conflict, delete_blocked, unauthorized, forbidden, rate_limited, not_implemented.
- `5XX`: MCP error envelope with `error.code` internal_error or service_unavailable.

---

[API](https://skmtc.dev/getsales/apis/getsales-public-contract-gs-service-unibox.md) - [All operations](https://skmtc.dev/getsales/apis/getsales-public-contract-gs-service-unibox/llms.txt) - [OpenAPI document](https://skmtc.dev/getsales/apis/getsales-public-contract-gs-service-unibox/revisions/8f1bc317897f?raw)
