---
title: "Read agent website"
method: POST
path: "/api/agents/{sid}/read-website"
tags: ["agents"]
---

# Read agent website

`POST /api/agents/{sid}/read-website`

## Request

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

Draft an AI SDR's Brief (by sid) from the team's website: the home page and up to four pages it links to are fetched as text and written into the five sections; a section the site does not answer (what it never does, always) keeps its slot. What the site did not say is in result.notes. Nothing is saved: show the draft, then save through update_agent with brief.text. 422 website_invalid or website_unreadable (no text); 503 composer_unavailable.

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

## Path parameters

- `sid` string, required: The agent whose Brief the draft is for (ub_ag_…).

## Request body

- ReadAgentWebsiteRequest: Request body of `read_agent_website`.
  - `url` string, required: The team's website, with or without https://.

## Response `200`

`action` success envelope.

- ReadAgentWebsiteResponse
  - `success` true, required
  - `operation` 'action', required
  - `action` string, required: kebab-case verb; matches the route segment.
  - `item` unknown, required
  - `result` object, required
    - `draft` object, required
      - `brief` string, required: The whole Brief in markdown, within 49152 chars: the five headings in order, a slot left where nothing answers it.
      - `notes` string[], required: What the composer still needs to know (the booking link, who runs demos, what never to promise), one short line each.
    - `cost_usd` number, nullable, required: What the composition cost on the model, a few thousandths of a dollar.
    - `website` object, required
      - `url` string, required: The address that answered, after redirects.
      - `pages` string[], required: The pages read, the home page first: the ones that gave text.
      - `chars` integer, required: How much text the composer read, in characters.
  - `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)
