Skip to content
Endless Documentation
Search

Read web pages

POST
/read-url

The full text of up to ten known URLs through Exa, each capped at 200,000 characters, with a short preview. Charged as one flat call. A social platform URL is refused (400) with the social operations that read it.

Authorization

headerAuthorizationBearer <esk_live_…>

A workspace API key created in workspace settings. It acts as the member who created it, narrowed to its abilities, projects and credit limit. Each operation names the ability it needs.

Scope: search:query

Header Parameters

Endless-Api-Version?string

Pin the caller to an API major (1). Omit to accept the current version. A major this deployment cannot serve is refused with 400 unsupported_api_version.

Request Body

application/json
  1. body
organization_id*string
Match^org_
tool_call_id?|

The tool call behind this search, for the ledger. Every call that runs is billed, a repeated id too.

conversation_id?|

The chat this call belongs to, for cost attribution.

message_id?|

The chat turn this call belongs to, for cost attribution.

urls*array<>

The URLs to read (max 10).

Items1 <= items <= 10

Response Body

OK

application/json
  1. response
summary*string
pages*array<>
credits_charged*integer
Range0 <= value <= 9007199254740991
Example Request
curl -X POST 'https://api.endless.app/read-url' \  -H 'Content-Type: application/json' \  -d '{  "organization_id": "string",  "urls": [    "http://example.com"  ]}'
Example Response
{  "summary": "string",  "pages": [    {      "url": "string",      "title": "string",      "text": "string",      "chars": -9007199254740991,      "preview": "string"    }  ],  "credits_charged": 0}