cURL
curl --request POST \
--url http://127.0.0.1:3333/v3/integrations/email/test \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"host": "<string>",
"port": 32768,
"username": "<string>",
"password": "<string>",
"from": {
"email": "[email protected]",
"name": "<string>"
},
"to": "[email protected]"
}
'import requests
url = "http://127.0.0.1:3333/v3/integrations/email/test"
payload = {
"host": "<string>",
"port": 32768,
"username": "<string>",
"password": "<string>",
"from": {
"email": "[email protected]",
"name": "<string>"
},
"to": "[email protected]"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
host: '<string>',
port: 32768,
username: '<string>',
password: '<string>',
from: {email: '[email protected]', name: '<string>'},
to: '[email protected]'
})
};
fetch('http://127.0.0.1:3333/v3/integrations/email/test', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Additional Endpoints
Test Integrations
Test Integrations with the Sendbot API v3.
POST
/
v3
/
integrations
/
email
/
test
cURL
curl --request POST \
--url http://127.0.0.1:3333/v3/integrations/email/test \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"host": "<string>",
"port": 32768,
"username": "<string>",
"password": "<string>",
"from": {
"email": "[email protected]",
"name": "<string>"
},
"to": "[email protected]"
}
'import requests
url = "http://127.0.0.1:3333/v3/integrations/email/test"
payload = {
"host": "<string>",
"port": 32768,
"username": "<string>",
"password": "<string>",
"from": {
"email": "[email protected]",
"name": "<string>"
},
"to": "[email protected]"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
host: '<string>',
port: 32768,
username: '<string>',
password: '<string>',
from: {email: '[email protected]', name: '<string>'},
to: '[email protected]'
})
};
fetch('http://127.0.0.1:3333/v3/integrations/email/test', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Authorizations
bearerAuthapiKeyAuth
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Response
200
Default Response