12
submitted 11 months ago by rimu@piefed.social to c/piefed_api@piefed.social

POST /api/alpha/upload/image - upload an image, get a url back. Use that to construct markdown/html as you wish. Uploaded images are associated with the current user and count towards their quota (50 MB by default, tweakable by instance admin)

GET /api/alpha/user/media - get all the images the current user has uploaded. Use this to provide a image picker.

POST /api/alpha/image/delete - provide the url of an image that the current user owns and it'll be deleted.

Details in the swagger docs.

top 1 comments
sorted by: hot top new old
[-] rimu@piefed.social 2 points 11 months ago

NB POST /api/alpha/upload/user_image is for profile photos and does not count towards their quota.

this post was submitted on 24 Oct 2025
12 points (100.0% liked)

PieFed API & mobile app dev

175 readers
1 users here now

Announcements and discussions about the PieFed API - changes, improvements and general co-ordination between the frontend developers and the core of PieFed.

founded 1 year ago
MODERATORS