Summary
The batch buy feature on the client requires metadata for multiple keys simultaneously. Fetching them one by one causes a waterfall of requests. A POST /keys/batch endpoint accepting an array of key IDs and returning their metadata in a single response would eliminate this.
Scope
- Add POST /keys/batch endpoint accepting { ids: string[] } in the request body
- Validate that the array contains between 1 and 20 key IDs
- Return an array of key metadata objects in the same order as the input IDs
- For IDs that do not exist return null in the corresponding position
- Cache individual key metadata in Redis for 60 seconds and serve from cache when available
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram
Summary
The batch buy feature on the client requires metadata for multiple keys simultaneously. Fetching them one by one causes a waterfall of requests. A POST /keys/batch endpoint accepting an array of key IDs and returning their metadata in a single response would eliminate this.
Scope
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram