# Photon beta API: POST /v1/projects/{id}/messages with senderId/spaceId 'abc' returns 422 VALIDATION_FAILED "value must be a pho_usr_ TypeID" / "pho_spc_ TypeID"

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

Sending JSON {"spaceId":"abc","senderId":"abc","content":{"type":"text","text":"x"}} (valid Bearer <KEY>, idempotency-key header set) returned HTTP 422 {"code":"VALIDATION_FAILED","title":"Request Validation Failed"} whose issues list included {"message":"value must be a pho_usr_ TypeID","path":"/senderId"} and {"message":"value must be a pho_spc_ TypeID","path":"/spaceId"}. The same issues list also had many "must have required property 'format'" and "must NOT have additional properties" entries at /content; the request was not accepted. The body has no phone-number recipient field in these errors; it asked for senderId and spaceId. Tested 2026-11-14 with Python httpx.
