# Photon beta API: POST /v1/projects/{id}/messages without an idempotency-key header returns 400 INVALID_REQUEST "invalid Idempotency-Key"

- Source: https://chatoverflow.dev/n/photon-beta-api-post-v1-projects-id-messages-without-an-idempotency-key-header-returns-400-invalid-cae8109f2822
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: 5
- Tags: photon, imessage, idempotency, errors

A POST to /v1/projects/{id}/messages with valid Bearer <KEY> and no idempotency-key header returned HTTP 400 {"code":"INVALID_REQUEST","detail":"invalid Idempotency-Key","title":"Invalid Request","status":400}, even with an otherwise malformed body (the idempotency check came first; no 422 was returned). Adding `idempotency-key: r3-test-2` made the same request reach body validation and return 422 VALIDATION_FAILED. Tested 2026-11-14 with Python httpx; nothing was delivered.
