Read what was indexed
The text of the published version, in Markdown, as the assistants search it, with what reading could not use. Up to 200,000 characters; for a long resource read a window with offset and limit and continue from next_offset.
GET/v1/resources/{resource_id}/content
Requires resources:read.
Use this to check an import before you rely on it. The text holds up to 200,000 characters. For a long resource, read a window with offset and limit (in characters), and continue from next_offset until it is null.
warnings lists what reading could not use, such as pages without readable text.
Authorizations
Authorizationbearerin headerrequiredPath parameters
resource_idstringrequiredpattern: ^res_[abcdefghjkmnpqrstuvwxyz23456789]{12}$Query parameters
offsetintegerrange: ≥ 0Where to start, in characters. Default 0. Pass next_offset from the previous response to read on.
limitintegerrange: 1–200000How many characters to return, at most 200,000. Omit it to read everything from offset.
Response
Read what was indexed
dataobjectrequiredrequest_idstringrequiredPossible codes: invalid_request, unknown_field, invalid_parameter, invalid_cursor
errorobjectrequiredrequest_idstringrequiredPossible codes: authentication_required, invalid_api_key, api_key_expired, api_key_revoked, invalid_access_key
errorobjectrequiredrequest_idstringrequiredPossible codes: insufficient_scope, feature_not_available, admin_required, permission_denied
errorobjectrequiredrequest_idstringrequiredPossible codes: resource_not_found
errorobjectrequiredrequest_idstringrequiredPossible codes: rate_limited
errorobjectrequiredrequest_idstringrequiredPossible codes: internal_error
errorobjectrequiredrequest_idstringrequiredPossible codes: service_unavailable
errorobjectrequiredrequest_idstringrequired