API reference
11 endpoints. All paths are relative to your installation, for example https://app.example.com.
/api/v1/w/{workspaceId}/ai-outreach-brain/overviewTraining status, rules, examples, draft decisions and pending learning suggestions/api/v1/w/{workspaceId}/ai-outreach-brain/rulesList workspace rules with conflict warnings/api/v1/w/{workspaceId}/ai-outreach-brain/rulesCreate an outreach rule/api/v1/w/{workspaceId}/ai-outreach-brain/rules/{id}Update an outreach rule/api/v1/w/{workspaceId}/ai-outreach-brain/rules/{id}Delete an outreach rule/api/v1/w/{workspaceId}/ai-outreach-brain/examplesList workspace examples/api/v1/w/{workspaceId}/ai-outreach-brain/examplesAdd a positive or negative text example/api/v1/w/{workspaceId}/ai-outreach-brain/examples/{id}Update a workspace example/api/v1/w/{workspaceId}/ai-outreach-brain/examples/{id}Delete a workspace example/api/v1/w/{workspaceId}/ai-outreach-brain/suggestionsLearning suggestions from repeated customer edits/api/v1/w/{workspaceId}/ai-outreach-brain/suggestions/{id}/decisionAccept or reject a learning suggestion/api/v1/w/{workspaceId}/ai-outreach-brain/overviewTraining status, rules, examples, draft decisions and pending learning suggestions
Path parameters
workspaceIdrequired | string |
curl -X GET "https://app.example.com/api/v1/w/$WORKSPACE_ID/ai-outreach-brain/overview" \
-H "Authorization: Bearer $EMN_API_KEY"/api/v1/w/{workspaceId}/ai-outreach-brain/rulesList workspace rules with conflict warnings
Path parameters
workspaceIdrequired | string |
curl -X GET "https://app.example.com/api/v1/w/$WORKSPACE_ID/ai-outreach-brain/rules" \
-H "Authorization: Bearer $EMN_API_KEY"/api/v1/w/{workspaceId}/ai-outreach-brain/rulesCreate an outreach rule
Path parameters
workspaceIdrequired | string |
Request body (JSON)
titlerequired | stringLength 2–120 |
descriptionrequired | stringLength 3–3000 |
categoryrequired | enumOne of: PROSPECT_RESEARCH, PROSPECT_QUALIFICATION, OPPORTUNITY_IDENTIFICATION, PERSONALIZATION, EMAIL_OPENING, VALUE_PROPOSITION, PITCHING, CLOSING, FOLLOW_UPS, DELIVERABILITY_COMPLIANCE |
priorityrequired | enumOne of: MANDATORY, PREFERRED, AVOID, CONDITIONAL |
condition | string | null |
status | enumOne of: ACTIVE, INACTIVE · Default "ACTIVE" |
triggerTerms | string[]Default [] |
curl -X POST "https://app.example.com/api/v1/w/$WORKSPACE_ID/ai-outreach-brain/rules" \
-H "Authorization: Bearer $EMN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"title": "string",
"description": "string",
"category": "PROSPECT_RESEARCH",
"priority": "MANDATORY",
"condition": "string",
"status": "ACTIVE",
"triggerTerms": []
}'/api/v1/w/{workspaceId}/ai-outreach-brain/rules/{id}Update an outreach rule
Path parameters
workspaceIdrequired | string |
idrequired | string |
Request body (JSON)
titlerequired | stringLength 2–120 |
descriptionrequired | stringLength 3–3000 |
categoryrequired | enumOne of: PROSPECT_RESEARCH, PROSPECT_QUALIFICATION, OPPORTUNITY_IDENTIFICATION, PERSONALIZATION, EMAIL_OPENING, VALUE_PROPOSITION, PITCHING, CLOSING, FOLLOW_UPS, DELIVERABILITY_COMPLIANCE |
priorityrequired | enumOne of: MANDATORY, PREFERRED, AVOID, CONDITIONAL |
condition | string | null |
status | enumOne of: ACTIVE, INACTIVE · Default "ACTIVE" |
triggerTerms | string[]Default [] |
curl -X PATCH "https://app.example.com/api/v1/w/$WORKSPACE_ID/ai-outreach-brain/rules/$ID" \
-H "Authorization: Bearer $EMN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"title": "string",
"description": "string",
"category": "PROSPECT_RESEARCH",
"priority": "MANDATORY",
"condition": "string",
"status": "ACTIVE",
"triggerTerms": []
}'/api/v1/w/{workspaceId}/ai-outreach-brain/rules/{id}Delete an outreach rule
Path parameters
workspaceIdrequired | string |
idrequired | string |
curl -X DELETE "https://app.example.com/api/v1/w/$WORKSPACE_ID/ai-outreach-brain/rules/$ID" \
-H "Authorization: Bearer $EMN_API_KEY"/api/v1/w/{workspaceId}/ai-outreach-brain/examplesList workspace examples
Path parameters
workspaceIdrequired | string |
curl -X GET "https://app.example.com/api/v1/w/$WORKSPACE_ID/ai-outreach-brain/examples" \
-H "Authorization: Bearer $EMN_API_KEY"/api/v1/w/{workspaceId}/ai-outreach-brain/examplesAdd a positive or negative text example
Path parameters
workspaceIdrequired | string |
Request body (JSON)
namerequired | stringLength 2–120 |
contentrequired | stringLength 10–20000 |
correctedContent | string | null |
categoryrequired | enumOne of: EMAIL, RESEARCH, CONVERSATION |
polarityrequired | enumOne of: POSITIVE, NEGATIVE |
explanation | string | null |
tags | string[]Default [] |
isActive | booleanDefault true |
curl -X POST "https://app.example.com/api/v1/w/$WORKSPACE_ID/ai-outreach-brain/examples" \
-H "Authorization: Bearer $EMN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "string",
"content": "string",
"correctedContent": "string",
"category": "EMAIL",
"polarity": "POSITIVE",
"explanation": "string",
"tags": [],
"isActive": true
}'/api/v1/w/{workspaceId}/ai-outreach-brain/examples/{id}Update a workspace example
Path parameters
workspaceIdrequired | string |
idrequired | string |
Request body (JSON)
namerequired | stringLength 2–120 |
contentrequired | stringLength 10–20000 |
correctedContent | string | null |
categoryrequired | enumOne of: EMAIL, RESEARCH, CONVERSATION |
polarityrequired | enumOne of: POSITIVE, NEGATIVE |
explanation | string | null |
tags | string[]Default [] |
isActive | booleanDefault true |
curl -X PATCH "https://app.example.com/api/v1/w/$WORKSPACE_ID/ai-outreach-brain/examples/$ID" \
-H "Authorization: Bearer $EMN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "string",
"content": "string",
"correctedContent": "string",
"category": "EMAIL",
"polarity": "POSITIVE",
"explanation": "string",
"tags": [],
"isActive": true
}'/api/v1/w/{workspaceId}/ai-outreach-brain/examples/{id}Delete a workspace example
Path parameters
workspaceIdrequired | string |
idrequired | string |
curl -X DELETE "https://app.example.com/api/v1/w/$WORKSPACE_ID/ai-outreach-brain/examples/$ID" \
-H "Authorization: Bearer $EMN_API_KEY"/api/v1/w/{workspaceId}/ai-outreach-brain/suggestionsLearning suggestions from repeated customer edits
Path parameters
workspaceIdrequired | string |
curl -X GET "https://app.example.com/api/v1/w/$WORKSPACE_ID/ai-outreach-brain/suggestions" \
-H "Authorization: Bearer $EMN_API_KEY"/api/v1/w/{workspaceId}/ai-outreach-brain/suggestions/{id}/decisionAccept or reject a learning suggestion
Path parameters
workspaceIdrequired | string |
idrequired | string |
Request body (JSON)
decisionrequired | enumOne of: ACCEPT, REJECT |
curl -X POST "https://app.example.com/api/v1/w/$WORKSPACE_ID/ai-outreach-brain/suggestions/$ID/decision" \
-H "Authorization: Bearer $EMN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"decision": "ACCEPT"
}'