API reference
65 Operations, generated from /api/v1/openapi.json. Fields marked * are required. Errors use the envelope described in Concepts.
assistants
/api/v1/assistantsThe caller's EpsimoAgents assistants (the agents generations and lead ideation use)
curl -sS -X GET "https://app.cgenius.app/api/v1/assistants" \
-H "Authorization: Bearer $CGENIUS_API_TOKEN"auditEvents
/api/v1/audit-eventsList the caller's audit events (kept 90 days)
| Field | Type | Notes |
|---|---|---|
| limit | integer | Page size, 1 to 100 |
| cursor | string | Opaque cursor from the previous page |
| from | string (date-time) | Default: 30 days ago |
| to | string (date-time) | Default: now |
| operation | string | |
| tokenId | string |
curl -sS -X GET "https://app.cgenius.app/api/v1/audit-events" \
-H "Authorization: Bearer $CGENIUS_API_TOKEN"auth
/api/v1/auth/cli-sessionsStart a CLI login; the user approves it in the browser
| Field | Type | Notes |
|---|---|---|
| name | string | |
| scopes * | "content:read" | "content:write" | "publish:read" | "publish:write" | "connections:manage" | "media:read" | "media:write" | "settings:read" | "settings:write" | "jobs:read" | "jobs:write" | "tokens:manage" | "maintenance:read" | "maintenance:write"[] | |
| aiAccess | boolean | |
| expiresInDays | integer | |
| clientInfo | string | For example the host name and CLI version, shown on the approve page |
curl -sS -X POST "https://app.cgenius.app/api/v1/auth/cli-sessions" \
-H "Content-Type: application/json" \
-d '{"scopes":"content:read"}'/api/v1/auth/cli-sessions/{id}What the CLI approve page shows for a login session
| Field | Type | Notes |
|---|---|---|
| id * | string |
curl -sS -X GET "https://app.cgenius.app/api/v1/auth/cli-sessions/<id>" \
-H "Authorization: Bearer $CGENIUS_API_TOKEN"/api/v1/auth/cli-sessions/{id}/denyDeny a CLI login session
| Field | Type | Notes |
|---|---|---|
| id * | string |
curl -sS -X POST "https://app.cgenius.app/api/v1/auth/cli-sessions/<id>/deny" \
-H "Authorization: Bearer $CGENIUS_API_TOKEN"/api/v1/auth/cli-sessions/{id}/exchangePoll a CLI login: 202 while pending, then the token once
| Field | Type | Notes |
|---|---|---|
| id * | string |
| Field | Type | Notes |
|---|---|---|
| pollSecret * | string |
curl -sS -X POST "https://app.cgenius.app/api/v1/auth/cli-sessions/<id>/exchange" \
-H "Content-Type: application/json" \
-d '{"pollSecret":"…"}'/api/v1/auth/delegation/callbackCognito hosted UI redirect target; creates the approved token and returns the browser to the app
| Field | Type | Notes |
|---|---|---|
| code | string | |
| state | string | |
| error | string | |
| error_description | string |
curl -sS -X GET "https://app.cgenius.app/api/v1/auth/delegation/callback"/api/v1/auth/delegation/startRedirect the browser to the Cognito hosted UI to grant AI access to an approval
| Field | Type | Notes |
|---|---|---|
| approval * | string |
curl -sS -X GET "https://app.cgenius.app/api/v1/auth/delegation/start" \
-H "Authorization: Bearer $CGENIUS_API_TOKEN"billing
/api/v1/billingYour credits (plan remaining, packs), plan, purchases, and the plans and packs for sale
curl -sS -X GET "https://app.cgenius.app/api/v1/billing" \
-H "Authorization: Bearer $CGENIUS_API_TOKEN"/api/v1/billing/checkoutStart a Stripe Checkout for a credit pack (pay as you go) or a monthly plan; answers the URL the user pays at
| Field | Type | Notes |
|---|---|---|
| kind * | "pack" | "plan" | |
| itemId * | string | A pack or plan id from billing.get, for example pack_100 or pro |
| returnUrl | string (uri) | Where Stripe returns (an allowed https origin of ContentGenius); default the Credits & Billing page |
curl -sS -X POST "https://app.cgenius.app/api/v1/billing/checkout" \
-H "Authorization: Bearer $CGENIUS_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"kind":"pack","itemId":"…"}'/api/v1/billing/portalOpen the Stripe customer portal (change or cancel a plan, invoices, card)
| Field | Type | Notes |
|---|---|---|
| returnUrl | string (uri) | Where Stripe returns (an allowed https origin of ContentGenius); default the Credits & Billing page |
curl -sS -X POST "https://app.cgenius.app/api/v1/billing/portal" \
-H "Authorization: Bearer $CGENIUS_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'blogs
/api/v1/blogs/v1/jobsWrite a blog with the v1 engine
| Field | Type | Notes |
|---|---|---|
| assistant_id * | string | |
| topic * | string | |
| blogSize * | "single" | "small" | "medium" | "big" | "huge" |
curl -sS -X POST "https://app.cgenius.app/api/v1/blogs/v1/jobs" \
-H "Authorization: Bearer $CGENIUS_API_TOKEN" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"assistant_id":"…","topic":"…","blogSize":"single"}'/api/v1/blogs/v1/jobs/{id}Read a v1 blog Job
| Field | Type | Notes |
|---|---|---|
| id * | string |
curl -sS -X GET "https://app.cgenius.app/api/v1/blogs/v1/jobs/<id>" \
-H "Authorization: Bearer $CGENIUS_API_TOKEN"/api/v1/blogs/v2/tasksWrite a blog with the v2 engine
| Field | Type | Notes |
|---|---|---|
| requestData * | object | |
| requestData.topic * | string | |
| requestData.wordCount * | integer | |
| requestData.blogSize * | "single" | "small" | "medium" | "big" | "huge" | |
| requestData.assistantId * | string |
curl -sS -X POST "https://app.cgenius.app/api/v1/blogs/v2/tasks" \
-H "Authorization: Bearer $CGENIUS_API_TOKEN" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"requestData":{"topic":"…","wordCount":1,"blogSize":"single","assistantId":"…"}}'/api/v1/blogs/v2/tasks/{id}Read a v2 blog task and its Job
| Field | Type | Notes |
|---|---|---|
| id * | string |
curl -sS -X GET "https://app.cgenius.app/api/v1/blogs/v2/tasks/<id>" \
-H "Authorization: Bearer $CGENIUS_API_TOKEN"/api/v1/blogs/v2/tasks/{id}/resumeResume a failed v2 blog task
| Field | Type | Notes |
|---|---|---|
| id * | string |
curl -sS -X POST "https://app.cgenius.app/api/v1/blogs/v2/tasks/<id>/resume" \
-H "Authorization: Bearer $CGENIUS_API_TOKEN"/api/v1/blogs/v3/pipelinesWrite a blog with the v3 engine (research, outline, sections, assembly)
| Field | Type | Notes |
|---|---|---|
| requestData * | object | |
| requestData.topic * | string | |
| requestData.title | string | |
| requestData.keywords | string | string[] | |
| requestData.tone | string | |
| requestData.wordCount | integer | |
| requestData.blogSize | string | |
| requestData.includeFAQ | boolean | |
| requestData.brandVoice | any | |
| requestData.templateId | string | |
| agentConfiguration * | object | |
| agentConfiguration.defaultAgentId * | string | |
| agentConfiguration.researchAgentId | string | |
| agentConfiguration.outlineAgentId | string | |
| agentConfiguration.writingAgentId | string |
curl -sS -X POST "https://app.cgenius.app/api/v1/blogs/v3/pipelines" \
-H "Authorization: Bearer $CGENIUS_API_TOKEN" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"requestData":{"topic":"…"},"agentConfiguration":{"defaultAgentId":"…"}}'/api/v1/blogs/v3/pipelines/{id}Read a v3 blog pipeline and its Job
| Field | Type | Notes |
|---|---|---|
| id * | string |
curl -sS -X GET "https://app.cgenius.app/api/v1/blogs/v3/pipelines/<id>" \
-H "Authorization: Bearer $CGENIUS_API_TOKEN"/api/v1/blogs/v3/pipelines/{id}/resumeResume a failed v3 blog from its resume point
| Field | Type | Notes |
|---|---|---|
| id * | string |
curl -sS -X POST "https://app.cgenius.app/api/v1/blogs/v3/pipelines/<id>/resume" \
-H "Authorization: Bearer $CGENIUS_API_TOKEN"/api/v1/blogs/v3/pipelines/{id}/sections/{index}/regenerateRegenerate one section of a completed v3 blog (then reassemble)
| Field | Type | Notes |
|---|---|---|
| id * | string | |
| index * | integer |
curl -sS -X POST "https://app.cgenius.app/api/v1/blogs/v3/pipelines/<id>/sections/<index>/regenerate" \
-H "Authorization: Bearer $CGENIUS_API_TOKEN" \
-H "Idempotency-Key: $(uuidgen)"connections
/api/v1/connections/bufferRemove the stored Buffer API key
curl -sS -X DELETE "https://app.cgenius.app/api/v1/connections/buffer" \
-H "Authorization: Bearer $CGENIUS_API_TOKEN"/api/v1/connections/bufferThe caller's Buffer connection, checked with Buffer
curl -sS -X GET "https://app.cgenius.app/api/v1/connections/buffer" \
-H "Authorization: Bearer $CGENIUS_API_TOKEN"/api/v1/connections/bufferConnect a Buffer account with a Buffer personal API key (verified with Buffer, then stored encrypted)
| Field | Type | Notes |
|---|---|---|
| apiKey * | string | Buffer › Settings › API |
curl -sS -X PUT "https://app.cgenius.app/api/v1/connections/buffer" \
-H "Authorization: Bearer $CGENIUS_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"apiKey":"…"}'/api/v1/connections/buffer/channelsThe channels of the caller's Buffer account
curl -sS -X GET "https://app.cgenius.app/api/v1/connections/buffer/channels" \
-H "Authorization: Bearer $CGENIUS_API_TOKEN"contentItems
/api/v1/contentList your saved content, newest first
| Field | Type | Notes |
|---|---|---|
| limit | integer | Page size, 1 to 100 |
| cursor | string | Opaque cursor from the previous page |
| type | string | Only this content type, for example social_post |
curl -sS -X GET "https://app.cgenius.app/api/v1/content" \
-H "Authorization: Bearer $CGENIUS_API_TOKEN"/api/v1/content/{id}Read one of your saved content records: its body, fields and send history
| Field | Type | Notes |
|---|---|---|
| id * | string |
curl -sS -X GET "https://app.cgenius.app/api/v1/content/<id>" \
-H "Authorization: Bearer $CGENIUS_API_TOKEN"/api/v1/content/{id}/sendSend saved content to one of your sites (a publishing endpoint) and record the send
| Field | Type | Notes |
|---|---|---|
| id * | string |
| Field | Type | Notes |
|---|---|---|
| endpointId * | string | From integrationEndpoints.list |
| options | object | |
| options.format | "simple" | "full" | simple (default): title, content, featured image; full: every section, block and field |
| options.status | "publish" | "draft" | What the receiving site should do: publish (default) or draft |
| options.formats | "html" | "markdown" | "text"[] | Full format: the body formats to include (default all three) |
| options.images | "link" | "inline" | "none" | link (default): 30-day download links; inline: base64 inside the content (full format); none |
| options.includeFields | boolean | Full format: include the type's own fields |
curl -sS -X POST "https://app.cgenius.app/api/v1/content/<id>/send" \
-H "Authorization: Bearer $CGENIUS_API_TOKEN" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"endpointId":"…"}'generate
/api/v1/generate/emailsWrite an email (email Job)
| Field | Type | Notes |
|---|---|---|
| assistantId * | string | EpsimoAgents assistant that writes the email |
| recipient * | string | Who it is for, for example "a prospect who downloaded our guide" |
| subject * | string | |
| context | string | What the email must say or achieve |
| tone | string | For example "warm" or "formal" |
| length | "100" | "200" | "400" | About how many words (default 200) |
| brandVoiceId | string | One of your brand voices; the writing follows it |
| save | boolean | Save the result to your content (default true); `result.contentId` names the record |
curl -sS -X POST "https://app.cgenius.app/api/v1/generate/emails" \
-H "Authorization: Bearer $CGENIUS_API_TOKEN" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"assistantId":"…","recipient":"…","subject":"…"}'/api/v1/generate/offerGenerate an offer (HTML and PDF) with the offer pipelines
| Field | Type | Notes |
|---|---|---|
| variant * | "batch" | "basic" | "zero" | "mid" | "full" | batch: one section per subject (offer_batch); the others: the new-batch pipeline variants |
| client_name * | string | |
| subjects | string[] | |
| offerRecord * | any | |
| assistantsId | any[] | object | batch: the assistant per subject (array or map); other variants: an object, `{assistantsId: "<assistant id>"}` for mid and full |
curl -sS -X POST "https://app.cgenius.app/api/v1/generate/offer" \
-H "Authorization: Bearer $CGENIUS_API_TOKEN" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"variant":"batch","client_name":"…","offerRecord":{}}'/api/v1/generate/presentationsWrite a slide deck (presentation Job)
| Field | Type | Notes |
|---|---|---|
| assistantId * | string | EpsimoAgents assistant that writes the slides |
| topic * | string | |
| audience | string | Who the presentation is for |
| slideCount * | integer | |
| style | "professional" | "creative" | "minimal" | "bold" | Default professional |
| brandVoiceId | string | One of your brand voices; the writing follows it |
| save | boolean | Save the result to your content (default true); `result.contentId` names the record |
curl -sS -X POST "https://app.cgenius.app/api/v1/generate/presentations" \
-H "Authorization: Bearer $CGENIUS_API_TOKEN" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"assistantId":"…","topic":"…","slideCount":1}'/api/v1/generate/researchResearch the web and write a cited report (research Job)
| Field | Type | Notes |
|---|---|---|
| assistantId * | string | EpsimoAgents assistant that plans and researches; give it a web search tool (Tavily or DuckDuckGo) |
| writerAssistantId | string | Assistant that writes the report; default `assistantId` |
| query * | string | The research task |
| reportType | "research_report" | "outline_report" | "resource_report" | "custom_report" | Default research_report (a summary report of about 1,200 words) |
| customPrompt | string | How to write a custom_report (required for it) |
| tone | "objective" | "formal" | "analytical" | "persuasive" | "informative" | "explanatory" | "descriptive" | "critical" | "comparative" | "speculative" | "reflective" | "narrative" | "humorous" | "optimistic" | "pessimistic" | "simple" | "casual" | Default objective |
| language | string | For example "French"; default: the language of the query |
| domains | string[] | Only search and cite these sites, for example ["europa.eu"] |
| questionCount | integer | Search questions to plan (default 4); the query itself is researched too |
| brandVoiceId | string | One of your brand voices; the writing follows it |
| save | boolean | Save the result to your content (default true); `result.contentId` names the record |
curl -sS -X POST "https://app.cgenius.app/api/v1/generate/research" \
-H "Authorization: Bearer $CGENIUS_API_TOKEN" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"assistantId":"…","query":"…"}'/api/v1/generate/video-adsMake a short video ad from a content idea and render it in social formats (video_ad Job)
| Field | Type | Notes |
|---|---|---|
| assistantId | string | EpsimoAgents assistant that writes the script and the caption (not needed with `script`) |
| ideationId | string | One of your saved ideas (from ideation.leadIdeas or ideation.analyze); it is linked to the saved ad |
| idea | object | The idea itself, instead of `ideationId` (for example a suggestion from ideation.leadIdeas) |
| idea.topic * | string | |
| idea.description | string | |
| idea.targetAudience | string | |
| idea.angles | string[] | |
| idea.keywords | string[] | |
| formats | "9:16" | "1:1" | "4:5" | "16:9"[] | One render per format; default ["9:16"] (Reels, TikTok, Shorts, Stories) |
| lengthSeconds | integer | About how long the ad lasts: 15, 30, 45, 60 (default 30) |
| platform | string | The network the caption is written for (default instagram) |
| url | string | Shown on the call-to-action scene, for example "acme.com/demo" |
| brand | object | Colours as #rrggbb, and the name or logo shown in a corner |
| brand.name | string | |
| brand.primary | string | |
| brand.accent | string | |
| brand.background | string | |
| brand.text | string | |
| brand.logoUrl | string | |
| brandVoiceId | string | One of your brand voices; the writing follows it |
| language | string | |
| images | boolean | Draw a photo behind up to three scenes (needs `imageAssistantId`, an assistant with the DALL-E tool) |
| imageAssistantId | string | |
| musicUrl | string | Background music (an https audio file you may use); it loops and fades out at the end |
| musicVolume | number | Music volume, 0 to 1 (default 0.35) |
| script | object | A script to render as is (`job.result.script` of an earlier Job with `render: false`, edited); the agent is not asked again |
| script.scenes * | object[] | Scenes as in job.result.script.scenes: {kind: hook|point|stat|cta, durationInSeconds, text, sub, title, body, value, label, button, url, imageUrl} |
| script.caption | string | |
| script.hashtags | string[] | |
| render | boolean | Render the videos (default true); false stops after the script so it can be checked |
| save | boolean | Save the result to your content (default true); `result.contentId` names the record |
curl -sS -X POST "https://app.cgenius.app/api/v1/generate/video-ads" \
-H "Authorization: Bearer $CGENIUS_API_TOKEN" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"idea":{"topic":"…"},"script":{"scenes":[{}]}}'/api/v1/generate/video-ads/{id}Read a video ad Job; a completed one has a 7-day link on each video
| Field | Type | Notes |
|---|---|---|
| id * | string |
curl -sS -X GET "https://app.cgenius.app/api/v1/generate/video-ads/<id>" \
-H "Authorization: Bearer $CGENIUS_API_TOKEN"health
/api/v1/healthService health
curl -sS -X GET "https://app.cgenius.app/api/v1/health"ideation
/api/v1/ideation/analyzeSuggest content ideas from Lead App leads (content_analysis Job)
| Field | Type | Notes |
|---|---|---|
| leadIds * | string[] | |
| assistantId | string | EpsimoAgents assistant that writes the ideas. Default: the configured content analysis assistant |
curl -sS -X POST "https://app.cgenius.app/api/v1/ideation/analyze" \
-H "Authorization: Bearer $CGENIUS_API_TOKEN" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"leadIds":["…"]}'/api/v1/ideation/lead-ideasContent ideas from a LeadGenius company's leads, written by an agent (lead_ideation Job)
| Field | Type | Notes |
|---|---|---|
| assistantId * | string | The EpsimoAgents agent that writes the ideas (see assistants.list) |
| companyId * | string | A LeadGenius company of the caller (see leadApp.companies.list) |
| mode | "deep" | "quick" | deep: themes per group of 25 leads, then the ideas; quick: statistics and 40 leads |
| leadIds | string[] | Hand-picked leads; without them, the newest leads of the company |
| filters | object | |
| filters.minScore | number | |
| filters.statuses | string[] | |
| filters.keyword | string | |
| filters.since | string | ISO date: leads created on or after it |
| maxLeads | integer | |
| ideaCount | integer | |
| focus | string | What the company offers or wants to be known for |
curl -sS -X POST "https://app.cgenius.app/api/v1/ideation/lead-ideas" \
-H "Authorization: Bearer $CGENIUS_API_TOKEN" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"assistantId":"…","companyId":"…"}'integrationEndpoints
/api/v1/publish/endpointsList your publishing endpoints (Settings › Integrations), without their tokens
curl -sS -X GET "https://app.cgenius.app/api/v1/publish/endpoints" \
-H "Authorization: Bearer $CGENIUS_API_TOKEN"jobs
/api/v1/jobsList the caller's Jobs (offers, content analysis, PDF, blog v1), newest first
| Field | Type | Notes |
|---|---|---|
| limit | integer | Page size, 1 to 100 |
| cursor | string | Opaque cursor from the previous page |
| type | "blog_v3" | "blog_v2" | "blog_v1" | "offer_batch" | "offer_new_batch" | "content_analysis" | "lead_ideation" | "pdf_conversion" | "questionnaire" | "social_post" | "email" | "presentation" | "research" | "video_ad" |
curl -sS -X GET "https://app.cgenius.app/api/v1/jobs" \
-H "Authorization: Bearer $CGENIUS_API_TOKEN"/api/v1/jobs/{id}Read a Job; also advances it a little when nothing else is (no browser needed)
| Field | Type | Notes |
|---|---|---|
| id * | string |
curl -sS -X GET "https://app.cgenius.app/api/v1/jobs/<id>" \
-H "Authorization: Bearer $CGENIUS_API_TOKEN"/api/v1/jobs/{id}/advanceRun the next Steps of a Job within one request (JSON, or SSE with Accept: text/event-stream)
| Field | Type | Notes |
|---|---|---|
| id * | string |
curl -sS -X POST "https://app.cgenius.app/api/v1/jobs/<id>/advance" \
-H "Authorization: Bearer $CGENIUS_API_TOKEN"/api/v1/jobs/{id}/cancelCancel a PENDING or RUNNING Job
| Field | Type | Notes |
|---|---|---|
| id * | string |
curl -sS -X POST "https://app.cgenius.app/api/v1/jobs/<id>/cancel" \
-H "Authorization: Bearer $CGENIUS_API_TOKEN"/api/v1/jobs/{id}/resumeResume a FAILED Job from its failed Step
| Field | Type | Notes |
|---|---|---|
| id * | string |
curl -sS -X POST "https://app.cgenius.app/api/v1/jobs/<id>/resume" \
-H "Authorization: Bearer $CGENIUS_API_TOKEN"leadApp
/api/v1/lead-app/companiesThe LeadGenius companies the caller owns or is an active member of, and the one lead ideation uses
curl -sS -X GET "https://app.cgenius.app/api/v1/lead-app/companies" \
-H "Authorization: Bearer $CGENIUS_API_TOKEN"me
/api/v1/meThe caller: identity, token Scopes and AI access, Workspaces, limits and credits
curl -sS -X GET "https://app.cgenius.app/api/v1/me" \
-H "Authorization: Bearer $CGENIUS_API_TOKEN"media
/api/v1/media/generated-imagesCopy an image an EpsimoAgents agent generated (its temporary URL) to the publish bucket
| Field | Type | Notes |
|---|---|---|
| url * | string | https URL on the EpsimoAgents host under /generated-images/ |
curl -sS -X POST "https://app.cgenius.app/api/v1/media/generated-images" \
-H "Authorization: Bearer $CGENIUS_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"url":"…"}'/api/v1/media/imagesThe bytes of an image stored in the publish bucket, by its s3:// path
| Field | Type | Notes |
|---|---|---|
| path * | string | `s3://bucket/pdfFile/...`, as returned by media.generatedImages.import |
curl -sS -X GET "https://app.cgenius.app/api/v1/media/images" \
-H "Authorization: Bearer $CGENIUS_API_TOKEN"openapi
/api/v1/openapi.jsonThe OpenAPI 3.1 document of this API
curl -sS -X GET "https://app.cgenius.app/api/v1/openapi.json"projects
/api/v1/projectsThe caller's EpsimoAgents projects
curl -sS -X GET "https://app.cgenius.app/api/v1/projects" \
-H "Authorization: Bearer $CGENIUS_API_TOKEN"publish
/api/v1/publish/bufferSend a post to Buffer channels: publish now, queue, schedule or save as a draft
| Field | Type | Notes |
|---|---|---|
| text * | string | |
| channelIds * | string[] | |
| mode * | "shareNow" | "addToQueue" | "customScheduled" | "draft" | shareNow, addToQueue, customScheduled (needs dueAt), draft |
| dueAt | string (date-time) | |
| imageUrl | string | A public https URL, or the `s3://` path of one of your saved images (for example `job.result.image.path` of generate.socialPost, or media.generatedImages.import); a path is sent to Buffer as a 30-day download link |
| videoUrl | string | A video instead of an image: an https URL, or the `s3://` path of one of your rendered videos (`job.result.videos[].path` of generate.videoAd), sent as a 7-day link |
| contentId | string | GeneratedContent record; the posts are recorded on it |
| versions | object | Channel id → its own text (see social.fit), or a thread on X, Threads, Bluesky and Mastodon |
curl -sS -X POST "https://app.cgenius.app/api/v1/publish/buffer" \
-H "Authorization: Bearer $CGENIUS_API_TOKEN" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"text":"…","channelIds":["…"],"mode":"shareNow"}'settings
/api/v1/settings/{key}Remove one of the caller's settings
| Field | Type | Notes |
|---|---|---|
| key * | "epsimoagents" | "integrations" | "ideation" | epsimoagents: publish module preferences; integrations: publishing endpoints; ideation: lead ideation choices |
curl -sS -X DELETE "https://app.cgenius.app/api/v1/settings/<key>" \
-H "Authorization: Bearer $CGENIUS_API_TOKEN"/api/v1/settings/{key}One of the caller's settings; `data` is null when nothing is saved
| Field | Type | Notes |
|---|---|---|
| key * | "epsimoagents" | "integrations" | "ideation" | epsimoagents: publish module preferences; integrations: publishing endpoints; ideation: lead ideation choices |
curl -sS -X GET "https://app.cgenius.app/api/v1/settings/<key>" \
-H "Authorization: Bearer $CGENIUS_API_TOKEN"/api/v1/settings/{key}Replace one of the caller's settings
| Field | Type | Notes |
|---|---|---|
| key * | "epsimoagents" | "integrations" | "ideation" | epsimoagents: publish module preferences; integrations: publishing endpoints; ideation: lead ideation choices |
| Field | Type | Notes |
|---|---|---|
| data * | object |
curl -sS -X PUT "https://app.cgenius.app/api/v1/settings/<key>" \
-H "Authorization: Bearer $CGENIUS_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"data":{}}'social
tokens
/api/v1/tokensList the caller's API tokens
curl -sS -X GET "https://app.cgenius.app/api/v1/tokens" \
-H "Authorization: Bearer $CGENIUS_API_TOKEN"/api/v1/tokensCreate an API token (without AI access; use the approval flow for AI access)
| Field | Type | Notes |
|---|---|---|
| name * | string | |
| scopes * | "content:read" | "content:write" | "publish:read" | "publish:write" | "connections:manage" | "media:read" | "media:write" | "settings:read" | "settings:write" | "jobs:read" | "jobs:write" | "tokens:manage" | "maintenance:read" | "maintenance:write"[] | Scopes the token holds; at most those of the creating token |
| expiresAt | string (date-time) | Default 90 days, at most 365 days away |
curl -sS -X POST "https://app.cgenius.app/api/v1/tokens" \
-H "Authorization: Bearer $CGENIUS_API_TOKEN" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"name":"…","scopes":"content:read"}'/api/v1/tokens/{id}Revoke an API token and every token it created
| Field | Type | Notes |
|---|---|---|
| id * | string |
curl -sS -X DELETE "https://app.cgenius.app/api/v1/tokens/<id>" \
-H "Authorization: Bearer $CGENIUS_API_TOKEN"/api/v1/tokens/{id}Read one API token
| Field | Type | Notes |
|---|---|---|
| id * | string |
curl -sS -X GET "https://app.cgenius.app/api/v1/tokens/<id>" \
-H "Authorization: Bearer $CGENIUS_API_TOKEN"/api/v1/tokens/{id}Rename an API token
| Field | Type | Notes |
|---|---|---|
| id * | string |
| Field | Type | Notes |
|---|---|---|
| name * | string |
curl -sS -X PATCH "https://app.cgenius.app/api/v1/tokens/<id>" \
-H "Authorization: Bearer $CGENIUS_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"…"}'/api/v1/tokens/{id}/ai-accessRemove AI access from an API token without revoking it
| Field | Type | Notes |
|---|---|---|
| id * | string |
curl -sS -X DELETE "https://app.cgenius.app/api/v1/tokens/<id>/ai-access" \
-H "Authorization: Bearer $CGENIUS_API_TOKEN"/api/v1/tokens/approvalsStart a token approval in the signed-in browser (the way to create a token with AI access)
| Field | Type | Notes |
|---|---|---|
| name * | string | |
| scopes * | "content:read" | "content:write" | "publish:read" | "publish:write" | "connections:manage" | "media:read" | "media:write" | "settings:read" | "settings:write" | "jobs:read" | "jobs:write" | "tokens:manage" | "maintenance:read" | "maintenance:write"[] | |
| expiresAt | string (date-time) | Default 90 days, at most 365 days away |
| aiAccess | boolean | Ask for AI access (a Delegated_Credential); needs a Cognito sign-in |
| via | "ui" | "cli" | |
| cliSessionId | string | Required when via is cli |
curl -sS -X POST "https://app.cgenius.app/api/v1/tokens/approvals" \
-H "Authorization: Bearer $CGENIUS_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"…","scopes":"content:read"}'/api/v1/tokens/approvals/{id}/completeFinish an approval without AI access and create the token
| Field | Type | Notes |
|---|---|---|
| id * | string |
curl -sS -X POST "https://app.cgenius.app/api/v1/tokens/approvals/<id>/complete" \
-H "Authorization: Bearer $CGENIUS_API_TOKEN"/api/v1/tokens/approvals/{id}/resultThe token an approval created; the secret is returned only on the first call
| Field | Type | Notes |
|---|---|---|
| id * | string |
curl -sS -X POST "https://app.cgenius.app/api/v1/tokens/approvals/<id>/result" \
-H "Authorization: Bearer $CGENIUS_API_TOKEN"/api/v1/tokens/approvals/{id}/sessionGrant AI access from the signed-in browser session (no second sign-in) and create the token
| Field | Type | Notes |
|---|---|---|
| id * | string |
| Field | Type | Notes |
|---|---|---|
| refreshToken * | string | The browser session's Cognito refresh token |
curl -sS -X POST "https://app.cgenius.app/api/v1/tokens/approvals/<id>/session" \
-H "Authorization: Bearer $CGENIUS_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"refreshToken":"…"}'