List sent emails
curl --request GET \
--url https://api.scoutworks.app/api/v1/emails \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.scoutworks.app/api/v1/emails"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.scoutworks.app/api/v1/emails', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"subject": "<string>",
"source": "user",
"status": "sending",
"senderRole": "group_admin",
"sectionIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"sentAt": "2023-11-07T05:31:56Z",
"recipientCount": 4503599627370495,
"deliveredCount": 4503599627370495,
"openedCount": 4503599627370495,
"bouncedCount": 4503599627370495,
"complainedCount": 4503599627370495,
"failedCount": 4503599627370495,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"nextCursor": "<string>",
"nextUpdatedSince": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}Communications
List sent emails
Emails the group sent, oldest first, as the email log in Scoutworks lists them: never a draft, a scheduled email not yet sent, a cancelled one, an authentication email or a deleted one. Each carries its subject, when it went, the sender’s role and how many messages were delivered, opened, bounced and failed, counted as the email log counts them. The message itself (its body and attachments) is never returned, and nothing here sends one. Pass updatedSince to read only emails whose send or any recipient’s outcome changed.
GET
/
emails
List sent emails
curl --request GET \
--url https://api.scoutworks.app/api/v1/emails \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.scoutworks.app/api/v1/emails"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.scoutworks.app/api/v1/emails', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"subject": "<string>",
"source": "user",
"status": "sending",
"senderRole": "group_admin",
"sectionIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"sentAt": "2023-11-07T05:31:56Z",
"recipientCount": 4503599627370495,
"deliveredCount": 4503599627370495,
"openedCount": 4503599627370495,
"bouncedCount": 4503599627370495,
"complainedCount": 4503599627370495,
"failedCount": 4503599627370495,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"nextCursor": "<string>",
"nextUpdatedSince": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}Authorizations
Query Parameters
Response
OK