GET /api/v1/voice/keys | none | {"keys":[{"provider","api_key","voice_id","label","updated_at"}]} (decrypted, for the owner) |
PUT /api/v1/voice/keys/:provider | {"api_key","voice_id"?,"label"?} | The saved key. provider is openai or elevenlabs; api_key is at most 512 characters. |
DELETE /api/v1/voice/keys | none | 204. Deletes every saved key for the user. |
POST /api/v1/voice/handoff | none | {"sid","expires_at"}. Expires after 120 seconds. |
PUT /api/v1/voice/handoff/:sid/receiver | {"pubkey"} | 204; 409 if a receiver is already set; 404 if unknown or expired. |
GET /api/v1/voice/handoff/:sid | none | {"sid","receiver_pubkey":null,"delivered":false,"expires_at"}. receiver_pubkey is null until the receiver registers. delivered is true once the receiver has taken the sealed key. |
PUT /api/v1/voice/handoff/:sid/sealed | {"nonce","ciphertext"} | 204; 409 if no receiver is registered, or the key is already sealed or delivered; 404 if unknown, expired or not yours; 400 if a field is over its cap. |
GET /api/v1/voice/handoff/:sid/sealed | none | 200 {"nonce","ciphertext"} the first time; 204 if nothing is sealed yet; 409 if already delivered; 404 if unknown, expired or not yours. |