using RestSharp;
var options = new RestClientOptions("https://app.telaven.com/api/v1/email/campaigns");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
request.AddJsonBody("{\n \"name\": \"Newsletter\",\n \"subject\": \"What's new in November\",\n \"htmlBody\": \"<h1>Hello!</h1><p>…</p>\",\n \"fromEmail\": \"news@yourbrand.co.ke\",\n \"fromName\": \"Your Brand\",\n \"contactListIds\": [\n \"c51e…\"\n ]\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
Optional. A unique value (e.g. a UUID) per operation, up to 255 characters. Retrying with the same key and body returns the first response instead of doing it again. Kept 24 hours.
Example:
"5f1c2b0e-8d6a-4c1f-9a43-2b7e0f6d1a90"
Body
application/json
name
string
required
For your reference.
subject
string
required
Subject line.
htmlBody
string
required
HTML content. An unsubscribe footer is added for marketing emails.
using RestSharp;
var options = new RestClientOptions("https://app.telaven.com/api/v1/email/campaigns");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
request.AddJsonBody("{\n \"name\": \"Newsletter\",\n \"subject\": \"What's new in November\",\n \"htmlBody\": \"<h1>Hello!</h1><p>…</p>\",\n \"fromEmail\": \"news@yourbrand.co.ke\",\n \"fromName\": \"Your Brand\",\n \"contactListIds\": [\n \"c51e…\"\n ]\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
{"docsConfig":{"theme":"almond","$schema":"https://mintlify.com/docs.json","name":"Messaly Developers","colors":{"primary":"#AA7649","light":"#AA7649","dark":"#94643C"},"logo":{"light":"https://mintcdn.com/telaven/fuNNIhEx66OAChTn/logos/logo-dark.svg?fit=max\u0026auto=format\u0026n=fuNNIhEx66OAChTn\u0026q=85\u0026s=d26ee4c8f6c08f97d4927490c8c6ee41","dark":"https://mintcdn.com/telaven/fuNNIhEx66OAChTn/logos/logo-light.svg?fit=max\u0026auto=format\u0026n=fuNNIhEx66OAChTn\u0026q=85\u0026s=61abf297059550aadf686b541cbdd454","href":"https://telaven.com"},"favicon":"https://mintcdn.com/telaven/fuNNIhEx66OAChTn/favicon.svg?fit=max\u0026auto=format\u0026n=fuNNIhEx66OAChTn\u0026q=85\u0026s=c7d4e7a607d83b12e61243f1ba250c2f","api":{"openapi":"openapi.json","playground":{"display":"interactive","proxy":true},"examples":{"defaults":"all","languages":["curl","javascript","python","php","csharp"]}},"background":{"color":{"light":"#ffffff","dark":"#0a0a0a"}},"navbar":{"links":[{"href":"https://app.telaven.com/sign-in","label":"Log in"}],"primary":{"type":"button","label":"Get started","href":"https://app.telaven.com/sign-up"}},"footer":{"socials":{"website":"https://telaven.com"}},"seo":{"metatags":{"canonical":"https://docs.telaven.com"}},"fonts":{"heading":{"family":"Instrument Serif","weight":400,"source":"fonts/instrument-serif-latin-400.woff2","format":"woff2"},"body":{"family":"Outfit","source":"fonts/outfit-latin-variable.woff2","format":"woff2"}},"icons":{"library":"tabler"},"styling":{"eyebrows":"breadcrumbs","latex":false},"interaction":{"drilldown":false},"navigation":{"global":{"anchors":[{"anchor":"Dashboard","icon":"layout-dashboard","href":"https://app.telaven.com"},{"anchor":"Website","icon":"world","href":"https://telaven.com"},{"anchor":"Contact us","icon":"message-circle","href":"https://telaven.com/contact"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"telaven","hasAudioNarration":false,"actualSubdomain":"telaven","customDomains":["docs.telaven.com"],"gitSource":{"type":"github","owner":"fredochieng","repo":"messaly-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6af78517b58367a2aaf22626"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6afae6a1dd50ae575c5b2039","clientVersion":"0.0.4143","searchFilterCounts":[{"language":"default","tag":"API reference","count":50},{"language":"default","tag":"WhatsApp","count":11},{"language":"default","tag":"Get started","count":9},{"language":"default","tag":"Contacts","count":9},{"language":"default","tag":"Email","count":9},{"language":"default","tag":"Guides","count":8},{"language":"default","tag":"SMS campaigns","count":8},{"language":"default","tag":"CRM","count":6},{"language":"default","tag":"SMS","count":5},{"language":"default","tag":"Messaging","count":4}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"custom.css","href":"/_mintlify/custom/telaven/cfe917b48153843e/custom.css"}],"page":{"pagePath":"api-reference/email/create-email-campaign","slug":"/api-reference/email/create-email-campaign","pageMetadata":{"title":"Create email campaign","description":"Create an email campaign as a draft (or scheduled).\n\nScope: `email:write`.","deprecated":null,"version":null,"openapi":"/openapi.json post /email/campaigns","href":"/api-reference/email/create-email-campaign","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Create an email campaign as a draft (or scheduled).\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Scope: \", _jsx(_components.code, {\n children: \"email:write\"\n }), \".\"]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create email campaign","description":"Create an email campaign as a draft (or scheduled).\n\nScope: `email:write`.","deprecated":null,"version":null,"openapi":"/openapi.json post /email/campaigns","href":"/api-reference/email/create-email-campaign","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"createEmailCampaign","summary":"Create email campaign","description":"Create an email campaign as a draft (or scheduled).\n\nScope: `email:write`.","tags":["Email"],"x-telaven-scope":"email:write","parameters":["3bb81992-95f7-49de-ad87-7d23927f87a3"],"requestBody":"4e999a7b-a2ea-4a51-ab48-01f7f1d7ce56","responses":{"201":"e252aa37-1670-4621-a930-75061e78a1b1","400":"351f86db-f71d-42cb-8815-ff2df3328d19","401":"103bb4c2-cb23-4ffb-99ca-d018ffd4ec1a","403":"6b5dbaae-f455-4e54-8a5e-6356105b38d6","409":"5183be4a-ebc0-4700-abd5-0228e4bdb68e","422":"c33aae88-795a-4e40-962a-dedced476894","429":"75228fa2-06bb-495d-ba33-63f205152f51","500":"18ca492d-b74b-48cd-a126-1ae9c45af377"},"method":"post","type":"path","servers":["0d61584d-65ff-4cd6-b918-fb78a96ac866"],"security":["c1ed7884-c45f-4f41-8920-b7fe98c6283c","6a9e8774-b319-469b-828f-03f59187e265"],"path":"/email/campaigns","baseUrlOptions":["https://app.telaven.com/api/v1"],"title":"Create email campaign","codeSamples":[],"requestExampleLanguages":["bash","javascript","python","php","csharp"],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"3bb81992-95f7-49de-ad87-7d23927f87a3":{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional. A unique value (e.g. a UUID) per operation, up to 255 characters. Retrying with the same key and body returns the first response instead of doing it again. Kept 24 hours.","schema":{"type":"string","example":"5f1c2b0e-8d6a-4c1f-9a43-2b7e0f6d1a90","isRequired":false,"description":"Optional. A unique value (e.g. a UUID) per operation, up to 255 characters. Retrying with the same key and body returns the first response instead of doing it again. Kept 24 hours.","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"For your reference.","isRequired":true,"uniqueKey":"name","typeLabel":"string"},"subject":{"type":"string","description":"Subject line.","isRequired":true,"uniqueKey":"subject","typeLabel":"string"},"htmlBody":{"type":"string","description":"HTML content. An unsubscribe footer is added for marketing emails.","isRequired":true,"uniqueKey":"htmlBody","typeLabel":"string"},"textBody":{"type":"string","description":"Plain-text version.","uniqueKey":"textBody","typeLabel":"string"},"fromEmail":{"type":"string","description":"A sender on a verified domain.","uniqueKey":"fromEmail","typeLabel":"string"},"fromName":{"type":"string","description":"Sender name.","uniqueKey":"fromName","typeLabel":"string"},"replyTo":{"type":"string","description":"Reply-to address.","uniqueKey":"replyTo","typeLabel":"string"},"contactListIds":{"type":"array","items":{"type":"string","uniqueKey":"contactListIds.items.[INDEX]","typeLabel":"string"},"description":"Contact lists to send to.","uniqueKey":"contactListIds","typeLabel":"string[]"},"manualEmails":{"type":"array","items":{"type":"string","uniqueKey":"manualEmails.items.[INDEX]","typeLabel":"string"},"description":"Extra addresses.","uniqueKey":"manualEmails","typeLabel":"string[]"},"campaignType":{"type":"string","enum":["marketing","transactional"],"description":"Default marketing.","uniqueKey":"campaignType","typeLabel":"enum\u003cstring>"},"sendType":{"type":"string","enum":["immediate","scheduled"],"description":"Default immediate.","uniqueKey":"sendType","typeLabel":"enum\u003cstring>"},"scheduledAt":{"type":"string","format":"date-time","description":"Required when scheduled.","uniqueKey":"scheduledAt","typeLabel":"string\u003cdate-time>"}},"required":["name","subject","htmlBody"],"uniqueKey":"","typeLabel":"object"},"example":{"name":"Newsletter","subject":"What's new in November","htmlBody":"\u003ch1>Hello!\u003c/h1>\u003cp>…\u003c/p>","fromEmail":"news@yourbrand.co.ke","fromName":"Your Brand","contactListIds":["c51e…"]},"examples":{"Example":{"title":"Example","value":{"name":"Newsletter","subject":"What's new in November","htmlBody":"\u003ch1>Hello!\u003c/h1>\u003cp>…\u003c/p>","fromEmail":"news@yourbrand.co.ke","fromName":"Your Brand","contactListIds":["c51e…"]}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"e252aa37-1670-4621-a930-75061e78a1b1":{"description":"Success","content":{"application/json":{"example":{"success":true,"data":{"id":"e9a0…","status":"draft","totalRecipients":800}},"examples":{"Example":{"title":"Example","value":{"success":true,"data":{"id":"e9a0…","status":"draft","totalRecipients":800}}}},"exampleType":"examples"}},"exampleType":"examples"},"351f86db-f71d-42cb-8815-ff2df3328d19":{"description":"Missing name, subject or htmlBody, or no valid recipients.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","description":"Machine-readable code where one exists, e.g. INSUFFICIENT_BALANCE.","uniqueKey":"code","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","code":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"103bb4c2-cb23-4ffb-99ca-d018ffd4ec1a":{"description":"No API key, or the key is wrong, disabled or expired.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","description":"Machine-readable code where one exists, e.g. INSUFFICIENT_BALANCE.","uniqueKey":"code","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","code":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"6b5dbaae-f455-4e54-8a5e-6356105b38d6":{"description":"Email campaigns aren't enabled for your account. / The key doesn't have the scope this endpoint needs, or it's used from an address its IP allowlist doesn't include.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","description":"Machine-readable code where one exists, e.g. INSUFFICIENT_BALANCE.","uniqueKey":"code","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","code":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"5183be4a-ebc0-4700-abd5-0228e4bdb68e":{"description":"IDEMPOTENCY_IN_PROGRESS: A request with this Idempotency-Key is still running. Wait and retry.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","description":"Machine-readable code where one exists, e.g. INSUFFICIENT_BALANCE.","uniqueKey":"code","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","code":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"c33aae88-795a-4e40-962a-dedced476894":{"description":"IDEMPOTENCY_KEY_REUSED: This Idempotency-Key was already used for a different request.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","description":"Machine-readable code where one exists, e.g. INSUFFICIENT_BALANCE.","uniqueKey":"code","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","code":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"75228fa2-06bb-495d-ba33-63f205152f51":{"description":"More than 120 requests in a minute with this key. Wait for the number of seconds in Retry-After.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","description":"Machine-readable code where one exists, e.g. INSUFFICIENT_BALANCE.","uniqueKey":"code","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","code":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"18ca492d-b74b-48cd-a126-1ae9c45af377":{"description":"Something went wrong on our side. Retry with backoff. A POST sent with an Idempotency-Key replays this same error for that key, because the request may have partly run: check the result before trying again with a new key.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","description":"Machine-readable code where one exists, e.g. INSUFFICIENT_BALANCE.","uniqueKey":"code","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","code":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"c1ed7884-c45f-4f41-8920-b7fe98c6283c":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Authorization: Bearer tlv_…","scopes":[],"schemeName":"bearerAuth"}},"6a9e8774-b319-469b-828f-03f59187e265":{"apiKeyHeader":{"type":"apiKey","in":"header","name":"X-API-Key","scopes":[],"schemeName":"apiKeyHeader"}}},"servers":{"0d61584d-65ff-4cd6-b918-fb78a96ac866":{"url":"https://app.telaven.com/api/v1","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Authorization: Bearer tlv_…","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Authorization: Bearer tlv_…","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"},{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"X-API-Key","scopes":[],"schemeName":"apiKeyHeader"},"schema":{"title":"X-API-Key","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"apiKeyHeader","name":"X-API-Key"}],"title":"apiKeyHeader"}]},"originalFileLocation":"openapi.json"},"subdomain":"telaven","siteName":"Messaly Developers","title":"Create email campaign - Messaly Developers","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-16T11:19:01.997Z","originalFileLocation":"api-reference/email/create-email-campaign.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Create an email campaign as a draft (or scheduled). Scope: email:write.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Messaly Developers\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/telaven/KUaiSVlulSWpYQuo/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/telaven/KUaiSVlulSWpYQuo/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/telaven/KUaiSVlulSWpYQuo/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/telaven/KUaiSVlulSWpYQuo/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/telaven/KUaiSVlulSWpYQuo/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/telaven/KUaiSVlulSWpYQuo/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/telaven/KUaiSVlulSWpYQuo/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/telaven/KUaiSVlulSWpYQuo/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/telaven/KUaiSVlulSWpYQuo/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create email campaign - Messaly Developers\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create an email campaign as a draft (or scheduled). Scope: email:write.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Messaly Developers\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.telaven.com/api-reference/email/create-email-campaign\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://telaven.mintlify.site/_mintlify/api/og/v2?division=Email\u0026amp;title=Create+email+campaign\u0026amp;description=Create+an+email+campaign+as+a+draft+%28or+scheduled%29.%0A%0AScope%3A+%60email%3Awrite%60.\u0026amp;theme=78e6ffb14a30d5e95f88e438\u0026amp;signature=9c02b372e7314bec2e68671bc5e3677f716b4969549fb41fb0ec6bf305444a13\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create email campaign - Messaly Developers\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create an email campaign as a draft (or scheduled). Scope: email:write.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://telaven.mintlify.site/_mintlify/api/og/v2?division=Email\u0026amp;title=Create+email+campaign\u0026amp;description=Create+an+email+campaign+as+a+draft+%28or+scheduled%29.%0A%0AScope%3A+%60email%3Awrite%60.\u0026amp;theme=78e6ffb14a30d5e95f88e438\u0026amp;signature=9c02b372e7314bec2e68671bc5e3677f716b4969549fb41fb0ec6bf305444a13\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/telaven/KUaiSVlulSWpYQuo/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Messaly Developers\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#AA7649\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.telaven.com/api-reference/email/create-email-campaign\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/email/create-email-campaign.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.telaven.com/#organization\",\"name\":\"Messaly Developers\",\"url\":\"https://docs.telaven.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/telaven/fuNNIhEx66OAChTn/logos/logo-dark.svg?fit=max\u0026auto=format\u0026n=fuNNIhEx66OAChTn\u0026q=85\u0026s=d26ee4c8f6c08f97d4927490c8c6ee41\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.telaven.com#website\",\"name\":\"Messaly Developers\",\"url\":\"https://docs.telaven.com\",\"publisher\":{\"@id\":\"https://docs.telaven.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.telaven.com/api-reference/email/create-email-campaign#webpage\",\"url\":\"https://docs.telaven.com/api-reference/email/create-email-campaign\",\"name\":\"Create email campaign\",\"description\":\"Create an email campaign as a draft (or scheduled). Scope: email:write.\",\"dateModified\":\"2026-11-16T11:19:01.997Z\",\"isPartOf\":{\"@id\":\"https://docs.telaven.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.telaven.com/api-reference/email/create-email-campaign#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.telaven.com/api-reference/email/create-email-campaign#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Email\",\"item\":\"https://docs.telaven.com/api-reference/email/list-email-campaigns\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create email campaign\",\"item\":\"https://docs.telaven.com/api-reference/email/create-email-campaign\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.telaven.com/api-reference/email/create-email-campaign#apireference\",\"headline\":\"Create email campaign\",\"name\":\"Create email campaign\",\"description\":\"Create an email campaign as a draft (or scheduled). Scope: email:write.\",\"url\":\"https://docs.telaven.com/api-reference/email/create-email-campaign\",\"mainEntityOfPage\":{\"@id\":\"https://docs.telaven.com/api-reference/email/create-email-campaign#webpage\"},\"dateModified\":\"2026-11-16T11:19:01.997Z\",\"publisher\":{\"@id\":\"https://docs.telaven.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.telaven.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Messaly Developers\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Messaly Developers\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/email/create-email-campaign.md","siteName":"Messaly Developers","nav":{"global":{"anchors":[{"anchor":"Dashboard","icon":"layout-dashboard","href":"https://app.telaven.com"},{"anchor":"Website","icon":"world","href":"https://telaven.com"},{"anchor":"Contact us","icon":"message-circle","href":"https://telaven.com/contact"}]},"tabs":[{"tab":"Get started","pages":[{"title":"Get started","href":""}]},{"tab":"Guides","pages":[{"title":"Guides","href":"/guides/sms"}]},{"tab":"API reference","groups":[{"group":"Account","pages":[{"title":"Get balance","deprecated":null,"version":null,"openapi":"/openapi.json get /balance","href":"/api-reference/account/get-balance"},{"title":"Get wallet and pricing","deprecated":null,"version":null,"openapi":"/openapi.json get /wallet","href":"/api-reference/account/get-wallet-and-pricing"}]},{"group":"SMS","pages":[{"title":"Send SMS","deprecated":null,"version":null,"openapi":"/openapi.json post /sms/send","href":"/api-reference/sms/send-sms"},{"title":"List messages","deprecated":null,"version":null,"openapi":"/openapi.json get /sms/messages","href":"/api-reference/sms/list-messages"},{"title":"Get message","deprecated":null,"version":null,"openapi":"/openapi.json get /sms/messages/{id}","href":"/api-reference/sms/get-message"},{"title":"SMS analytics","deprecated":null,"version":null,"openapi":"/openapi.json get /sms/analytics","href":"/api-reference/sms/sms-analytics"},{"title":"Daily SMS analytics","deprecated":null,"version":null,"openapi":"/openapi.json get /sms/analytics/daily","href":"/api-reference/sms/daily-sms-analytics"}]},{"group":"SMS campaigns","pages":[{"title":"List campaigns","deprecated":null,"version":null,"openapi":"/openapi.json get /sms/campaigns","href":"/api-reference/sms-campaigns/list-campaigns"},{"title":"Create campaign","deprecated":null,"version":null,"openapi":"/openapi.json post /sms/campaigns","href":"/api-reference/sms-campaigns/create-campaign"},{"title":"Get campaign","deprecated":null,"version":null,"openapi":"/openapi.json get /sms/campaigns/{id}","href":"/api-reference/sms-campaigns/get-campaign"},{"title":"Delete campaign","deprecated":null,"version":null,"openapi":"/openapi.json delete /sms/campaigns/{id}","href":"/api-reference/sms-campaigns/delete-campaign"},{"title":"Update campaign","deprecated":null,"version":null,"openapi":"/openapi.json patch /sms/campaigns/{id}","href":"/api-reference/sms-campaigns/update-campaign"},{"title":"Send campaign","deprecated":null,"version":null,"openapi":"/openapi.json post /sms/campaigns/{id}/send","href":"/api-reference/sms-campaigns/send-campaign"},{"title":"Schedule campaign","deprecated":null,"version":null,"openapi":"/openapi.json patch /sms/campaigns/{id}/schedule","href":"/api-reference/sms-campaigns/schedule-campaign"},{"title":"Campaign recipients","deprecated":null,"version":null,"openapi":"/openapi.json get /sms/campaigns/{id}/recipients","href":"/api-reference/sms-campaigns/campaign-recipients"}]},{"group":"Contacts","pages":[{"title":"List contacts","deprecated":null,"version":null,"openapi":"/openapi.json get /contacts","href":"/api-reference/contacts/list-contacts"},{"title":"Create contact","deprecated":null,"version":null,"openapi":"/openapi.json post /contacts","href":"/api-reference/contacts/create-contact"},{"title":"Get contact","deprecated":null,"version":null,"openapi":"/openapi.json get /contacts/{id}","href":"/api-reference/contacts/get-contact"},{"title":"Delete contact","deprecated":null,"version":null,"openapi":"/openapi.json delete /contacts/{id}","href":"/api-reference/contacts/delete-contact"},{"title":"List contact lists","deprecated":null,"version":null,"openapi":"/openapi.json get /sms/contact-lists","href":"/api-reference/contacts/list-contact-lists"},{"title":"Create contact list","deprecated":null,"version":null,"openapi":"/openapi.json post /sms/contact-lists","href":"/api-reference/contacts/create-contact-list"},{"title":"Get contact list","deprecated":null,"version":null,"openapi":"/openapi.json get /sms/contact-lists/{id}","href":"/api-reference/contacts/get-contact-list"},{"title":"Delete contact list","deprecated":null,"version":null,"openapi":"/openapi.json delete /sms/contact-lists/{id}","href":"/api-reference/contacts/delete-contact-list"},{"title":"Update contact list","deprecated":null,"version":null,"openapi":"/openapi.json patch /sms/contact-lists/{id}","href":"/api-reference/contacts/update-contact-list"}]},{"group":"WhatsApp","pages":[{"title":"Get sending number","deprecated":null,"version":null,"openapi":"/openapi.json get /whatsapp/numbers","href":"/api-reference/whatsapp/get-sending-number"},{"title":"Send WhatsApp template","deprecated":null,"version":null,"openapi":"/openapi.json post /whatsapp/send","href":"/api-reference/whatsapp/send-whatsapp-template"},{"title":"List WhatsApp templates","deprecated":null,"version":null,"openapi":"/openapi.json get /whatsapp/templates","href":"/api-reference/whatsapp/list-whatsapp-templates"},{"title":"Create WhatsApp template","deprecated":null,"version":null,"openapi":"/openapi.json post /whatsapp/templates","href":"/api-reference/whatsapp/create-whatsapp-template"},{"title":"Get WhatsApp template","deprecated":null,"version":null,"openapi":"/openapi.json get /whatsapp/templates/{id}","href":"/api-reference/whatsapp/get-whatsapp-template"},{"title":"Delete WhatsApp template","deprecated":null,"version":null,"openapi":"/openapi.json delete /whatsapp/templates/{id}","href":"/api-reference/whatsapp/delete-whatsapp-template"},{"title":"List WhatsApp campaigns","deprecated":null,"version":null,"openapi":"/openapi.json get /whatsapp/campaigns","href":"/api-reference/whatsapp/list-whatsapp-campaigns"},{"title":"Create WhatsApp campaign","deprecated":null,"version":null,"openapi":"/openapi.json post /whatsapp/campaigns","href":"/api-reference/whatsapp/create-whatsapp-campaign"},{"title":"Estimate WhatsApp campaign","deprecated":null,"version":null,"openapi":"/openapi.json post /whatsapp/campaigns/estimate","href":"/api-reference/whatsapp/estimate-whatsapp-campaign"},{"title":"Get WhatsApp campaign","deprecated":null,"version":null,"openapi":"/openapi.json get /whatsapp/campaigns/{id}","href":"/api-reference/whatsapp/get-whatsapp-campaign"},{"title":"Resume or cancel WhatsApp campaign","deprecated":null,"version":null,"openapi":"/openapi.json patch /whatsapp/campaigns/{id}","href":"/api-reference/whatsapp/resume-or-cancel-whatsapp-campaign"}]},{"group":"Email","pages":[{"title":"List email campaigns","description":"Your email campaigns.\n\nScope: `email:read`.","deprecated":null,"version":null,"openapi":"/openapi.json get /email/campaigns","href":"/api-reference/email/list-email-campaigns"},{"title":"Create email campaign","deprecated":null,"version":null,"openapi":"/openapi.json post /email/campaigns","href":"/api-reference/email/create-email-campaign"},{"title":"Get email campaign","description":"One email campaign.\n\nScope: `email:read`.","deprecated":null,"version":null,"openapi":"/openapi.json get /email/campaigns/{id}","href":"/api-reference/email/get-email-campaign"},{"title":"Delete email campaign","deprecated":null,"version":null,"openapi":"/openapi.json delete /email/campaigns/{id}","href":"/api-reference/email/delete-email-campaign"},{"title":"Update email campaign","deprecated":null,"version":null,"openapi":"/openapi.json patch /email/campaigns/{id}","href":"/api-reference/email/update-email-campaign"},{"title":"Send email campaign","deprecated":null,"version":null,"openapi":"/openapi.json post /email/campaigns/{id}/send","href":"/api-reference/email/send-email-campaign"},{"title":"List unsubscribes","deprecated":null,"version":null,"openapi":"/openapi.json get /email/unsubscribes","href":"/api-reference/email/list-unsubscribes"},{"title":"Add unsubscribe","deprecated":null,"version":null,"openapi":"/openapi.json post /email/unsubscribes","href":"/api-reference/email/add-unsubscribe"},{"title":"Re-subscribe an address","deprecated":null,"version":null,"openapi":"/openapi.json delete /email/unsubscribes","href":"/api-reference/email/re-subscribe-an-address"}]},{"group":"CRM","pages":[{"title":"List deals","deprecated":null,"version":null,"openapi":"/openapi.json get /deals","href":"/api-reference/crm/list-deals"},{"title":"Create deal","deprecated":null,"version":null,"openapi":"/openapi.json post /deals","href":"/api-reference/crm/create-deal"},{"title":"List companies","deprecated":null,"version":null,"openapi":"/openapi.json get /companies","href":"/api-reference/crm/list-companies"},{"title":"Create company","deprecated":null,"version":null,"openapi":"/openapi.json post /companies","href":"/api-reference/crm/create-company"},{"title":"List pipelines","deprecated":null,"version":null,"openapi":"/openapi.json get /pipelines","href":"/api-reference/crm/list-pipelines"},{"title":"Create pipeline","deprecated":null,"version":null,"openapi":"/openapi.json post /pipelines","href":"/api-reference/crm/create-pipeline"}]}]}]},"basePath":"","title":"Create email campaign - Messaly Developers","buildId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","deploymentId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-DdEMm2kG.js","utils-BMo572L7.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-C-4m9KAx.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-DPLK2Oq9.js","snippetPresets-BKjfJMC9.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","Page-BIYvYBgk.js","ApiExamples-DTsgtCEj.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-C8vmhyQM.js","shallow-r9w8LQGS.js","getApiPlaygroundDisplay-DjPI64HQ.js","CodeSnippet-C8Bvhl16.js","CodeSnippets-BtWUwcMy.js","getPastedJson-Dcm_3Pgl.js","icon-BXwrTpjc.js","MethodPill-CcjfVmmy.js","DuplicateIcon-BuKIbXAQ.js","createIcon-DaL9yXsO.js","DynamicMarkdown-Co5nikxh.js","SectionHeading-P4UNTsMZ.js","axios-vUo_bRtp.js","Markdown-CEfymfIH.js","clsx-Dq9TQuNi.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-D2J8knkn.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-BgZ2ThuU.js"]}