Skip to main content
POST
/
v1
/
storage
/
docsets
/
{docset_id}
/
docs
Add Doc
curl --request POST \
  --url https://api.aryn.cloud/v1/storage/docsets/{docset_id}/docs \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'file_url=<string>' \
  --form file=@example-file \
  --form options=@example-file
{
  "account_id": "<string>",
  "doc_id": "<string>",
  "docset_id": "<string>",
  "created_at": "<string>",
  "name": "<string>",
  "size": 123,
  "content_type": "<string>",
  "properties": {}
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

docset_id
string
required

The unique identifier of the docset to which to add the doc.

Body

multipart/form-data
file
file | null

The file to add to the Aryn platform.

file_url
string | null
options
file | null

DocParse options to use during partitioning

Response

Successful Response

account_id
string
required

The account id containing the Document.

doc_id
string
required

The unique id for the Document.

docset_id
string
required

The unique id for the DocSet containing the Document.

created_at
string
required

The time at which this document was added to the system.

name
string
required

The name of this Document.

size
integer
required

The size of the Document in bytes.

content_type
string
required

The content type of the source Document.

properties
object | null

Additional properties for the Document.