GET /v1/me
Workspace, scopes and rate limit of the calling key growth:read
curl -X GET 'https://api.optimizly.io/v1/me' \ -H 'x-api-key: $OPTIMIZLY_API_KEY'
REST API for articles, AI generation jobs, keyword research, brand voices, presets and publishing.
Authentication: create an API key in the dashboard (Settings → API keys) with the growth:read and/or growth:write scope and send it as x-api-key: cnt_live_… or Authorization: Bearer cnt_live_….
Rate limits: per key, per minute (default 120, higher on larger plans). Every response carries X-RateLimit-* and RateLimit-Policy headers; a 429 carries Retry-After.
Async work: generation returns a job; poll GET /v1/jobs/{id} until status is done or failed.
Base URL https://api.optimizly.io · openapi.json (OpenAPI 3.1)
/v1/meWorkspace, scopes and rate limit of the calling key growth:read
curl -X GET 'https://api.optimizly.io/v1/me' \ -H 'x-api-key: $OPTIMIZLY_API_KEY'
/v1/websitesList websites in the workspace growth:read
Most endpoints need a websiteId; start here.
curl -X GET 'https://api.optimizly.io/v1/websites' \ -H 'x-api-key: $OPTIMIZLY_API_KEY'
/v1/articlesList articles of a website growth:read
| Parameter | In | Type | Description |
|---|---|---|---|
websiteId required | query | string | Website id, scoped to the caller's workspace |
type | query | string | |
status | query | string | |
search | query | string | |
limit | query | number |
curl -X GET 'https://api.optimizly.io/v1/articles' \ -H 'x-api-key: $OPTIMIZLY_API_KEY'
/v1/articlesCreate an article (optionally start AI generation) growth:write
With generate: true the response contains a job; poll GET /v1/jobs/{id} until status is done or failed.
| Field | Type | Description |
|---|---|---|
websiteId required | string | Website id, scoped to the caller's workspace |
type | "blog" | "news" | "landing" | "social" | "email" | "gbp" | |
fromKeyword | string | |
title | string | |
body | string | |
keywords | string[] | |
generate | boolean | |
articleType | "standard" | "listicle" | "how-to" | "review" | "comparison" | "product-roundup" | "local-business" | |
productUrls | string[] | |
localBusiness | object | |
brandVoiceId | string | null | |
presetId | string |
curl -X POST 'https://api.optimizly.io/v1/articles' \
-H 'x-api-key: $OPTIMIZLY_API_KEY' \
-H 'content-type: application/json' \
-d '{…}'
/v1/articles/{id}Get one article growth:read
| Parameter | In | Type | Description |
|---|---|---|---|
id required | path | string |
curl -X GET 'https://api.optimizly.io/v1/articles/{id}' \
-H 'x-api-key: $OPTIMIZLY_API_KEY'
/v1/articles/{id}Update title, body, status, schedule or images growth:write
| Parameter | In | Type | Description |
|---|---|---|---|
id required | path | string |
| Field | Type | Description |
|---|---|---|
title | string | |
body | string | |
status | string | |
scheduledAt | string | |
featuredImage | string | |
ogImage | string | |
rehostMedia | boolean | Copy externally hosted images (body, featured and OG image) into the media library and point the item at those copies |
curl -X PATCH 'https://api.optimizly.io/v1/articles/{id}' \
-H 'x-api-key: $OPTIMIZLY_API_KEY' \
-H 'content-type: application/json' \
-d '{…}'
/v1/articles/{id}/generateRun the AI generation pipeline for an article growth:write
Asynchronous. Returns 202 with a job; poll GET /v1/jobs/{id}.
| Parameter | In | Type | Description |
|---|---|---|---|
id required | path | string |
| Field | Type | Description |
|---|---|---|
steps | "serp" | "brief" | "draft" | "quality" | "links" | "meta" | "geo" | "image" | "seogeo"[] | |
withImage | boolean |
curl -X POST 'https://api.optimizly.io/v1/articles/{id}/generate' \
-H 'x-api-key: $OPTIMIZLY_API_KEY' \
-H 'content-type: application/json' \
-d '{…}'
/v1/jobsList recent background jobs growth:read
| Parameter | In | Type | Description |
|---|---|---|---|
websiteId | query | string | |
status | query | "queued" | "running" | "done" | "failed" | |
limit | query | integer |
curl -X GET 'https://api.optimizly.io/v1/jobs' \ -H 'x-api-key: $OPTIMIZLY_API_KEY'
/v1/jobs/{id}Poll the status of a background job growth:read
status is queued, running, done or failed; progress is 0-100. Poll every few seconds; the response carries Retry-After while the job is still running.
| Parameter | In | Type | Description |
|---|---|---|---|
id required | path | string |
curl -X GET 'https://api.optimizly.io/v1/jobs/{id}' \
-H 'x-api-key: $OPTIMIZLY_API_KEY'
/v1/keywords/researchKeyword research for a seed keyword growth:write
Uses the monthly keyword quota of the workspace for a fresh (uncached) seed, so it needs the write scope.
| Field | Type | Description |
|---|---|---|
websiteId required | string | Website id, scoped to the caller's workspace |
seed required | string | |
modes | "ideas" | "suggestions" | "related"[] | |
minVolume | number | |
maxDifficulty | number | |
intents | "informational" | "navigational" | "commercial" | "transactional"[] | |
questionsOnly | boolean | |
sort | "volume" | "difficulty" | "cpc" | "opportunity" | "keyword" | |
limit | number | |
saveToList | string | |
geoQuestions | number | |
addToGeo | boolean | |
refresh | boolean |
curl -X POST 'https://api.optimizly.io/v1/keywords/research' \
-H 'x-api-key: $OPTIMIZLY_API_KEY' \
-H 'content-type: application/json' \
-d '{…}'
/v1/brand-voicesList brand voices growth:read
| Parameter | In | Type | Description |
|---|---|---|---|
websiteId | query | string |
curl -X GET 'https://api.optimizly.io/v1/brand-voices' \ -H 'x-api-key: $OPTIMIZLY_API_KEY'
/v1/brand-voicesCreate a brand voice growth:write
| Field | Type | Description |
|---|---|---|
name required | string | |
description | string | null | |
tone | string | null | |
guidelines | string | |
samples | string[] | |
knowledge | string | |
isDefault | boolean | |
websiteId | string | null |
curl -X POST 'https://api.optimizly.io/v1/brand-voices' \
-H 'x-api-key: $OPTIMIZLY_API_KEY' \
-H 'content-type: application/json' \
-d '{…}'
/v1/brand-voices/{id}Update a brand voice growth:write
| Parameter | In | Type | Description |
|---|---|---|---|
id required | path | string |
| Field | Type | Description |
|---|---|---|
name required | string | |
description | string | null | |
tone | string | null | |
guidelines | string | |
samples | string[] | |
knowledge | string | |
isDefault | boolean | |
websiteId | string | null |
curl -X PATCH 'https://api.optimizly.io/v1/brand-voices/{id}' \
-H 'x-api-key: $OPTIMIZLY_API_KEY' \
-H 'content-type: application/json' \
-d '{…}'
/v1/presetsList content presets of a website growth:read
| Parameter | In | Type | Description |
|---|---|---|---|
websiteId required | query | string | Website id, scoped to the caller's workspace |
curl -X GET 'https://api.optimizly.io/v1/presets' \ -H 'x-api-key: $OPTIMIZLY_API_KEY'
/v1/presetsCreate a content preset growth:write
| Field | Type | Description |
|---|---|---|
websiteId required | string | Website id, scoped to the caller's workspace |
name required | string | |
brandVoiceId | string | null | |
language | string | null | |
articleType | "blog" | "news" | "landing" | |
publishingTargetId | string | null | |
includeNative | boolean | |
isDefault | boolean |
curl -X POST 'https://api.optimizly.io/v1/presets' \
-H 'x-api-key: $OPTIMIZLY_API_KEY' \
-H 'content-type: application/json' \
-d '{…}'
/v1/presets/{id}Update a content preset growth:write
| Parameter | In | Type | Description |
|---|---|---|---|
id required | path | string |
| Field | Type | Description |
|---|---|---|
websiteId required | string | Website id, scoped to the caller's workspace |
name required | string | |
brandVoiceId | string | null | |
language | string | null | |
articleType | "blog" | "news" | "landing" | |
publishingTargetId | string | null | |
includeNative | boolean | |
isDefault | boolean |
curl -X PATCH 'https://api.optimizly.io/v1/presets/{id}' \
-H 'x-api-key: $OPTIMIZLY_API_KEY' \
-H 'content-type: application/json' \
-d '{…}'
/v1/articles/{id}/publishPublish an article to the native API and/or CMS targets growth:write
| Parameter | In | Type | Description |
|---|---|---|---|
id required | path | string |
| Field | Type | Description |
|---|---|---|
targets required | object[] |
curl -X POST 'https://api.optimizly.io/v1/articles/{id}/publish' \
-H 'x-api-key: $OPTIMIZLY_API_KEY' \
-H 'content-type: application/json' \
-d '{…}'
/v1/publishing-targetsList CMS publishing targets of a website growth:read
| Parameter | In | Type | Description |
|---|---|---|---|
websiteId required | query | string |
curl -X GET 'https://api.optimizly.io/v1/publishing-targets' \ -H 'x-api-key: $OPTIMIZLY_API_KEY'
/v1/instagram/trial-reelsInstagram trial reels of a day with the daily quota growth:read
| Parameter | In | Type | Description |
|---|---|---|---|
socialAccountId | query | string | |
day | query | string |
curl -X GET 'https://api.optimizly.io/v1/instagram/trial-reels' \ -H 'x-api-key: $OPTIMIZLY_API_KEY'
/v1/instagram/trial-reelsPublish or schedule an Instagram trial reel (non-followers only) growth:write
| Field | Type | Description |
|---|---|---|
socialAccountId required | string | Instagram account id from publisher_list_accounts |
videoUrl | string | |
mediaId | string | |
caption required | string | First line = the hook that instagram_trial_reels_learnings ranks |
graduationStrategy | "MANUAL" | "SS_PERFORMANCE" | |
scheduledAt | string | |
timezone | string | |
confirm required | any | Posts publicly to a real account |
curl -X POST 'https://api.optimizly.io/v1/instagram/trial-reels' \
-H 'x-api-key: $OPTIMIZLY_API_KEY' \
-H 'content-type: application/json' \
-d '{…}'
/v1/instagram/trial-reels/learningsRank recent trial reels by skip rate, watch time and engagement growth:read
| Parameter | In | Type | Description |
|---|---|---|---|
socialAccountId required | query | string | |
days | query | number | |
limit | query | number |
curl -X GET 'https://api.optimizly.io/v1/instagram/trial-reels/learnings' \ -H 'x-api-key: $OPTIMIZLY_API_KEY'
/v1/webhooksList outgoing webhooks of a website growth:read
| Parameter | In | Type | Description |
|---|---|---|---|
websiteId required | query | string |
curl -X GET 'https://api.optimizly.io/v1/webhooks' \ -H 'x-api-key: $OPTIMIZLY_API_KEY'
/v1/webhooksSubscribe a URL to article.published / article.updated / article.deleted growth:write
Returns the signing secret once. Each delivery is a JSON POST with X-Optimizly-Signature: t=<unix ms>,v1=<hex HMAC-SHA256(secret, "<t>.<raw body>")>; non-2xx responses are retried after 30s, 2m, 10m, 1h and 6h.
| Field | Type | Description |
|---|---|---|
websiteId required | string | |
url required | string | |
events | "article.published" | "article.updated" | "article.deleted" | "email.opened" | "email.clicked" | "email.bounced" | "email.complained" | "email.unsubscribed" | "email.conversion"[] | |
description | string |
curl -X POST 'https://api.optimizly.io/v1/webhooks' \
-H 'x-api-key: $OPTIMIZLY_API_KEY' \
-H 'content-type: application/json' \
-d '{…}'
/v1/webhooks/{id}Update url, events or active flag, or rotate the secret growth:write
| Parameter | In | Type | Description |
|---|---|---|---|
id required | path | string |
| Field | Type | Description |
|---|---|---|
url | string | |
events | "article.published" | "article.updated" | "article.deleted" | "email.opened" | "email.clicked" | "email.bounced" | "email.complained" | "email.unsubscribed" | "email.conversion"[] | |
active | boolean | |
description | string | null | |
rotateSecret | boolean |
curl -X PATCH 'https://api.optimizly.io/v1/webhooks/{id}' \
-H 'x-api-key: $OPTIMIZLY_API_KEY' \
-H 'content-type: application/json' \
-d '{…}'
/v1/webhooks/{id}Delete a webhook growth:write
| Parameter | In | Type | Description |
|---|---|---|---|
id required | path | string |
curl -X DELETE 'https://api.optimizly.io/v1/webhooks/{id}' \
-H 'x-api-key: $OPTIMIZLY_API_KEY'
/v1/webhooks/{id}/testSend a signed ping and return the receiver's status growth:write
| Parameter | In | Type | Description |
|---|---|---|---|
id required | path | string |
curl -X POST 'https://api.optimizly.io/v1/webhooks/{id}/test' \
-H 'x-api-key: $OPTIMIZLY_API_KEY'
/v1/webhooks/{id}/deliveriesDelivery log (status, attempts, response) of a webhook growth:read
| Parameter | In | Type | Description |
|---|---|---|---|
id required | path | string | |
status | query | "pending" | "success" | "failed" | |
limit | query | number |
curl -X GET 'https://api.optimizly.io/v1/webhooks/{id}/deliveries' \
-H 'x-api-key: $OPTIMIZLY_API_KEY'
/v1/email/shortcodesThe email shortcode register (codes, examples, attributes, required context) growth:read
| Parameter | In | Type | Description |
|---|---|---|---|
group | query | "contact" | "sender" | "links" | "date" | "logic" | "products" | "cart" | "order" |
curl -X GET 'https://api.optimizly.io/v1/email/shortcodes' \ -H 'x-api-key: $OPTIMIZLY_API_KEY'
/v1/email/templates/importImport email HTML byte-for-byte as a template (safety checks + shortcode validation + preview) growth:write
| Field | Type | Description |
|---|---|---|
templateId | string | |
name required | string | |
subject required | string | |
html required | string | |
locale | string | |
rehostImages | boolean | |
contactId | string | |
useTestProducts | boolean | |
includeCart | boolean | |
includeHtml | boolean |
curl -X POST 'https://api.optimizly.io/v1/email/templates/import' \
-H 'x-api-key: $OPTIMIZLY_API_KEY' \
-H 'content-type: application/json' \
-d '{…}'
/v1/email/templates/previewRender a template or raw HTML for a contact or test contact growth:read
| Field | Type | Description |
|---|---|---|
templateId | string | |
campaignId | string | |
subject | string | |
html | string | |
contactId | string | |
useTestProducts | boolean | |
includeCart | boolean | |
includeHtml | boolean |
curl -X POST 'https://api.optimizly.io/v1/email/templates/preview' \
-H 'x-api-key: $OPTIMIZLY_API_KEY' \
-H 'content-type: application/json' \
-d '{…}'
/v1/email/test-sendSend a [TEST] version to a workspace member growth:write
| Field | Type | Description |
|---|---|---|
to required | string | |
templateId | string | |
campaignId | string | |
subject | string | |
html | string | |
contactId | string | |
useTestProducts | boolean | |
tracked | boolean |
curl -X POST 'https://api.optimizly.io/v1/email/test-send' \
-H 'x-api-key: $OPTIMIZLY_API_KEY' \
-H 'content-type: application/json' \
-d '{…}'
/v1/email/campaignsCreate a campaign from a template (draft unless confirmSend + expectedRecipients) growth:write
| Field | Type | Description |
|---|---|---|
name required | string | |
templateId | string | |
bodyHtml | string | |
subject | string | |
subjectB | string | |
preheader | string | |
segmentId required | string | |
sendAt | string | |
confirmSend | boolean | |
expectedRecipients | number |
curl -X POST 'https://api.optimizly.io/v1/email/campaigns' \
-H 'x-api-key: $OPTIMIZLY_API_KEY' \
-H 'content-type: application/json' \
-d '{…}'
/v1/email/statsTracking stats for a campaign or sequence (real vs machine opens, clicks, bounces, revenue) growth:read
| Parameter | In | Type | Description |
|---|---|---|---|
campaignId | query | string | |
sequenceId | query | string | |
stepId | query | string | |
variantId | query | string | |
days | query | number |
curl -X GET 'https://api.optimizly.io/v1/email/stats' \ -H 'x-api-key: $OPTIMIZLY_API_KEY'
/v1/email/linksPer-link clicks with link id, position, type and attributed revenue growth:read
| Parameter | In | Type | Description |
|---|---|---|---|
campaignId | query | string | |
sequenceId | query | string | |
stepId | query | string | |
variantId | query | string |
curl -X GET 'https://api.optimizly.io/v1/email/links' \ -H 'x-api-key: $OPTIMIZLY_API_KEY'
/v1/email/revenueRevenue attributed to email clicks, grouped per campaign/sequence/step/variant/link/day growth:read
| Parameter | In | Type | Description |
|---|---|---|---|
days | query | number | |
from | query | string | |
to | query | string | |
groupBy | query | "campaign" | "sequence" | "step" | "variant" | "link" | "day" |
curl -X GET 'https://api.optimizly.io/v1/email/revenue' \ -H 'x-api-key: $OPTIMIZLY_API_KEY'
/v1/email/contacts/{contactId}/activityTimeline of mails, opens, clicks, bounces and orders for one contact growth:read
| Parameter | In | Type | Description |
|---|---|---|---|
contactId required | path | string | |
limit | query | number |
curl -X GET 'https://api.optimizly.io/v1/email/contacts/{contactId}/activity' \
-H 'x-api-key: $OPTIMIZLY_API_KEY'
/v1/sequencesCreate a full sequence (steps, waits, branches, stop rules, send window) as a draft growth:write
| Field | Type | Description |
|---|---|---|
name required | string | |
description | string | |
trigger required | object | |
steps required | any[] | |
stopOn | "reply" | "purchase"[] | |
onReply | any[] | Steps that run when the contact replies to a mail of this sequence (detected by the inbox sync). The regular steps stop at that moment and these start right away, e.g. [{type:"email", key:"deck", subject:"Re: …", bodyHtml:"…{{pitchDeck id="<deckId>"}}…"}]. Keys must differ from the regular steps; next/yes/no can only point to other reply steps or "end". |
sendWindow | object | |
timezone | string | |
allowReentry | boolean | |
includePreviewHtml | boolean |
curl -X POST 'https://api.optimizly.io/v1/sequences' \
-H 'x-api-key: $OPTIMIZLY_API_KEY' \
-H 'content-type: application/json' \
-d '{…}'
/v1/sequences/{id}/activateActivate (confirm: true) or pause a sequence growth:write
| Parameter | In | Type | Description |
|---|---|---|---|
id required | path | string |
| Field | Type | Description |
|---|---|---|
active | boolean | |
confirm | boolean |
curl -X POST 'https://api.optimizly.io/v1/sequences/{id}/activate' \
-H 'x-api-key: $OPTIMIZLY_API_KEY' \
-H 'content-type: application/json' \
-d '{…}'
/v1/sequences/{id}/triggerStart a sequence for one contact, optionally with cart/order data growth:write
| Parameter | In | Type | Description |
|---|---|---|---|
id required | path | string |
| Field | Type | Description |
|---|---|---|
contactId | string | |
email | string | |
cart | object | |
order | object | |
dryRun | boolean |
curl -X POST 'https://api.optimizly.io/v1/sequences/{id}/trigger' \
-H 'x-api-key: $OPTIMIZLY_API_KEY' \
-H 'content-type: application/json' \
-d '{…}'
/v1/productsList products (filter by query via /v1/products/search) growth:read
| Parameter | In | Type | Description |
|---|---|---|---|
websiteId | query | string | |
category | query | string | |
inStockOnly | query | boolean | |
emailEnabledOnly | query | boolean | |
limit | query | number | |
offset | query | number |
curl -X GET 'https://api.optimizly.io/v1/products' \ -H 'x-api-key: $OPTIMIZLY_API_KEY'
/v1/productsCreate or update products by hand (keyed on externalId) growth:write
| Field | Type | Description |
|---|---|---|
products required | object[] |
curl -X POST 'https://api.optimizly.io/v1/products' \
-H 'x-api-key: $OPTIMIZLY_API_KEY' \
-H 'content-type: application/json' \
-d '{…}'
/v1/products/searchSearch products by name, SKU, shop id, category or tag growth:read
| Parameter | In | Type | Description |
|---|---|---|---|
query required | query | string | |
websiteId | query | string | |
category | query | string | |
inStockOnly | query | boolean | |
emailEnabledOnly | query | boolean | |
limit | query | number | |
offset | query | number |
curl -X GET 'https://api.optimizly.io/v1/products/search' \ -H 'x-api-key: $OPTIMIZLY_API_KEY'
/v1/products/{id}Get one product by id, SKU or shop id growth:read
| Parameter | In | Type | Description |
|---|---|---|---|
id required | path | string |
curl -X GET 'https://api.optimizly.io/v1/products/{id}' \
-H 'x-api-key: $OPTIMIZLY_API_KEY'
/v1/product-collectionsList product collections growth:read
curl -X GET 'https://api.optimizly.io/v1/product-collections' \ -H 'x-api-key: $OPTIMIZLY_API_KEY'
/v1/product-collectionsCreate a product collection growth:write
| Field | Type | Description |
|---|---|---|
name required | string | |
slug | string | |
kind | "manual" | "category" | "bestsellers" | "new" | "sale" | |
rule | object | |
description | string | |
websiteId | string | |
products | string[] |
curl -X POST 'https://api.optimizly.io/v1/product-collections' \
-H 'x-api-key: $OPTIMIZLY_API_KEY' \
-H 'content-type: application/json' \
-d '{…}'
/v1/product-collections/{id}Get a collection with its products growth:read
| Parameter | In | Type | Description |
|---|---|---|---|
id required | path | string |
curl -X GET 'https://api.optimizly.io/v1/product-collections/{id}' \
-H 'x-api-key: $OPTIMIZLY_API_KEY'
/v1/product-collections/{id}Update a collection (products replaces the list) growth:write
| Parameter | In | Type | Description |
|---|---|---|---|
id required | path | string |
| Field | Type | Description |
|---|---|---|
name | string | |
slug | string | |
kind | "manual" | "category" | "bestsellers" | "new" | "sale" | |
rule | object | |
description | string | |
websiteId | string | |
products | string[] |
curl -X PATCH 'https://api.optimizly.io/v1/product-collections/{id}' \
-H 'x-api-key: $OPTIMIZLY_API_KEY' \
-H 'content-type: application/json' \
-d '{…}'
/v1/product-collections/{id}Delete a collection growth:write
| Parameter | In | Type | Description |
|---|---|---|---|
id required | path | string |
curl -X DELETE 'https://api.optimizly.io/v1/product-collections/{id}' \
-H 'x-api-key: $OPTIMIZLY_API_KEY'
/v1/email/templates/{id}/productsAdd a product block (ids, skus, collection or dynamic) to an email template growth:write
| Parameter | In | Type | Description |
|---|---|---|---|
id required | path | string |
| Field | Type | Description |
|---|---|---|
position | "end" | "start" | |
allowImported | boolean | |
dryRun | boolean | |
ids | string[] | |
skus | string[] | |
collection | string | |
dynamic | "bestsellers" | "new" | "sale" | "recommended" | "recently_viewed" | |
layout | "grid-2" | "grid-3" | "list" | |
limit | number | |
button | string | |
utmCampaign | string |
curl -X POST 'https://api.optimizly.io/v1/email/templates/{id}/products' \
-H 'x-api-key: $OPTIMIZLY_API_KEY' \
-H 'content-type: application/json' \
-d '{…}'
/v1/sequences/{id}/product-stepsAppend an email step with a product block to a sequence/flow growth:write
| Parameter | In | Type | Description |
|---|---|---|---|
id required | path | string |
| Field | Type | Description |
|---|---|---|
subject required | string | |
introHtml | string | |
delayHours | number | |
afterNodeId | string | |
label | string | |
dryRun | boolean | |
ids | string[] | |
skus | string[] | |
collection | string | |
dynamic | "bestsellers" | "new" | "sale" | "recommended" | "recently_viewed" | |
layout | "grid-2" | "grid-3" | "list" | |
limit | number | |
button | string | |
utmCampaign | string |
curl -X POST 'https://api.optimizly.io/v1/sequences/{id}/product-steps' \
-H 'x-api-key: $OPTIMIZLY_API_KEY' \
-H 'content-type: application/json' \
-d '{…}'
/v1/woocommerce/statusConnected WooCommerce shops and their sync status growth:read
curl -X GET 'https://api.optimizly.io/v1/woocommerce/status' \ -H 'x-api-key: $OPTIMIZLY_API_KEY'
/v1/woocommerce/resyncRequest a full product sync from connected shops growth:write
| Field | Type | Description |
|---|---|---|
connectionId | string |
curl -X POST 'https://api.optimizly.io/v1/woocommerce/resync' \
-H 'x-api-key: $OPTIMIZLY_API_KEY' \
-H 'content-type: application/json' \
-d '{…}'
/v1/shop/eventsRecent e-commerce events with email attribution growth:read
| Parameter | In | Type | Description |
|---|---|---|---|
type | query | string | |
email | query | string | |
limit | query | number |
curl -X GET 'https://api.optimizly.io/v1/shop/events' \ -H 'x-api-key: $OPTIMIZLY_API_KEY'
/v1/shop/attributionShop revenue attributed to emails (oz_cid) growth:read
| Parameter | In | Type | Description |
|---|---|---|---|
days | query | number |
curl -X GET 'https://api.optimizly.io/v1/shop/attribution' \ -H 'x-api-key: $OPTIMIZLY_API_KEY'
/v1/contacts/upsertCreate or update one contact by email (consent required), dedupe per workspace growth:write
| Field | Type | Description |
|---|---|---|
email required | string | |
name | string | |
firstName | string | |
lastName | string | |
phone | string | |
company | string | |
source | string | |
websiteId | string | |
product | string | |
tags | string[] | |
consent required | object | |
overwrite | boolean |
curl -X POST 'https://api.optimizly.io/v1/contacts/upsert' \
-H 'x-api-key: $OPTIMIZLY_API_KEY' \
-H 'content-type: application/json' \
-d '{…}'
/v1/contacts/deleteDelete one contact by email (confirm: true) and stop its sequence runs growth:write
| Field | Type | Description |
|---|---|---|
email required | string | |
confirm | boolean |
curl -X POST 'https://api.optimizly.io/v1/contacts/delete' \
-H 'x-api-key: $OPTIMIZLY_API_KEY' \
-H 'content-type: application/json' \
-d '{…}'