API reference
9 endpoints. All paths are relative to your installation, for example https://app.example.com.
/api/v1/w/{workspaceId}/reply-suggestionsAI reply drafts / suggestions / auto-reply log/api/v1/w/{workspaceId}/reply-suggestions/{id}/approveApprove (optionally edited) and send from the original mailbox/api/v1/w/{workspaceId}/reply-suggestions/{id}/dismissDismiss a suggestion/api/v1/w/{workspaceId}/conversations/{id}/suggestGenerate an AI suggestion for the latest inbound message now/api/v1/w/{workspaceId}/reply-templatesReply templates (only approved ones can be auto-sent)/api/v1/w/{workspaceId}/reply-templatesCreate a reply template/api/v1/w/{workspaceId}/reply-templates/{id}Edit a template (resets approval)/api/v1/w/{workspaceId}/reply-templates/{id}Delete a template/api/v1/w/{workspaceId}/reply-templates/{id}/approveApprove / withdraw a template for auto-reply use/api/v1/w/{workspaceId}/reply-suggestionsAI reply drafts / suggestions / auto-reply log
Path parameters
workspaceIdrequired | string |
Query parameters
status | enumOne of: PENDING, APPROVED, SENT, DISMISSED, FAILED |
conversationId | string (uuid) |
curl -X GET "https://app.example.com/api/v1/w/$WORKSPACE_ID/reply-suggestions" \
-H "Authorization: Bearer $EMN_API_KEY"/api/v1/w/{workspaceId}/reply-suggestions/{id}/approveApprove (optionally edited) and send from the original mailbox
Path parameters
workspaceIdrequired | string |
idrequired | string |
Request body (JSON)
body | stringLength 1–20000 |
curl -X POST "https://app.example.com/api/v1/w/$WORKSPACE_ID/reply-suggestions/$ID/approve" \
-H "Authorization: Bearer $EMN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"body": "string"
}'/api/v1/w/{workspaceId}/reply-suggestions/{id}/dismissDismiss a suggestion
Path parameters
workspaceIdrequired | string |
idrequired | string |
curl -X POST "https://app.example.com/api/v1/w/$WORKSPACE_ID/reply-suggestions/$ID/dismiss" \
-H "Authorization: Bearer $EMN_API_KEY"/api/v1/w/{workspaceId}/conversations/{id}/suggestGenerate an AI suggestion for the latest inbound message now
Path parameters
workspaceIdrequired | string |
idrequired | string |
curl -X POST "https://app.example.com/api/v1/w/$WORKSPACE_ID/conversations/$ID/suggest" \
-H "Authorization: Bearer $EMN_API_KEY"/api/v1/w/{workspaceId}/reply-templatesReply templates (only approved ones can be auto-sent)
Path parameters
workspaceIdrequired | string |
curl -X GET "https://app.example.com/api/v1/w/$WORKSPACE_ID/reply-templates" \
-H "Authorization: Bearer $EMN_API_KEY"/api/v1/w/{workspaceId}/reply-templatesCreate a reply template
Path parameters
workspaceIdrequired | string |
Request body (JSON)
namerequired | stringLength 1–120 |
bodyrequired | stringLength 1–5000 |
categoriesrequired | enum[] |
curl -X POST "https://app.example.com/api/v1/w/$WORKSPACE_ID/reply-templates" \
-H "Authorization: Bearer $EMN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "string",
"body": "string",
"categories": [
"INTERESTED"
]
}'/api/v1/w/{workspaceId}/reply-templates/{id}Edit a template (resets approval)
Path parameters
workspaceIdrequired | string |
idrequired | string |
Request body (JSON)
namerequired | stringLength 1–120 |
bodyrequired | stringLength 1–5000 |
categoriesrequired | enum[] |
curl -X PUT "https://app.example.com/api/v1/w/$WORKSPACE_ID/reply-templates/$ID" \
-H "Authorization: Bearer $EMN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "string",
"body": "string",
"categories": [
"INTERESTED"
]
}'/api/v1/w/{workspaceId}/reply-templates/{id}Delete a template
Path parameters
workspaceIdrequired | string |
idrequired | string |
curl -X DELETE "https://app.example.com/api/v1/w/$WORKSPACE_ID/reply-templates/$ID" \
-H "Authorization: Bearer $EMN_API_KEY"/api/v1/w/{workspaceId}/reply-templates/{id}/approveApprove / withdraw a template for auto-reply use
Path parameters
workspaceIdrequired | string |
idrequired | string |
Request body (JSON)
approverequired | boolean |
curl -X POST "https://app.example.com/api/v1/w/$WORKSPACE_ID/reply-templates/$ID/approve" \
-H "Authorization: Bearer $EMN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"approve": true
}'