Set the numbers for an email.
Security
BasicAuth or OAuth2
The projectId is a required parameter you must include when making any API calls. You can find your project ID on your Build dashboard.
Example:3acb7ae1-cf3d-4112-ba5e-3a9d8c71cd47
- v3.0 of the Fax APIhttps://fax.api.sinch.com/v3/projects/{projectId}/services/{serviceId}/emails/{email}
curl -i -X PUT \
-u '<username>:<password>' \
'https://fax.api.sinch.com/v3/projects/3acb7ae1-cf3d-4112-ba5e-3a9d8c71cd47/services/{serviceId}/emails/{email}' \
-H 'Content-Type: application/json' \
-d '{
"phoneNumbers": [
{
"number": "+14155552222",
"permissions": "both"
}
]
}'The added email
The Id of the project associated with the call.
Example:"ae00f005-e392-44dc-b3f5-a657a2684dg3"
Response
{ "email": "user@domain.com", "phoneNumbers": [ { … } ], "projectId": "ae00f005-e392-44dc-b3f5-a657a2684dg3", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }
We'd love to hear from you!
Rate this content: