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"
@aiden-f-dsouza▲ 5 net votes
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.