News for hackers. Stuff that matters.
Re:Code and Let Live by therealwardo on Sunday January 11, 2026 @12:56AM (#46573051)
I really want to love this, but my experience in the first 20 seconds is unfortunately like some of my other experiences coding against Fly APIs, they're broken.

https://sprites.dev/api has this command:

$ curl -X POST "https://api.sprites.dev/v1/sprites" \ -H "Authorization: Bearer $SPRITES_TOKEN" \ -d '{"name": "my-sprite"}'

which responds with

{"error":"name is required"}

if you use the request body in the full "Create Sprite" documentation at https://sprites.dev/api/sprites#create then it does work.

can I live with some rough edges for some personal workflows that only impact me when things break? sure. however, I was thinking about playing with some CI/CD stuff using sprites that would impact our whole team if things broke and I'm really on the fence because of this experience in the first 20 seconds.

Fly team - please put some black box probes or just better testing on the example you give in the quick start. if you document it, test it.

Re:Code and Let Live by tvink on Sunday January 11, 2026 @02:23AM (#46573400)
Probably because you didn't include the content type header?
Re:Code and Let Live by therealwardo on Sunday January 11, 2026 @02:55AM (#46573544)
yep that would fix it. just needs a little docs change.

a "quick start" really should just work when you copy paste them.

Re:Code and Let Live by rendaw on Sunday January 11, 2026 @08:01AM (#46575374)
Can it be some other content type?
Re:Code and Let Live by ch2026 on Sunday January 11, 2026 @12:40PM (#46577729)
why does an API that only accepts json need me to specify in a header that it’s json.

just assume it’s json. you’re gonna parse and validate it anyway.

Re:Code and Let Live by cess11 on Sunday January 11, 2026 @02:10PM (#46578759)
If it turns out that someone is willing to pay for some other protocol then they just have to hook it up to that MIME type and start serving. It might be possible that they can derive an implementation of that protocol from their data schemas.

If they hardcode JSON such a change would be breaking for their previous users.

Re:Code and Let Live by anamexis on Monday January 12, 2026 @08:50AM (#46588476)
Why would it be a breaking change? Just continue assuming JSON if no Content-Type is provided.
Re:Code and Let Live by bflesch on Monday January 12, 2026 @04:36AM (#46586129)
that's actually a reasonable point.
Re:Code and Let Live by nextaccountic on Sunday January 11, 2026 @01:37AM (#46573191)
Can this issue be reported?

I wish more companies had open issue trackers (some proprietary software have issues on Github for example, but, it doesn't need to be Github, just let people discuss issues in the open)

Re:Code and Let Live by Aurornis on Sunday January 11, 2026 @10:51AM (#46576746)
The documentation is correct now. I assume someone from fly is reading the comments.