GET /api/users/:user_id/attachments

paginated list of attachments for a group or user

Success Response Code: 200

Additional Routes

  • (GET) fetch attachments for group - /api/groups/:group_id/attachments

Params

Param name Description
user_id
optional

user you want to see attachments for


Value: Must be a Integer
group_id
optional

group you want to see attachments for


Value: Must be a Integer
page
optional

page number of attachments to be returned (default=1)


Value: Must be a Integer
per_page
optional

number of attachments to be returned per page (default=20, max=500)


Value: Must be a Integer

Response Fields

attachments array of attachment entries Array<Attachment>
id id for this attachment Integer
filename name of the attachment String
url url for accessing the attachment String
public_filename url for downloading the file content String
file_extension extention for the attachment file String
content_type mime content typeof the attached file String
external_host_type name of the external host for the attachment String

Example Curl Commands

curl -X GET -v --basic -u "emily@socialcast.com:demo" https://demo.socialcast.com/api/users/26/attachments.json
curl -X GET -v --basic -u "emily@socialcast.com:demo" https://demo.socialcast.com/api/groups/2/attachments.json