Outvexa

API reference

Prompt library

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

get/api/v1/w/{workspaceId}/ai-studio/profiles

Prompt profiles (folders, tags, approval)

Workspace member or API keyRole viewer or higherSuccess: 200

Path parameters

workspaceIdrequiredstring

Query parameters

archivedbooleanDefault false
Request
curl -X GET "https://app.example.com/api/v1/w/$WORKSPACE_ID/ai-studio/profiles" \
  -H "Authorization: Bearer $EMN_API_KEY"

post/api/v1/w/{workspaceId}/ai-studio/profiles

Create a prompt profile (version 1)

Workspace member or API keyRole member or higherSuccess: 201

Path parameters

workspaceIdrequiredstring

Request body (JSON)

namerequiredstringLength 1–120
descriptionstringLength 0–1000
instructionsstringLength 1–20000 · Default "Research this prospect's company and public content. Identify ONE relevant business observation that is backed by the evidence list.\n{{#if research.hasClaims}}Use that observation in the opening line and connect it to how our service could help {{company.name|their company}}.{{else}}No research is available: do not reference anything specific about the prospect. Write a short, honest note based only on their role ({{lead.title|their role}}) and our offer.{{/if}}\n{{#if step.isFollowUp}}This is a follow-up: do not repeat the previous opening or offer; add one new, useful angle.{{/if}}\nWrite a short, conversational email. Do not use generic compliments. Do not invent problems. End with one natural question."
settingsobjectDefault {}
settings.toneenumOne of: friendly, professional, direct, consultative, casual
settings.stylestringLength 0–1000
settings.minWordsintegerRange 10–500
settings.maxWordsintegerRange 20–800
settings.sentenceComplexityenumOne of: simple, moderate, advanced
settings.personalizationIntensityenumOne of: light, medium, deep
settings.ctaStyleenumOne of: soft_question, interest_check, meeting_request, resource_offer, booking_link
settings.formalityenumOne of: informal, neutral, formal
settings.languagestringLength 0–60
settings.avoidPhrasesstring[]
settings.forbiddenClaimsstring[]
settings.goodExamplesstring[]
settings.badExamplesstring[]
settings.customInstructionsstringLength 0–20000
folderstringLength 0–100
tagsstring[]
Request
curl -X POST "https://app.example.com/api/v1/w/$WORKSPACE_ID/ai-studio/profiles" \
  -H "Authorization: Bearer $EMN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "string",
    "description": "string",
    "instructions": "Research this prospect's company and public content. Identify ONE relevant business observation that is backed by the evidence list.\n{{#if research.hasClaims}}Use that observation in the opening line and connect it to how our service could help {{company.name|their company}}.{{else}}No research is available: do not reference anything specific about the prospect. Write a short, honest note based only on their role ({{lead.title|their role}}) and our offer.{{/if}}\n{{#if step.isFollowUp}}This is a follow-up: do not repeat the previous opening or offer; add one new, useful angle.{{/if}}\nWrite a short, conversational email. Do not use generic compliments. Do not invent problems. End with one natural question.",
    "settings": {},
    "folder": "string",
    "tags": [
      "string"
    ]
  }'

get/api/v1/w/{workspaceId}/ai-studio/profiles/{id}

Profile with all versions and campaigns using it

Workspace member or API keyRole viewer or higherSuccess: 200

Path parameters

workspaceIdrequiredstring
idrequiredstring
Request
curl -X GET "https://app.example.com/api/v1/w/$WORKSPACE_ID/ai-studio/profiles/$ID" \
  -H "Authorization: Bearer $EMN_API_KEY"

patch/api/v1/w/{workspaceId}/ai-studio/profiles/{id}

Rename, move to folder, tag, approve for team use or archive

Workspace member or API keyRole member or higherSuccess: 200

Path parameters

workspaceIdrequiredstring
idrequiredstring

Request body (JSON)

namestringLength 1–120
descriptionstring | null
folderstring | null
tagsstring[]
isArchivedboolean
isApprovedboolean
Request
curl -X PATCH "https://app.example.com/api/v1/w/$WORKSPACE_ID/ai-studio/profiles/$ID" \
  -H "Authorization: Bearer $EMN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "string",
    "description": "string",
    "folder": "string",
    "tags": [
      "string"
    ],
    "isArchived": true,
    "isApproved": true
  }'

post/api/v1/w/{workspaceId}/ai-studio/profiles/{id}/versions

Save a new version (approved campaigns keep their frozen version)

Workspace member or API keyRole member or higherSuccess: 201

Path parameters

workspaceIdrequiredstring
idrequiredstring

Request body (JSON)

instructionsrequiredstringLength 1–20000
settingsobjectDefault {}
settings.toneenumOne of: friendly, professional, direct, consultative, casual
settings.stylestringLength 0–1000
settings.minWordsintegerRange 10–500
settings.maxWordsintegerRange 20–800
settings.sentenceComplexityenumOne of: simple, moderate, advanced
settings.personalizationIntensityenumOne of: light, medium, deep
settings.ctaStyleenumOne of: soft_question, interest_check, meeting_request, resource_offer, booking_link
settings.formalityenumOne of: informal, neutral, formal
settings.languagestringLength 0–60
settings.avoidPhrasesstring[]
settings.forbiddenClaimsstring[]
settings.goodExamplesstring[]
settings.badExamplesstring[]
settings.customInstructionsstringLength 0–20000
changeNotestringLength 0–500
activatebooleanDefault true
Request
curl -X POST "https://app.example.com/api/v1/w/$WORKSPACE_ID/ai-studio/profiles/$ID/versions" \
  -H "Authorization: Bearer $EMN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "instructions": "string",
    "settings": {},
    "changeNote": "string",
    "activate": true
  }'

post/api/v1/w/{workspaceId}/ai-studio/profiles/{id}/versions/{versionId}/activate

Activate an earlier version

Workspace member or API keyRole member or higherSuccess: 200

Path parameters

workspaceIdrequiredstring
idrequiredstring
versionIdrequiredstring
Request
curl -X POST "https://app.example.com/api/v1/w/$WORKSPACE_ID/ai-studio/profiles/$ID/versions/$VERSION_ID/activate" \
  -H "Authorization: Bearer $EMN_API_KEY"

get/api/v1/w/{workspaceId}/ai-studio/profiles/{id}/compare

Compare two versions (line diff + settings)

Workspace member or API keyRole viewer or higherSuccess: 200

Path parameters

workspaceIdrequiredstring
idrequiredstring

Query parameters

arequiredintegerRange -9007199254740991–9007199254740991
brequiredintegerRange -9007199254740991–9007199254740991
Request
curl -X GET "https://app.example.com/api/v1/w/$WORKSPACE_ID/ai-studio/profiles/$ID/compare" \
  -H "Authorization: Bearer $EMN_API_KEY"

post/api/v1/w/{workspaceId}/ai-studio/profiles/{id}/duplicate

Duplicate a profile

Workspace member or API keyRole member or higherSuccess: 201

Path parameters

workspaceIdrequiredstring
idrequiredstring

Request body (JSON)

namerequiredstringLength 1–120
Request
curl -X POST "https://app.example.com/api/v1/w/$WORKSPACE_ID/ai-studio/profiles/$ID/duplicate" \
  -H "Authorization: Bearer $EMN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "string"
  }'

post/api/v1/w/{workspaceId}/ai-studio/profiles/lint

Check prompt syntax and variables

Workspace member or API keyRole viewer or higherSuccess: 200

Path parameters

workspaceIdrequiredstring

Request body (JSON)

instructionsrequiredstringLength 0–20000
Request
curl -X POST "https://app.example.com/api/v1/w/$WORKSPACE_ID/ai-studio/profiles/lint" \
  -H "Authorization: Bearer $EMN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "instructions": "string"
  }'

get/api/v1/w/{workspaceId}/ai-studio/profiles-export

Export profiles as JSON

Workspace member or API keyRole member or higherSuccess: 200

Path parameters

workspaceIdrequiredstring

Query parameters

idsstring
Request
curl -X GET "https://app.example.com/api/v1/w/$WORKSPACE_ID/ai-studio/profiles-export" \
  -H "Authorization: Bearer $EMN_API_KEY"

post/api/v1/w/{workspaceId}/ai-studio/profiles-import

Import profiles from an export file

Workspace member or API keyRole member or higherSuccess: 200

Path parameters

workspaceIdrequiredstring

Request body (JSON)

formatrequired"emn-prompt-profiles/v1"
profilesrequiredobject[]
profiles[].namerequiredstringLength 1–120
profiles[].descriptionstring | null
profiles[].instructionsrequiredstringLength 1–20000
profiles[].settingsobjectDefault {}
profiles[].settings.toneenumOne of: friendly, professional, direct, consultative, casual
profiles[].settings.stylestringLength 0–1000
profiles[].settings.minWordsintegerRange 10–500
profiles[].settings.maxWordsintegerRange 20–800
profiles[].settings.sentenceComplexityenumOne of: simple, moderate, advanced
profiles[].settings.personalizationIntensityenumOne of: light, medium, deep
profiles[].settings.ctaStyleenumOne of: soft_question, interest_check, meeting_request, resource_offer, booking_link
profiles[].settings.formalityenumOne of: informal, neutral, formal
profiles[].settings.languagestringLength 0–60
profiles[].settings.avoidPhrasesstring[]
profiles[].settings.forbiddenClaimsstring[]
profiles[].settings.goodExamplesstring[]
profiles[].settings.badExamplesstring[]
profiles[].settings.customInstructionsstringLength 0–20000
Request
curl -X POST "https://app.example.com/api/v1/w/$WORKSPACE_ID/ai-studio/profiles-import" \
  -H "Authorization: Bearer $EMN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "format": "emn-prompt-profiles/v1",
    "profiles": [
      {
        "name": "string",
        "instructions": "string"
      }
    ]
  }'

post/api/v1/w/{workspaceId}/ai-studio/profiles/{id}/test

Test the profile on a sample lead (real AI call, costs recorded; nothing is saved to campaigns)

Workspace member or API keyRole member or higher60 requests / 1 h per workspaceSuccess: 200

Path parameters

workspaceIdrequiredstring
idrequiredstring

Request body (JSON)

leadIdrequiredstring (uuid)
campaignIdrequiredstring (uuid)
stepOrderintegerRange 1–10 · Default 1
Request
curl -X POST "https://app.example.com/api/v1/w/$WORKSPACE_ID/ai-studio/profiles/$ID/test" \
  -H "Authorization: Bearer $EMN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "leadId": "00000000-0000-4000-8000-000000000000",
    "campaignId": "00000000-0000-4000-8000-000000000000",
    "stepOrder": 1
  }'