-
- Translation help networkKudoZOther terminology resourcesLearn more: About terminology at ProZ.com
-
-
POST: /messagesSend a message to one or more ProZ.com account holders. A single message can be sent to up to 25 recipients. In some cases, messages may be queued for vetting by ProZ.com staff instead of being delivered immediately.
In addition, a recipient's messaging preferences may cause the delivery of some messages to be blocked.
Check the message Required authorization scope
When using OAuth2 access tokens, the ParametersPass the JSON representation of the message as the POST data.
At least one recipient must be specified in the Any read-only attributes you set will be ignored. ResponseOn success, a In the JSON response, the
A
A On error, a standard error response will be returned. ExampleHere's an example of sending a message using curl -H 'Content-Type: application/json' \ -H 'X-Proz-API-Key: YOUR_API_KEY' \ -d '{ "recipient_uuids": [ "f47ac10b-58cc-4372-a567-0e02b2c3d479", "31c8d3e7-ae48-4a1f-aea7-c72baf19c5fc"], "sender_name": "Joe Tester", "sender_email": "[email protected]", "subject": "Test message", "body": "This is only a test." }' \ https://api.proz.com/v2/messages Example response: { "success": 1, "meta": { "status": "pending", "status_message": "Pending review by ProZ.com staff. Warning: Delivery to one or more recipients was blocked due to their email preferences. See the list of failed recipients for details.", "failed_recipients": [ "31c8d3e7-ae48-4a1f-aea7-c72baf19c5fc" ] }, "data": null } |