Skip to main content
POST
Create Workspace Document
Create a workspace document from a temporary upload key returned by /vapor/signed-storage-url. If a document with identical content already exists in the same workspace, the API reuses it (sha256 dedup).

Authentication & Scope

Requires documents-write.

Request

Response

201 Created when new, 200 OK when reused.

Authorizations

Authorization
string
header
required

Personal Access Token created from the Raydocs dashboard. Include in the Authorization header: Bearer <your_token> See API Keys for token creation and management.

Path Parameters

workspaceId
integer
required

Body

application/json
key
string
required

Temporary upload key from /vapor/signed-storage-url

filename
string
mime
string

Response

Reused existing document by content hash

document
object
dedup
object
document_ref
object