Append an email record to a case
curl --request POST \
--url https://www.presolve.com/api/v1/cases/{caseId}/emails \
--header 'Content-Type: application/json' \
--header 'X-Idempotency-Key: <x-idempotency-key>' \
--header 'x-api-key: <api-key>' \
--data '
{
"from": "jsmith@example.com",
"to": [
"jsmith@example.com"
],
"subject": "<string>",
"sentAt": "<string>",
"cc": [
"jsmith@example.com"
],
"bodyText": "<string>",
"bodyHtml": "<string>",
"attachments": [
"<string>"
]
}
'const options = {
method: 'POST',
headers: {
'X-Idempotency-Key': '<x-idempotency-key>',
'x-api-key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
from: 'jsmith@example.com',
to: ['jsmith@example.com'],
subject: '<string>',
sentAt: '<string>',
cc: ['jsmith@example.com'],
bodyText: '<string>',
bodyHtml: '<string>',
attachments: ['<string>']
})
};
fetch('https://www.presolve.com/api/v1/cases/{caseId}/emails', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://www.presolve.com/api/v1/cases/{caseId}/emails"
payload = {
"from": "jsmith@example.com",
"to": ["jsmith@example.com"],
"subject": "<string>",
"sentAt": "<string>",
"cc": ["jsmith@example.com"],
"bodyText": "<string>",
"bodyHtml": "<string>",
"attachments": ["<string>"]
}
headers = {
"X-Idempotency-Key": "<x-idempotency-key>",
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true
}{
"success": false,
"error": "<string>",
"code": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>"
}Communications
Append an email record to a case
Write-append correspondence logging — this does NOT send mail.
Requires the communications:write scope. Mutations require an X-Idempotency-Key header (responses are stored for replay; reusing a key with a different request returns 409 IDEMPOTENCY_CONFLICT). Rate tier: write.
POST
/
api
/
v1
/
cases
/
{caseId}
/
emails
Append an email record to a case
curl --request POST \
--url https://www.presolve.com/api/v1/cases/{caseId}/emails \
--header 'Content-Type: application/json' \
--header 'X-Idempotency-Key: <x-idempotency-key>' \
--header 'x-api-key: <api-key>' \
--data '
{
"from": "jsmith@example.com",
"to": [
"jsmith@example.com"
],
"subject": "<string>",
"sentAt": "<string>",
"cc": [
"jsmith@example.com"
],
"bodyText": "<string>",
"bodyHtml": "<string>",
"attachments": [
"<string>"
]
}
'const options = {
method: 'POST',
headers: {
'X-Idempotency-Key': '<x-idempotency-key>',
'x-api-key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
from: 'jsmith@example.com',
to: ['jsmith@example.com'],
subject: '<string>',
sentAt: '<string>',
cc: ['jsmith@example.com'],
bodyText: '<string>',
bodyHtml: '<string>',
attachments: ['<string>']
})
};
fetch('https://www.presolve.com/api/v1/cases/{caseId}/emails', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://www.presolve.com/api/v1/cases/{caseId}/emails"
payload = {
"from": "jsmith@example.com",
"to": ["jsmith@example.com"],
"subject": "<string>",
"sentAt": "<string>",
"cc": ["jsmith@example.com"],
"bodyText": "<string>",
"bodyHtml": "<string>",
"attachments": ["<string>"]
}
headers = {
"X-Idempotency-Key": "<x-idempotency-key>",
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true
}{
"success": false,
"error": "<string>",
"code": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>"
}Authorizations
Org-issued integration API key (service account credential). The plaintext secret is shown once at creation.
Headers
Stable caller-chosen key (max 200 chars) making the mutation safely retryable.
Maximum string length:
200Path Parameters
Case id
Body
application/json
Required string length:
3 - 320Required array length:
1 - 100 elementsRequired string length:
3 - 320Required string length:
1 - 998Maximum array length:
100Required string length:
3 - 320Maximum string length:
1000000Maximum string length:
2000000Maximum array length:
50Required string length:
1 - 200