POST

Get Or Create Sender Email


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Gets the sender email info by the email address, or creates a new one.

If you try to create an email with a name that aready exists, this endpoint won't return you an error. Instead, you'll get the info of the existing email.

Endpoint
POST
https://www.wixapis.com/sender-emails/v1/sender-emails/get-or-create

Body Params
emailAddressstringRequiredformat EMAILminLength 6maxLength 254

Requested sender email.

Response Object
senderEmailSenderEmail

The requested sender email.

Get Or Create Sender Email Example 1
Request
cURL
curl -X POST 'https://www.wixapis.com/sender-emails/v1/sender-emails/get-or-create' \ -H 'Authorization: <AUTH>' \ -H 'Content-Type: application/json' \ -d '{ "emailAddress": "john.doe@example.com" }'
Response
JSON
{ "senderEmail": { "id": "30057014-8ecc-4a1b-9c53-bcc7dd033bb5", "createdDate": "2024-01-01T00:00:00.000Z", "updatedDate": "2024-01-01T00:00:00.000Z", "emailAddress": "john.doe@example.com", "verified": true } }
Errors
400Invalid Argument

There is 1 error with this status code.

This method may also return standard errors. Learn more about standard Wix errors.

Event TriggersThis method triggers the following events:
Did this help?