Attachments

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.


GET/v1/attachments

List all attachments

Was this page helpful?