Skip to main content
POST
File a document on the account in AMS 360

Authorizations

Authorization
string
header
required

The org's platform API key.

Headers

Nexio-Act-As
string

The member the read is made for (a WorkOS user id). Unset keeps the org-wide posture the key alone grants.

Nexio-Act-As-Email
string

The acting member's verified email, lowercased. Ignored without Nexio-Act-As.

Nexio-Consumer
string

The calling application (workbench).

Nexio-Consumer-Build
string

The calling application's build.

Nexio-Consumer-Vocabulary
string

The access vocabulary hash the calling build was generated against.

Nexio-Request-Id
string

A caller-chosen request id, echoed in the Nexio-Request-Id response header.

Nexio-Timeout
string

The caller's remaining budget for this request, in whole milliseconds (1 to 10 digits, greater than zero), relative to receipt. The engine stops work at the shorter of this and the route's own budget, and answers 504 request_timeout when it expires. A value above the route budget is capped to it; a malformed value is ignored.

Idempotency-Key
string
required

One key per click: a repeated key answers the first write.

Required string length: 8 - 128

Path Parameters

id
string
required

The account identity, as GET /records/accounts/{id} takes it.

Minimum string length: 1

Body

application/json
conversation_id
string<uuid>

The conversation that holds the upload. Required with upload_id, refused without it.

description
string

What the document is; the file name when empty.

Maximum string length: 4000
draft_format
enum<string>

The draft's export format; pdf when empty. Only with draft_id.

Available options:
pdf,
docx,
xlsx,
csv,
pptx
draft_id
string

A Workbench document draft the seat may read (GET /documents/drafts/{id}). The API renders its working copy in draft_format and files that: no bytes travel in the request. Omit when upload_id is sent.

file_name
string

The document's file name, at most 150 characters (AMS 360's limit). The rendered or stored file's own name when empty.

Maximum string length: 150
upload_id
string

A file already stored through the conversation upload path (POST /conversations/instances/{instanceSlug}/conversations/{conversationID}/attachments/reserve), ready and held by conversation_id for the seat. The API reads its bytes and files them: none travel in the request. At most 10 MiB. Omit when draft_id is sent.

Response

OK

data
object
required
request_id
string
required
source
object
required
unreachable
object[] | null
required
warnings
object[] | null
required
missing_count
integer<int64>

For a hierarchy record, source records missing that level after source filters and before name/ID filters.