Upload a file to a contact.
Bearer token authentication using your API key
File to be uploaded. It can be a file object, a base64 encoded string, or a file data object containing base64 data, name, and type.
URL of the file to be uploaded
"https://example.com/files/document.pdf"
The allowed mime types for the file field (e.g. image/*, application/pdf)
255255A file in a contact collection, with its origin metadata
Unique identifier for the file
Path to the file in the storage system
2048Name of the file
255"document.pdf"
Size of the file in bytes
1024
MIME type of the file
255"application/pdf"
URL to access the file
2048Timestamp when the file was created
Where the file came from in the contact: a direct upload, attached to a note, or sent in a chat
direct, note, chat Staff member who linked the file to the contact. Null when the file came from the contact themselves or was generated by the assistant.