Version 0.9.0
API reference
Scenelabs makes fully finished videos for a brand, in many styles, so an agent can sell it. This API lets a program or an agent do it end to end on a Scenelabs account: make a product from its page, make an ad set, send the finished ads to the account's own Meta ad account, turn them on or off, and read how they did. It also edits a finished ad (an effect, a picture or the green screen look put in at the right words, each with its sound) and makes the effects as films of their own.
Every call is plain HTTPS with a key in one header. JSON goes in, JSON comes out.
Working with an agent? Give it llms.txt. It is this page as one plain file.
https://www.scenelabs.io/api/v1Quick start
Make a key
Keys are made in the Scenelabs app under Settings, Connect your AI, by any signed-in account (no plan needed). A key is shown once, and has a daily spending limit its owner picks. Copy it then: it cannot be shown again.
Check it
Call
GET /api/v1/mefirst: it tells you the balance in dollars and what this key may still spend today.Read the answer
Make this the first call. It changes nothing and costs nothing, and it answers even when the balance is zero (with `addFundsAt`, the address where a person adds dollars).
curl https://www.scenelabs.io/api/v1/me \
-H "Authorization: Bearer $SCENELABS_KEY"const response = await fetch("https://www.scenelabs.io/api/v1/me", {
headers: { Authorization: `Bearer ${process.env.SCENELABS_KEY}` },
});
console.log(await response.json());import os
import requests
response = requests.get(
"https://www.scenelabs.io/api/v1/me",
headers={
"Authorization": f"Bearer {os.environ['SCENELABS_KEY']}",
},
)
print(response.json()){
"balance": 42.1,
"currency": "usd",
"addFundsAt": "https://scenelabs.io/home/avatars?settings=api",
"key": {
"id": "c5b8ebf4-910e-40eb-9b49-87acce87fb4e",
"name": "my agent",
"dailyLimit": 50,
"spentToday": 7.9
},
"limit": {
"max": 120,
"perSeconds": 60,
"remaining": 119
}
}The brand's name
A voice says the product's name in every ad, and nothing on a page says how a made-up name is spoken: a brand written Qelvo may be said "kelvo". We cannot know; the people behind the brand do. Until someone says, the ads say the name the way it is written: right for most names, and nothing waits on it. CHECK IT ONCE IF THE NAME IS A MADE-UP WORD OR AN ODD SPELLING: a name said wrong makes every ad in the set unusable, and the set is still paid for. A product made through the API comes back with nameConfirmed: false and nameAudio, our voice saying the name the way the ads will: play it to the person, or ask them how the name is said. Then PATCH /api/v1/products/{id} with sayAs (the name spelled the way it sounds) or with nameConfirmed: true (it is said the way it is written). A product set up in the app has already been played to a person there.
The product's picture
The people in the ads hold, wear or show a product only when it has a picture. Bring one in with POST /api/v1/uploads and put it on the product with photos. Without one they talk about it and it is never in frame. The templates marked showsProduct in GET /api/v1/ads/options are the ones that put it in hand; podcast-duo and hd-ugc put its pictures on screen above the speaker instead, and nobody holds it.
curl https://www.scenelabs.io/api/v1/products/prd-m3k2x9a1b2 \
-X PATCH \
-H "Authorization: Bearer $SCENELABS_KEY" \
-H "Content-Type: application/json" \
-d '{
"sayAs": "kelvo"
}'const response = await fetch("https://www.scenelabs.io/api/v1/products/prd-m3k2x9a1b2", {
method: "PATCH",
headers: {
Authorization: `Bearer ${process.env.SCENELABS_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
sayAs: "kelvo",
}),
});
console.log(await response.json());import os
import requests
response = requests.patch(
"https://www.scenelabs.io/api/v1/products/prd-m3k2x9a1b2",
headers={
"Authorization": f"Bearer {os.environ['SCENELABS_KEY']}",
},
json={
"sayAs": "kelvo",
},
)
print(response.json()){
"name": "Qelvo",
"sayAs": null,
"nameConfirmed": false,
"nameAudio": "https://…/voice/qelvo.mp3"
}Authentication
Send the key on every call: Authorization: Bearer sl_live_…. No other header is needed.
A key can do everything on this page for the account that made it, so treat it like a password. Revoke it in Settings and it stops working at once. A key works only on the calls listed here, never on the rest of the app.
Authorization: Bearer sl_live_…Limits
Each key has its own call limit: 120 calls a minute. Past it: 429 with a Retry-After header in seconds. Wait that long, then go on. An account can start 12 ad sets an hour, 30 effect films an hour and 20 edits an hour, and have 3 ad sets in the making at once.
Each key is counted by itself, so one busy program never slows another.
Prices
Paid in dollars from the account’s API balance. Calls cost nothing; only what gets made is charged. Each figure is the estimate the balance must cover before a set starts; the charge is what was really rendered, usually a little less.
Ad sets, POST /api/v1/ads
The price is for the whole set. It depends on the ad’s length, 15 or 30 seconds, and its size, 720p or 1080p (quality; 720p unless you ask). Most templates cost the same at both sizes.
| Template | Ads in a set | 720p | 1080p | ||
|---|---|---|---|---|---|
| 15 seconds | 30 seconds | 15 seconds | 30 seconds | ||
Talking, Mic on a thing, Podcastyappingmic-thingpodcast | 6 | $4.81 | $6.61 | $4.81 | $6.61 |
List, Problem and solution, Myth bust, Storytellinglisticleproblem-solutionmyth-buststorytelling | 6 | $4.81 | $6.61 | $4.81 | $6.61 |
Creative hookscreative | 6 | $10.42 | $12.22 | $22.09 | $23.89 |
Green screengreen-screen | 6 | $7.40 | $11.36 | $7.40 | $11.36 |
Multi-cammulticam | 6 | $5.45 | $7.90 | $5.45 | $7.90 |
Stages of griefgrief | 6 | $5.89 | $7.69 | $5.89 | $7.69 |
Long textlong-textNo voice: the words are a block of text on screen, with music | 6 | $4.90 | $7.00 | $4.90 | $7.00 |
Text overlaytext-overlayNo voice: a fast phone montage and quiet shots under a block of text, with music; 15 seconds only | 6 | $5.56 | $5.56 | $8.55 | $8.55 |
CinematiccinematicA voice-over film cut on the words, with big type and music | 6 | $16.38 | $24.05 | $38.41 | $56.45 |
Text messages, Front pagechat-adnews-adNo actor, 10 to 20 seconds, any length or size asked | 1 | $0.07one price, at any length and size | |||
Static adstatic-adA picture ad that moves a little, no actor, 8 seconds, any length or size asked | 1 | $0.07one price, at any length and size | |||
Paper storypaper-storyA narrated cut-paper cartoon, no actor, about 20 seconds, any length or size asked | 1 | $0.11one price, at any length and size | |||
Chart question, Iceberg, Bar chart race, Map explainer, Whiteboard, Two paths, Out of tenexplain-chart-questionexplain-icebergexplain-raceexplain-mapexplain-whiteboardexplain-two-pathsexplain-stick-crowdExplainers drawn by code, facts checked on their pages, no actor, 10 to 20 seconds | 1 | $1.26one price, at any length and size | |||
Two side by sideexplain-cartoon-pairAn explainer with one cartoon picture, no actor, 8 to 15 seconds | 1 | $1.35one price, at any length and size | |||
Whiteboard storyexplain-whiteboard-storyAn explainer with three or four marker drawings, no actor, 16 to 21 seconds; pictures it did not need are given back | 1 | $1.62one price, at any length and size | |||
Podcast for twopodcast-duoTwo actors at studio mics; the price is for its longest film, a shorter one costs less | 1 | $8.03one price, at any length and size | |||
HD UGChd-ugcOne actor talking to the camera; the price is for its longest film, a shorter one costs less | 1 | $4.55one price, at any length and size | |||
Tier listtier-listOne actor ranking you against the rest on a tier board, about 30 to 40 seconds; the price is for its longest film, a shorter one costs less | 1 | $9.65one price, at any length and size | |||
A set of six is six finished ads, so one 30-second talking ad comes to about $1.10.
Everything else that costs
| Making a product from its page | $0.07 |
| A product's pitches, drafted once with its first ad set | $0.07 |
| A paper cut-out's subject, cut out of its photo | $0.04 |
A person cut out of a finished ad, POST /api/v1/cutouts (by the second of video) | about $0.81 for 30 s |
Free
Reading anything · The script library · An effect film · An edit · Bringing a picture in · Checking and picking the Meta link · Sending to Meta, turning ads on and off, results.
The balance
A person signed in to the app adds dollars in Settings, Connect your AI,$20, $50, $100, $250 at a time; a key cannot. Every key of the account spends the same balance, and it does not expire. Plan credits are a different thing and a key never spends them. Each key has a daily limit picked when it was made ($25, $50, $100, $250, $1,000; $50 unless chosen). A call the balance cannot cover answers 402 with code funds; past the key's daily limit, 429 with code key_limit until midnight UTC. GET /api/v1/ads/options gives each template's price today, GET /api/v1/me the balance.
Errors
Answers are JSON. An error is always {"error": "one sentence", "code": "…"}. Show the sentence to the person; it says what to do. Nothing is guessed from a request that is wrong: a call that would cost money refuses a missing or unknown field instead of filling it in.
- 400
- The request is wrong. The sentence says what to fix.
- 401
- No key, a wrong key, or a revoked key.
- 202
- On a send to Meta: the video is still being processed. Send the same request again in a few seconds.
- 402
- The API balance does not cover what was asked, or the account has never added dollars (code: funds). The sentence says what it costs, what the balance is, and the address where a person adds dollars (also in
addFundsAt). No plan is needed. - 403
- The key was made read-only (only keys from before 25 November 2026 can be) and the call changes something (code: read_only).
- 404
- No such route, product, ad set, film, edit, cut-out or Meta id; or, on apply, Meta no longer lists that suggestion (code: stale).
- 409
- The ad named is not finished yet (read its set again in a minute); or Meta is not linked (code: not_linked); or the account already holds as many products as it can (code: product_limit).
- 422
- A product's page could not be read (code: unreadable). Nothing was charged; the sentence says what to send instead.
- 429
- Too many calls with this key; or three ad sets already in the making (code: busy); or this key has reached its day limit (code: key_limit). Wait
Retry-Afterseconds when it is there; a day limit resets at midnight UTC. - 503
- Try again in a moment (code: transient).
{
"error": "This key was made read-only. Make a new key in Settings: every new key can change things.",
"code": "read_only"
}Account
The key and the account behind it: the API balance in dollars, the key's day limit, the call limit.
Check the key
get/api/v1/me
Check the key: the API balance in dollars, what this key has spent today, and calls left this minute.
Make this the first call. It changes nothing and costs nothing, and it answers even when the balance is zero (with addFundsAt, the address where a person adds dollars).
Returns
balancenumber- The account's API balance, in dollars. This is what a key's calls spend.
currencystring- usd
addFundsAtstring- Where a person adds dollars. A key cannot.
keyobjectShow propertiesHide properties
idstringnamestringdailyLimitnumber- The most this key may spend in a day (UTC), in dollars. It is also the highest daily budget the key may set on a Meta campaign.
spentTodaynumber- What this key has spent so far today, in dollars.
limitobjectShow propertiesHide properties
maxintegerperSecondsintegerremaininginteger
curl https://www.scenelabs.io/api/v1/me \
-H "Authorization: Bearer $SCENELABS_KEY"const response = await fetch("https://www.scenelabs.io/api/v1/me", {
headers: { Authorization: `Bearer ${process.env.SCENELABS_KEY}` },
});
console.log(await response.json());import os
import requests
response = requests.get(
"https://www.scenelabs.io/api/v1/me",
headers={
"Authorization": f"Bearer {os.environ['SCENELABS_KEY']}",
},
)
print(response.json()){
"balance": 42.1,
"currency": "usd",
"addFundsAt": "https://scenelabs.io/home/avatars?settings=api",
"key": {
"id": "c5b8ebf4-910e-40eb-9b49-87acce87fb4e",
"name": "my agent",
"dailyLimit": 50,
"spentToday": 7.9
},
"limit": {
"max": 120,
"perSeconds": 60,
"remaining": 119
}
}Products
What the ads are for. A product is made from its page: its name, and the plain facts an ad must get right.
List your products
get/api/v1/products
The products this account makes ads for.
An ad set is made for one product. chosen marks the one used when you name none. most is how many the account can hold (one with no plan). nameConfirmed: false means nobody has said how the name is spoken, so its ads say it the way it is written (change that with PATCH /api/v1/products/{id}).
Returns
productsarray of objectsShow propertiesHide properties
idstring- Send it as
productIdto POST /api/v1/ads. namestring- The name as it is written (captions print this).
sayAsstring or null- The name spelled the way it sounds, when that differs: the voice reads this. null when it is said as written, or when nobody has said.
nameConfirmedboolean- false: nobody has said how the name is spoken, so the ads say it the way it is written. It stops nothing. If the name is said another way, send
sayAswith PATCH /api/v1/products/{id}. urlstring or nullfactsobject- The plain facts read from its page when it was made, e.g.
doesandproblem. Scripts in the talking templates andproblem-solutionare built onpitches, not on these; these two are used for the pitches only when the page cannot be read again. pitchesarray of objects- What its scripts are built on: up to six pitches, each a problem with the one thing the product does about it. Each one also says what you end up with, worded differently in every pitch, so no ad tells one part and leaves out the whole and no two ads share a sentence. A newly written script in a talking template (
yapping,mic-thing,podcast,creative) or inproblem-solutiontakes ONE of them, the one used least so far, so six such ad sets for a product make six different arguments.listicle,myth-bustandstorytellingare written from facts of their own, and a saved script made again is made as it is. Empty until the first script is written for the product: they are drafted then, once, from its page read again (about 7 cents, charged beside that first ad set), and drafted again after its facts change. Show propertiesHide properties
problemstringsellstring- What you end up with from the product as a whole, in this pitch's own words, then what it does about that problem.
photosarray of strings- Its pictures. With none, nobody in the ads holds, wears or shows the product.
chosenboolean- true for the product used when an ad set names none.
mostinteger
curl https://www.scenelabs.io/api/v1/products \
-H "Authorization: Bearer $SCENELABS_KEY"const response = await fetch("https://www.scenelabs.io/api/v1/products", {
headers: { Authorization: `Bearer ${process.env.SCENELABS_KEY}` },
});
console.log(await response.json());import os
import requests
response = requests.get(
"https://www.scenelabs.io/api/v1/products",
headers={
"Authorization": f"Bearer {os.environ['SCENELABS_KEY']}",
},
)
print(response.json()){
"products": [
{
"id": "prd-m3k2x9a1b2",
"name": "Everyday bottle",
"sayAs": null,
"nameConfirmed": true,
"url": "https://example.com/bottle",
"facts": {
"does": "It keeps a drink cold for 24 hours.",
"problem": "Water that is warm by lunch."
},
"pitches": [
{
"problem": "You fill your bottle at seven and by lunch the water is warm.",
"sell": "Everyday bottle keeps a drink cold for 24 hours. The water you poured in the morning is still cold at five."
}
],
"photos": [],
"chosen": true
}
],
"most": 1
}Make a product from its page
post/api/v1/products
Read a product's page and save it as a product to make ads for.
Send the page's address. The page is read, the plain facts an ad must get right are drafted from it, and the product is saved. It costs a few cents. The same page sent again is read again and updates that product; it never makes a second copy. If the page cannot be read (some sites refuse), nothing is charged and the answer says so: send name and does with the url and the product is made from your words instead. HOW THE NAME IS SPOKEN: a voice says the name in every ad, the way it is written. That is right for most names, and nothing waits on it. If the brand says its name another way (written Qelvo, said "kelvo"), send sayAs here or with PATCH /api/v1/products/{id}, or every ad says it wrong. nameAudio is our voice saying the name: play it to the person if the name is a made-up word. notes lists what is still unanswered, each with the call that answers it.
Request body
urlstringRequired- The product's page.
namestringOptional- The product's name, up to 80 characters. Left out, it is taken from the page's title.
sayAsstringOptional- The name spelled the way it SOUNDS, up to 40 characters: "kelvo" for a brand written Qelvo. The voice reads this; captions keep the name as written. Sending it answers how the name is spoken.
nameConfirmedbooleanOptional- true when the name is said the way it is written. It only ends the note about the name; the ads say it as written either way.
photosarray of stringsOptional- Up to 4 pictures of the product, each an address
POST /api/v1/uploadsanswered with. With one, the person in ashowsProducttemplate holds it. Without one nobody holds, wears or shows it. doesstringOptional- What it does, in a sentence. Your words win over the draft.
problemstringOptional- What it fixes, in a sentence. Your words win over the draft.
choosebooleanOptional- true to make it the product used when an ad set names none. The first product is chosen anyway.
Returns
idstring- Send it as
productIdto POST /api/v1/ads. namestring- The name as it is written (captions print this).
sayAsstring or null- The name spelled the way it sounds, when that differs: the voice reads this. null when it is said as written, or when nobody has said.
nameConfirmedboolean- false: nobody has said how the name is spoken, so the ads say it the way it is written. It stops nothing. If the name is said another way, send
sayAswith PATCH /api/v1/products/{id}. urlstring or nullfactsobject- The plain facts read from its page when it was made, e.g.
doesandproblem. Scripts in the talking templates andproblem-solutionare built onpitches, not on these; these two are used for the pitches only when the page cannot be read again. pitchesarray of objects- What its scripts are built on: up to six pitches, each a problem with the one thing the product does about it. Each one also says what you end up with, worded differently in every pitch, so no ad tells one part and leaves out the whole and no two ads share a sentence. A newly written script in a talking template (
yapping,mic-thing,podcast,creative) or inproblem-solutiontakes ONE of them, the one used least so far, so six such ad sets for a product make six different arguments.listicle,myth-bustandstorytellingare written from facts of their own, and a saved script made again is made as it is. Empty until the first script is written for the product: they are drafted then, once, from its page read again (about 7 cents, charged beside that first ad set), and drafted again after its facts change. Show propertiesHide properties
problemstringsellstring- What you end up with from the product as a whole, in this pitch's own words, then what it does about that problem.
photosarray of strings- Its pictures. With none, nobody in the ads holds, wears or shows the product.
chosenboolean- true for the product used when an ad set names none.
updatedboolean- true when this page was already a product and was read again.
notesarray of strings- What is still unanswered about the product, each as a sentence with the call that answers it: how the name is spoken (until someone says, it is said as written), and that it has no picture. Neither stops anything. Empty when there is nothing.
nameAudiostring or null- Our voice saying the name the way the ads will: a sound file to pass to the people behind the brand, or to listen to. null if it could not be made just now.
curl https://www.scenelabs.io/api/v1/products \
-X POST \
-H "Authorization: Bearer $SCENELABS_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com/bottle"
}'const response = await fetch("https://www.scenelabs.io/api/v1/products", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.SCENELABS_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
url: "https://example.com/bottle",
}),
});
console.log(await response.json());import os
import requests
response = requests.post(
"https://www.scenelabs.io/api/v1/products",
headers={
"Authorization": f"Bearer {os.environ['SCENELABS_KEY']}",
},
json={
"url": "https://example.com/bottle",
},
)
print(response.json()){
"id": "prd-m3k2x9a1b2",
"name": "Everyday bottle",
"sayAs": null,
"nameConfirmed": false,
"url": "https://example.com/bottle",
"facts": {
"does": "It keeps a drink cold for 24 hours.",
"problem": "Water that is warm by lunch."
},
"pitches": [
{
"problem": "You fill your bottle at seven and by lunch the water is warm.",
"sell": "Everyday bottle keeps a drink cold for 24 hours. The water you poured in the morning is still cold at five."
}
],
"photos": [],
"chosen": true,
"updated": false,
"notes": [
"Nobody has said how \"Everyday bottle\" is spoken, so the voice in its ads says it the way it is written. That is right for most names and it stops nothing. If this name is said another way (a brand written Qelvo may be said \"kelvo\"), every ad says it wrong and the set is still paid for: PATCH /api/v1/products/prd-m3k2x9a1b2 with {\"sayAs\": \"...\"} (the name spelled the way it sounds). If it is said the way it is written, {\"nameConfirmed\": true} ends this note. `nameAudio` on the product is our voice saying it."
],
"nameAudio": "https://…/voice/everyday-bottle.mp3"
}Say how the name is spoken, add a picture
patch/api/v1/products/{id}
Change one product: how its name is spoken, its pictures, its name or its facts.
Only what you send changes, and it costs nothing. This is the call that says how the name is spoken: sayAs (the name spelled the way it sounds) or nameConfirmed: true (said as written). Until one of them is sent, the ads say the name the way it is written and nothing is stopped. We cannot know how a brand says its own name, and a name said wrong makes every ad in a set unusable: if the name is a made-up word, ask the people behind the brand. nameAudio in the answer is our voice saying the name the way the ads will. A new name is a new word to say, so the question opens again unless the same call answers it. photos gives the product its pictures (an empty list takes them off).
Path
idstringRequired- The product's id.
Request body
sayAsstringOptional- The name spelled the way it sounds, up to 40 characters: "kelvo" for a brand written Qelvo. An empty text takes the spelling off.
nameConfirmedbooleanOptional- true: the name is said the way it is written. false: the question is open again.
photosarray of stringsOptional- Up to 4 addresses
POST /api/v1/uploadsanswered with. They replace the pictures the product had. namestringOptional- A new name, up to 80 characters.
doesstringOptional- What it does, in a sentence.
problemstringOptional- What it fixes, in a sentence.
choosebooleanOptional- true to make it the product used when an ad set names none.
Returns
idstring- Send it as
productIdto POST /api/v1/ads. namestring- The name as it is written (captions print this).
sayAsstring or null- The name spelled the way it sounds, when that differs: the voice reads this. null when it is said as written, or when nobody has said.
nameConfirmedboolean- false: nobody has said how the name is spoken, so the ads say it the way it is written. It stops nothing. If the name is said another way, send
sayAswith PATCH /api/v1/products/{id}. urlstring or nullfactsobject- The plain facts read from its page when it was made, e.g.
doesandproblem. Scripts in the talking templates andproblem-solutionare built onpitches, not on these; these two are used for the pitches only when the page cannot be read again. pitchesarray of objects- What its scripts are built on: up to six pitches, each a problem with the one thing the product does about it. Each one also says what you end up with, worded differently in every pitch, so no ad tells one part and leaves out the whole and no two ads share a sentence. A newly written script in a talking template (
yapping,mic-thing,podcast,creative) or inproblem-solutiontakes ONE of them, the one used least so far, so six such ad sets for a product make six different arguments.listicle,myth-bustandstorytellingare written from facts of their own, and a saved script made again is made as it is. Empty until the first script is written for the product: they are drafted then, once, from its page read again (about 7 cents, charged beside that first ad set), and drafted again after its facts change. Show propertiesHide properties
problemstringsellstring- What you end up with from the product as a whole, in this pitch's own words, then what it does about that problem.
photosarray of strings- Its pictures. With none, nobody in the ads holds, wears or shows the product.
chosenboolean- true for the product used when an ad set names none.
notesarray of strings- What is still unanswered about the product, each as a sentence with the call that answers it: how the name is spoken (until someone says, it is said as written), and that it has no picture. Neither stops anything. Empty when there is nothing.
nameAudiostring or null- Our voice saying the name the way the ads will: a sound file to pass to the people behind the brand, or to listen to. null if it could not be made just now.
curl https://www.scenelabs.io/api/v1/products/prd-m3k2x9a1b2 \
-X PATCH \
-H "Authorization: Bearer $SCENELABS_KEY" \
-H "Content-Type: application/json" \
-d '{
"sayAs": "kelvo"
}'const response = await fetch("https://www.scenelabs.io/api/v1/products/prd-m3k2x9a1b2", {
method: "PATCH",
headers: {
Authorization: `Bearer ${process.env.SCENELABS_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
sayAs: "kelvo",
}),
});
console.log(await response.json());import os
import requests
response = requests.patch(
"https://www.scenelabs.io/api/v1/products/prd-m3k2x9a1b2",
headers={
"Authorization": f"Bearer {os.environ['SCENELABS_KEY']}",
},
json={
"sayAs": "kelvo",
},
)
print(response.json()){
"id": "prd-k8w2m4q7z1",
"name": "Qelvo",
"sayAs": "kelvo",
"nameConfirmed": true,
"url": "https://example.com",
"facts": {
"does": "It waters your plants while you are away."
},
"photos": [],
"chosen": true,
"notes": [
"\"Qelvo\" has no picture on file, so the people in its ads talk about it and never hold, wear or show it. If you want it in their hands, bring a picture in with POST /api/v1/uploads and PATCH /api/v1/products/prd-k8w2m4q7z1 with {\"photos\": [\"<that address>\"]}."
],
"nameAudio": "https://…/voice/qelvo.mp3"
}Remove a product
delete/api/v1/products/{id}
Take a product off the account.
Ad sets already made for it stay. If it was the chosen product, the first one left becomes the chosen one.
Path
idstringRequired- The product's id.
Returns
okbooleanchosenstring or null- The chosen product's id now, or null when none is left.
curl https://www.scenelabs.io/api/v1/products/prd-m3k2x9a1b2 \
-X DELETE \
-H "Authorization: Bearer $SCENELABS_KEY"const response = await fetch("https://www.scenelabs.io/api/v1/products/prd-m3k2x9a1b2", {
method: "DELETE",
headers: { Authorization: `Bearer ${process.env.SCENELABS_KEY}` },
});
console.log(await response.json());import os
import requests
response = requests.delete(
"https://www.scenelabs.io/api/v1/products/prd-m3k2x9a1b2",
headers={
"Authorization": f"Bearer {os.environ['SCENELABS_KEY']}",
},
)
print(response.json()){
"ok": true,
"chosen": null
}Ads
Make an ad set (a script, an actor, six openings: six finished ads) from one of the account's products, and read it back.
What you can ask for
get/api/v1/ads/options
List the templates (and what one set of each costs, in dollars), the account's products, the actors and the places.
Read this before making an ad set. An account with no product makes one first: POST /api/v1/products with the product page's address.
Returns
templatesarray of objectsShow propertiesHide properties
idstringnamestringpricenumber- About what one ad set of this template costs in dollars at 30 seconds, 720p.
price15number- The same at 15 seconds.
showsProductboolean- true: the product's picture is in the ad when the product has one: held by the person, inside an effect ad (the chat's link, the front page's photo), or on screen above the speaker in
podcast-duoandhd-ugc. false: the product is talked about, never shown. actorboolean- false for the animated templates (
chat-ad,news-ad,static-ad,paper-storyand the explainers): nobody is filmed. The effect is written for the product, opening on a line meant to stop the scroll (the pain, or a result the facts support), and ends inside the effect on the invitation: a chat that ends on your link; a front page whose headline is read first, then fast word cuts locked on one word of it that land on the line that sells and, last, on the invitation. 9:16; the front page runs about 11 seconds and the chat up to 20. adsinteger- How many finished ads one set of it is: 6 unless you ask for fewer with
openings, or 1 for an effect ad,podcast-duo,hd-ugcandtier-list. peopleinteger- Only on
podcast-duo(2),hd-ugc(1) andtier-list(1): how many actors are filmed in the ad.actorIdchooses the first,guestIdthe second. perOpeningnumber- What one opening adds to a 30-second set, in dollars. A set asked for with fewer than six
openingscosts about this much less for each one left out. Not on the effect ads,podcast-duoorhd-ugc. perOpening15number- The same at 15 seconds.
openingsobject- How many openings a set can be asked for with (
openingson POST /api/v1/ads). Show propertiesHide properties
minintegermaxintegerdefaultinteger
currencystring- usd
productsarray of objectsShow propertiesHide properties
idstringnamestringurlstring or nullchosenboolean- true for the product used when you name none.
nameConfirmedboolean- false: nobody has said how the name is spoken, so its ads say it the way it is written.
hasPhotoboolean- Whether there is a picture of it for a person in an ad to hold.
secondsarray of integersqualityarray of stringsactorsarray of objects- Who can present: ids for
actorId. Show propertiesHide properties
idstringnamestringgenderstring or nullageinteger or null
placesarray of objects- Where: ids for
settingId. Show propertiesHide properties
idstringnamestring
movesarray of objects- What can happen on camera in a creative hook: ids for
moves(template: creativeonly). Show propertiesHide properties
idstringnamestringkindstring- Its kind, e.g.
selfie(the person films themselves) orbody(the person's own movement, the phone propped). A kind can be sent inmovesto take all of its moves. handHeldboolean- true: the person holds the phone and it moves with them.
whatstring- What happens while the line is said.
moveKindsarray of strings- The kinds
movestakes.
curl https://www.scenelabs.io/api/v1/ads/options \
-H "Authorization: Bearer $SCENELABS_KEY"const response = await fetch("https://www.scenelabs.io/api/v1/ads/options", {
headers: { Authorization: `Bearer ${process.env.SCENELABS_KEY}` },
});
console.log(await response.json());import os
import requests
response = requests.get(
"https://www.scenelabs.io/api/v1/ads/options",
headers={
"Authorization": f"Bearer {os.environ['SCENELABS_KEY']}",
},
)
print(response.json()){
"templates": [
{
"id": "yapping",
"name": "Talking",
"price": 6.61,
"price15": 4.81,
"showsProduct": false
},
{
"id": "creative",
"name": "Creative hooks",
"price": 12.22,
"price15": 10.42,
"showsProduct": false
},
{
"id": "listicle",
"name": "List",
"price": 6.61,
"price15": 4.81,
"showsProduct": true
},
{
"id": "chat-ad",
"name": "Text messages",
"price": 0.07,
"price15": 0.07,
"showsProduct": true,
"actor": false,
"ads": 1
},
{
"id": "podcast-duo",
"name": "Podcast for two",
"price": 8.03,
"price15": 8.03,
"showsProduct": true,
"actor": true,
"ads": 1,
"people": 2
}
],
"currency": "usd",
"products": [
{
"id": "prd-m3k2x9a1b2",
"name": "Everyday bottle",
"url": "https://example.com/bottle",
"chosen": true,
"nameConfirmed": true,
"hasPhoto": false
}
],
"seconds": [
15,
30
],
"quality": [
"720p",
"1080p"
],
"actors": [
{
"id": "maya",
"name": "Maya",
"gender": "woman",
"age": 25
}
],
"places": [
{
"id": "bedroom",
"name": "Bedroom"
}
]
}Creative openers
get/api/v1/openers
List every creative opener: what happens on camera in the first seconds of a Creative hooks ad.
Free, and it changes nothing. A Creative hooks ad set (template: creative) opens each of its six ads on one of these while the line is said: a card fan, a fruit cut, a car passing behind. Leave moves out of POST /api/v1/ads and they are picked for the product, a different mix each set; or send ids (or a whole kind) from here in moves to choose. Only the ones marked usable can be sent: in that template one hand holds the mic, so a move that needs both hands is never filmed there. clip is a real opener the app filmed, for the few that have one.
Query
kindstringOptional- Only the openers of one kind, e.g.
kitchenorselfie. The kinds are inkinds.
Returns
countinteger- How many openers are listed.
kindsarray of objectsShow propertiesHide properties
idstring- Send it in
movesto take every usable opener of the kind. namestringlinestringcountinteger
openersarray of objectsShow propertiesHide properties
idstring- Send it in
moves. namestringkindstringwhatstring- What happens while the line is said.
firstFramestring- What the first frame shows.
handsinteger- How many hands it needs.
handHeldboolean- true: the person holds the phone and it moves with them.
revealboolean- true: the thing is out of sight in the first frame.
usableboolean- true: it can be sent in
movesfortemplate: creative. clipstring or null- A real opener the app filmed with it, when there is one.
curl https://www.scenelabs.io/api/v1/openers \
-H "Authorization: Bearer $SCENELABS_KEY"const response = await fetch("https://www.scenelabs.io/api/v1/openers", {
headers: { Authorization: `Bearer ${process.env.SCENELABS_KEY}` },
});
console.log(await response.json());import os
import requests
response = requests.get(
"https://www.scenelabs.io/api/v1/openers",
headers={
"Authorization": f"Bearer {os.environ['SCENELABS_KEY']}",
},
)
print(response.json()){
"count": 158,
"kinds": [
{
"id": "sleight",
"name": "Tricks",
"line": "Cards and coins",
"count": 9
},
{
"id": "kitchen",
"name": "Kitchen",
"line": "Cuts, pours, cracks, pops",
"count": 22
}
],
"openers": [
{
"id": "card-fan",
"name": "Card fan",
"kind": "sleight",
"what": "The deck opens into a wide, even fan in one sweep with only the plain red backs facing the lens — no card face is ever shown — holds a beat, and snaps shut",
"firstFrame": "Holding a deck of plain red-backed playing cards squared in one hand, thumb on the edge, the red backs toward the lens",
"hands": 1,
"handHeld": false,
"reveal": false,
"usable": true,
"clip": "https://www.scenelabs.io/landing/showcase/cards-fan.mp4"
}
]
}Make an ad set
post/api/v1/ads
Start ONE ad set: a script, an actor and up to six openings, each made into a finished ad.
The set is written, filmed and edited on our servers, with nobody at a screen. It usually takes 5 to 10 minutes: this call only starts it and gives you its id. Read it back with GET /api/v1/ads/{id}. It is paid in dollars from the API balance, taken as each part is made (price in the answer is the estimate; the whole estimate has to be in the balance before the set starts). To make a repeat safe, send an Idempotency-Key header with any text of your own: the same key again within a day returns the set it already started (repeat: true) and makes nothing new. Nothing is guessed: a missing template, a field this call does not know, or an id that is not on the account is refused with a sentence. A voice says the product's name in every ad, the way it is written unless the product has a sayAs: for a name said another way, send sayAs with PATCH /api/v1/products/{id} BEFORE this call (while nobody has said, notes in the answer repeats it; the set is made all the same). Nothing is sent to Meta: you send the finished ads yourself. An account can have 3 sets in the making at once, and start 12 an hour. The effect-ad templates (chat-ad, news-ad, static-ad; actor: false in the options) make ONE ad with nobody filmed, in about two minutes, written for the product: chat-ad is a text message chat that ends on the product's link, news-ad is a front-page headline that cuts into fast word cuts and ends on the invitation. They take template, productId and steer only. The two cast templates (podcast-duo, hd-ugc; people in the options) film our actors but also make ONE ad each, from a talk written for the product: they take template, productId, steer and actorId, and podcast-duo takes guestId.
Request body
templatestringRequired- A template id from /api/v1/ads/options.
chat-ad,news-adandstatic-adare the effect ads: one ad, no actor, and noseconds,quality,actorId,settingIdorscript.static-ad(Static ad) is a picture ad that moves a little: one picture for 8 seconds that loops, with a headline, one line under it, the product's own photo (its name in big type when it has none), the product's site and a button of a few words, all on screen from the first frame.paper-storyis a story ad: a narrated cut-paper cartoon written for the product (one ad of about 20 seconds, no actor; the read's words are in the picture as captions), and it takes the same few fields as an effect ad. The product is shown from its own photo when it has one, and by its name alone when it has none: it is never drawn from imagination. The explainer templates (explain-chart-question,explain-iceberg,explain-cartoon-pair,explain-race,explain-map,explain-whiteboard,explain-whiteboard-story,explain-two-paths,explain-stick-crowd) teach one true thing about the subject the product lives in, in that animation style, and name the product once at the end with a line taken from its own description: the facts are found on the web for each ad, and we open every source page and keep a fact only if its sentence and every number shown with it are on that page (the set'ssourceslists them). One ad of 10 to 30 seconds, no actor, no voice; they take the same few fields as an effect ad. When too few facts hold up, the set fails and its price is given back.podcast-duo(Podcast for two) is a clip from a video podcast: two actors at studio mics, the picture cutting to whoever speaks, with the product's own pictures on screen while it is explained.hd-ugc(HD UGC) is one actor in a dim, lit room talking to the camera, with a line of text over the opening and the product's own pictures, or a short note, above them.tier-list(Tier list) is one actor on a sofa ranking three to five products of one kind on a tier board (S to D), yours among them and ending in A or S: each one comes up big as it is talked about and jumps into its row when its tier is said. The others are the product's saved competitors when it has some, or the best-known alternatives, or the ones you name insteer; each is shown by its own site's icon. It ends on the speaker's last word, not on an invitation, and runs about 30 to 40 seconds. Each of the three is ONE ad of its own length (about 20 to 30 seconds for the first two), filmed in its own room from a talk written for the product, with its captions in the picture: noseconds,quality,settingId,script,openings,nightormoves. They takeactorId(inpodcast-duo, the guest who knows the product), andpodcast-duotakesguestIdfor the second guest.multicamis Talking cut between up to seven camera spots;grief(Stages of grief) is Multi-cam with one feeling per cut.long-texthas no voice: quiet shots of the actor with the words as one block of text on screen and music under, so its ads have nowords.cinematicis a voice-over film: the actor is seen in a dozen quiet shots cut on the words, with big type and music; it films its own places, so it takes nosettingId, and it takes longer to make than a talking set (it has many more shots): keep reading the set untilstatusisdone. productIdstringOptional- One of the account's products. Leave out for the chosen one.
actorIdstringOptional- An actor's id from /api/v1/ads/options. Leave out and one is picked for you, a different one each time.
guestIdstringOptional- Only with
template: podcast-duo: the second guest, an actor's id from /api/v1/ads/options. It cannot be the same actor asactorId. Leave out and one is picked for you. Any other template refuses it. settingIdstringOptional- A place's id from /api/v1/ads/options. Leave out for the usual one.
secondsintegerOptional- 15 or 30. Leave out for 30.
qualitystringOptional- 720p or 1080p. Leave out for 720p.
openingsintegerOptional- How many openings the set is made with, 1 to 6. Leave out for 6. Each opening is its own first line and first shot on the same main video, so this is also how many finished ads come back: 1 makes one ad. The main video is made once whatever the number, so each opening left out takes only its own share off the price (
perOpeningin /api/v1/ads/options). Not for the effect ads,podcast-duoorhd-ugc, which are one ad. steerstringOptional- A note to the writer, up to 1,200 characters: the angle, the offer, who it is for. The script itself is written for you. In a talking template or
problem-solutionit is built on one of the product'spitches(GET /api/v1/products): each new ad set takes the one used least so far, so the next set argues something else. scriptstringOptional- A saved script's id from /api/v1/scripts. The set is then made from those exact words, for the product the script was written for: nothing is rewritten. Only the templates that change the picture take one (yapping, mic-thing, podcast, green-screen, multicam); the others are ways of writing the script. Send this or
steer, not both. movesarray of stringsOptional- Only with
template: creative: which creative hooks to try. Opener ids or kinds from GET /api/v1/openers (the ones markedusable; also in /api/v1/ads/optionsmoves), up to 20, e.g.["walk-up", "selfie"]. Every opening in the set uses one of them, so naming fewer than six repeats some with different words. Leave it out and the moves are picked for the product, a different mix each set. nightbooleanOptional- true: the set is filmed at night. The room, its light and the places the openings move to are their night versions (lamps on, windows black). A place that is night already (
campfire,fireplace,screen,neon,laundromat) is night either way. Not for the effect ads,podcast-duoorhd-ugc. Same price.
Returns
idstringstatusstring- queued
stepstringpricenumber- About what the set will cost, in dollars.
currencystring- usd
repeatboolean- true when this
Idempotency-Keyhad already started this set. notesarray of strings- Present when there is something to know about this set: that nobody has said how the product's name is spoken, so it is said as written; and, for a
showsProducttemplate, that the product has no picture, so nobody will hold it. The set is made all the same.
curl https://www.scenelabs.io/api/v1/ads \
-X POST \
-H "Authorization: Bearer $SCENELABS_KEY" \
-H "Content-Type: application/json" \
-d '{
"template": "yapping",
"seconds": 30,
"steer": "Lead with the 24-hour cold claim. For people who commute."
}'const response = await fetch("https://www.scenelabs.io/api/v1/ads", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.SCENELABS_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
template: "yapping",
seconds: 30,
steer: "Lead with the 24-hour cold claim. For people who commute.",
}),
});
console.log(await response.json());import os
import requests
response = requests.post(
"https://www.scenelabs.io/api/v1/ads",
headers={
"Authorization": f"Bearer {os.environ['SCENELABS_KEY']}",
},
json={
"template": "yapping",
"seconds": 30,
"steer": "Lead with the 24-hour cold claim. For people who commute.",
},
)
print(response.json()){
"id": "3f0c9c1e-5b7a-4a52-9d3e-2a6f1c8b7e10",
"status": "queued",
"step": "Waiting for the next tick",
"price": 7.9,
"currency": "usd"
}List your ad sets
get/api/v1/ads
The last 20 ad sets this account's keys asked for, newest first.
Only sets made through the API are listed, not ones made in the app.
Returns
adsarray of objectsShow propertiesHide properties
idstring- The ad set's id. Keep it: it is how you read the set back.
statusstring- queued | making | done | failed | stopped.
stepstring or null- What is being done right now, in words, e.g. "Rendering the hooks · 3/6 ads".
errorstring or null- Why it failed, when it did.
createdAtstringfinishedAtstring or nulltemplatestring or nullproductstring or null- The product's name.
secondsinteger or nullqualitystring or nullscriptstring or null- The main video's script, once it is written.
topicstring or null- Explainer templates only: the question the ad teaches the answer to.
sourcesarray of objects- Explainer templates only: every fact the ad shows, with the page we opened and found it on.
Show propertiesHide properties
claimstring- What the ad shows.
publisherstringurlstring- The page the fact was checked on.
saysstring- The sentence on that page the fact rests on, as written there.
yearinteger- The year that page gives for itself (published, or last updated for an encyclopedia), when it gives one. The film cites its sources with it: "(Pew Research Center, 2025)".
scriptIdstring or null- The saved script these words are (GET /api/v1/scripts/{id}), once it is filed. Send it as
scriptto POST /api/v1/ads to make the same words in another template. pitchstring or null- The argument this script makes, in one line.
adsarray of objects- One entry per opening. Each becomes one finished ad.
Show propertiesHide properties
idstringhookstring- The opening line.
videostring or null- The finished ad's file (mp4), once it exists. This is the address POST /api/v1/meta/send takes.
captionedboolean- true when
videois the captioned file. droppedstring or null- Why this opening was left out, when it was.
secondsnumber or null- The finished ad's length.
wordsarray of objects or null- Only on the read of ONE set: every word of the ad with the second it starts (
s) and ends (e). This is whatwhenon an insert is matched against (POST /api/v1/edits).
curl https://www.scenelabs.io/api/v1/ads \
-H "Authorization: Bearer $SCENELABS_KEY"const response = await fetch("https://www.scenelabs.io/api/v1/ads", {
headers: { Authorization: `Bearer ${process.env.SCENELABS_KEY}` },
});
console.log(await response.json());import os
import requests
response = requests.get(
"https://www.scenelabs.io/api/v1/ads",
headers={
"Authorization": f"Bearer {os.environ['SCENELABS_KEY']}",
},
)
print(response.json()){
"ads": [
{
"id": "3f0c9c1e-5b7a-4a52-9d3e-2a6f1c8b7e10",
"status": "done",
"step": "Done",
"error": null,
"createdAt": "2026-11-25T18:02:11.000Z",
"finishedAt": "2026-11-25T18:31:40.000Z",
"template": "yapping",
"product": "Everyday bottle",
"seconds": 30,
"quality": "720p",
"script": "I stopped buying plastic bottles in March. …",
"ads": [
{
"id": "h1",
"hook": "Why is your water warm by lunch?",
"video": "https://…/ads/3f0c9c1e/h1-captioned.mp4",
"captioned": true,
"dropped": null,
"seconds": 31.4
}
]
}
]
}Read one ad set
get/api/v1/ads/{id}
How far one ad set has got, and its files once they exist.
Ask about once a minute until status is done, failed or stopped; asking faster gains nothing. Each entry of ads gets its video as that ad is finished, and its words with their times (the example's are cut short).
Path
idstringRequired- The id POST /api/v1/ads gave you.
Returns
idstring- The ad set's id. Keep it: it is how you read the set back.
statusstring- queued | making | done | failed | stopped.
stepstring or null- What is being done right now, in words, e.g. "Rendering the hooks · 3/6 ads".
errorstring or null- Why it failed, when it did.
createdAtstringfinishedAtstring or nulltemplatestring or nullproductstring or null- The product's name.
secondsinteger or nullqualitystring or nullscriptstring or null- The main video's script, once it is written.
topicstring or null- Explainer templates only: the question the ad teaches the answer to.
sourcesarray of objects- Explainer templates only: every fact the ad shows, with the page we opened and found it on.
Show propertiesHide properties
claimstring- What the ad shows.
publisherstringurlstring- The page the fact was checked on.
saysstring- The sentence on that page the fact rests on, as written there.
yearinteger- The year that page gives for itself (published, or last updated for an encyclopedia), when it gives one. The film cites its sources with it: "(Pew Research Center, 2025)".
scriptIdstring or null- The saved script these words are (GET /api/v1/scripts/{id}), once it is filed. Send it as
scriptto POST /api/v1/ads to make the same words in another template. pitchstring or null- The argument this script makes, in one line.
adsarray of objects- One entry per opening. Each becomes one finished ad.
Show propertiesHide properties
idstringhookstring- The opening line.
videostring or null- The finished ad's file (mp4), once it exists. This is the address POST /api/v1/meta/send takes.
captionedboolean- true when
videois the captioned file. droppedstring or null- Why this opening was left out, when it was.
secondsnumber or null- The finished ad's length.
wordsarray of objects or null- Only on the read of ONE set: every word of the ad with the second it starts (
s) and ends (e). This is whatwhenon an insert is matched against (POST /api/v1/edits).
curl https://www.scenelabs.io/api/v1/ads/3f0c9c1e-5b7a-4a52-9d3e-2a6f1c8b7e10 \
-H "Authorization: Bearer $SCENELABS_KEY"const response = await fetch("https://www.scenelabs.io/api/v1/ads/3f0c9c1e-5b7a-4a52-9d3e-2a6f1c8b7e10", {
headers: { Authorization: `Bearer ${process.env.SCENELABS_KEY}` },
});
console.log(await response.json());import os
import requests
response = requests.get(
"https://www.scenelabs.io/api/v1/ads/3f0c9c1e-5b7a-4a52-9d3e-2a6f1c8b7e10",
headers={
"Authorization": f"Bearer {os.environ['SCENELABS_KEY']}",
},
)
print(response.json()){
"id": "3f0c9c1e-5b7a-4a52-9d3e-2a6f1c8b7e10",
"status": "done",
"step": "Done",
"error": null,
"createdAt": "2026-11-25T18:02:11.000Z",
"finishedAt": "2026-11-25T18:31:40.000Z",
"template": "yapping",
"product": "Everyday bottle",
"seconds": 30,
"quality": "720p",
"script": "I stopped buying plastic bottles in March. …",
"ads": [
{
"id": "h1",
"hook": "Why is your water warm by lunch?",
"video": "https://…/ads/3f0c9c1e/h1-captioned.mp4",
"captioned": true,
"dropped": null,
"seconds": 31.4,
"words": [
{
"w": "Why",
"s": 0.12,
"e": 0.34
},
{
"w": "is",
"s": 0.34,
"e": 0.46
},
{
"w": "your",
"s": 0.46,
"e": 0.62
},
{
"w": "water",
"s": 0.62,
"e": 0.96
},
{
"w": "warm",
"s": 0.96,
"e": 1.3
},
{
"w": "by",
"s": 1.3,
"e": 1.44
},
{
"w": "lunch?",
"s": 1.44,
"e": 1.98
},
{
"w": "I",
"s": 2.4,
"e": 2.52
},
{
"w": "stopped",
"s": 2.52,
"e": 2.9
},
{
"w": "buying",
"s": 2.9,
"e": 3.24
},
{
"w": "plastic",
"s": 3.24,
"e": 3.7
},
{
"w": "bottles",
"s": 3.7,
"e": 4.12
},
{
"w": "in",
"s": 4.12,
"e": 4.24
},
{
"w": "March.",
"s": 4.24,
"e": 4.8
},
{
"w": "It",
"s": 5.3,
"e": 5.42
},
{
"w": "stays",
"s": 5.42,
"e": 5.78
},
{
"w": "cold",
"s": 5.78,
"e": 6.14
},
{
"w": "for",
"s": 6.14,
"e": 6.3
},
{
"w": "24",
"s": 6.3,
"e": 6.74
},
{
"w": "hours.",
"s": 6.74,
"e": 7.3
}
]
}
]
}Scripts
The script library: every script written for the account, the pitch it makes, the templates it has been made in, and how each of those did on Meta. A verdict belongs to a script AND a template, so a script that lost in one template can be tried in another, and a winning script made again.
List your scripts
get/api/v1/scripts
Every script written for this account, with its pitch, the templates it was made in and, when asked, how each did on Meta.
A script is filed here by itself the moment an ad set's writer writes it, for sets made by the API and by the app's own loop. Each script lists its uses: the ad sets made from it and the template of each. With results=1 every use gets a verdict and the script gets byTemplate. The sets of one product are ranked AGAINST EACH OTHER by the rule the app's Analyze screen uses (cost per result, or how often the opening held when nothing was bought yet): the best of at least three shown sets is winning, the worse half losing, and with fewer than three shown sets every one is early. A verdict is for a script IN a template: a script that lost as one template may still win as another. results=1 reads Meta, so a few times a day is plenty.
Query
productIdstringOptional- Only this product's scripts. Leave out for all.
resultsstringOptional- Send 1 to also read Meta once and judge every use (winning, holding, losing, early).
Returns
scriptsarray of objectsShow propertiesHide properties
idstringproductstring or nullproductIdstring or nullpitchstring or null- The argument the script makes, in one line.
titlestring or nulltextstring- The main video's words.
linesarray of stringshooksarray of objects- Its openings.
Show propertiesHide properties
textstringanglestring
sourcestring- writer (written for an ad set) | borrowed (carried over from a real ad) | yours (saved by a caller).
createdAtstringusesarray of objects- Every ad set made from it. The numbers and
verdictare there only when results were read. Show propertiesHide properties
setstring- The ad set's id.
templatestring or nullstatusstringmadeAtstringsentinteger- How many of the set's ads are in the Meta ad account.
verdictstring- winning | holding | losing | early. For this script IN THIS TEMPLATE. early = not shown enough yet, too few ads in its campaign to compare, or never sent.
adsintegerspendnumberimpressionsintegerlinkClicksintegerresultsintegercostPerResultnumber or nullmetaAdsarray of strings
byTemplateobject or null- Template id to verdict, when results were read.
verdictstring or null- A summary for a list: winning if it is winning in any template; losing only if every template tried lost.
resultsobject or null- The window Meta's numbers cover, or null when they were not read.
Show propertiesHide properties
sincestringuntilstringcurrencystring or null
curl "https://www.scenelabs.io/api/v1/scripts?results=1" \
-H "Authorization: Bearer $SCENELABS_KEY"const response = await fetch("https://www.scenelabs.io/api/v1/scripts?results=1", {
headers: { Authorization: `Bearer ${process.env.SCENELABS_KEY}` },
});
console.log(await response.json());import os
import requests
response = requests.get(
"https://www.scenelabs.io/api/v1/scripts?results=1",
headers={
"Authorization": f"Bearer {os.environ['SCENELABS_KEY']}",
},
)
print(response.json()){
"scripts": [
{
"id": "8d2b6f0a-3c41-4e7d-9a15-6b0e2f7c9d21",
"product": "Everyday bottle",
"productId": "product-1",
"pitch": "Cold water at 5pm without ice, for people who commute.",
"title": "Warm by lunch",
"text": "You fill it at seven. By lunch it is warm. This one keeps it cold for 24 hours. The link is below.",
"lines": [
"You fill it at seven.",
"By lunch it is warm.",
"This one keeps it cold for 24 hours.",
"The link is below."
],
"hooks": [
{
"text": "Why is your water warm by lunch?",
"angle": "question"
}
],
"source": "writer",
"createdAt": "2026-11-26T10:00:00.000Z",
"uses": [
{
"set": "3f0c9c1e-5b7a-4a52-9d3e-2a6f1c8b7e10",
"template": "yapping",
"status": "done",
"madeAt": "2026-11-26T10:00:00.000Z",
"sent": 6,
"verdict": "winning",
"ads": 6,
"spend": 61.2,
"impressions": 9140,
"linkClicks": 118,
"results": 7,
"costPerResult": 8.74,
"metaAds": [
"120250000000000001"
]
}
],
"byTemplate": {
"yapping": "winning"
},
"verdict": "winning"
}
],
"results": {
"since": "2026-08-28",
"until": "2026-11-26",
"currency": "USD"
}
}Save a script of your own
post/api/v1/scripts
Save a script you wrote, to make ad sets from it.
Give the main video's words as text (or lines, its sentences in order), up to 3,200 characters, and the argument it makes as pitch. hooks are its opening lines, up to six; leave them out and they are written for it when a set is made. Nothing is rewritten. Then POST /api/v1/ads with script set to the id you get back.
Request body
textstringOptional- The words of the main video. Send this or
lines. linesarray of stringsOptional- The same, as sentences in order.
pitchstringOptional- The argument it makes, in one line.
titlestringOptionalhooksarray of stringsOptional- Up to six opening lines.
productIdstringOptional- One of the account's products. Leave out for the chosen one.
Returns
idstringproductstring or nullproductIdstring or nullpitchstring or null- The argument the script makes, in one line.
titlestring or nulltextstring- The main video's words.
linesarray of stringshooksarray of objects- Its openings.
Show propertiesHide properties
textstringanglestring
sourcestring- writer (written for an ad set) | borrowed (carried over from a real ad) | yours (saved by a caller).
createdAtstringusesarray of objects- Every ad set made from it. The numbers and
verdictare there only when results were read. Show propertiesHide properties
setstring- The ad set's id.
templatestring or nullstatusstringmadeAtstringsentinteger- How many of the set's ads are in the Meta ad account.
verdictstring- winning | holding | losing | early. For this script IN THIS TEMPLATE. early = not shown enough yet, too few ads in its campaign to compare, or never sent.
adsintegerspendnumberimpressionsintegerlinkClicksintegerresultsintegercostPerResultnumber or nullmetaAdsarray of strings
byTemplateobject or null- Template id to verdict, when results were read.
verdictstring or null- A summary for a list: winning if it is winning in any template; losing only if every template tried lost.
curl https://www.scenelabs.io/api/v1/scripts \
-X POST \
-H "Authorization: Bearer $SCENELABS_KEY" \
-H "Content-Type: application/json" \
-d '{
"text": "You fill it at seven. By lunch it is warm. This one keeps it cold for 24 hours. The link is below.",
"pitch": "Cold water at 5pm without ice, for people who commute."
}'const response = await fetch("https://www.scenelabs.io/api/v1/scripts", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.SCENELABS_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
text: "You fill it at seven. By lunch it is warm. This one keeps it cold for 24 hours. The link is below.",
pitch: "Cold water at 5pm without ice, for people who commute.",
}),
});
console.log(await response.json());import os
import requests
response = requests.post(
"https://www.scenelabs.io/api/v1/scripts",
headers={
"Authorization": f"Bearer {os.environ['SCENELABS_KEY']}",
},
json={
"text": "You fill it at seven. By lunch it is warm. This one keeps it cold for 24 hours. The link is below.",
"pitch": "Cold water at 5pm without ice, for people who commute.",
},
)
print(response.json()){
"id": "8d2b6f0a-3c41-4e7d-9a15-6b0e2f7c9d21",
"product": "Everyday bottle",
"productId": "product-1",
"pitch": "Cold water at 5pm without ice, for people who commute.",
"title": "Warm by lunch",
"text": "You fill it at seven. By lunch it is warm. This one keeps it cold for 24 hours. The link is below.",
"lines": [
"You fill it at seven.",
"By lunch it is warm.",
"This one keeps it cold for 24 hours.",
"The link is below."
],
"hooks": [
{
"text": "Why is your water warm by lunch?",
"angle": "question"
}
],
"source": "yours",
"createdAt": "2026-11-26T10:00:00.000Z",
"uses": []
}What to make next
get/api/v1/scripts/next
Which script to make in which template next, from how the scripts so far did on Meta.
Reads Meta once and answers a short list, in order: a script that is WINNING, in a picture template it has not been made in yet (yapping, mic-thing, podcast, green-screen, multicam; winners are favoured); then a NEW script (script: null: it is built on the pitch of the product used least so far, see pitches on the product); then a script that lost in ONE template, in one more template before it is dropped. A script that lost in two templates is left alone, and the same script and template are never offered twice. Each entry is one POST /api/v1/ads: {template, script}, or {template} for a new pitch. Nothing is started by this call. judged: false means Meta could not be read, and the list is then only a new pitch.
Query
productIdstringOptional- The product to plan for. Leave out for all the account's scripts.
Returns
nextarray of objectsShow propertiesHide properties
scriptstring or null- A saved script's id, or null for a new pitch.
templatestringwhystring- One sentence saying why this is next.
pitchstring or null
judgedbooleanscriptsinteger- How many scripts the list was drawn from.
curl https://www.scenelabs.io/api/v1/scripts/next \
-H "Authorization: Bearer $SCENELABS_KEY"const response = await fetch("https://www.scenelabs.io/api/v1/scripts/next", {
headers: { Authorization: `Bearer ${process.env.SCENELABS_KEY}` },
});
console.log(await response.json());import os
import requests
response = requests.get(
"https://www.scenelabs.io/api/v1/scripts/next",
headers={
"Authorization": f"Bearer {os.environ['SCENELABS_KEY']}",
},
)
print(response.json()){
"next": [
{
"script": "8d2b6f0a-3c41-4e7d-9a15-6b0e2f7c9d21",
"template": "podcast",
"why": "Its script is winning as yapping. Not made as podcast yet.",
"pitch": "Cold water at 5pm without ice, for people who commute."
},
{
"script": null,
"template": "storytelling",
"why": "A new script: 4 already written for this product. It is built on the pitch used least so far.",
"pitch": null
}
],
"judged": true,
"scripts": 4
}Read one script
get/api/v1/scripts/{id}
One script in full: its words, its openings, every ad set made from it and how each did, template by template.
This is the call to make when a result row says an ad is winning or losing: the row's script is this id, and here are the words it spoke and how the same words did in each template.
Query
idstringRequired- A script's id from /api/v1/scripts, or
scriptIdon an ad set. resultsstringOptional- Send 0 to leave Meta out (no verdicts).
Returns
idstringproductstring or nullproductIdstring or nullpitchstring or null- The argument the script makes, in one line.
titlestring or nulltextstring- The main video's words.
linesarray of stringshooksarray of objects- Its openings.
Show propertiesHide properties
textstringanglestring
sourcestring- writer (written for an ad set) | borrowed (carried over from a real ad) | yours (saved by a caller).
createdAtstringusesarray of objects- Every ad set made from it. The numbers and
verdictare there only when results were read. Show propertiesHide properties
setstring- The ad set's id.
templatestring or nullstatusstringmadeAtstringsentinteger- How many of the set's ads are in the Meta ad account.
verdictstring- winning | holding | losing | early. For this script IN THIS TEMPLATE. early = not shown enough yet, too few ads in its campaign to compare, or never sent.
adsintegerspendnumberimpressionsintegerlinkClicksintegerresultsintegercostPerResultnumber or nullmetaAdsarray of strings
byTemplateobject or null- Template id to verdict, when results were read.
verdictstring or null- A summary for a list: winning if it is winning in any template; losing only if every template tried lost.
curl https://www.scenelabs.io/api/v1/scripts/8d2b6f0a-3c41-4e7d-9a15-6b0e2f7c9d21 \
-H "Authorization: Bearer $SCENELABS_KEY"const response = await fetch("https://www.scenelabs.io/api/v1/scripts/8d2b6f0a-3c41-4e7d-9a15-6b0e2f7c9d21", {
headers: { Authorization: `Bearer ${process.env.SCENELABS_KEY}` },
});
console.log(await response.json());import os
import requests
response = requests.get(
"https://www.scenelabs.io/api/v1/scripts/8d2b6f0a-3c41-4e7d-9a15-6b0e2f7c9d21",
headers={
"Authorization": f"Bearer {os.environ['SCENELABS_KEY']}",
},
)
print(response.json()){
"id": "8d2b6f0a-3c41-4e7d-9a15-6b0e2f7c9d21",
"product": "Everyday bottle",
"productId": "product-1",
"pitch": "Cold water at 5pm without ice, for people who commute.",
"title": "Warm by lunch",
"text": "You fill it at seven. By lunch it is warm. This one keeps it cold for 24 hours. The link is below.",
"lines": [
"You fill it at seven.",
"By lunch it is warm.",
"This one keeps it cold for 24 hours.",
"The link is below."
],
"hooks": [
{
"text": "Why is your water warm by lunch?",
"angle": "question"
}
],
"source": "writer",
"createdAt": "2026-11-26T10:00:00.000Z",
"uses": [
{
"set": "3f0c9c1e-5b7a-4a52-9d3e-2a6f1c8b7e10",
"template": "yapping",
"status": "done",
"madeAt": "2026-11-26T10:00:00.000Z",
"sent": 6,
"verdict": "winning",
"ads": 6,
"spend": 61.2,
"impressions": 9140,
"linkClicks": 118,
"results": 7,
"costPerResult": 8.74,
"metaAds": [
"120250000000000001"
]
}
],
"byTemplate": {
"yapping": "winning"
},
"verdict": "winning"
}Effects
Short films drawn by code, with no actor in them: a text match cut, a paper cut-out, a paper fold-out, a confidential file, a flight path on a map, a newspaper headline, a search bar, a text message thread, phone notifications, a five-star review, a receipt, sticky notes, a before and after, a handwritten note, a rising chart, instant photos, a price slashed, a calendar flip, an order tracker, a scratch card, an email inbox, a coupon, a comparison table, a feature card over a screenshot, a notes-app list, a social post card, a this-or-that quiz, a phone alert, and explainers that show facts: a chart under a question, cartoon scenes, a crayon page, a cartoon pair with two lists, a stage-by-stage timeline, a bar race over the years, a size line-up, a map, an iceberg, a whiteboard, a whiteboard picture story and two paths side by side. Every option the app's own maker has is here.
What effects there are
get/api/v1/effects
List the effects the API can make, and every option each one takes.
Read this before making one. Each option says its type, what it may be and what you get when you leave it out. The example below is cut short: the real answer lists every effect with every option, and 243 places.
Returns
effectsarray of objectsShow propertiesHide properties
kindstring- What to send as
kind. namestringlinestring- What it makes, in one sentence.
optionsarray of objects- Every option it takes. Each is optional unless
requiredis true. Show propertiesHide properties
keystring- The option's name inside
options. namestring- What the app calls it.
typestring- text | number | pick | boolean | place | photo (a picture's address from POST /api/v1/uploads).
defaultstring or number or boolean or null- What you get when you leave it out. null: it is worked out from the other options.
requiredbooleanvaluesarray of strings- For a pick: what it may be.
minnumbermaxnumber- For a number, the highest it may be. For text, the most characters.
stepnumberunitstringnotestring
placesarray of objects- Where a flight path can fly from and to.
Show propertiesHide properties
idstringnamestringcountrystring
curl https://www.scenelabs.io/api/v1/effects \
-H "Authorization: Bearer $SCENELABS_KEY"const response = await fetch("https://www.scenelabs.io/api/v1/effects", {
headers: { Authorization: `Bearer ${process.env.SCENELABS_KEY}` },
});
console.log(await response.json());import os
import requests
response = requests.get(
"https://www.scenelabs.io/api/v1/effects",
headers={
"Authorization": f"Bearer {os.environ['SCENELABS_KEY']}",
},
)
print(response.json()){
"effects": [
{
"kind": "match-cut",
"name": "Text match cut",
"line": "One word locked in the middle while the page round it changes on every cut.",
"options": [
{
"key": "text",
"name": "Your line",
"type": "text",
"max": 80,
"required": true,
"default": null,
"note": "The words on the page, 14 at most."
},
{
"key": "pages",
"name": "Pages",
"type": "pick",
"values": [
"mixed",
"newspaper",
"book",
"typewriter",
"notebook"
],
"default": "mixed"
},
{
"key": "seconds",
"name": "Length",
"type": "number",
"min": 2,
"max": 8,
"step": 0.5,
"unit": "seconds",
"default": 4
}
]
},
{
"kind": "cut-out",
"name": "Paper cut-out",
"line": "Your photo cut out with a paper edge, jiggling like stop-motion.",
"options": [
{
"key": "photo",
"name": "Photo",
"type": "photo",
"note": "A picture's address from POST /api/v1/uploads. A person or a thing. It is cut out of its background for you.",
"default": null,
"required": true
},
{
"key": "edge",
"name": "Paper edge",
"type": "pick",
"values": [
"thin",
"medium",
"thick"
],
"default": "medium"
}
]
},
{
"kind": "flight-path",
"name": "Flight path",
"line": "A plane flying a dashed route between two places on a map.",
"options": [
{
"key": "from",
"name": "From",
"type": "place",
"note": "A place `id` from `places` in this answer.",
"default": "london"
},
{
"key": "look",
"name": "Map",
"type": "pick",
"values": [
"paper",
"dark",
"blue"
],
"default": "paper"
}
]
}
],
"places": [
{
"id": "london",
"name": "London",
"country": "United Kingdom"
},
{
"id": "tokyo",
"name": "Tokyo",
"country": "Japan"
}
]
}Make an effect
post/api/v1/effects
Start ONE short film of an effect, on its own.
The film is 2 to 10 seconds, drawn on our servers from the options alone. This call only starts it and gives you its id. Read it back with GET /api/v1/effects/{id}. It costs nothing, except the paper cut-out, which pays 4 cents to cut the subject out of its photo. A value that is not allowed is refused with a sentence; the answer shows every option as the film will be made. An account can start 30 an hour. This call is for looking at an effect before you use it, or for taking the clip somewhere else. You do NOT need it to put an effect into an ad: POST /api/v1/edits draws the effect straight into the ad, at the words you name.
Request body
kindstringRequired- match-cut | cut-out | fold-out | confidential | flight-path | newspaper | search-bar | text-thread | notifications | review-stars | receipt | sticky-notes | before-after | handwritten | chart | polaroids | price-slash | calendar | delivery | scratch-card | inbox | coupon | compare | feature-card | notes | post | quiz | alert | chart-question | cartoon-story | crayon-page | cartoon-pair | body-timeline | race | size-lineup | map | iceberg | whiteboard | whiteboard-story | two-paths | stick-crowd: a
kindfrom GET /api/v1/effects. optionsobjectOptional- The effect's options by
key, as GET /api/v1/effects lists them. Leave one out for its default. The text match cut needstext; the paper cut-out and the paper fold-out needphoto.
Returns
idstring- Keep it: it is how you read the film back.
statusstring- making
kindstringoptionsobject- Every option, as the film will be made.
curl https://www.scenelabs.io/api/v1/effects \
-X POST \
-H "Authorization: Bearer $SCENELABS_KEY" \
-H "Content-Type: application/json" \
-d '{
"kind": "match-cut",
"options": {
"text": "Stop scrolling. Start selling.",
"from": 3,
"pages": "newspaper",
"seconds": 4
}
}'const response = await fetch("https://www.scenelabs.io/api/v1/effects", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.SCENELABS_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
kind: "match-cut",
options: {
text: "Stop scrolling. Start selling.",
from: 3,
pages: "newspaper",
seconds: 4,
},
}),
});
console.log(await response.json());import os
import requests
response = requests.post(
"https://www.scenelabs.io/api/v1/effects",
headers={
"Authorization": f"Bearer {os.environ['SCENELABS_KEY']}",
},
json={
"kind": "match-cut",
"options": {
"text": "Stop scrolling. Start selling.",
"from": 3,
"pages": "newspaper",
"seconds": 4,
},
},
)
print(response.json()){
"id": "fx_WyJzYnhfOFFtMmRLNHZUMXhZIiwiY21kXzVacjlwTDBhVzNuQiIsIm1hdGNoLWN1dCIsIjk6MTYiXQ",
"status": "making",
"kind": "match-cut",
"options": {
"text": "Stop scrolling. Start selling.",
"from": 3,
"to": 3,
"shape": "9:16",
"seconds": 4,
"pace": 10,
"pages": "newspaper",
"marker": "yellow",
"mark": "marker",
"zoom": 0.5,
"blur": 0.5,
"sound": "shutter",
"hold": true,
"seed": 1
}
}Read one effect
get/api/v1/effects/{id}
How far one film has got, and its file once it exists.
Ask every few seconds until status is done or failed. The finished film is also kept in the account's Library in the app.
Path
idstringRequired- The id POST /api/v1/effects gave you.
Returns
idstringstatusstring- making | done | failed.
kindstringprogressnumber- 0 to 1.
videostring or null- The finished film's file (mp4), once it exists.
errorstring or null- Why it failed, when it did.
curl https://www.scenelabs.io/api/v1/effects/fx_WyJzYnhfOFFtMmRLNHZUMXhZIiwiY21kXzVacjlwTDBhVzNuQiIsIm1hdGNoLWN1dCIsIjk6MTYiXQ \
-H "Authorization: Bearer $SCENELABS_KEY"const response = await fetch("https://www.scenelabs.io/api/v1/effects/fx_WyJzYnhfOFFtMmRLNHZUMXhZIiwiY21kXzVacjlwTDBhVzNuQiIsIm1hdGNoLWN1dCIsIjk6MTYiXQ", {
headers: { Authorization: `Bearer ${process.env.SCENELABS_KEY}` },
});
console.log(await response.json());import os
import requests
response = requests.get(
"https://www.scenelabs.io/api/v1/effects/fx_WyJzYnhfOFFtMmRLNHZUMXhZIiwiY21kXzVacjlwTDBhVzNuQiIsIm1hdGNoLWN1dCIsIjk6MTYiXQ",
headers={
"Authorization": f"Bearer {os.environ['SCENELABS_KEY']}",
},
)
print(response.json()){
"id": "fx_WyJzYnhfOFFtMmRLNHZUMXhZIiwiY21kXzVacjlwTDBhVzNuQiIsIm1hdGNoLWN1dCIsIjk6MTYiXQ",
"status": "done",
"kind": "match-cut",
"progress": 1,
"video": "https://…/films/match-cut-8f21.mp4",
"error": null
}Edits
Put things INTO a finished ad, each at its moment: an effect, a picture, the green screen look (the person small in a corner over a picture), a ring, an arrow. Each arrives with its own small sound.
Bring a picture in
post/api/v1/uploads
Copy a picture from the web onto your account, to use in an effect or an edit.
Every other call takes only pictures that were brought in this way: the url in the answer is what you hand to an effect's photo or an insert's src. rights: true is your word that you have the right to use the picture and that anyone in it agreed; it is required every time. A picture can be 25 MB at most. It costs nothing.
Request body
urlstringRequired- The picture's web address (http or https): a jpg, png or webp.
rightsbooleanRequired- Must be true: you have the right to use this picture, and anyone in it agreed.
Returns
urlstring- The picture's address on your account. Use this one from now on.
kindstring- image
curl https://www.scenelabs.io/api/v1/uploads \
-X POST \
-H "Authorization: Bearer $SCENELABS_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com/images/bottle-on-desk.jpg",
"rights": true
}'const response = await fetch("https://www.scenelabs.io/api/v1/uploads", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.SCENELABS_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
url: "https://example.com/images/bottle-on-desk.jpg",
rights: true,
}),
});
console.log(await response.json());import os
import requests
response = requests.post(
"https://www.scenelabs.io/api/v1/uploads",
headers={
"Authorization": f"Bearer {os.environ['SCENELABS_KEY']}",
},
json={
"url": "https://example.com/images/bottle-on-desk.jpg",
"rights": True,
},
)
print(response.json()){
"url": "https://…/refs/mh2k1x-9fq2a.jpg",
"kind": "image"
}Cut the person out
post/api/v1/cutouts
Start cutting the person out of an ad's video, for the green screen look.
The answer of GET /api/v1/cutouts/{id}, once done, has a video: the same video with everything but the person made clear. Hand it to POST /api/v1/edits as person, and a picture with layout behind draws the person small in a corner, cut out. Name the SAME video here as in the edit (set and ad for both, or the same video for both): the two play frame for frame. It is priced by the video's length (about $0.86 for a 31-second ad), paid from the API balance and returned if it fails. A video can be 90 seconds at most.
Request body
setstringOptional- An ad set's id from /api/v1/ads. With
ad. adstringOptional- The id of one finished ad in that set.
videostringOptional- Or, in place of
setandad: a finished file's own address.
Returns
idstringstatusstring- making
pricenumber or null- What it cost, in dollars.
currencystring- usd
secondsnumber or null- The video's length.
curl https://www.scenelabs.io/api/v1/cutouts \
-X POST \
-H "Authorization: Bearer $SCENELABS_KEY" \
-H "Content-Type: application/json" \
-d '{
"set": "3f0c9c1e-5b7a-4a52-9d3e-2a6f1c8b7e10",
"ad": "h1"
}'const response = await fetch("https://www.scenelabs.io/api/v1/cutouts", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.SCENELABS_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
set: "3f0c9c1e-5b7a-4a52-9d3e-2a6f1c8b7e10",
ad: "h1",
}),
});
console.log(await response.json());import os
import requests
response = requests.post(
"https://www.scenelabs.io/api/v1/cutouts",
headers={
"Authorization": f"Bearer {os.environ['SCENELABS_KEY']}",
},
json={
"set": "3f0c9c1e-5b7a-4a52-9d3e-2a6f1c8b7e10",
"ad": "h1",
},
)
print(response.json()){
"id": "0d1f6a3c-52be-4c0e-9f5d-7a1c2e9b4d11",
"status": "making",
"price": 0.86,
"currency": "usd",
"seconds": 31.4
}Read one cut-out
get/api/v1/cutouts/{id}
How one cut-out is going, and its file once it exists.
Ask every ten seconds or so until status is done or failed. A cut-out that fails gives its money back to the API balance.
Path
idstringRequired- The id POST /api/v1/cutouts gave you.
Returns
idstringstatusstring- making | done | failed.
videostring or null- The person on a clear background, once done. This is what POST /api/v1/edits takes as
person. pricenumber or null- What it cost in dollars, once done. 0 when it failed and the money came back.
refundedboolean- true when it failed and its price was returned.
errorstring or null- Why it failed, when it did.
curl https://www.scenelabs.io/api/v1/cutouts/0d1f6a3c-52be-4c0e-9f5d-7a1c2e9b4d11 \
-H "Authorization: Bearer $SCENELABS_KEY"const response = await fetch("https://www.scenelabs.io/api/v1/cutouts/0d1f6a3c-52be-4c0e-9f5d-7a1c2e9b4d11", {
headers: { Authorization: `Bearer ${process.env.SCENELABS_KEY}` },
});
console.log(await response.json());import os
import requests
response = requests.get(
"https://www.scenelabs.io/api/v1/cutouts/0d1f6a3c-52be-4c0e-9f5d-7a1c2e9b4d11",
headers={
"Authorization": f"Bearer {os.environ['SCENELABS_KEY']}",
},
)
print(response.json()){
"id": "0d1f6a3c-52be-4c0e-9f5d-7a1c2e9b4d11",
"status": "done",
"video": "https://…/person/0d1f6a3c-52be-4c0e-9f5d-7a1c2e9b4d11.webm",
"price": 0.86,
"refunded": false,
"error": null
}Edit an ad
post/api/v1/edits
Put effects, pictures, rings and arrows INTO one finished ad, each at its moment.
Name the ad with set and ad: it is made again from its own video, with the inserts under its captions and each one landing on the words you name (when) or the second you give (at). Or give any finished file as video: the inserts are laid over it as it is, and only at works, since its words are not known. Things that cover the frame (an effect, a full or a behind picture) may not overlap each other; cards, rings and arrows may sit on anything. The captions hide while an effect is up and move to the middle beside a small person. Every insert arrives with a small sound, all at one level set to sit under the voice of an ad made here. A wrong insert is refused with a sentence, and the answer says where each one landed. This call only starts the edit: read it back with GET /api/v1/edits/{id}. It costs nothing (a paper cut-out effect inside it still pays its 4 cents). 12 inserts an edit, 20 edits an hour.
Request body
setstringOptional- An ad set's id from /api/v1/ads. With
ad. adstringOptional- The id of one finished ad in that set.
videostringOptional- Or, in place of
setandad: a finished file's own address (an edit'svideo, say, to edit it again). personstringOptional- A finished cut-out's
videofrom /api/v1/cutouts, for pictures with layoutbehind. Left out, the person is shown in a small window instead of cut out. insertsarray of objectsRequired- What to put in, 1 to 12 of them, in any order.
Show propertiesHide properties
typestring- effect | image | circle | arrow.
atnumber- When it starts, in seconds from the start of the ad. Give this or
when, never both. whenstring- Words said in the ad: the insert starts on the first of them. They must be said exactly once (use more words if they are said twice). Needs an ad named by
setandad. soundboolean- false for no sound. Left out, it makes a small sound as it arrives: a pop for a card, a swish for a picture, a pen for a ring, a zip for an arrow. An effect has its own (the match cut clicks on every cut).
kindstring- For an effect: its
kindfrom GET /api/v1/effects. optionsobject- For an effect: its options, as for POST /api/v1/effects. It is drawn tall, full frame, for its own
seconds. srcstring- For an image: the picture's address from POST /api/v1/uploads.
layoutstring- For an image: full (covers the frame; when left out) | card (pops up over the video) | behind (the green screen look: the picture fills the frame, the person is small in a bottom corner).
secondsnumber- How long it stays. An image: 0.8 to 8 (2.5 when left out). A ring or an arrow: 0.6 to 4 (1.6 when left out).
personobject- For layout behind: how the person sits.
Show propertiesHide properties
sizestring or number- half | third | quarter of the frame (third when left out), or a number from 0.2 to 0.6.
spotstring- bottom-right (when left out) | bottom-left | bottom-middle. The person only ever sits along the bottom.
tiltnumber- Degrees, -30 to 30. 0 when left out.
movesarray of objects- Up to 6 moves while the picture is up. What a move leaves out stays as it was.
Show propertiesHide properties
atnumber- Seconds after the picture comes up.
sizestring or number- half | third | quarter of the frame (third when left out), or a number from 0.2 to 0.6.
spotstring- bottom-right (when left out) | bottom-left | bottom-middle. The person only ever sits along the bottom.
tiltnumber- Degrees, -30 to 30. 0 when left out.
xnumber- For a ring, its middle; for an arrow, its tip. 0 is the left edge of the frame, 1 the right.
ynumber- 0 is the top of the frame, 1 the bottom.
wnumber- For a ring: its width as a part of the frame's width (0.36 when left out).
hnumber- For a ring: its height as a part of the frame's height (0.1 when left out).
fromstring- For an arrow: the side it comes from. left | right | top | bottom | top-left | top-right | bottom-left (when left out) | bottom-right.
colourstring- For a ring or an arrow: red (when left out) | yellow | white | black | blue | green.
Returns
idstring- Keep it: it is how you read the edit back.
statusstring- making
insertsarray of objects- Where each insert landed, by its place in your list (1 is the first).
Show propertiesHide properties
insertintegeratnumber- The second it starts.
secondsnumber- How long it stays.
personstring or null- cut out | in a window, when a picture has layout
behind.
curl https://www.scenelabs.io/api/v1/edits \
-X POST \
-H "Authorization: Bearer $SCENELABS_KEY" \
-H "Content-Type: application/json" \
-d '{
"set": "3f0c9c1e-5b7a-4a52-9d3e-2a6f1c8b7e10",
"ad": "h1",
"person": "https://…/person/0d1f6a3c-52be-4c0e-9f5d-7a1c2e9b4d11.webm",
"inserts": [
{
"type": "effect",
"kind": "match-cut",
"when": "stopped buying",
"options": {
"text": "I stopped buying plastic bottles.",
"from": 3,
"to": 4,
"seconds": 2
}
},
{
"type": "image",
"src": "https://…/refs/mh2k1x-9fq2a.jpg",
"when": "stays cold",
"layout": "behind",
"seconds": 4,
"person": {
"size": "third",
"tilt": 8,
"moves": [
{
"at": 2,
"spot": "bottom-left",
"tilt": -10
}
]
}
},
{
"type": "arrow",
"at": 7,
"x": 0.7,
"y": 0.3
}
]
}'const response = await fetch("https://www.scenelabs.io/api/v1/edits", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.SCENELABS_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
set: "3f0c9c1e-5b7a-4a52-9d3e-2a6f1c8b7e10",
ad: "h1",
person: "https://…/person/0d1f6a3c-52be-4c0e-9f5d-7a1c2e9b4d11.webm",
inserts: [
{
type: "effect",
kind: "match-cut",
when: "stopped buying",
options: {
text: "I stopped buying plastic bottles.",
from: 3,
to: 4,
seconds: 2,
},
},
{
type: "image",
src: "https://…/refs/mh2k1x-9fq2a.jpg",
when: "stays cold",
layout: "behind",
seconds: 4,
person: {
size: "third",
tilt: 8,
moves: [
{
at: 2,
spot: "bottom-left",
tilt: -10,
},
],
},
},
{
type: "arrow",
at: 7,
x: 0.7,
y: 0.3,
},
],
}),
});
console.log(await response.json());import os
import requests
response = requests.post(
"https://www.scenelabs.io/api/v1/edits",
headers={
"Authorization": f"Bearer {os.environ['SCENELABS_KEY']}",
},
json={
"set": "3f0c9c1e-5b7a-4a52-9d3e-2a6f1c8b7e10",
"ad": "h1",
"person": "https://…/person/0d1f6a3c-52be-4c0e-9f5d-7a1c2e9b4d11.webm",
"inserts": [
{
"type": "effect",
"kind": "match-cut",
"when": "stopped buying",
"options": {
"text": "I stopped buying plastic bottles.",
"from": 3,
"to": 4,
"seconds": 2,
},
},
{
"type": "image",
"src": "https://…/refs/mh2k1x-9fq2a.jpg",
"when": "stays cold",
"layout": "behind",
"seconds": 4,
"person": {
"size": "third",
"tilt": 8,
"moves": [
{
"at": 2,
"spot": "bottom-left",
"tilt": -10,
},
],
},
},
{
"type": "arrow",
"at": 7,
"x": 0.7,
"y": 0.3,
},
],
},
)
print(response.json()){
"id": "ed_WyJzYnhfOFFtMmRLNHZUMXhZIiwiY21kXzVacjlwTDBhVzNuQiJd",
"status": "making",
"inserts": [
{
"insert": 1,
"at": 2.52,
"seconds": 2
},
{
"insert": 2,
"at": 5.42,
"seconds": 4
},
{
"insert": 3,
"at": 7,
"seconds": 1.6
}
],
"person": "cut out"
}Read one edit
get/api/v1/edits/{id}
How far one edit has got, and its file once it exists.
Ask every ten seconds or so until status is done or failed. The video is a finished ad like any other: send it to Meta, or edit it again. It is also kept in the account's Library in the app.
Path
idstringRequired- The id POST /api/v1/edits gave you.
Returns
idstringstatusstring- making | done | failed.
progressnumber- 0 to 1.
videostring or null- The edited ad's file (mp4), once it exists.
errorstring or null- Why it failed, when it did.
curl https://www.scenelabs.io/api/v1/edits/ed_WyJzYnhfOFFtMmRLNHZUMXhZIiwiY21kXzVacjlwTDBhVzNuQiJd \
-H "Authorization: Bearer $SCENELABS_KEY"const response = await fetch("https://www.scenelabs.io/api/v1/edits/ed_WyJzYnhfOFFtMmRLNHZUMXhZIiwiY21kXzVacjlwTDBhVzNuQiJd", {
headers: { Authorization: `Bearer ${process.env.SCENELABS_KEY}` },
});
console.log(await response.json());import os
import requests
response = requests.get(
"https://www.scenelabs.io/api/v1/edits/ed_WyJzYnhfOFFtMmRLNHZUMXhZIiwiY21kXzVacjlwTDBhVzNuQiJd",
headers={
"Authorization": f"Bearer {os.environ['SCENELABS_KEY']}",
},
)
print(response.json()){
"id": "ed_WyJzYnhfOFFtMmRLNHZUMXhZIiwiY21kXzVacjlwTDBhVzNuQiJd",
"status": "done",
"progress": 1,
"video": "https://…/films/ad-edited-5c0e.mp4",
"error": null
}Meta ad account
The account's own connected Meta ad account: send finished ads to it, turn them on or off, read how they did, and what Meta suggests changing.
Check the Meta link
get/api/v1/meta/connection
Is Meta linked, and which ad account and Page will a send use?
Ask this BEFORE making an ad set you mean to send: canSend is true when a send will go through, and missing says what is not done yet. link in missing is the one step for a person: they sign in to Facebook once at linkAt. adAccount and page you can pick yourself with the POST below. expiresAt is when that Facebook sign-in ends (about 60 days after it was made): past it, a person links again. Nothing here calls Meta.
Returns
connectedbooleannamestring or null- The Facebook name the link was made with.
expiresAtstring or null- When the link ends.
adAccountobject or null- The ad account sends go to.
Show propertiesHide properties
idstringnamestringcurrencystring or null
pageobject or null- The Facebook Page ads post as.
Show propertiesHide properties
idstringnamestring
instagramobject or nullShow propertiesHide properties
idstringusernamestring or null
adAccountsarray of objects- The ad accounts to pick from.
Show propertiesHide properties
idstringnamestringcurrencystring or null
pagesarray of objects- The Pages to pick from.
Show propertiesHide properties
idstringnamestring
canSendboolean- true when a send will go through.
missingarray of strings- link | adAccount | page.
linkAtstring- Where a person links Meta.
curl https://www.scenelabs.io/api/v1/meta/connection \
-H "Authorization: Bearer $SCENELABS_KEY"const response = await fetch("https://www.scenelabs.io/api/v1/meta/connection", {
headers: { Authorization: `Bearer ${process.env.SCENELABS_KEY}` },
});
console.log(await response.json());import os
import requests
response = requests.get(
"https://www.scenelabs.io/api/v1/meta/connection",
headers={
"Authorization": f"Bearer {os.environ['SCENELABS_KEY']}",
},
)
print(response.json()){
"connected": true,
"name": "Sam Rivera",
"expiresAt": "2027-01-22T10:00:00.000Z",
"adAccount": {
"id": "act_1234567890",
"name": "Bottle Co",
"currency": "USD"
},
"page": {
"id": "109876543210",
"name": "Bottle Co"
},
"instagram": null,
"adAccounts": [
{
"id": "act_1234567890",
"name": "Bottle Co",
"currency": "USD"
}
],
"pages": [
{
"id": "109876543210",
"name": "Bottle Co"
}
],
"canSend": true,
"missing": [],
"linkAt": "https://scenelabs.io/home/avatars?settings=meta"
}Pick the ad account and Page
post/api/v1/meta/connection
Choose which ad account and which Page sends use.
Send ids from the GET above (adAccounts, pages). An id that is not one of the account's own is refused; nothing is ever cleared. The answer is the link as it now stands.
Request body
adAccountIdstringOptional- One of
adAccounts. pageIdstringOptional- One of
pages.
Returns
connectedbooleanadAccountobject or nullpageobject or nullcanSendbooleanmissingarray of strings
curl https://www.scenelabs.io/api/v1/meta/connection \
-X POST \
-H "Authorization: Bearer $SCENELABS_KEY" \
-H "Content-Type: application/json" \
-d '{
"adAccountId": "act_1234567890",
"pageId": "109876543210"
}'const response = await fetch("https://www.scenelabs.io/api/v1/meta/connection", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.SCENELABS_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
adAccountId: "act_1234567890",
pageId: "109876543210",
}),
});
console.log(await response.json());import os
import requests
response = requests.post(
"https://www.scenelabs.io/api/v1/meta/connection",
headers={
"Authorization": f"Bearer {os.environ['SCENELABS_KEY']}",
},
json={
"adAccountId": "act_1234567890",
"pageId": "109876543210",
},
)
print(response.json()){
"connected": true,
"name": "Sam Rivera",
"expiresAt": "2027-01-22T10:00:00.000Z",
"adAccount": {
"id": "act_1234567890",
"name": "Bottle Co",
"currency": "USD"
},
"page": {
"id": "109876543210",
"name": "Bottle Co"
},
"instagram": null,
"adAccounts": [
{
"id": "act_1234567890",
"name": "Bottle Co",
"currency": "USD"
}
],
"pages": [
{
"id": "109876543210",
"name": "Bottle Co"
}
],
"canSend": true,
"missing": [],
"linkAt": "https://scenelabs.io/home/avatars?settings=meta"
}List the pixels
get/api/v1/meta/pixels
The pixels on the linked ad account.
A campaign with objective sales names the pixel it optimises for (campaign.pixelId on POST /api/v1/meta/send). This lists them. It reads Meta once.
Returns
pixelsarray of objectsShow propertiesHide properties
idstringnamestringlastFiredstring or null- When Meta last heard from it.
currencystring or null- The ad account's currency.
curl https://www.scenelabs.io/api/v1/meta/pixels \
-H "Authorization: Bearer $SCENELABS_KEY"const response = await fetch("https://www.scenelabs.io/api/v1/meta/pixels", {
headers: { Authorization: `Bearer ${process.env.SCENELABS_KEY}` },
});
console.log(await response.json());import os
import requests
response = requests.get(
"https://www.scenelabs.io/api/v1/meta/pixels",
headers={
"Authorization": f"Bearer {os.environ['SCENELABS_KEY']}",
},
)
print(response.json()){
"pixels": [
{
"id": "1234567890123456",
"name": "Bottle Co pixel",
"lastFired": "2026-11-28T21:14:03+0000"
}
],
"currency": "USD"
}Send an ad to Meta
post/api/v1/meta/send
Send ONE finished ad to the connected Meta ad account. It starts running there, unless you send `status: "PAUSED"`.
Meta must be linked first (GET /api/v1/meta/connection says whether it is). Meta takes a while to process a video: while it does, the answer is 202 and you send the same body again a few seconds later; key is what makes that safe, so use one key per ad and keep it. For the first ad of a set, send campaign and a campaign and ad set are made for it; for the rest, send the adsetId the first answer gave you so they share it. adsetId must be one an earlier send of this account made: an ad set built by hand in Ads Manager is refused. campaign.dailyBudget may not be above this key's day limit (key.dailyLimit on /api/v1/me). THE AD GOES LIVE BY ITSELF: it is turned on as soon as it is on Meta, and Meta reviews it before it runs. This spends the ad account's money, up to the campaign's daily budget, so a new campaign that starts running must be sent with campaign.dailyBudget (the call is refused without it). Send status: "PAUSED" to hold the ad instead; POST /api/v1/meta/state starts it later. Only what THIS send made is turned on: the ad, and the ad set and campaign made for it. An ad added with adsetId is turned on by itself and its ad set and campaign are left as they are (if you paused them, it waits there). Sending a key again never switches anything. Read status in the answer: ACTIVE, or PAUSED with notStarted saying why and which call starts it.
Request body
keystringRequired- Your own name for this ad, the same every time you send it. Sending a key again carries on with that ad; it never makes a second one.
adNamestringRequired- The ad's name in Ads Manager.
videoUrlstringRequired- A finished ad's
videoaddress from /api/v1/ads. Only our own files are taken. messagestringOptional- The text above the video.
linkstringRequired- Where the button goes.
statusstringOptional- ACTIVE (what happens when it is left out: the ad runs once Meta has reviewed it) or PAUSED (it waits until POST /api/v1/meta/state turns it on).
ctastringOptional- The button: LEARN_MORE (the default), SHOP_NOW, SIGN_UP, GET_OFFER, SUBSCRIBE, DOWNLOAD, BOOK_TRAVEL, CONTACT_US, APPLY_NOW, GET_QUOTE, ORDER_NOW or WATCH_MORE.
titlestringOptional- The headline under the video.
adsetIdstringOptional- An ad set an earlier send made. Leave out, with
campaign, to make a new one. campaignobjectOptional- For a new campaign and ad set.
Show propertiesHide properties
namestringdailyBudgetnumber- What the campaign may spend a day, in the ad account's currency: from 1 up to the key's day limit. Needed whenever the new campaign starts running (any send without
status: "PAUSED"). countriesarray of strings- Two-letter country codes, e.g. ["US"].
objectivestring- traffic (the default) or sales. Sales needs
pixelId. pixelIdstring
Returns
okbooleankeystringadIdstring- Meta's id for the ad.
adsetIdstringcampaignIdstringvideoIdstringstatusstring- ACTIVE: this send turned the ad on. PAUSED: it was sent paused, or it could not be started (
notStartedsays why), or an earlier call had already made it (then this is what that call left it as; GET /api/v1/meta/status asks Meta what it is doing now). turnedOnobject- What this send turned on: the ad, and the ad set and campaign when this send made them.
Show propertiesHide properties
adsintegeradSetsintegercampaignboolean
notStartedstring- Only when the ad is on Meta but could not be turned on: Meta's reason, and the call that starts it. Nothing is spending.
urlstring- Opens the ad in Ads Manager.
curl https://www.scenelabs.io/api/v1/meta/send \
-X POST \
-H "Authorization: Bearer $SCENELABS_KEY" \
-H "Content-Type: application/json" \
-d '{
"key": "bottle-nov-h1",
"adName": "Bottle · warm by lunch",
"videoUrl": "https://…/ads/3f0c9c1e/h1-captioned.mp4",
"message": "Cold for 24 hours.",
"link": "https://example.com/bottle",
"cta": "SHOP_NOW",
"campaign": {
"name": "Bottle · November",
"dailyBudget": 20,
"countries": [
"US"
]
}
}'const response = await fetch("https://www.scenelabs.io/api/v1/meta/send", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.SCENELABS_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
key: "bottle-nov-h1",
adName: "Bottle · warm by lunch",
videoUrl: "https://…/ads/3f0c9c1e/h1-captioned.mp4",
message: "Cold for 24 hours.",
link: "https://example.com/bottle",
cta: "SHOP_NOW",
campaign: {
name: "Bottle · November",
dailyBudget: 20,
countries: [
"US",
],
},
}),
});
console.log(await response.json());import os
import requests
response = requests.post(
"https://www.scenelabs.io/api/v1/meta/send",
headers={
"Authorization": f"Bearer {os.environ['SCENELABS_KEY']}",
},
json={
"key": "bottle-nov-h1",
"adName": "Bottle · warm by lunch",
"videoUrl": "https://…/ads/3f0c9c1e/h1-captioned.mp4",
"message": "Cold for 24 hours.",
"link": "https://example.com/bottle",
"cta": "SHOP_NOW",
"campaign": {
"name": "Bottle · November",
"dailyBudget": 20,
"countries": [
"US",
],
},
},
)
print(response.json()){
"ok": true,
"key": "bottle-nov-h1",
"adId": "120250000000000001",
"adsetId": "120250000000000010",
"campaignId": "120250000000000100",
"videoId": "1500000000000001",
"status": "ACTIVE",
"turnedOn": {
"ads": 1,
"adSets": 1,
"campaign": true
},
"url": "https://adsmanager.facebook.com/…"
}Turn ads on or off
post/api/v1/meta/state
Turn an ad, an ad set or a campaign on or off, or set a campaign's daily budget.
Turning something on spends the ad account's money. Only things this account's own sends made can be touched; any other id gets 404. A send made with status: "PAUSED" leaves three things paused: the campaign, its ad set and the ad. So status: "ACTIVE" on a CAMPAIGN switches on the ads our sends put in it, then their ad sets, then the campaign last, and turnedOn in the answer counts them. If Meta refuses one on the way, the campaign is left paused (nothing spends), the answer says how far it got, and the same call again carries on. status: "PAUSED" on a campaign is one change and stops everything in it. On an ad or an ad set, only that one thing changes. Send status, or dailyBudget (campaigns only), or both. dailyBudget may not be above this key's day limit (key.dailyLimit on /api/v1/me). Turning things off always works, whatever the API balance.
Request body
idstringRequired- Meta's id for the ad, the ad set or the campaign.
statusstringOptional- ACTIVE or PAUSED.
dailyBudgetnumberOptional- From 1 up to the key's day limit, in the ad account's currency. Campaigns only.
Returns
okbooleanidstringstatusstring or nulldailyBudgetnumberturnedOnobject- When a campaign is turned on: how many ads and ad sets under it were turned on with it.
Show propertiesHide properties
adsintegeradSetsintegercampaignboolean
curl https://www.scenelabs.io/api/v1/meta/state \
-X POST \
-H "Authorization: Bearer $SCENELABS_KEY" \
-H "Content-Type: application/json" \
-d '{
"id": "120250000000000100",
"status": "ACTIVE"
}'const response = await fetch("https://www.scenelabs.io/api/v1/meta/state", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.SCENELABS_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
id: "120250000000000100",
status: "ACTIVE",
}),
});
console.log(await response.json());import os
import requests
response = requests.post(
"https://www.scenelabs.io/api/v1/meta/state",
headers={
"Authorization": f"Bearer {os.environ['SCENELABS_KEY']}",
},
json={
"id": "120250000000000100",
"status": "ACTIVE",
},
)
print(response.json()){
"ok": true,
"id": "120250000000000100",
"status": "ACTIVE",
"turnedOn": {
"ads": 6,
"adSets": 1,
"campaign": true
}
}See what ads are doing
get/api/v1/meta/ad-status
What Meta says each ad is doing right now: active, paused, in review, rejected.
One read of Meta for up to 50 ads. The answer is kept for five minutes unless you ask for a fresh one.
Query
idsstringRequired- Up to 50 of Meta's ad ids, separated by commas.
freshstringOptional- Send 1 to skip the five-minute copy we keep.
Returns
statusesobject- Keyed by ad id.
atinteger- When it was read, in milliseconds.
cachedboolean
curl "https://www.scenelabs.io/api/v1/meta/ad-status?ids=120250000000000001" \
-H "Authorization: Bearer $SCENELABS_KEY"const response = await fetch("https://www.scenelabs.io/api/v1/meta/ad-status?ids=120250000000000001", {
headers: { Authorization: `Bearer ${process.env.SCENELABS_KEY}` },
});
console.log(await response.json());import os
import requests
response = requests.get(
"https://www.scenelabs.io/api/v1/meta/ad-status?ids=120250000000000001",
headers={
"Authorization": f"Bearer {os.environ['SCENELABS_KEY']}",
},
)
print(response.json()){
"statuses": {
"120250000000000001": {
"status": "PAUSED",
"issue": null
}
},
"at": 1795720931000
}Read results
get/api/v1/meta/results
How the ads in the connected ad account did: spend, views, clicks, results.
One row per ad, for every ad in the ad account over the window, including ads that have not been shown yet. keys tells you which rows are ads you sent (your key to Meta's ad id). A row of an ad Scenelabs made also says which ad set it is (set), the saved script it speaks (script: read it with GET /api/v1/scripts/{id}), that script's pitch, and the template it was made in, so a losing script can be told from a losing template. Each call reads Meta, so a few times a day is plenty.
Query
daysintegerOptional- How far back, 1 to 365. Leave out for 30.
Returns
rowsarray of objectsShow propertiesHide properties
adIdstringadNamestringsetstring- The Scenelabs ad set this ad is from, when it is one.
scriptstring or null- The saved script it speaks.
pitchstring or nulltemplatestring or null- The template it was made in.
adsetIdstringcampaignIdstringstatusstringspendnumberimpressionsintegerreachintegerlinkClicksintegerctrnumber- A fraction: 0.012 is 1.2%.
cpmnumbercpcnumberhookRatenumber- The share who watched past the opening.
holdRatenumberresultTypestring or null- What counts as a result, e.g. purchase.
resultsnumbercostPerResultnumber or nullroasnumber or null
keysobject- Your
keyto Meta's ad id, for the ads you sent. currencystringsincestringuntilstringaccountobjectShow propertiesHide properties
idstringnamestring or null
curl "https://www.scenelabs.io/api/v1/meta/results?days=7" \
-H "Authorization: Bearer $SCENELABS_KEY"const response = await fetch("https://www.scenelabs.io/api/v1/meta/results?days=7", {
headers: { Authorization: `Bearer ${process.env.SCENELABS_KEY}` },
});
console.log(await response.json());import os
import requests
response = requests.get(
"https://www.scenelabs.io/api/v1/meta/results?days=7",
headers={
"Authorization": f"Bearer {os.environ['SCENELABS_KEY']}",
},
)
print(response.json()){
"rows": [
{
"adId": "120250000000000001",
"adName": "Bottle · warm by lunch",
"adsetId": "120250000000000010",
"campaignId": "120250000000000100",
"status": "ACTIVE",
"spend": 18.4,
"impressions": 2310,
"reach": 2004,
"linkClicks": 31,
"ctr": 0.0134,
"cpm": 7.97,
"cpc": 0.59,
"hookRate": 0.31,
"holdRate": 0.12,
"resultType": "purchase",
"results": 2,
"costPerResult": 9.2,
"roas": 2.6
}
],
"keys": {
"bottle-nov-h1": "120250000000000001"
},
"currency": "USD",
"since": "2026-11-18",
"until": "2026-11-25",
"account": {
"id": "act_123",
"name": "Acme"
}
}List Meta's suggestions
get/api/v1/meta/recommendations
List what Meta suggests changing in the connected ad account.
Meta's own list (the one behind Ads Manager's opportunity score), read live. An empty list means Meta has nothing to suggest right now. Meta can show more in Ads Manager than it lists here. The account must have Meta connected in Settings. Reads only. Each call is one read of Meta: once a day is plenty.
Returns
accountobjectShow propertiesHide properties
idstringnamestring or null
recommendationsarray of objectsShow propertiesHide properties
signaturestring- Meta's id for this suggestion. Send it back to apply it. It stops working once the suggestion no longer holds.
typestring- Meta's name for the kind of change, e.g. CREATIVE_FATIGUE, ADVANTAGE_PLUS_AUDIENCE.
objectIdsarray of strings- The campaigns, ad sets or ads it is about.
bodystring or null- Meta's own sentence describing the change.
liftstring or null- What Meta expects, e.g. "Up to 3% more Traffic".
pointsnumber or null- How much the account's opportunity score would rise.
urlstring or null- Opens this change in Ads Manager.
canApplyboolean- true when POST /api/v1/meta/recommendations/apply can make this change. false: send the person to
url. effectstring or null- What applying does: settings (a delivery setting on existing ad sets) | creative (how existing ads look or sound) | new_ads (new ads or ad sets beside the old ones) | budget (raises a budget; never applied by the API).
moreboolean
curl https://www.scenelabs.io/api/v1/meta/recommendations \
-H "Authorization: Bearer $SCENELABS_KEY"const response = await fetch("https://www.scenelabs.io/api/v1/meta/recommendations", {
headers: { Authorization: `Bearer ${process.env.SCENELABS_KEY}` },
});
console.log(await response.json());import os
import requests
response = requests.get(
"https://www.scenelabs.io/api/v1/meta/recommendations",
headers={
"Authorization": f"Bearer {os.environ['SCENELABS_KEY']}",
},
)
print(response.json()){
"account": {
"id": "act_123",
"name": "Acme"
},
"recommendations": [
{
"signature": "1234567",
"type": "CREATIVE_FATIGUE",
"objectIds": [
"120250000000000001"
],
"body": "This ad's results are dropping. Add a new version.",
"lift": "Up to 3% more results",
"points": 14,
"url": "https://adsmanager.facebook.com/…",
"canApply": true,
"effect": "new_ads"
}
],
"more": false
}Apply a suggestion
post/api/v1/meta/recommendations/apply
Apply ONE of Meta's suggestions to the ad account.
Changes live ads. Send the signature and the type exactly as the list gave them (the type is a check that you know what you are applying). One suggestion per call, 30 an hour for an account. Suggestions that raise a budget (effect: budget) are refused: send the person to url. If Meta refuses, nothing in the ad account changes. New: tell us if a kind of suggestion does not apply cleanly.
Request body
signaturestringRequiredtypestringRequired- Must equal the suggestion's
type. objectIdsarray of stringsOptional- Optional: only these of the suggestion's objectIds. Leave out for all of them.
Returns
okbooleanappliedobjectShow propertiesHide properties
signaturestringtypestringobjectIdsarray of stringseffectstring or null
curl https://www.scenelabs.io/api/v1/meta/recommendations/apply \
-X POST \
-H "Authorization: Bearer $SCENELABS_KEY" \
-H "Content-Type: application/json" \
-d '{
"signature": "1234567",
"type": "CREATIVE_FATIGUE"
}'const response = await fetch("https://www.scenelabs.io/api/v1/meta/recommendations/apply", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.SCENELABS_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
signature: "1234567",
type: "CREATIVE_FATIGUE",
}),
});
console.log(await response.json());import os
import requests
response = requests.post(
"https://www.scenelabs.io/api/v1/meta/recommendations/apply",
headers={
"Authorization": f"Bearer {os.environ['SCENELABS_KEY']}",
},
json={
"signature": "1234567",
"type": "CREATIVE_FATIGUE",
},
)
print(response.json()){
"ok": true,
"applied": {
"signature": "1234567",
"type": "CREATIVE_FATIGUE",
"objectIds": [
"120250000000000001"
],
"effect": "new_ads"
}
}Guide
Make an ad set and run it, start to finish
These calls take a product's page to running ads, and to the next ones. A person does two things once, in the app: adds dollars to the API balance, and signs in to Facebook to link Meta. Everything else is a call:
GET /api/v1/me: the balance in dollars. A 30-second talking ad set is about $6.61.POST /api/v1/productswith the product page'surl(once per product). Keep itsid.- Only if the name is a made-up word or an odd spelling: check how it is spoken before spending. The ads say it the way it is written; if the brand says it another way,
PATCH /api/v1/products/{id}withsayAs(spelled the way it sounds).nameAudioon the product is our voice saying it. Nothing waits on this. If the product should be held or worn in its ads, give it a picture with the same call:photos, fromPOST /api/v1/uploads. GET /api/v1/meta/connection: go on to sending only whencanSendis true. Ifmissinghaslink, give the personlinkAt; if it hasadAccountorpage, pick them withPOST /api/v1/meta/connection.POST /api/v1/adswith atemplatefromGET /api/v1/ads/options(and asteernote if you have an angle). Send anIdempotency-Keyheader so a repeat cannot start a second set. Keep theid.GET /api/v1/ads/{id}about once a minute untilstatusisdone: usually 5 to 10 minutes. If it isfailed, readerrorand stop.- For each entry of
adsthat has avideo:POST /api/v1/meta/send, ONE AD AT A TIME. Give each its ownkey. Sendcampaign(with itsdailyBudget) with the first and theadsetIdit returns with the rest. On 202, send the same body again a few seconds later. Each ad starts running once Meta has reviewed it, with nobody pressing anything. This is the step that spends the ad account's money, up to the campaign's daily budget: do it only for a budget the person has said is theirs to spend. - If a person should look first, add
status: "PAUSED"to each send. Then, when they have all landed,POST /api/v1/meta/statewith the CAMPAIGN's id andstatus: "ACTIVE": that one call switches on the ads, their ad set and the campaign. - From the next day,
GET /api/v1/meta/resultsto see how each ad did, and switch off the ones that are not working:POST /api/v1/meta/statewith the ad's id andstatus: "PAUSED". Each row of ours carries itsscriptandtemplate. - Before the next set,
GET /api/v1/scripts/next: it says which script to make in which template (a winning script in a new template first, then a new pitch). Make each entry withPOST /api/v1/ads:{template, script}, or{template}for a new pitch.
Meta reviews every ad before it can run. An ad set is paid from the API balance as it is made; price in the answer of POST /api/v1/ads is the estimate, and what is charged is what was rendered.
Guide
Put an effect and a picture into an ad, at the right words
An ad set made here can be edited by a program with nobody at a screen. The words of each ad come with their times, so an insert lands on the word it is about:
GET /api/v1/ads/{id}: each finished ad haswords(each with the second it is said) andseconds.POST /api/v1/uploadsonce for each picture, withrights: true. Keep theurleach one answers with.- For the green screen look only:
POST /api/v1/cutoutswith the samesetandad, thenGET /api/v1/cutouts/{id}until it isdone. Keep itsvideo. POST /api/v1/editswithset,adandinserts. Place each withwhen(words from the ad, said exactly once) orat(seconds). Pass the cut-out asperson.GET /api/v1/edits/{id}about every ten seconds untilstatusisdone. Itsvideois a finished ad: send it to Meta like any other.
What reads well: an effect over the line it illustrates; a picture with layout behind while the person talks about what is in it, with a ring or an arrow on the part that matters; a card for a quick proof. Leave a second or two of the plain video between things that cover the frame.
Guide
Apply Meta's suggestions by yourself, once a day
Scenelabs does not apply anything on a clock. Your schedule does it (a cron job, a scheduled agent run):
- Once a day,
GET /api/v1/meta/recommendations. - For each suggestion with
canApply: true, decide.effectsays what it does:settingsandcreativechange existing ads;new_adsmakes new ones beside them. - Apply the ones you want ONE AT A TIME:
POST /api/v1/meta/recommendations/applywith itssignatureandtype. Wait for each answer before the next. - After each apply, read the list again before the next one: applying one suggestion can retire others (their signature goes
stale). - A suggestion with
canApply: false(a budget raise, or a kind Meta's API does not apply) is for a person: give them itsurl. - Keep a note of what you applied and when. Stop and tell the person if the same suggestion fails twice.
The limit is 30 applies an hour for an account. An empty list is normal: it means Meta has nothing to suggest.
Guide
For agents
An agent that can make web requests needs two things: a key, and llms.txt. That file is this whole page in plain text, with every call, an example of each, and the daily guide above.
For tools that read a spec file, the same calls are at /api/v1/openapi.json (OpenAPI 3.1). It is written to be read in one pass: nothing in it points elsewhere, and every call carries a summary and the shape of its answer.
Not in the API yet
- Adding dollars, and the first Facebook sign-in that links Meta. A person does each once, in the Scenelabs app; a key then checks the link and picks the ad account and Page itself.
- Sending a picture's bytes. A picture is brought in from a web address (
POST /api/v1/uploads).
© 2026 Scenelabs · Terms · Privacy · scenelabs.io