Skip to main content
POST
Parse an uploaded document
See the guide for authentication, examples, and usage rules.

Authorizations

Authorization
string
header
required

Org API key as Authorization: Bearer z_sk_...

Body

multipart/form-data

Request payload for parseAttachment. Examples use placeholder-safe values and do not include real secrets or private prompt content.

Upload one file for server-side parsing using an API key or CLI OAuth credential. No model, trust tier, or parse mode is accepted.

file
file
required

Multipart binary file upload to parse.

Response

OK

Schema for AttachmentParseResponse values returned by or accepted by the Nito gateway.

document_type
string
required

The document_type field on AttachmentParseResponse.

Example:

"example"

text
string
required

The text field on AttachmentParseResponse.

Example:

"Say hello."

token_count
integer
required

Model-independent estimate: UTF-8 byte length of parsed text divided by four, rounded up. Not a model-specific tokenizer count or billing usage.

Required range: x >= 0
Example:

1