API reference
Content API
Browse synced and generated content
BetaUpdated
- Base URL
- https://reelmirror.com/api
- Authentication
- Authorization: Bearer rm_…
- Contract
- openapi.json
Get generated post
GET/v1/generated-posts/{post_id}
Get a generated post with all its media items. Use for polling generation status. Soft-deleted posts are excluded.
Path parameters
post_idstringrequired
Response 200
Generated post with media items Fields below are inside data.
idstringuuidpersona_idstringuuidsource_post_idstringuuidstatusstringOne of
pendinggeneratingcompletedpartialfailedreview_statusstring | nullReview lifecycle state. `pending_review` = awaiting action; `approved` = approved but not yet published; `rejected` = rejected; `published` = published to at least one account.
One of
pending_reviewapprovedrejectedpublishedtrigger_sourcestring | nullHow this generation was triggered. `manual` = user-initiated, `auto_clone` = automatic cloning from source, `api` = via API.
One of
manualauto_cloneapicaptionstring | nullerrorstring | nullError message when status is `failed`
media_itemsarray of object9 item attributes
idstringuuidmedia_typestringOne of
imagevideopositionintegerstatusstringOne of
pendinggeneratingcompletedfailedurlstring | nullis_publicbooleandiscount_appliedbooleanvoice_conversion_statusstring | nullcreated_atstringdate-time
created_atstringdate-timeupdated_atstringdate-time
curl "https://reelmirror.com/api/v1/generated-posts/$POST_ID" \
-H "Authorization: Bearer $REELMIRROR_API_KEY"const post_id = "<post_id>";
const response = await fetch(`https://reelmirror.com/api/v1/generated-posts/${post_id}`, {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.REELMIRROR_API_KEY}`,
},
});
const payload = await response.json();import os
import requests
post_id = "<post_id>"
response = requests.request(
"GET",
f"https://reelmirror.com/api/v1/generated-posts/{post_id}",
headers={
"Authorization": f"Bearer {os.environ['REELMIRROR_API_KEY']}",
},
)
payload = response.json(){
"data": {
"id": "8f14e45f-ceea-4e7a-9c2d-3b1a5f2e7c10",
"persona_id": "c9f0f895-fb98-4b91-9e3f-1d2a6b7c8d20",
"source_post_id": "45c48cce-2e2d-4fbd-8a1c-5e6f7a8b9c30",
"status": "pending",
"review_status": "pending_review",
"trigger_source": "manual",
"caption": "string",
"error": "string",
"media_items": [
{
"id": "d3d94468-02a4-4c5e-b6f7-0a1b2c3d4e40",
"media_type": "image",
"position": 1,
"status": "pending",
"url": "https://reelmirror.com/…",
"is_public": true,
"discount_applied": true,
"voice_conversion_status": "string",
"created_at": "2026-09-30T17:00:00.000Z"
}
],
"created_at": "2026-09-30T17:00:00.000Z",
"updated_at": "2026-09-30T17:00:00.000Z"
}
}Delete generated post
DELETE/v1/generated-posts/{post_id}
Soft-delete a generated post and all its media items. The source post can then be re-cloned. R2 files are cleaned up asynchronously.
Path parameters
post_idstringrequired
Response 200
Post deleted Fields below are inside data.
idstringdeletedbooleanOne of
true
curl -X DELETE "https://reelmirror.com/api/v1/generated-posts/$POST_ID" \
-H "Authorization: Bearer $REELMIRROR_API_KEY"const post_id = "<post_id>";
const response = await fetch(`https://reelmirror.com/api/v1/generated-posts/${post_id}`, {
method: "DELETE",
headers: {
Authorization: `Bearer ${process.env.REELMIRROR_API_KEY}`,
},
});
const payload = await response.json();import os
import requests
post_id = "<post_id>"
response = requests.request(
"DELETE",
f"https://reelmirror.com/api/v1/generated-posts/{post_id}",
headers={
"Authorization": f"Bearer {os.environ['REELMIRROR_API_KEY']}",
},
)
payload = response.json(){
"data": {
"id": "8f14e45f-ceea-4e7a-9c2d-3b1a5f2e7c10",
"deleted": true
}
}Get generated media item
GET/v1/generated-media-items/{item_id}
Get a single generated media item. Use for polling item-level status. Soft-deleted items are excluded.
Path parameters
item_idstringrequired
Response 200
Generated media item Fields below are inside data.
idstringuuidmedia_typestringOne of
imagevideopositionintegerstatusstringOne of
pendinggeneratingcompletedfailedurlstring | nullis_publicbooleandiscount_appliedbooleanvoice_conversion_statusstring | nullcreated_atstringdate-time
curl "https://reelmirror.com/api/v1/generated-media-items/$ITEM_ID" \
-H "Authorization: Bearer $REELMIRROR_API_KEY"const item_id = "<item_id>";
const response = await fetch(`https://reelmirror.com/api/v1/generated-media-items/${item_id}`, {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.REELMIRROR_API_KEY}`,
},
});
const payload = await response.json();import os
import requests
item_id = "<item_id>"
response = requests.request(
"GET",
f"https://reelmirror.com/api/v1/generated-media-items/{item_id}",
headers={
"Authorization": f"Bearer {os.environ['REELMIRROR_API_KEY']}",
},
)
payload = response.json(){
"data": {
"id": "8f14e45f-ceea-4e7a-9c2d-3b1a5f2e7c10",
"media_type": "image",
"position": 1,
"status": "pending",
"url": "https://reelmirror.com/…",
"is_public": true,
"discount_applied": true,
"voice_conversion_status": "string",
"created_at": "2026-09-30T17:00:00.000Z"
}
}Delete generated media item
DELETE/v1/generated-media-items/{item_id}
Soft-delete a single generated media item. R2 files are cleaned up asynchronously.
Path parameters
item_idstringrequired
Response 200
Item deleted Fields below are inside data.
idstringdeletedbooleanOne of
true
curl -X DELETE "https://reelmirror.com/api/v1/generated-media-items/$ITEM_ID" \
-H "Authorization: Bearer $REELMIRROR_API_KEY"const item_id = "<item_id>";
const response = await fetch(`https://reelmirror.com/api/v1/generated-media-items/${item_id}`, {
method: "DELETE",
headers: {
Authorization: `Bearer ${process.env.REELMIRROR_API_KEY}`,
},
});
const payload = await response.json();import os
import requests
item_id = "<item_id>"
response = requests.request(
"DELETE",
f"https://reelmirror.com/api/v1/generated-media-items/{item_id}",
headers={
"Authorization": f"Bearer {os.environ['REELMIRROR_API_KEY']}",
},
)
payload = response.json(){
"data": {
"id": "8f14e45f-ceea-4e7a-9c2d-3b1a5f2e7c10",
"deleted": true
}
}List source posts
GET/v1/personas/{persona_id}/source-posts
List synced source posts from a persona's tracked creators.
Path parameters
persona_idstringrequired
Query parameters
limitinteger≤ 100default 20Maximum number of results to return
offsetintegerdefault 0Number of results to skip
Response 200
List of source posts with media items
dataarray of object11 item attributes
idstringuuidcreator_idstringuuidplatformstringOne of
instagramtiktokplatform_post_idstringpost_typestringOne of
imagevideocarouselcaptionstring | nulllike_countinteger | nullcomment_countinteger | nullposted_atstring | nulldate-timemedia_itemsarray of object5 item attributes
idstringuuidmedia_typestringOne of
imagevideopositionintegerurlstring | nullduration_secondsnumber | null
created_atstringdate-time
countinteger
curl "https://reelmirror.com/api/v1/personas/$PERSONA_ID/source-posts" \
-H "Authorization: Bearer $REELMIRROR_API_KEY"const persona_id = "<persona_id>";
const response = await fetch(`https://reelmirror.com/api/v1/personas/${persona_id}/source-posts`, {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.REELMIRROR_API_KEY}`,
},
});
const payload = await response.json();import os
import requests
persona_id = "<persona_id>"
response = requests.request(
"GET",
f"https://reelmirror.com/api/v1/personas/{persona_id}/source-posts",
headers={
"Authorization": f"Bearer {os.environ['REELMIRROR_API_KEY']}",
},
)
payload = response.json(){
"data": [
{
"id": "8f14e45f-ceea-4e7a-9c2d-3b1a5f2e7c10",
"creator_id": "c9f0f895-fb98-4b91-9e3f-1d2a6b7c8d20",
"platform": "instagram",
"platform_post_id": "45c48cce-2e2d-4fbd-8a1c-5e6f7a8b9c30",
"post_type": "image",
"caption": "string",
"like_count": 1,
"comment_count": 1,
"posted_at": "2026-09-30T17:00:00.000Z",
"media_items": [
{
"id": "d3d94468-02a4-4c5e-b6f7-0a1b2c3d4e40",
"media_type": "image",
"position": 1,
"url": "https://reelmirror.com/…",
"duration_seconds": 1
}
],
"created_at": "2026-09-30T17:00:00.000Z"
}
],
"count": 1
}List generated posts
GET/v1/personas/{persona_id}/generated-posts
List generated posts for a persona with their media items.
Path parameters
persona_idstringrequired
Query parameters
limitinteger≤ 100default 20Maximum number of results to return
offsetintegerdefault 0Number of results to skip
statusstringFilter by generation status
One of
pendinggeneratingcompletedpartialfailedreview_statusstringFilter by review status
One of
pending_reviewapprovedrejectedpublished
Response 200
List of generated posts
dataarray of object11 item attributes
idstringuuidpersona_idstringuuidsource_post_idstringuuidstatusstringOne of
pendinggeneratingcompletedpartialfailedreview_statusstring | nullReview lifecycle state. `pending_review` = awaiting action; `approved` = approved but not yet published; `rejected` = rejected; `published` = published to at least one account.
One of
pending_reviewapprovedrejectedpublishedtrigger_sourcestring | nullHow this generation was triggered. `manual` = user-initiated, `auto_clone` = automatic cloning from source, `api` = via API.
One of
manualauto_cloneapicaptionstring | nullerrorstring | nullError message when status is `failed`
media_itemsarray of object9 item attributes
idstringuuidmedia_typestringOne of
imagevideopositionintegerstatusstringOne of
pendinggeneratingcompletedfailedurlstring | nullis_publicbooleandiscount_appliedbooleanvoice_conversion_statusstring | nullcreated_atstringdate-time
created_atstringdate-timeupdated_atstringdate-time
countinteger
curl "https://reelmirror.com/api/v1/personas/$PERSONA_ID/generated-posts" \
-H "Authorization: Bearer $REELMIRROR_API_KEY"const persona_id = "<persona_id>";
const response = await fetch(`https://reelmirror.com/api/v1/personas/${persona_id}/generated-posts`, {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.REELMIRROR_API_KEY}`,
},
});
const payload = await response.json();import os
import requests
persona_id = "<persona_id>"
response = requests.request(
"GET",
f"https://reelmirror.com/api/v1/personas/{persona_id}/generated-posts",
headers={
"Authorization": f"Bearer {os.environ['REELMIRROR_API_KEY']}",
},
)
payload = response.json(){
"data": [
{
"id": "8f14e45f-ceea-4e7a-9c2d-3b1a5f2e7c10",
"persona_id": "c9f0f895-fb98-4b91-9e3f-1d2a6b7c8d20",
"source_post_id": "45c48cce-2e2d-4fbd-8a1c-5e6f7a8b9c30",
"status": "pending",
"review_status": "pending_review",
"trigger_source": "manual",
"caption": "string",
"error": "string",
"media_items": [
{
"id": "d3d94468-02a4-4c5e-b6f7-0a1b2c3d4e40",
"media_type": "image",
"position": 1,
"status": "pending",
"url": "https://reelmirror.com/…",
"is_public": true,
"discount_applied": true,
"voice_conversion_status": "string",
"created_at": "2026-09-30T17:00:00.000Z"
}
],
"created_at": "2026-09-30T17:00:00.000Z",
"updated_at": "2026-09-30T17:00:00.000Z"
}
],
"count": 1
}