aeyho

API reference

Every v1 route: its method, path, scope, request and answer, with a curl example. Made from the same contract the API runs on.

View as Markdown

On this page

API version 1.0.0. Base URL: https://www.aeyho.com/api/v1. The full OpenAPI 3.1 document is at /openapi.json.

Every call sends Authorization: Bearer <key> (see keys). The scope is what the key needs. Calls that run on their own answer 202 at once: poll the object or use webhooks. Every error is described in errors.

Account

GET/account

Your plan and credit balance.

  • Operation: getAccount
  • Scope: read
  • Answers: 200 with Account
Answer: Account
FieldTypeRequiredAbout
planstringyes
creditsobjectyes
livemodebooleanyes
curl https://www.aeyho.com/api/v1/account \
  -H "Authorization: Bearer $AEYHO_KEY"

Brands

GET/brands

Your brands.

  • Operation: listBrands
  • Scope: read
  • Answers: 200 with BrandList
  • Query: limit, cursor (see pagination)
Answer: BrandList
FieldTypeRequiredAbout
dataBrand[]yes
nextCursorstring | nullyes
curl https://www.aeyho.com/api/v1/brands \
  -H "Authorization: Bearer $AEYHO_KEY"

POST/brands

Make a brand, from a link or from its details.

  • Operation: createBrand
  • Scope: make
  • Answers: 201 with Brand
  • Takes an Idempotency-Key header

Request body: CreateBrand

FieldTypeRequiredAbout
linkstringnoA website, Instagram or YouTube link: aeyho reads it and fills in the brand.
namestringno
aboutstringno
websitestringno
instagramstringno
kind"business" | "personal" | "product"no
postsPerWeekintegerno
Answer: Brand
FieldTypeRequiredAbout
idstringyesThe brand's id.
namestringyes
kindstringyes
aboutstringyes
websitestringyes
instagramstringyes
audiencestringyes
offerstringyes
ctastringyes
tonestring[]yes
timezonestringyes
createdAtstringyesAn ISO 8601 time, UTC.
updatedAtstringyesAn ISO 8601 time, UTC.
curl -X POST https://www.aeyho.com/api/v1/brands \
  -H "Authorization: Bearer $AEYHO_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"link":"https://example.com"}'

GET/brands/{brandId}

A brand.

  • Operation: getBrand
  • Scope: read
  • Answers: 200 with Brand
Answer: Brand
FieldTypeRequiredAbout
idstringyesThe brand's id.
namestringyes
kindstringyes
aboutstringyes
websitestringyes
instagramstringyes
audiencestringyes
offerstringyes
ctastringyes
tonestring[]yes
timezonestringyes
createdAtstringyesAn ISO 8601 time, UTC.
updatedAtstringyesAn ISO 8601 time, UTC.
curl https://www.aeyho.com/api/v1/brands/brand_123 \
  -H "Authorization: Bearer $AEYHO_KEY"

PATCH/brands/{brandId}

Change a brand's details.

  • Operation: updateBrand
  • Scope: make
  • Answers: 200 with Brand

Request body: UpdateBrand

FieldTypeRequiredAbout
namestringno
aboutstringno
audiencestringno
offerstringno
ctastringno
tonestring[]no
websitestringno
instagramstringno
Answer: Brand
FieldTypeRequiredAbout
idstringyesThe brand's id.
namestringyes
kindstringyes
aboutstringyes
websitestringyes
instagramstringyes
audiencestringyes
offerstringyes
ctastringyes
tonestring[]yes
timezonestringyes
createdAtstringyesAn ISO 8601 time, UTC.
updatedAtstringyesAn ISO 8601 time, UTC.
curl -X PATCH https://www.aeyho.com/api/v1/brands/brand_123 \
  -H "Authorization: Bearer $AEYHO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"..."}'

POST/brands/{brandId}/research

Research the brand's niche (runs on its own; uses credits).

  • Operation: startResearch
  • Scope: make
  • Answers: 202 with ResearchStarted
  • Runs on its own: poll the object or use webhooks
  • Takes an Idempotency-Key header
Answer: ResearchStarted
FieldTypeRequiredAbout
statusstringyes
curl -X POST https://www.aeyho.com/api/v1/brands/brand_123/research \
  -H "Authorization: Bearer $AEYHO_KEY" \
  -H "Idempotency-Key: $(uuidgen)"

Taste

GET/brands/{brandId}/taste

What the brand likes.

  • Operation: listTaste
  • Scope: read
  • Answers: 200 with TasteList
Answer: TasteList
FieldTypeRequiredAbout
dataTasteRule[]yes
nextCursorstring | nullyes
curl https://www.aeyho.com/api/v1/brands/brand_123/taste \
  -H "Authorization: Bearer $AEYHO_KEY"

POST/brands/{brandId}/taste

Add a rule the brand keeps.

  • Operation: addTaste
  • Scope: make
  • Answers: 201 with TasteRule
  • Takes an Idempotency-Key header

Request body: NewTasteRule

FieldTypeRequiredAbout
rulestringyes
about"look" | "words" | "pace" | "music" | "voice" | "captions" | "structure"yes
Answer: TasteRule
FieldTypeRequiredAbout
idstringyes
rulestringyes
about"look" | "words" | "pace" | "music" | "voice" | "captions" | "structure"yes
state"proposed" | "kept" | "dropped"yes
fromstring[]yesThe comments it was learned from.
createdAtstringyesAn ISO 8601 time, UTC.
curl -X POST https://www.aeyho.com/api/v1/brands/brand_123/taste \
  -H "Authorization: Bearer $AEYHO_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"rule":"Captions stay on one line","about":"look"}'

PATCH/taste/{ruleId}

Keep, drop or reword a rule.

  • Operation: updateTaste
  • Scope: make
  • Answers: 200 with TasteRule

Request body: TastePatch

FieldTypeRequiredAbout
rulestringno
state"proposed" | "kept" | "dropped"no
Answer: TasteRule
FieldTypeRequiredAbout
idstringyes
rulestringyes
about"look" | "words" | "pace" | "music" | "voice" | "captions" | "structure"yes
state"proposed" | "kept" | "dropped"yes
fromstring[]yesThe comments it was learned from.
createdAtstringyesAn ISO 8601 time, UTC.
curl -X PATCH https://www.aeyho.com/api/v1/taste/rule_123 \
  -H "Authorization: Bearer $AEYHO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"rule":"Captions stay on one line"}'

DELETE/taste/{ruleId}

Remove a rule.

  • Operation: deleteTaste
  • Scope: make
  • Answers: 204
curl -X DELETE https://www.aeyho.com/api/v1/taste/rule_123 \
  -H "Authorization: Bearer $AEYHO_KEY"

Ideas

GET/brands/{brandId}/ideas

The brand's content plan.

  • Operation: listIdeas
  • Scope: read
  • Answers: 200 with IdeaList
  • Query: limit, cursor (see pagination)
Answer: IdeaList
FieldTypeRequiredAbout
dataIdea[]yes
nextCursorstring | nullyes
curl https://www.aeyho.com/api/v1/brands/brand_123/ideas \
  -H "Authorization: Bearer $AEYHO_KEY"

POST/brands/{brandId}/ideas

Add an idea to the plan.

  • Operation: addIdea
  • Scope: make
  • Answers: 201 with Idea
  • Takes an Idempotency-Key header

Request body: NewIdea

FieldTypeRequiredAbout
titlestringyes
anglestringno
secondsintegerno
format"reel" | "carousel"no
slidesintegerno
pillarstringno
Answer: Idea
FieldTypeRequiredAbout
idstringyes
titlestringyes
pillarstringyes
anglestringyes
secondsintegeryes
format"reel" | "carousel"yes
slidesintegerno
slotstringyesAn ISO 8601 time, UTC.
statusstringyes
reelIdstringno
curl -X POST https://www.aeyho.com/api/v1/brands/brand_123/ideas \
  -H "Authorization: Bearer $AEYHO_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"title":"Why a cache stampede happens"}'

POST/brands/{brandId}/plan

Plan the next weeks (uses credits).

  • Operation: planContent
  • Scope: make
  • Answers: 200 with PlannedIdeas
  • Takes an Idempotency-Key header

Request body: PlanRequest

FieldTypeRequiredAbout
weeksintegerno
Answer: PlannedIdeas
FieldTypeRequiredAbout
dataIdea[]yes
nextCursorstring | nullyes
curl -X POST https://www.aeyho.com/api/v1/brands/brand_123/plan \
  -H "Authorization: Bearer $AEYHO_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"weeks":2}'

Reels

POST/ideas/{ideaId}/reel

Make an idea's reel (runs on its own; uses credits).

  • Operation: makeIdeaReel
  • Scope: make
  • Answers: 202 with Reel
  • Runs on its own: poll the object or use webhooks
  • Takes an Idempotency-Key header
Answer: Reel
FieldTypeRequiredAbout
idstringyesThe reel's id (a carousel is a reel of slides).
titlestringyes
format"reel" | "carousel"yes
source"generated" | "footage" | "clips"yes
brandIdstringno
ideaIdstringno
status"draft" | "queued" | "making" | "done" | "failed"yes
progressnumberyes
versionintegernoThe newest version's number.
videoUrlstringnoA signed link to the MP4, good for an hour.
posterUrlstringno
imagesImage[]noA carousel's slides, in order.
errorstringno
createdAtstringyesAn ISO 8601 time, UTC.
updatedAtstringyesAn ISO 8601 time, UTC.
curl -X POST https://www.aeyho.com/api/v1/ideas/idea_123/reel \
  -H "Authorization: Bearer $AEYHO_KEY" \
  -H "Idempotency-Key: $(uuidgen)"

GET/reels

Your reels and carousels, newest first.

  • Operation: listReels
  • Scope: read
  • Answers: 200 with ReelList
  • Query: limit, cursor (see pagination)
Answer: ReelList
FieldTypeRequiredAbout
dataReel[]yes
nextCursorstring | nullyes
curl https://www.aeyho.com/api/v1/reels \
  -H "Authorization: Bearer $AEYHO_KEY"

POST/reels

Make a reel or carousel about something, for a brand (runs on its own; uses credits).

  • Operation: createReel
  • Scope: make
  • Answers: 202 with Reel
  • Runs on its own: poll the object or use webhooks
  • Takes an Idempotency-Key header

Request body: NewReel

FieldTypeRequiredAbout
brandIdstringyes
titlestringyesWhat the reel is about, in a line.
anglestringno
secondsintegerno
format"reel" | "carousel"no
slidesintegerno
Answer: Reel
FieldTypeRequiredAbout
idstringyesThe reel's id (a carousel is a reel of slides).
titlestringyes
format"reel" | "carousel"yes
source"generated" | "footage" | "clips"yes
brandIdstringno
ideaIdstringno
status"draft" | "queued" | "making" | "done" | "failed"yes
progressnumberyes
versionintegernoThe newest version's number.
videoUrlstringnoA signed link to the MP4, good for an hour.
posterUrlstringno
imagesImage[]noA carousel's slides, in order.
errorstringno
createdAtstringyesAn ISO 8601 time, UTC.
updatedAtstringyesAn ISO 8601 time, UTC.
curl -X POST https://www.aeyho.com/api/v1/reels \
  -H "Authorization: Bearer $AEYHO_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"brandId":"brand_123","title":"Why a cache stampede happens"}'

GET/reels/{reelId}

A reel, with links once it's made.

  • Operation: getReel
  • Scope: read
  • Answers: 200 with Reel
Answer: Reel
FieldTypeRequiredAbout
idstringyesThe reel's id (a carousel is a reel of slides).
titlestringyes
format"reel" | "carousel"yes
source"generated" | "footage" | "clips"yes
brandIdstringno
ideaIdstringno
status"draft" | "queued" | "making" | "done" | "failed"yes
progressnumberyes
versionintegernoThe newest version's number.
videoUrlstringnoA signed link to the MP4, good for an hour.
posterUrlstringno
imagesImage[]noA carousel's slides, in order.
errorstringno
createdAtstringyesAn ISO 8601 time, UTC.
updatedAtstringyesAn ISO 8601 time, UTC.
curl https://www.aeyho.com/api/v1/reels/reel_123 \
  -H "Authorization: Bearer $AEYHO_KEY"

POST/reels/{reelId}/change

Ask for a change in words (made again; uses credits).

  • Operation: changeReel
  • Scope: make
  • Answers: 202 with Reel
  • Runs on its own: poll the object or use webhooks
  • Takes an Idempotency-Key header

Request body: ChangeRequest

FieldTypeRequiredAbout
askstringyes
Answer: Reel
FieldTypeRequiredAbout
idstringyesThe reel's id (a carousel is a reel of slides).
titlestringyes
format"reel" | "carousel"yes
source"generated" | "footage" | "clips"yes
brandIdstringno
ideaIdstringno
status"draft" | "queued" | "making" | "done" | "failed"yes
progressnumberyes
versionintegernoThe newest version's number.
videoUrlstringnoA signed link to the MP4, good for an hour.
posterUrlstringno
imagesImage[]noA carousel's slides, in order.
errorstringno
createdAtstringyesAn ISO 8601 time, UTC.
updatedAtstringyesAn ISO 8601 time, UTC.
curl -X POST https://www.aeyho.com/api/v1/reels/reel_123/change \
  -H "Authorization: Bearer $AEYHO_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"ask":"Make the opening line shorter"}'

Versions

GET/reels/{reelId}/versions

Every version of a reel, oldest first.

  • Operation: listVersions
  • Scope: read
  • Answers: 200 with VersionList
  • Query: limit, cursor (see pagination)
Answer: VersionList
FieldTypeRequiredAbout
dataVersion[]yes
nextCursorstring | nullyes
curl https://www.aeyho.com/api/v1/reels/reel_123/versions \
  -H "Authorization: Bearer $AEYHO_KEY"

POST/versions/{versionId}/restore

Bring a version back, as the newest one (free).

  • Operation: restoreVersion
  • Scope: make
  • Answers: 201 with Version
  • Takes an Idempotency-Key header
Answer: Version
FieldTypeRequiredAbout
idstringyes
reelIdstringyes
nintegeryes
titlestringyes
asksstring[]yesWhat was asked for, word for word.
byobjectyes
changesVersionChange[]yes
parentstringno
restoredFromstringno
approvedbooleanno
status"queued" | "rendering" | "done" | "failed"yes
videoUrlstringno
posterUrlstringno
imagesImage[]no
openCommentsintegeryes
createdAtstringyesAn ISO 8601 time, UTC.
curl -X POST https://www.aeyho.com/api/v1/versions/version_123/restore \
  -H "Authorization: Bearer $AEYHO_KEY" \
  -H "Idempotency-Key: $(uuidgen)"

POST/versions/{versionId}/approve

Mark a version as the approved one.

  • Operation: approveVersion
  • Scope: make
  • Answers: 200 with Version
  • Takes an Idempotency-Key header
Answer: Version
FieldTypeRequiredAbout
idstringyes
reelIdstringyes
nintegeryes
titlestringyes
asksstring[]yesWhat was asked for, word for word.
byobjectyes
changesVersionChange[]yes
parentstringno
restoredFromstringno
approvedbooleanno
status"queued" | "rendering" | "done" | "failed"yes
videoUrlstringno
posterUrlstringno
imagesImage[]no
openCommentsintegeryes
createdAtstringyesAn ISO 8601 time, UTC.
curl -X POST https://www.aeyho.com/api/v1/versions/version_123/approve \
  -H "Authorization: Bearer $AEYHO_KEY" \
  -H "Idempotency-Key: $(uuidgen)"

Comments

GET/reels/{reelId}/comments

A reel's comments.

  • Operation: listComments
  • Scope: read
  • Answers: 200 with CommentList
  • Query: limit, cursor (see pagination)
Answer: CommentList
FieldTypeRequiredAbout
dataComment[]yes
nextCursorstring | nullyes
curl https://www.aeyho.com/api/v1/reels/reel_123/comments \
  -H "Authorization: Bearer $AEYHO_KEY"

POST/versions/{versionId}/comments

Pin a comment to a moment or a slide.

  • Operation: addComment
  • Scope: make
  • Answers: 201 with Comment
  • Takes an Idempotency-Key header

Request body: NewComment

FieldTypeRequiredAbout
atnumberno
slideintegerno
pointobjectno
textstringyes
drawingstringnoThe frame with marks drawn on it, as a data:image/png;base64 URL.
Answer: Comment
FieldTypeRequiredAbout
idstringyes
versionIdstringyes
reelIdstringyes
atnumbernoSeconds into the version (a video).
slideintegernoThe slide (a carousel), from 1.
pointobjectno
textstringyes
drawingUrlstringno
authorobjectyes
acceptedbooleanyesA guest's comment waits for the owner before a fix acts on it.
status"open" | "done" | "wontfix"yes
doneInstringnoThe version that fixed it.
replystringnoaeyho's answer when it couldn't fix it.
contextobjectno
createdAtstringyesAn ISO 8601 time, UTC.
curl -X POST https://www.aeyho.com/api/v1/versions/version_123/comments \
  -H "Authorization: Bearer $AEYHO_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"text":"Make this line shorter"}'

PATCH/comments/{commentId}

Change, accept or close a comment.

  • Operation: updateComment
  • Scope: make
  • Answers: 200 with Comment

Request body: CommentPatch

FieldTypeRequiredAbout
textstringno
status"open" | "done" | "wontfix"no
acceptedbooleanno
Answer: Comment
FieldTypeRequiredAbout
idstringyes
versionIdstringyes
reelIdstringyes
atnumbernoSeconds into the version (a video).
slideintegernoThe slide (a carousel), from 1.
pointobjectno
textstringyes
drawingUrlstringno
authorobjectyes
acceptedbooleanyesA guest's comment waits for the owner before a fix acts on it.
status"open" | "done" | "wontfix"yes
doneInstringnoThe version that fixed it.
replystringnoaeyho's answer when it couldn't fix it.
contextobjectno
createdAtstringyesAn ISO 8601 time, UTC.
curl -X PATCH https://www.aeyho.com/api/v1/comments/comment_123 \
  -H "Authorization: Bearer $AEYHO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text":"Make this line shorter"}'

DELETE/comments/{commentId}

Remove a comment.

  • Operation: deleteComment
  • Scope: make
  • Answers: 204
curl -X DELETE https://www.aeyho.com/api/v1/comments/comment_123 \
  -H "Authorization: Bearer $AEYHO_KEY"

POST/reels/{reelId}/fix

Fix a reel's comments: only the parts commented on when it can (runs on its own; uses credits).

  • Operation: fixReel
  • Scope: make
  • Answers: 202 with Fix
  • Runs on its own: poll the object or use webhooks
  • Takes an Idempotency-Key header

Request body: FixRequest

FieldTypeRequiredAbout
commentsstring[]noWhich comments; every open, accepted one when left out.
askstringno
Answer: Fix
FieldTypeRequiredAbout
status"queued" | "sent" | "nothing"yes
reelIdstringyes
replystringyes
notFixedobject[]yes
curl -X POST https://www.aeyho.com/api/v1/reels/reel_123/fix \
  -H "Authorization: Bearer $AEYHO_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"comments":["..."]}'

Reel Score

POST/score

Check any reel's craft from its link (Reel Score, free).

  • Operation: scoreReel
  • Scope: read
  • Answers: 202 with ScoreCheck
  • Runs on its own: poll the object or use webhooks
  • Takes an Idempotency-Key header

Request body: ScoreRequest

FieldTypeRequiredAbout
urlstringyesA public reel or video link.
Answer: ScoreCheck
FieldTypeRequiredAbout
idstringyes
statusstringyes
reportUrlstringyes
resultanyno
curl -X POST https://www.aeyho.com/api/v1/score \
  -H "Authorization: Bearer $AEYHO_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"url":"https://example.com/hooks/aeyho"}'

GET/score/{checkId}

A Reel Score check.

  • Operation: getScore
  • Scope: read
  • Answers: 200 with ScoreCheck
Answer: ScoreCheck
FieldTypeRequiredAbout
idstringyes
statusstringyes
reportUrlstringyes
resultanyno
curl https://www.aeyho.com/api/v1/score/check_123 \
  -H "Authorization: Bearer $AEYHO_KEY"

Webhooks

GET/webhooks

Your webhooks.

  • Operation: listWebhooks
  • Scope: read
  • Answers: 200 with WebhookList
  • Query: limit, cursor (see pagination)
Answer: WebhookList
FieldTypeRequiredAbout
dataWebhook[]yes
nextCursorstring | nullyes
curl https://www.aeyho.com/api/v1/webhooks \
  -H "Authorization: Bearer $AEYHO_KEY"

POST/webhooks

Send events to a link of yours.

  • Operation: createWebhook
  • Scope: make
  • Answers: 201 with Webhook
  • Takes an Idempotency-Key header

Request body: NewWebhook

FieldTypeRequiredAbout
urlstringyes
events"version.created" | "comment.resolved" | "reel.done" | "reel.failed" | "credits.low" | "post.published"[]no
Answer: Webhook
FieldTypeRequiredAbout
idstringyes
urlstringyes
eventsstring[]yes
mode"live" | "test"yes
createdAtstringyesAn ISO 8601 time, UTC.
secretstringnoShown once, when it's made: verify each delivery's webhook-signature with it.
curl -X POST https://www.aeyho.com/api/v1/webhooks \
  -H "Authorization: Bearer $AEYHO_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"url":"https://example.com/hooks/aeyho"}'

DELETE/webhooks/{webhookId}

Stop a webhook.

  • Operation: deleteWebhook
  • Scope: make
  • Answers: 204
curl -X DELETE https://www.aeyho.com/api/v1/webhooks/webhook_123 \
  -H "Authorization: Bearer $AEYHO_KEY"

POST/webhooks/{webhookId}/test

Send a test event.

  • Operation: testWebhook
  • Scope: make
  • Answers: 202 with TestSent
  • Takes an Idempotency-Key header
Answer: TestSent
FieldTypeRequiredAbout
deliveryIdstringyes
curl -X POST https://www.aeyho.com/api/v1/webhooks/webhook_123/test \
  -H "Authorization: Bearer $AEYHO_KEY" \
  -H "Idempotency-Key: $(uuidgen)"

GET/webhooks/{webhookId}/deliveries

A webhook's recent deliveries.

  • Operation: listDeliveries
  • Scope: read
  • Answers: 200 with DeliveryList
  • Query: limit, cursor (see pagination)
Answer: DeliveryList
FieldTypeRequiredAbout
dataDelivery[]yes
nextCursorstring | nullyes
curl https://www.aeyho.com/api/v1/webhooks/webhook_123/deliveries \
  -H "Authorization: Bearer $AEYHO_KEY"