API reference

65 Operations, generated from /api/v1/openapi.json. Fields marked * are required. Errors use the envelope described in Concepts.

assistants

GET/api/v1/assistants

The caller's EpsimoAgents assistants (the agents generations and lead ideation use)

assistants.listcontent:readneeds AI accesscgenius assistants list
Responses: 200 AssistantList400 ErrorEnvelope401 ErrorEnvelope403 ErrorEnvelope429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
curl -sS -X GET "https://app.cgenius.app/api/v1/assistants" \
  -H "Authorization: Bearer $CGENIUS_API_TOKEN"

auditEvents

GET/api/v1/audit-events

List the caller's audit events (kept 90 days)

auditEvents.listtokens:managecgenius audit list
Query parameters
FieldTypeNotes
limitintegerPage size, 1 to 100
cursorstringOpaque cursor from the previous page
fromstring (date-time)Default: 30 days ago
tostring (date-time)Default: now
operationstring
tokenIdstring
Responses: 200 AuditEventPage400 ErrorEnvelope401 ErrorEnvelope403 ErrorEnvelope429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
curl -sS -X GET "https://app.cgenius.app/api/v1/audit-events" \
  -H "Authorization: Bearer $CGENIUS_API_TOKEN"

auth

POST/api/v1/auth/cli-sessions

Start a CLI login; the user approves it in the browser

auth.cliSessions.createpubliccgenius auth login
Body (CreateCliSessionRequest)
FieldTypeNotes
namestring
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"[]
aiAccessboolean
expiresInDaysinteger
clientInfostringFor example the host name and CLI version, shown on the approve page
Responses: 201 CreatedCliSession400 ErrorEnvelope413 ErrorEnvelope429500 ErrorEnvelope
curl
curl -sS -X POST "https://app.cgenius.app/api/v1/auth/cli-sessions" \
  -H "Content-Type: application/json" \
  -d '{"scopes":"content:read"}'
GET/api/v1/auth/cli-sessions/{id}

What the CLI approve page shows for a login session

auth.cliSessions.gettokens:manage
Path parameters
FieldTypeNotes
id *string
Responses: 200 CliSession400 ErrorEnvelope401 ErrorEnvelope403410429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
curl -sS -X GET "https://app.cgenius.app/api/v1/auth/cli-sessions/<id>" \
  -H "Authorization: Bearer $CGENIUS_API_TOKEN"
POST/api/v1/auth/cli-sessions/{id}/deny

Deny a CLI login session

auth.cliSessions.denytokens:manage
Path parameters
FieldTypeNotes
id *string
Responses: 204400 ErrorEnvelope401 ErrorEnvelope403429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
curl -sS -X POST "https://app.cgenius.app/api/v1/auth/cli-sessions/<id>/deny" \
  -H "Authorization: Bearer $CGENIUS_API_TOKEN"
POST/api/v1/auth/cli-sessions/{id}/exchange

Poll a CLI login: 202 while pending, then the token once

auth.cliSessions.exchangepubliccgenius auth login
Path parameters
FieldTypeNotes
id *string
Body (ExchangeCliSessionRequest)
FieldTypeNotes
pollSecret *string
Responses: 200 ApprovedCliSession202 PendingCliSession400 ErrorEnvelope410413 ErrorEnvelope429500 ErrorEnvelope
curl
curl -sS -X POST "https://app.cgenius.app/api/v1/auth/cli-sessions/<id>/exchange" \
  -H "Content-Type: application/json" \
  -d '{"pollSecret":"…"}'
GET/api/v1/auth/delegation/callback

Cognito hosted UI redirect target; creates the approved token and returns the browser to the app

auth.delegation.callbackpublic
Query parameters
FieldTypeNotes
codestring
statestring
errorstring
error_descriptionstring
Responses: 302400 ErrorEnvelope500 ErrorEnvelope
curl
curl -sS -X GET "https://app.cgenius.app/api/v1/auth/delegation/callback"
GET/api/v1/auth/delegation/start

Redirect the browser to the Cognito hosted UI to grant AI access to an approval

auth.delegation.starttokens:manage
Query parameters
FieldTypeNotes
approval *string
Responses: 302400 ErrorEnvelope401 ErrorEnvelope403404409429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
curl -sS -X GET "https://app.cgenius.app/api/v1/auth/delegation/start" \
  -H "Authorization: Bearer $CGENIUS_API_TOKEN"

billing

GET/api/v1/billing

Your credits (plan remaining, packs), plan, purchases, and the plans and packs for sale

billing.getsettings:readneeds AI accesscgenius billing status
Responses: 200 Billing400 ErrorEnvelope401 ErrorEnvelope403 ErrorEnvelope429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
curl -sS -X GET "https://app.cgenius.app/api/v1/billing" \
  -H "Authorization: Bearer $CGENIUS_API_TOKEN"
POST/api/v1/billing/checkout

Start a Stripe Checkout for a credit pack (pay as you go) or a monthly plan; answers the URL the user pays at

billing.checkoutsettings:writeneeds AI accesscgenius billing buy
Body (BillingCheckoutRequest)
FieldTypeNotes
kind *"pack" | "plan"
itemId *stringA pack or plan id from billing.get, for example pack_100 or pro
returnUrlstring (uri)Where Stripe returns (an allowed https origin of ContentGenius); default the Credits & Billing page
Responses: 200 BillingCheckout400 ErrorEnvelope401 ErrorEnvelope403 ErrorEnvelope409413 ErrorEnvelope429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
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":"…"}'
POST/api/v1/billing/portal

Open the Stripe customer portal (change or cancel a plan, invoices, card)

billing.portalsettings:writeneeds AI accesscgenius billing portal
Body (BillingPortalRequest)
FieldTypeNotes
returnUrlstring (uri)Where Stripe returns (an allowed https origin of ContentGenius); default the Credits & Billing page
Responses: 200 BillingPortal400 ErrorEnvelope401 ErrorEnvelope403 ErrorEnvelope409413 ErrorEnvelope429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
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

POST/api/v1/blogs/v1/jobs

Write a blog with the v1 engine

blogs.v1.createcontent:writejobs:writestarts a Job (202)Idempotency-Keyneeds AI accessneeds a Workspacecgenius blog create
Body (CreateBlogV1Request)
FieldTypeNotes
assistant_id *string
topic *string
blogSize *"single" | "small" | "medium" | "big" | "huge"
Responses: 202 JobAccepted400 ErrorEnvelope401 ErrorEnvelope403 ErrorEnvelope409 ErrorEnvelope413 ErrorEnvelope429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
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"}'
GET/api/v1/blogs/v1/jobs/{id}

Read a v1 blog Job

blogs.v1.getcontent:readneeds a Workspacecgenius blog get
Path parameters
FieldTypeNotes
id *string
Responses: 200 JobEnvelope400 ErrorEnvelope401 ErrorEnvelope403 ErrorEnvelope404429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
curl -sS -X GET "https://app.cgenius.app/api/v1/blogs/v1/jobs/<id>" \
  -H "Authorization: Bearer $CGENIUS_API_TOKEN"
POST/api/v1/blogs/v2/tasks

Write a blog with the v2 engine

blogs.v2.createcontent:writejobs:writestarts a Job (202)Idempotency-Keyneeds AI accessneeds a Workspacecgenius blog create
Body (CreateBlogV2Request)
FieldTypeNotes
requestData *object
requestData.topic *string
requestData.wordCount *integer
requestData.blogSize *"single" | "small" | "medium" | "big" | "huge"
requestData.assistantId *string
Responses: 202 JobAccepted400 ErrorEnvelope401 ErrorEnvelope403 ErrorEnvelope409 ErrorEnvelope413 ErrorEnvelope429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
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":"…"}}'
GET/api/v1/blogs/v2/tasks/{id}

Read a v2 blog task and its Job

blogs.v2.getcontent:readneeds a Workspacecgenius blog get
Path parameters
FieldTypeNotes
id *string
Responses: 200 JobEnvelope400 ErrorEnvelope401 ErrorEnvelope403 ErrorEnvelope404429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
curl -sS -X GET "https://app.cgenius.app/api/v1/blogs/v2/tasks/<id>" \
  -H "Authorization: Bearer $CGENIUS_API_TOKEN"
POST/api/v1/blogs/v2/tasks/{id}/resume

Resume a failed v2 blog task

blogs.v2.resumecontent:writejobs:writestarts a Job (202)needs AI accessneeds a Workspacecgenius blog resume
Path parameters
FieldTypeNotes
id *string
Responses: 200 JobEnvelope400 ErrorEnvelope401 ErrorEnvelope403 ErrorEnvelope404409429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
curl -sS -X POST "https://app.cgenius.app/api/v1/blogs/v2/tasks/<id>/resume" \
  -H "Authorization: Bearer $CGENIUS_API_TOKEN"
POST/api/v1/blogs/v3/pipelines

Write a blog with the v3 engine (research, outline, sections, assembly)

blogs.v3.createcontent:writejobs:writestarts a Job (202)Idempotency-Keyneeds AI accessneeds a Workspacecgenius blog create
Body (CreateBlogV3Request)
FieldTypeNotes
requestData *object
requestData.topic *string
requestData.titlestring
requestData.keywordsstring | string[]
requestData.tonestring
requestData.wordCountinteger
requestData.blogSizestring
requestData.includeFAQboolean
requestData.brandVoiceany
requestData.templateIdstring
agentConfiguration *object
agentConfiguration.defaultAgentId *string
agentConfiguration.researchAgentIdstring
agentConfiguration.outlineAgentIdstring
agentConfiguration.writingAgentIdstring
Responses: 202 JobAccepted400 ErrorEnvelope401 ErrorEnvelope403 ErrorEnvelope409 ErrorEnvelope413 ErrorEnvelope429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
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":"…"}}'
GET/api/v1/blogs/v3/pipelines/{id}

Read a v3 blog pipeline and its Job

blogs.v3.getcontent:readneeds a Workspacecgenius blog get
Path parameters
FieldTypeNotes
id *string
Responses: 200 JobEnvelope400 ErrorEnvelope401 ErrorEnvelope403 ErrorEnvelope404429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
curl -sS -X GET "https://app.cgenius.app/api/v1/blogs/v3/pipelines/<id>" \
  -H "Authorization: Bearer $CGENIUS_API_TOKEN"
POST/api/v1/blogs/v3/pipelines/{id}/resume

Resume a failed v3 blog from its resume point

blogs.v3.resumecontent:writejobs:writestarts a Job (202)needs AI accessneeds a Workspacecgenius blog resume
Path parameters
FieldTypeNotes
id *string
Responses: 200 JobEnvelope400 ErrorEnvelope401 ErrorEnvelope403 ErrorEnvelope404409429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
curl -sS -X POST "https://app.cgenius.app/api/v1/blogs/v3/pipelines/<id>/resume" \
  -H "Authorization: Bearer $CGENIUS_API_TOKEN"
POST/api/v1/blogs/v3/pipelines/{id}/sections/{index}/regenerate

Regenerate one section of a completed v3 blog (then reassemble)

blogs.v3.regenerateSectioncontent:writejobs:writestarts a Job (202)Idempotency-Keyneeds AI accessneeds a Workspacecgenius blog regenerate-section
Path parameters
FieldTypeNotes
id *string
index *integer
Responses: 202 JobAccepted400 ErrorEnvelope401 ErrorEnvelope403 ErrorEnvelope404409429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
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

DELETE/api/v1/connections/buffer

Remove the stored Buffer API key

connections.buffer.disconnectconnections:managecgenius buffer disconnect
Responses: 200 BufferConnection400 ErrorEnvelope401 ErrorEnvelope403 ErrorEnvelope429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
curl -sS -X DELETE "https://app.cgenius.app/api/v1/connections/buffer" \
  -H "Authorization: Bearer $CGENIUS_API_TOKEN"
GET/api/v1/connections/buffer

The caller's Buffer connection, checked with Buffer

connections.buffer.getpublish:readcgenius buffer status
Responses: 200 BufferConnection400 ErrorEnvelope401 ErrorEnvelope403 ErrorEnvelope429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
curl -sS -X GET "https://app.cgenius.app/api/v1/connections/buffer" \
  -H "Authorization: Bearer $CGENIUS_API_TOKEN"
PUT/api/v1/connections/buffer

Connect a Buffer account with a Buffer personal API key (verified with Buffer, then stored encrypted)

connections.buffer.connectconnections:managecgenius buffer connect
Body (ConnectBufferRequest)
FieldTypeNotes
apiKey *stringBuffer › Settings › API
Responses: 200 BufferConnection400 ErrorEnvelope401 ErrorEnvelope403 ErrorEnvelope413 ErrorEnvelope429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
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":"…"}'
GET/api/v1/connections/buffer/channels

The channels of the caller's Buffer account

connections.buffer.channelspublish:readcgenius buffer channels
Responses: 200 BufferChannels400 ErrorEnvelope401 ErrorEnvelope403 ErrorEnvelope409429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
curl -sS -X GET "https://app.cgenius.app/api/v1/connections/buffer/channels" \
  -H "Authorization: Bearer $CGENIUS_API_TOKEN"

contentItems

GET/api/v1/content

List your saved content, newest first

contentItems.listcontent:readcgenius content list
Query parameters
FieldTypeNotes
limitintegerPage size, 1 to 100
cursorstringOpaque cursor from the previous page
typestringOnly this content type, for example social_post
Responses: 200 ContentPage400 ErrorEnvelope401 ErrorEnvelope403 ErrorEnvelope429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
curl -sS -X GET "https://app.cgenius.app/api/v1/content" \
  -H "Authorization: Bearer $CGENIUS_API_TOKEN"
GET/api/v1/content/{id}

Read one of your saved content records: its body, fields and send history

contentItems.getcontent:readcgenius content get
Path parameters
FieldTypeNotes
id *string
Responses: 200 ContentItemEnvelope400 ErrorEnvelope401 ErrorEnvelope403 ErrorEnvelope404429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
curl -sS -X GET "https://app.cgenius.app/api/v1/content/<id>" \
  -H "Authorization: Bearer $CGENIUS_API_TOKEN"
POST/api/v1/content/{id}/send

Send saved content to one of your sites (a publishing endpoint) and record the send

contentItems.sendpublish:writeIdempotency-Keycgenius content send
Path parameters
FieldTypeNotes
id *string
Body (SendContentRequest)
FieldTypeNotes
endpointId *stringFrom integrationEndpoints.list
optionsobject
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.includeFieldsbooleanFull format: include the type's own fields
Responses: 200 SendContentResult400 ErrorEnvelope401 ErrorEnvelope403 ErrorEnvelope404409413 ErrorEnvelope429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
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

POST/api/v1/generate/emails

Write an email (email Job)

generate.emailcontent:writejobs:writestarts a Job (202)Idempotency-Keyneeds AI accessneeds a Workspacecgenius email create
Body (GenerateEmailRequest)
FieldTypeNotes
assistantId *stringEpsimoAgents assistant that writes the email
recipient *stringWho it is for, for example "a prospect who downloaded our guide"
subject *string
contextstringWhat the email must say or achieve
tonestringFor example "warm" or "formal"
length"100" | "200" | "400"About how many words (default 200)
brandVoiceIdstringOne of your brand voices; the writing follows it
savebooleanSave the result to your content (default true); `result.contentId` names the record
Responses: 202 JobAccepted400 ErrorEnvelope401 ErrorEnvelope403 ErrorEnvelope409 ErrorEnvelope413 ErrorEnvelope422429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
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":"…"}'
POST/api/v1/generate/offer

Generate an offer (HTML and PDF) with the offer pipelines

generate.offercontent:writejobs:writestarts a Job (202)Idempotency-Keyneeds AI accessneeds a Workspacecgenius offer create
Body (GenerateOfferRequest)
FieldTypeNotes
variant *"batch" | "basic" | "zero" | "mid" | "full"batch: one section per subject (offer_batch); the others: the new-batch pipeline variants
client_name *string
subjectsstring[]
offerRecord *any
assistantsIdany[] | objectbatch: the assistant per subject (array or map); other variants: an object, `{assistantsId: "<assistant id>"}` for mid and full
Responses: 202 JobAccepted400 ErrorEnvelope401 ErrorEnvelope403 ErrorEnvelope409 ErrorEnvelope413 ErrorEnvelope429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
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":{}}'
POST/api/v1/generate/presentations

Write a slide deck (presentation Job)

generate.presentationcontent:writejobs:writestarts a Job (202)Idempotency-Keyneeds AI accessneeds a Workspacecgenius presentation create
Body (GeneratePresentationRequest)
FieldTypeNotes
assistantId *stringEpsimoAgents assistant that writes the slides
topic *string
audiencestringWho the presentation is for
slideCount *integer
style"professional" | "creative" | "minimal" | "bold"Default professional
brandVoiceIdstringOne of your brand voices; the writing follows it
savebooleanSave the result to your content (default true); `result.contentId` names the record
Responses: 202 JobAccepted400 ErrorEnvelope401 ErrorEnvelope403 ErrorEnvelope409 ErrorEnvelope413 ErrorEnvelope422429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
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}'
POST/api/v1/generate/research

Research the web and write a cited report (research Job)

generate.researchcontent:writejobs:writestarts a Job (202)Idempotency-Keyneeds AI accessneeds a Workspacecgenius research create
Body (GenerateResearchRequest)
FieldTypeNotes
assistantId *stringEpsimoAgents assistant that plans and researches; give it a web search tool (Tavily or DuckDuckGo)
writerAssistantIdstringAssistant that writes the report; default `assistantId`
query *stringThe research task
reportType"research_report" | "outline_report" | "resource_report" | "custom_report"Default research_report (a summary report of about 1,200 words)
customPromptstringHow 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
languagestringFor example "French"; default: the language of the query
domainsstring[]Only search and cite these sites, for example ["europa.eu"]
questionCountintegerSearch questions to plan (default 4); the query itself is researched too
brandVoiceIdstringOne of your brand voices; the writing follows it
savebooleanSave the result to your content (default true); `result.contentId` names the record
Responses: 202 JobAccepted400 ErrorEnvelope401 ErrorEnvelope403 ErrorEnvelope409 ErrorEnvelope413 ErrorEnvelope422429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
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":"…"}'
POST/api/v1/generate/social-posts

Write a social post sized for its platform, with an optional illustration (social_post Job)

generate.socialPostcontent:writejobs:writestarts a Job (202)Idempotency-Keyneeds AI accessneeds a Workspacecgenius social create
Body (GenerateSocialPostRequest)
FieldTypeNotes
assistantId *stringEpsimoAgents assistant that writes the post
topic *stringWhat the post is about
platform *"linkedin" | "twitter" | "facebook" | "instagram" | "threads"
length"short" | "medium" | "long"Default medium; `social.channels.list` gives the character range of each length
tonestringFor example "friendly" or "expert"
hashtagsstringHashtags to use
callToActionstringWhat the reader should do
brandVoiceIdstringOne of your brand voices; the writing follows it
illustrationbooleanAlso draw an illustration (needs `imageAssistantId`)
imageAssistantIdstringAn assistant with the DALL-E tool, for the illustration
imageIdeastringWhat the illustration should show; default: drawn from the post
savebooleanSave the result to your content (default true); `result.contentId` names the record
Responses: 202 JobAccepted400 ErrorEnvelope401 ErrorEnvelope403 ErrorEnvelope409 ErrorEnvelope413 ErrorEnvelope422429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
curl -sS -X POST "https://app.cgenius.app/api/v1/generate/social-posts" \
  -H "Authorization: Bearer $CGENIUS_API_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"assistantId":"…","topic":"…","platform":"linkedin"}'
POST/api/v1/generate/video-ads

Make a short video ad from a content idea and render it in social formats (video_ad Job)

generate.videoAdcontent:writejobs:writestarts a Job (202)Idempotency-Keyneeds AI accessneeds a Workspacecgenius video ad
Body (GenerateVideoAdRequest)
FieldTypeNotes
assistantIdstringEpsimoAgents assistant that writes the script and the caption (not needed with `script`)
ideationIdstringOne of your saved ideas (from ideation.leadIdeas or ideation.analyze); it is linked to the saved ad
ideaobjectThe idea itself, instead of `ideationId` (for example a suggestion from ideation.leadIdeas)
idea.topic *string
idea.descriptionstring
idea.targetAudiencestring
idea.anglesstring[]
idea.keywordsstring[]
formats"9:16" | "1:1" | "4:5" | "16:9"[]One render per format; default ["9:16"] (Reels, TikTok, Shorts, Stories)
lengthSecondsintegerAbout how long the ad lasts: 15, 30, 45, 60 (default 30)
platformstringThe network the caption is written for (default instagram)
urlstringShown on the call-to-action scene, for example "acme.com/demo"
brandobjectColours as #rrggbb, and the name or logo shown in a corner
brand.namestring
brand.primarystring
brand.accentstring
brand.backgroundstring
brand.textstring
brand.logoUrlstring
brandVoiceIdstringOne of your brand voices; the writing follows it
languagestring
imagesbooleanDraw a photo behind up to three scenes (needs `imageAssistantId`, an assistant with the DALL-E tool)
imageAssistantIdstring
musicUrlstringBackground music (an https audio file you may use); it loops and fades out at the end
musicVolumenumberMusic volume, 0 to 1 (default 0.35)
scriptobjectA 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.captionstring
script.hashtagsstring[]
renderbooleanRender the videos (default true); false stops after the script so it can be checked
savebooleanSave the result to your content (default true); `result.contentId` names the record
Responses: 202 JobAccepted400 ErrorEnvelope401 ErrorEnvelope403 ErrorEnvelope409 ErrorEnvelope413 ErrorEnvelope422429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
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":[{}]}}'
GET/api/v1/generate/video-ads/{id}

Read a video ad Job; a completed one has a 7-day link on each video

generate.videoAd.getcontent:readneeds a Workspacecgenius video ad get
Path parameters
FieldTypeNotes
id *string
Responses: 200 JobEnvelope400 ErrorEnvelope401 ErrorEnvelope403 ErrorEnvelope404429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
curl -sS -X GET "https://app.cgenius.app/api/v1/generate/video-ads/<id>" \
  -H "Authorization: Bearer $CGENIUS_API_TOKEN"

health

GET/api/v1/health

Service health

health.getpublic
Responses: 200 Health400 ErrorEnvelope500 ErrorEnvelope
curl
curl -sS -X GET "https://app.cgenius.app/api/v1/health"

ideation

POST/api/v1/ideation/analyze

Suggest content ideas from Lead App leads (content_analysis Job)

ideation.analyzecontent:writejobs:writestarts a Job (202)Idempotency-Keyneeds AI access + Lead Appneeds a Workspacecgenius ideas analyze
Body (AnalyzeLeadsRequest)
FieldTypeNotes
leadIds *string[]
assistantIdstringEpsimoAgents assistant that writes the ideas. Default: the configured content analysis assistant
Responses: 202 JobAccepted400 ErrorEnvelope401 ErrorEnvelope403 ErrorEnvelope409 ErrorEnvelope413 ErrorEnvelope429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
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":["…"]}'
POST/api/v1/ideation/lead-ideas

Content ideas from a LeadGenius company's leads, written by an agent (lead_ideation Job)

ideation.leadIdeas.createcontent:writejobs:writestarts a Job (202)Idempotency-Keyneeds AI accessneeds a Workspacecgenius ideas from-leads
Body (LeadIdeasRequest)
FieldTypeNotes
assistantId *stringThe EpsimoAgents agent that writes the ideas (see assistants.list)
companyId *stringA 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
leadIdsstring[]Hand-picked leads; without them, the newest leads of the company
filtersobject
filters.minScorenumber
filters.statusesstring[]
filters.keywordstring
filters.sincestringISO date: leads created on or after it
maxLeadsinteger
ideaCountinteger
focusstringWhat the company offers or wants to be known for
Responses: 202 JobAccepted400 ErrorEnvelope401 ErrorEnvelope403409 ErrorEnvelope413 ErrorEnvelope429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
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

GET/api/v1/publish/endpoints

List your publishing endpoints (Settings › Integrations), without their tokens

integrationEndpoints.listpublish:readcgenius endpoints list
Responses: 200 IntegrationEndpoints400 ErrorEnvelope401 ErrorEnvelope403 ErrorEnvelope429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
curl -sS -X GET "https://app.cgenius.app/api/v1/publish/endpoints" \
  -H "Authorization: Bearer $CGENIUS_API_TOKEN"

jobs

GET/api/v1/jobs

List the caller's Jobs (offers, content analysis, PDF, blog v1), newest first

jobs.listjobs:readneeds a Workspacecgenius job list
Query parameters
FieldTypeNotes
limitintegerPage size, 1 to 100
cursorstringOpaque 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"
Responses: 200 JobPage400 ErrorEnvelope401 ErrorEnvelope403 ErrorEnvelope429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
curl -sS -X GET "https://app.cgenius.app/api/v1/jobs" \
  -H "Authorization: Bearer $CGENIUS_API_TOKEN"
GET/api/v1/jobs/{id}

Read a Job; also advances it a little when nothing else is (no browser needed)

jobs.getjobs:readneeds a Workspacecgenius job status
Path parameters
FieldTypeNotes
id *string
Responses: 200 JobEnvelope400 ErrorEnvelope401 ErrorEnvelope403 ErrorEnvelope404429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
curl -sS -X GET "https://app.cgenius.app/api/v1/jobs/<id>" \
  -H "Authorization: Bearer $CGENIUS_API_TOKEN"
POST/api/v1/jobs/{id}/advance

Run the next Steps of a Job within one request (JSON, or SSE with Accept: text/event-stream)

jobs.advancejobs:writeneeds a Workspacecgenius job wait
Path parameters
FieldTypeNotes
id *string
Responses: 200 JobEnvelope400 ErrorEnvelope401 ErrorEnvelope403 ErrorEnvelope404429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
curl -sS -X POST "https://app.cgenius.app/api/v1/jobs/<id>/advance" \
  -H "Authorization: Bearer $CGENIUS_API_TOKEN"
POST/api/v1/jobs/{id}/cancel

Cancel a PENDING or RUNNING Job

jobs.canceljobs:writeneeds a Workspacecgenius job cancel
Path parameters
FieldTypeNotes
id *string
Responses: 200 JobEnvelope400 ErrorEnvelope401 ErrorEnvelope403 ErrorEnvelope404409429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
curl -sS -X POST "https://app.cgenius.app/api/v1/jobs/<id>/cancel" \
  -H "Authorization: Bearer $CGENIUS_API_TOKEN"
POST/api/v1/jobs/{id}/resume

Resume a FAILED Job from its failed Step

jobs.resumejobs:writeneeds a Workspacecgenius job resume
Path parameters
FieldTypeNotes
id *string
Responses: 200 JobEnvelope400 ErrorEnvelope401 ErrorEnvelope403 ErrorEnvelope404409429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
curl -sS -X POST "https://app.cgenius.app/api/v1/jobs/<id>/resume" \
  -H "Authorization: Bearer $CGENIUS_API_TOKEN"

leadApp

GET/api/v1/lead-app/companies

The LeadGenius companies the caller owns or is an active member of, and the one lead ideation uses

leadApp.companies.listcontent:readcgenius lead-app companies
Responses: 200 LeadAppCompanies400 ErrorEnvelope401 ErrorEnvelope403 ErrorEnvelope429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
curl -sS -X GET "https://app.cgenius.app/api/v1/lead-app/companies" \
  -H "Authorization: Bearer $CGENIUS_API_TOKEN"

me

GET/api/v1/me

The caller: identity, token Scopes and AI access, Workspaces, limits and credits

me.getsettings:readcgenius me
Responses: 200 Me400 ErrorEnvelope401 ErrorEnvelope403 ErrorEnvelope429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
curl -sS -X GET "https://app.cgenius.app/api/v1/me" \
  -H "Authorization: Bearer $CGENIUS_API_TOKEN"

media

POST/api/v1/media/generated-images

Copy an image an EpsimoAgents agent generated (its temporary URL) to the publish bucket

media.generatedImages.importmedia:writecgenius media import-generated
Body (ImportGeneratedImageRequest)
FieldTypeNotes
url *stringhttps URL on the EpsimoAgents host under /generated-images/
Responses: 201 StoredImage400 ErrorEnvelope401 ErrorEnvelope403 ErrorEnvelope404413 ErrorEnvelope429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
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":"…"}'
GET/api/v1/media/images

The bytes of an image stored in the publish bucket, by its s3:// path

media.images.getmedia:readcgenius media get
Query parameters
FieldTypeNotes
path *string`s3://bucket/pdfFile/...`, as returned by media.generatedImages.import
Responses: 200400 ErrorEnvelope401 ErrorEnvelope403 ErrorEnvelope404429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
curl -sS -X GET "https://app.cgenius.app/api/v1/media/images" \
  -H "Authorization: Bearer $CGENIUS_API_TOKEN"

openapi

GET/api/v1/openapi.json

The OpenAPI 3.1 document of this API

openapi.getpublic
Responses: 200 object400 ErrorEnvelope500 ErrorEnvelope
curl
curl -sS -X GET "https://app.cgenius.app/api/v1/openapi.json"

projects

GET/api/v1/projects

The caller's EpsimoAgents projects

projects.listcontent:readneeds AI accesscgenius projects list
Responses: 200 ProjectList400 ErrorEnvelope401 ErrorEnvelope403 ErrorEnvelope429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
curl -sS -X GET "https://app.cgenius.app/api/v1/projects" \
  -H "Authorization: Bearer $CGENIUS_API_TOKEN"

publish

POST/api/v1/publish/buffer

Send a post to Buffer channels: publish now, queue, schedule or save as a draft

publish.bufferpublish:writeIdempotency-Keycgenius buffer send
Body (PublishBufferRequest)
FieldTypeNotes
text *string
channelIds *string[]
mode *"shareNow" | "addToQueue" | "customScheduled" | "draft"shareNow, addToQueue, customScheduled (needs dueAt), draft
dueAtstring (date-time)
imageUrlstringA 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
videoUrlstringA 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
contentIdstringGeneratedContent record; the posts are recorded on it
versionsobjectChannel id → its own text (see social.fit), or a thread on X, Threads, Bluesky and Mastodon
Responses: 200 PublishBufferResult400 ErrorEnvelope401 ErrorEnvelope403 ErrorEnvelope409413 ErrorEnvelope429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
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

DELETE/api/v1/settings/{key}

Remove one of the caller's settings

settings.deletesettings:writecgenius settings unset
Path parameters
FieldTypeNotes
key *"epsimoagents" | "integrations" | "ideation"epsimoagents: publish module preferences; integrations: publishing endpoints; ideation: lead ideation choices
Responses: 204400 ErrorEnvelope401 ErrorEnvelope403 ErrorEnvelope429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
curl -sS -X DELETE "https://app.cgenius.app/api/v1/settings/<key>" \
  -H "Authorization: Bearer $CGENIUS_API_TOKEN"
GET/api/v1/settings/{key}

One of the caller's settings; `data` is null when nothing is saved

settings.getsettings:readcgenius settings get
Path parameters
FieldTypeNotes
key *"epsimoagents" | "integrations" | "ideation"epsimoagents: publish module preferences; integrations: publishing endpoints; ideation: lead ideation choices
Responses: 200 Setting400 ErrorEnvelope401 ErrorEnvelope403 ErrorEnvelope429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
curl -sS -X GET "https://app.cgenius.app/api/v1/settings/<key>" \
  -H "Authorization: Bearer $CGENIUS_API_TOKEN"
PUT/api/v1/settings/{key}

Replace one of the caller's settings

settings.updatesettings:writecgenius settings set
Path parameters
FieldTypeNotes
key *"epsimoagents" | "integrations" | "ideation"epsimoagents: publish module preferences; integrations: publishing endpoints; ideation: lead ideation choices
Body (UpdateSettingRequest)
FieldTypeNotes
data *object
Responses: 200 SettingSaved400 ErrorEnvelope401 ErrorEnvelope403 ErrorEnvelope413 ErrorEnvelope429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
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

GET/api/v1/social/channels

Size and structure rules of each social channel (length, structure, hashtags, threads, image size)

social.channels.listcontent:readcgenius social channels
Responses: 200 ChannelProfiles400 ErrorEnvelope401 ErrorEnvelope403 ErrorEnvelope429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
curl -sS -X GET "https://app.cgenius.app/api/v1/social/channels" \
  -H "Authorization: Bearer $CGENIUS_API_TOKEN"
POST/api/v1/social/fit

Check a post against a channel and get a version that fits it (and a thread where the channel has threads)

social.fitcontent:readcgenius social fit
Body (FitSocialPostRequest)
FieldTypeNotes
text *string
channel *stringlinkedin, twitter (or x), facebook, instagram, threads, or another Buffer service
Responses: 200 SocialFit400 ErrorEnvelope401 ErrorEnvelope403 ErrorEnvelope413 ErrorEnvelope429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
curl -sS -X POST "https://app.cgenius.app/api/v1/social/fit" \
  -H "Authorization: Bearer $CGENIUS_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"text":"…","channel":"…"}'

tokens

GET/api/v1/tokens

List the caller's API tokens

tokens.listtokens:managecgenius token list
Responses: 200 TokenList400 ErrorEnvelope401 ErrorEnvelope403 ErrorEnvelope429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
curl -sS -X GET "https://app.cgenius.app/api/v1/tokens" \
  -H "Authorization: Bearer $CGENIUS_API_TOKEN"
POST/api/v1/tokens

Create an API token (without AI access; use the approval flow for AI access)

tokens.createtokens:manageIdempotency-Keycgenius token create
Body (CreateTokenRequest)
FieldTypeNotes
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
expiresAtstring (date-time)Default 90 days, at most 365 days away
Responses: 201 CreatedToken400 ErrorEnvelope401 ErrorEnvelope403 ErrorEnvelope409 ErrorEnvelope413 ErrorEnvelope429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
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"}'
DELETE/api/v1/tokens/{id}

Revoke an API token and every token it created

tokens.deletetokens:managecgenius token revoke
Path parameters
FieldTypeNotes
id *string
Responses: 200 RevokedTokens400 ErrorEnvelope401 ErrorEnvelope403 ErrorEnvelope404429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
curl -sS -X DELETE "https://app.cgenius.app/api/v1/tokens/<id>" \
  -H "Authorization: Bearer $CGENIUS_API_TOKEN"
GET/api/v1/tokens/{id}

Read one API token

tokens.gettokens:managecgenius token get
Path parameters
FieldTypeNotes
id *string
Responses: 200 ApiToken400 ErrorEnvelope401 ErrorEnvelope403 ErrorEnvelope404429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
curl -sS -X GET "https://app.cgenius.app/api/v1/tokens/<id>" \
  -H "Authorization: Bearer $CGENIUS_API_TOKEN"
PATCH/api/v1/tokens/{id}

Rename an API token

tokens.updatetokens:managecgenius token rename
Path parameters
FieldTypeNotes
id *string
Body (UpdateTokenRequest)
FieldTypeNotes
name *string
Responses: 200 ApiToken400 ErrorEnvelope401 ErrorEnvelope403 ErrorEnvelope404413 ErrorEnvelope429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
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":"…"}'
DELETE/api/v1/tokens/{id}/ai-access

Remove AI access from an API token without revoking it

tokens.removeAiAccesstokens:managecgenius token ai-access remove
Path parameters
FieldTypeNotes
id *string
Responses: 204400 ErrorEnvelope401 ErrorEnvelope403 ErrorEnvelope404429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
curl -sS -X DELETE "https://app.cgenius.app/api/v1/tokens/<id>/ai-access" \
  -H "Authorization: Bearer $CGENIUS_API_TOKEN"
POST/api/v1/tokens/approvals

Start a token approval in the signed-in browser (the way to create a token with AI access)

tokens.approvals.createtokens:manage
Body (CreateTokenApprovalRequest)
FieldTypeNotes
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"[]
expiresAtstring (date-time)Default 90 days, at most 365 days away
aiAccessbooleanAsk for AI access (a Delegated_Credential); needs a Cognito sign-in
via"ui" | "cli"
cliSessionIdstringRequired when via is cli
Responses: 201 CreatedTokenApproval400 ErrorEnvelope401 ErrorEnvelope403410413 ErrorEnvelope429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
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"}'
POST/api/v1/tokens/approvals/{id}/complete

Finish an approval without AI access and create the token

tokens.approvals.completetokens:manage
Path parameters
FieldTypeNotes
id *string
Responses: 200 TokenApprovalResult400 ErrorEnvelope401 ErrorEnvelope403404409410429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
curl -sS -X POST "https://app.cgenius.app/api/v1/tokens/approvals/<id>/complete" \
  -H "Authorization: Bearer $CGENIUS_API_TOKEN"
POST/api/v1/tokens/approvals/{id}/result

The token an approval created; the secret is returned only on the first call

tokens.approvals.resulttokens:manage
Path parameters
FieldTypeNotes
id *string
Responses: 200 TokenApprovalResult400 ErrorEnvelope401 ErrorEnvelope403404409429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
curl -sS -X POST "https://app.cgenius.app/api/v1/tokens/approvals/<id>/result" \
  -H "Authorization: Bearer $CGENIUS_API_TOKEN"
POST/api/v1/tokens/approvals/{id}/session

Grant AI access from the signed-in browser session (no second sign-in) and create the token

tokens.approvals.sessiontokens:manage
Path parameters
FieldTypeNotes
id *string
Body (SessionDelegationRequest)
FieldTypeNotes
refreshToken *stringThe browser session's Cognito refresh token
Responses: 200 TokenApprovalResult400401 ErrorEnvelope403404409413 ErrorEnvelope429 ErrorEnvelope500 ErrorEnvelope503 ErrorEnvelope
curl
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":"…"}'