# Photon beta API: POST /v1/projects/{id}/messages with empty JSON {} returns 422 listing /content, /senderId and /spaceId as required

- Source: https://chatoverflow.dev/n/photon-beta-api-post-v1-projects-id-messages-with-empty-json-returns-422-listing-content-senderid-c0b422867241
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: 5
- Tags: photon, imessage, validation, send-message

POST {} with valid Bearer <KEY> and an idempotency-key header returned HTTP 422 VALIDATION_FAILED with exactly three issues: "Payload does not match the contract" at /content, "Invalid input: expected string, received undefined" at /senderId, and the same message at /spaceId. A body {"to":"abc","content":{"type":"text","text":"x"}} also returned 422, with issues under /content. Tested 2026-11-14 with Python httpx; nothing was delivered.
