Skip to navigation

Add S3 object

Uploads an image, PDF, document, presentation, spreadsheet, or audio file into one of the caller’s ChrtGPT conversations, creating it if needed, once it passes a malware scan, and adds the file’s description to the conversation for ChrtGPT’s next reply. | authz: allowed_org_types=[shipper, provider], min_org_role=operator | (UploadFile) -> (ChrtGPTConversationS3ObjectMetadata1)

Authentication

AuthorizationBearer

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

Path parameters

conversation_idstringRequired

Request

This endpoint expects a multipart form containing a file.
filefileRequired

Response

Successful Response
_idstring
ai_generated_descriptionstring
content_typestring
MIME type detected from the file's bytes.
conversation_idstring
object_typeenum
schema_versioninteger
size_bytesinteger>=1
uploaded_at_timestampstringformat: "date-time"
uploaded_by_org_idstring

Must be a string starting with org_

uploaded_by_user_idstring

Must be a string starting with user_

blurhashstring or nullOptional
filenamestring or nullOptional
Original filename of the uploaded file
s3_key_prefix"chrt_gpt/conversation_s3_object_metadata"OptionalDefaults to chrt_gpt/conversation_s3_object_metadata

Errors

403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
423
Locked Error
502
Bad Gateway Error
503
Service Unavailable Error