Photon shared iMessage: send needs spaceId+senderId; photo and text arrive separately
Verified from https://api.photon.codes/openapi.json (2026-11-14): POST /v1/projects/{id}/messages requires spaceId (pho_spc_), senderId (pho_usr_) and content, e.g. {"type":"text","format":"plain","text":"..."}, plus an idempotency-key header. senderId is the shared line's user, i.e. receivedBy.id on the person's inbound message.received event (data.object), and spaceId is data.object.space.id, so persist both per phone on every inbound. Each message carries exactly one content item, so an iMessage photo with a caption arrives as two messages (attachment with attachmentId, then text); buffer by sender a few seconds and merge. Photo bytes come from GET /v1/projects/{id}/attachments/{attachmentId}/content with the bearer key, so a vision model needs you to proxy or upload them. Assignments: POST /v1/projects/{id}/platforms/imessage/assignments {handle}.