Conversation Files
Download or display an artifact of a conversation
Section titled “Download or display an artifact of a conversation”GET /api/v1/conversations/{conversationId}/artifacts/{artifactId}/content
- Operation
conversations.artifacts.get_content- Accepts
sessionCookie,sessionToken- Scope
conversation:read- Effect
- reading
- Rate class
- read
Parameters
conversationIdstring in path, requiredartifactIdstring in path, requiredinlinestring in query, optional
Answers
200The content itselfapplication/octet-stream: string (binary)400BAD_REQUEST: The request cannot be read.401UNAUTHENTICATED: No credential was presented, or the credential is not valid.403FORBIDDEN: The caller lacks the scope or the right this operation requires.404NOT_FOUND: The resource does not exist, is not visible to the caller, or the instance runs without this operation.422VALIDATION_FAILED: Path, query or body do not match the operation's schema.429RATE_LIMITED: The caller sent too many requests of this operation's rate class.details.retryAfterSecondsand theRetry-Afterheader give the seconds to wait. The numbers are the instance's, set underrateLimitsin its release config.500INTERNAL: The instance failed. The message never carries details.
Read the page preview of an artifact
Section titled “Read the page preview of an artifact”GET /api/v1/conversations/{conversationId}/artifacts/{artifactId}/preview
- Operation
conversations.artifacts.get_preview- Accepts
sessionCookie,sessionToken- Scope
conversation:read- Effect
- reading
- Rate class
- read
Parameters
conversationIdstring in path, requiredartifactIdstring in path, required
Answers
200The resultapplication/json: ArtifactPreviewResponse400BAD_REQUEST: The request cannot be read.401UNAUTHENTICATED: No credential was presented, or the credential is not valid.403FORBIDDEN: The caller lacks the scope or the right this operation requires.404NOT_FOUND: The resource does not exist, is not visible to the caller, or the instance runs without this operation.422VALIDATION_FAILED: Path, query or body do not match the operation's schema.429RATE_LIMITED: The caller sent too many requests of this operation's rate class.details.retryAfterSecondsand theRetry-Afterheader give the seconds to wait. The numbers are the instance's, set underrateLimitsin its release config.500INTERNAL: The instance failed. The message never carries details.
Prepare the page preview of an artifact
Section titled “Prepare the page preview of an artifact”POST /api/v1/conversations/{conversationId}/artifacts/{artifactId}/preview
- Operation
conversations.artifacts.start_preview- Accepts
sessionCookie,sessionToken- Scope
conversation:read- Effect
- changing
- Rate class
- write
Parameters
conversationIdstring in path, requiredartifactIdstring in path, required
Answers
200The resultapplication/json: ArtifactPreviewResponse400BAD_REQUEST: The request cannot be read.401UNAUTHENTICATED: No credential was presented, or the credential is not valid.403FORBIDDEN: The caller lacks the scope or the right this operation requires.404NOT_FOUND: The resource does not exist, is not visible to the caller, or the instance runs without this operation.422VALIDATION_FAILED: Path, query or body do not match the operation's schema.429RATE_LIMITED: The caller sent too many requests of this operation's rate class.details.retryAfterSecondsand theRetry-Afterheader give the seconds to wait. The numbers are the instance's, set underrateLimitsin its release config.500INTERNAL: The instance failed. The message never carries details.
Render a failed artifact preview again
Section titled “Render a failed artifact preview again”POST /api/v1/conversations/{conversationId}/artifacts/{artifactId}/preview/retry
- Operation
conversations.artifacts.retry_preview- Accepts
sessionCookie,sessionToken- Scope
conversation:read- Effect
- changing
- Rate class
- write
Parameters
conversationIdstring in path, requiredartifactIdstring in path, required
Answers
200The resultapplication/json: ArtifactPreviewResponse400BAD_REQUEST: The request cannot be read.401UNAUTHENTICATED: No credential was presented, or the credential is not valid.403FORBIDDEN: The caller lacks the scope or the right this operation requires.404NOT_FOUND: The resource does not exist, is not visible to the caller, or the instance runs without this operation.422VALIDATION_FAILED: Path, query or body do not match the operation's schema.429RATE_LIMITED: The caller sent too many requests of this operation's rate class.details.retryAfterSecondsand theRetry-Afterheader give the seconds to wait. The numbers are the instance's, set underrateLimitsin its release config.500INTERNAL: The instance failed. The message never carries details.
Read the page preview of a sent attachment
Section titled “Read the page preview of a sent attachment”GET /api/v1/conversations/{conversationId}/attachments/{attachmentId}/preview
- Operation
conversations.attachments.get_preview- Accepts
sessionCookie,sessionToken- Scope
conversation:read- Effect
- reading
- Rate class
- read
Parameters
conversationIdstring in path, requiredattachmentIdstring in path, required
Answers
200The resultapplication/json: ArtifactPreviewResponse400BAD_REQUEST: The request cannot be read.401UNAUTHENTICATED: No credential was presented, or the credential is not valid.403FORBIDDEN: The caller lacks the scope or the right this operation requires.404NOT_FOUND: The resource does not exist, is not visible to the caller, or the instance runs without this operation.422VALIDATION_FAILED: Path, query or body do not match the operation's schema.429RATE_LIMITED: The caller sent too many requests of this operation's rate class.details.retryAfterSecondsand theRetry-Afterheader give the seconds to wait. The numbers are the instance's, set underrateLimitsin its release config.500INTERNAL: The instance failed. The message never carries details.
Prepare the page preview of a sent attachment
Section titled “Prepare the page preview of a sent attachment”POST /api/v1/conversations/{conversationId}/attachments/{attachmentId}/preview
- Operation
conversations.attachments.start_preview- Accepts
sessionCookie,sessionToken- Scope
conversation:read- Effect
- changing
- Rate class
- write
Parameters
conversationIdstring in path, requiredattachmentIdstring in path, required
Answers
200The resultapplication/json: ArtifactPreviewResponse400BAD_REQUEST: The request cannot be read.401UNAUTHENTICATED: No credential was presented, or the credential is not valid.403FORBIDDEN: The caller lacks the scope or the right this operation requires.404NOT_FOUND: The resource does not exist, is not visible to the caller, or the instance runs without this operation.422VALIDATION_FAILED: Path, query or body do not match the operation's schema.429RATE_LIMITED: The caller sent too many requests of this operation's rate class.details.retryAfterSecondsand theRetry-Afterheader give the seconds to wait. The numbers are the instance's, set underrateLimitsin its release config.500INTERNAL: The instance failed. The message never carries details.
List the attachments of the unsent message
Section titled “List the attachments of the unsent message”GET /api/v1/conversations/{conversationId}/draft-attachments
- Operation
conversations.draft_attachments.list- Accepts
sessionCookie,sessionToken- Scope
conversation:read- Effect
- reading
- Rate class
- read
Parameters
conversationIdstring in path, requiredlimitinteger in query, optional, default50, minimum1, maximum200cursorstring in query, optional, minLength1
Answers
200One page of the listapplication/json: objectitemsarray of DraftAttachment requirednextCursorstring optional
400BAD_REQUEST: The request cannot be read.401UNAUTHENTICATED: No credential was presented, or the credential is not valid.403FORBIDDEN: The caller lacks the scope or the right this operation requires.404NOT_FOUND: The resource does not exist, is not visible to the caller, or the instance runs without this operation.422VALIDATION_FAILED: Path, query or body do not match the operation's schema.429RATE_LIMITED: The caller sent too many requests of this operation's rate class.details.retryAfterSecondsand theRetry-Afterheader give the seconds to wait. The numbers are the instance's, set underrateLimitsin its release config.500INTERNAL: The instance failed. The message never carries details.
Upload an attachment for the next message
Section titled “Upload an attachment for the next message”POST /api/v1/conversations/{conversationId}/draft-attachments
- Operation
conversations.draft_attachments.upload- Accepts
sessionCookie,sessionToken- Scope
conversation:write- Effect
- changing
- Rate class
- write
Parameters
conversationIdstring in path, required
Request body
multipart/form-data: object
filestring (binary) required
Answers
200The resultapplication/json: DraftAttachmentUploadResponse400BAD_REQUEST: The request cannot be read.401UNAUTHENTICATED: No credential was presented, or the credential is not valid.403FORBIDDEN: The caller lacks the scope or the right this operation requires.404NOT_FOUND: The resource does not exist, is not visible to the caller, or the instance runs without this operation.422VALIDATION_FAILED: Path, query or body do not match the operation's schema.429RATE_LIMITED: The caller sent too many requests of this operation's rate class.details.retryAfterSecondsand theRetry-Afterheader give the seconds to wait. The numbers are the instance's, set underrateLimitsin its release config.500INTERNAL: The instance failed. The message never carries details.
Remove a draft attachment
Section titled “Remove a draft attachment”DELETE /api/v1/conversations/{conversationId}/draft-attachments/{attachmentId}
- Operation
conversations.draft_attachments.delete- Accepts
sessionCookie,sessionToken- Scope
conversation:write- Effect
- changing
- Rate class
- write
Parameters
conversationIdstring in path, requiredattachmentIdstring in path, required
Answers
200The resultapplication/json: DraftAttachment400BAD_REQUEST: The request cannot be read.401UNAUTHENTICATED: No credential was presented, or the credential is not valid.403FORBIDDEN: The caller lacks the scope or the right this operation requires.404NOT_FOUND: The resource does not exist, is not visible to the caller, or the instance runs without this operation.422VALIDATION_FAILED: Path, query or body do not match the operation's schema.429RATE_LIMITED: The caller sent too many requests of this operation's rate class.details.retryAfterSecondsand theRetry-Afterheader give the seconds to wait. The numbers are the instance's, set underrateLimitsin its release config.500INTERNAL: The instance failed. The message never carries details.
Process a failed draft attachment again
Section titled “Process a failed draft attachment again”POST /api/v1/conversations/{conversationId}/draft-attachments/{attachmentId}/retry
- Operation
conversations.draft_attachments.retry- Accepts
sessionCookie,sessionToken- Scope
conversation:write- Effect
- changing
- Rate class
- write
Parameters
conversationIdstring in path, requiredattachmentIdstring in path, required
Answers
200The resultapplication/json: DraftAttachmentUploadResponse400BAD_REQUEST: The request cannot be read.401UNAUTHENTICATED: No credential was presented, or the credential is not valid.403FORBIDDEN: The caller lacks the scope or the right this operation requires.404NOT_FOUND: The resource does not exist, is not visible to the caller, or the instance runs without this operation.422VALIDATION_FAILED: Path, query or body do not match the operation's schema.429RATE_LIMITED: The caller sent too many requests of this operation's rate class.details.retryAfterSecondsand theRetry-Afterheader give the seconds to wait. The numbers are the instance's, set underrateLimitsin its release config.500INTERNAL: The instance failed. The message never carries details.
Download or display a file of a conversation
Section titled “Download or display a file of a conversation”GET /api/v1/conversations/{conversationId}/files/{fileId}/content
- Operation
conversations.files.get_content- Accepts
sessionCookie,sessionToken- Scope
conversation:read- Effect
- reading
- Rate class
- read
Parameters
conversationIdstring in path, requiredfileIdstring in path, requireddownloadstring in query, optional
Answers
200The content itselfapplication/octet-stream: string (binary)400BAD_REQUEST: The request cannot be read.401UNAUTHENTICATED: No credential was presented, or the credential is not valid.403FORBIDDEN: The caller lacks the scope or the right this operation requires.404NOT_FOUND: The resource does not exist, is not visible to the caller, or the instance runs without this operation.422VALIDATION_FAILED: Path, query or body do not match the operation's schema.429RATE_LIMITED: The caller sent too many requests of this operation's rate class.details.retryAfterSecondsand theRetry-Afterheader give the seconds to wait. The numbers are the instance's, set underrateLimitsin its release config.500INTERNAL: The instance failed. The message never carries details.