Read the text of a file attached to a deal
curl --request GET \ --url 'https://example.com/api/v1/deals/example/attachments/example/content?offset=0&limit=262144' \ --header 'Authorization: Bearer <token>'Returns one page of the text of a PDF or Word file on the deal, such as its SOW, so it can be read without downloading it. offset and limit count characters; follow nextOffset until truncated is false. A file with no text layer (a scan), a damaged or locked file, a file over 10 MB, a PDF over 100 pages or a file missing from storage answers 200 with readable: false and the unreadableReason. An unknown deal or file, or a deal outside the member’s scope, is a 404. Requires deals.view. Client members never read deal files.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Deal identifier (CUID2).
Deal identifier (CUID2).
Deal attachment identifier (CUID2).
Deal attachment identifier (CUID2).
Query Parameters
Section titled “Query Parameters”Character offset to start the page at.
Character offset to start the page at.
Most characters to return in this page.
Most characters to return in this page.
Responses
Section titled “Responses”One page of the file’s text.
object
One page of the text of a file attached to a deal, or why it cannot be read.
object
The requested page of text.
File size in bytes.
True when content holds a page of the file’s text.
True when more text follows this page.
Example
{ "data": { "unreadableReason": "unsupported" }}Validation error. Parse failures include field paths and expectations.
Validation error with safe field paths and expected values; submitted values are never returned.
object
object
Stable machine-readable error code.
object
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Unauthorized.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Forbidden.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Not found.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Rate limit exceeded. Wait for Retry-After before retrying.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Headers
Section titled “Headers”Maximum requests in the current quota window.
Quota policy in requests and window seconds, for example 60;w=60.
Requests left in this quota window (zero when blocked).
Seconds until the current quota window resets, when available from the rate-limit store.
Seconds until another request may be attempted.
Chelsea is operated by Arepa Labs LLC