Create a new sender identity with email address and display name using the AutoSend API.
curl --request POST \
--url https://api.autosend.com/v1/senders \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"email": "[email protected]",
"name": "Example Team",
"replyTo": "[email protected]"
}'
{
"success": true,
"data": {
"sender": {
"id": "60d5ec49f1b2c72d9c8b4567",
"email": "[email protected]",
"name": "Example Team",
"replyTo": "[email protected]"
},
"projectId": "60d5ec49f1b2c72d9c8b1234"
},
"message": "Authenticated sender added successfully"
}
curl --request POST \
--url https://api.autosend.com/v1/senders \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"email": "[email protected]",
"name": "Example Team",
"replyTo": "[email protected]"
}'
{
"success": true,
"data": {
"sender": {
"id": "60d5ec49f1b2c72d9c8b4567",
"email": "[email protected]",
"name": "Example Team",
"replyTo": "[email protected]"
},
"projectId": "60d5ec49f1b2c72d9c8b1234"
},
"message": "Authenticated sender added successfully"
}
<token>, where <token> is your auth token."[email protected]"200Example: "Example Team""[email protected]"trueShow child attributes
Show child attributes
"60d5ec49f1b2c72d9c8b4567""[email protected]""Example Team""[email protected]""60d5ec49f1b2c72d9c8b1234""Authenticated sender added successfully"{
"success": false,
"error": "A verified domain is required before adding an authenticated sender"
}
{
"success": false,
"error": "An authenticated sender with this email already exists"
}
curl --request POST \
--url https://api.autosend.com/v1/senders \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"email": "[email protected]",
"name": "Example Team",
"replyTo": "[email protected]"
}'
{
"success": true,
"data": {
"sender": {
"id": "60d5ec49f1b2c72d9c8b4567",
"email": "[email protected]",
"name": "Example Team",
"replyTo": "[email protected]"
},
"projectId": "60d5ec49f1b2c72d9c8b1234"
},
"message": "Authenticated sender added successfully"
}