Outvexa

API reference

AI Outreach Brain

11 endpoints. All paths are relative to your installation, for example https://app.example.com.

get/api/v1/w/{workspaceId}/ai-outreach-brain/overview

Training status, rules, examples, draft decisions and pending learning suggestions

Workspace member or API keyRole viewer or higherSuccess: 200

Path parameters

workspaceIdrequiredstring
Request
curl -X GET "https://app.example.com/api/v1/w/$WORKSPACE_ID/ai-outreach-brain/overview" \
  -H "Authorization: Bearer $EMN_API_KEY"

get/api/v1/w/{workspaceId}/ai-outreach-brain/rules

List workspace rules with conflict warnings

Workspace member or API keyRole viewer or higherSuccess: 200

Path parameters

workspaceIdrequiredstring
Request
curl -X GET "https://app.example.com/api/v1/w/$WORKSPACE_ID/ai-outreach-brain/rules" \
  -H "Authorization: Bearer $EMN_API_KEY"

post/api/v1/w/{workspaceId}/ai-outreach-brain/rules

Create an outreach rule

Workspace member or API keyRole admin or higherSuccess: 201

Path parameters

workspaceIdrequiredstring

Request body (JSON)

titlerequiredstringLength 2–120
descriptionrequiredstringLength 3–3000
categoryrequiredenumOne of: PROSPECT_RESEARCH, PROSPECT_QUALIFICATION, OPPORTUNITY_IDENTIFICATION, PERSONALIZATION, EMAIL_OPENING, VALUE_PROPOSITION, PITCHING, CLOSING, FOLLOW_UPS, DELIVERABILITY_COMPLIANCE
priorityrequiredenumOne of: MANDATORY, PREFERRED, AVOID, CONDITIONAL
conditionstring | null
statusenumOne of: ACTIVE, INACTIVE · Default "ACTIVE"
triggerTermsstring[]Default []
Request
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": []
  }'

patch/api/v1/w/{workspaceId}/ai-outreach-brain/rules/{id}

Update an outreach rule

Workspace member or API keyRole admin or higherSuccess: 200

Path parameters

workspaceIdrequiredstring
idrequiredstring

Request body (JSON)

titlerequiredstringLength 2–120
descriptionrequiredstringLength 3–3000
categoryrequiredenumOne of: PROSPECT_RESEARCH, PROSPECT_QUALIFICATION, OPPORTUNITY_IDENTIFICATION, PERSONALIZATION, EMAIL_OPENING, VALUE_PROPOSITION, PITCHING, CLOSING, FOLLOW_UPS, DELIVERABILITY_COMPLIANCE
priorityrequiredenumOne of: MANDATORY, PREFERRED, AVOID, CONDITIONAL
conditionstring | null
statusenumOne of: ACTIVE, INACTIVE · Default "ACTIVE"
triggerTermsstring[]Default []
Request
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": []
  }'

delete/api/v1/w/{workspaceId}/ai-outreach-brain/rules/{id}

Delete an outreach rule

Workspace member or API keyRole admin or higherSuccess: 200

Path parameters

workspaceIdrequiredstring
idrequiredstring
Request
curl -X DELETE "https://app.example.com/api/v1/w/$WORKSPACE_ID/ai-outreach-brain/rules/$ID" \
  -H "Authorization: Bearer $EMN_API_KEY"

get/api/v1/w/{workspaceId}/ai-outreach-brain/examples

List workspace examples

Workspace member or API keyRole viewer or higherSuccess: 200

Path parameters

workspaceIdrequiredstring
Request
curl -X GET "https://app.example.com/api/v1/w/$WORKSPACE_ID/ai-outreach-brain/examples" \
  -H "Authorization: Bearer $EMN_API_KEY"

post/api/v1/w/{workspaceId}/ai-outreach-brain/examples

Add a positive or negative text example

Workspace member or API keyRole admin or higherSuccess: 201

Path parameters

workspaceIdrequiredstring

Request body (JSON)

namerequiredstringLength 2–120
contentrequiredstringLength 10–20000
correctedContentstring | null
categoryrequiredenumOne of: EMAIL, RESEARCH, CONVERSATION
polarityrequiredenumOne of: POSITIVE, NEGATIVE
explanationstring | null
tagsstring[]Default []
isActivebooleanDefault true
Request
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
  }'

patch/api/v1/w/{workspaceId}/ai-outreach-brain/examples/{id}

Update a workspace example

Workspace member or API keyRole admin or higherSuccess: 200

Path parameters

workspaceIdrequiredstring
idrequiredstring

Request body (JSON)

namerequiredstringLength 2–120
contentrequiredstringLength 10–20000
correctedContentstring | null
categoryrequiredenumOne of: EMAIL, RESEARCH, CONVERSATION
polarityrequiredenumOne of: POSITIVE, NEGATIVE
explanationstring | null
tagsstring[]Default []
isActivebooleanDefault true
Request
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
  }'

delete/api/v1/w/{workspaceId}/ai-outreach-brain/examples/{id}

Delete a workspace example

Workspace member or API keyRole admin or higherSuccess: 200

Path parameters

workspaceIdrequiredstring
idrequiredstring
Request
curl -X DELETE "https://app.example.com/api/v1/w/$WORKSPACE_ID/ai-outreach-brain/examples/$ID" \
  -H "Authorization: Bearer $EMN_API_KEY"

get/api/v1/w/{workspaceId}/ai-outreach-brain/suggestions

Learning suggestions from repeated customer edits

Workspace member or API keyRole viewer or higherSuccess: 200

Path parameters

workspaceIdrequiredstring
Request
curl -X GET "https://app.example.com/api/v1/w/$WORKSPACE_ID/ai-outreach-brain/suggestions" \
  -H "Authorization: Bearer $EMN_API_KEY"

post/api/v1/w/{workspaceId}/ai-outreach-brain/suggestions/{id}/decision

Accept or reject a learning suggestion

Workspace member or API keyRole admin or higherSuccess: 201

Path parameters

workspaceIdrequiredstring
idrequiredstring

Request body (JSON)

decisionrequiredenumOne of: ACCEPT, REJECT
Request
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"
  }'