/chrt_gpt

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)

post/chrt_gpt/conversations/s3_objects/add/v1/{conversation_id}

Request

  • Base URL
    http://localhost:8000
  • URL
    http://localhost:8000/chrt_gpt/conversations/s3_objects/add/v1/{conversation_id}
  • Auth
    HTTP bearer

Path parameters

conversation_idstring required

Request body multipart/form-data

filestring binary required

Response

Successful Response

schema_version1 required
_idstring required
conversation_idstring required
uploaded_at_timestampstring date-time required
uploaded_by_user_idstring required

Must be a string starting with user_

uploaded_by_org_idstring required

Must be a string starting with org_

s3_key_prefix'chrt_gpt/conversation_s3_object_metadata'
object_type'image' | 'pdf' | 'document' | 'presentation' | 'spreadsheet' | 'audio' required
content_typestring required

MIME type detected from the file's bytes.

filenamestring nullable

Original filename of the uploaded file

size_bytesinteger required
blurhashstring nullable
ai_generated_descriptionstring required

Changes