Skip to main content
POST
Create or Update Document
Create a document on a session (omit document_id201) or update one (include document_id200) — e.g. to save a doctor’s edits. The response includes a presigned PUT URL — upload the markdown content there:

Authorizations

Authorization
string
header
required

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

Body

application/json
session_id
string
required

The session this document belongs to.

Example:

"ses_abc123def456"

document_id
string

Omit to create a new document; include to update an existing one.

template_id
string

Template the document is associated with, if any.

type
enum<string>
default:custom

Document category.

Available options:
context,
transcript,
custom,
notes,
integration
document_name
string

Human-readable document name.

status
string
default:in-progress

Document status, e.g. in-progress or success.

errors
any[]
warnings
any[]
usage_information
object

Response

Document created (also 200 when updating an existing document)

status
string
Example:

"success"

data
object