Vesti
Attachments are how you share things in Protocol — they allow you to send all sorts of files to your contacts and groups. On this page, we'll dive into the different attachment endpoints you can use to manage attachments programmatically. We'll look at how to query, upload, update, and delete attachments.
The attachment model
The attachment model contains all the information about the files you send to your contacts and groups, including the name, type, and size.
Properties
- Name
id
- Type
- string
- Description
Unique identifier for the attachment.
- Name
message_id
- Type
- string
- Description
Unique identifier for the message associated with the attachment.
- Name
filename
- Type
- string
- Description
The filename for the attachment.
- Name
file_url
- Type
- string
- Description
The URL for the attached file.
- Name
file_type
- Type
- string
- Description
The MIME type of the attached file.
- Name
file_size
- Type
- integer
- Description
The file size of the attachment in bytes.
- Name
created_at
- Type
- timestamp
- Description
Timestamp of when the attachment was created.
The Second Parent
The attachment model contains all the information about the files you send to your contacts and groups, including the name, type, and size.
Second Child
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin tincidunt leo ac consequat imperdiet. Vestibulum bibendum enim leo, nec ultricies dui ultricies et. Curabitur eu nisl sollicitudin, rhoncus massa egestas, mattis risus. Cras euismod massa quis ullamcorper scelerisque. Aliquam erat volutpat. Morbi eget pretium purus. Donec consectetur quam et justo cursus, sed dictum mi faucibus. Donec commodo eros non nisl convallis, vitae mollis ligula ornare. Duis ipsum ante, aliquam id erat vel, tincidunt luctus metus. Suspendisse ut magna lobortis, aliquet nibh nec, cursus ipsum. Sed gravida fermentum purus, at fermentum mauris volutpat sed.
Third Child
Duis lobortis enim eu augue pulvinar vestibulum. Donec vehicula ipsum nec mollis eleifend. Praesent et lectus sed urna convallis facilisis nec a libero. Nulla tincidunt sem id ligula pellentesque fringilla. Pellentesque tempus nisl ac metus eleifend, ac gravida nulla ullamcorper. In pretium, quam sed ullamcorper dignissim, dui tortor semper tellus, sed consectetur nibh dui id lacus. Curabitur ac sem placerat lacus ullamcorper euismod. Quisque feugiat molestie nibh vel condimentum. Mauris sed urna neque. In tempus justo tellus, vel hendrerit urna condimentum vitae.