List the community files of a source
The files members added to the source in the caller's communities — only communities the caller is a member of, while the source is shared there (its owner included, only while a member). Ordered by community name, then newest first; the same objects as `community_attachments` on `GET /sources/{id}`. `community` (an id or a slug) keeps one community: one the caller is not in, or that does not exist, is an empty list. A source the caller cannot open is 404. Not paginated — bounded per source and community.
Sends a real request with your token. Prefer a read-only token; it is kept in this browser's storage.
The files members added to the source in the caller's communities — only communities the caller is a member of, while the source is shared there (its owner included, only while a member). Ordered by community name, then newest first; the same objects as community_attachments on GET /sources/{id}. community (an id or a slug) keeps one community: one the caller is not in, or that does not exist, is an empty list. A source the caller cannot open is 404. Not paginated — bounded per source and community.
AuthorizationBearer <token>A personal access token (rsk_…) or a Supabase access token.
id*string1 <= lengthcommunity?string1 <= lengthThe files
application/json- response
items*array<>curl -X GET 'https://www.ressource.social/api/v1/sources/string/community-attachments'{ "items": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "bookmark_id": "49a78d35-bc45-4a39-a336-d00349864577", "organization_id": "7c60d51f-b44e-4682-87d6-449835ea4de6", "uploaded_by": "e134ce2c-a199-4e99-9c11-627b70a7ff28", "media_id": "59458438-e712-4754-944d-fc838e1a631d", "description": "string", "created_at": "string", "media": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "original_filename": "string", "file_size": -9007199254740991, "mime_type": "string", "storage_path": "string", "bucket_name": "string" }, "user": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "username": "string", "avatar_url": "string" }, "user_masked": true, "organization": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "slug": "string" }, "viewer_can_delete": true } ]}Remove a community file DELETE
Its uploader, the source's owner, or an admin or owner of its community — each only while they can see it. A file the caller cannot see is 404 (the same answer as an unknown id); one they can see but may not remove is 403.
Upload a file POST
Multipart: `file`, `bucket` (one of avatars, bookmark-thumbnails, bookmark-attachments, bug-reports), and optional `usage_context`, `alt_text`, `description`. The file is stored under the caller and recorded as their media; the answer carries a signed URL valid for an hour. Accepted types: image/jpeg, image/jpg, image/png, image/gif, image/webp, image/svg+xml, image/avif, image/bmp, image/tiff, image/heic, image/heif, image/x-icon, image/vnd.microsoft.icon, application/pdf, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, text/plain, text/markdown, application/zip, application/x-zip-compressed. At most 50 MB. Past the storage or daily upload limit, 429.