Skip to content

API reference

Content API

Browse synced and generated content

Beta

Base URL
https://reelmirror.com/api
Authentication
Authorization: Bearer rm_…
Contract
openapi.json

Get generated post

GET/v1/generated-posts/{post_id}

Bearer token

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.

  • idstringuuid
  • persona_idstringuuid
  • source_post_idstringuuid
  • statusstring

    One ofpendinggeneratingcompletedpartialfailed

  • review_statusstring | null

    Review lifecycle state. `pending_review` = awaiting action; `approved` = approved but not yet published; `rejected` = rejected; `published` = published to at least one account.

    One ofpending_reviewapprovedrejectedpublished

  • trigger_sourcestring | null

    How this generation was triggered. `manual` = user-initiated, `auto_clone` = automatic cloning from source, `api` = via API.

    One ofmanualauto_cloneapi

  • captionstring | null
  • errorstring | null

    Error message when status is `failed`

  • media_itemsarray of object
    9 item attributes
    • idstringuuid
    • media_typestring

      One ofimagevideo

    • positioninteger
    • statusstring

      One ofpendinggeneratingcompletedfailed

    • urlstring | null
    • is_publicboolean
    • discount_appliedboolean
    • voice_conversion_statusstring | null
    • created_atstringdate-time
  • created_atstringdate-time
  • updated_atstringdate-time
curl "https://reelmirror.com/api/v1/generated-posts/$POST_ID" \
  -H "Authorization: Bearer $REELMIRROR_API_KEY"
Response 200 (example)
{
  "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}

Bearer token

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.

  • idstring
  • deletedboolean

    One oftrue

curl -X DELETE "https://reelmirror.com/api/v1/generated-posts/$POST_ID" \
  -H "Authorization: Bearer $REELMIRROR_API_KEY"
Response 200 (example)
{
  "data": {
    "id": "8f14e45f-ceea-4e7a-9c2d-3b1a5f2e7c10",
    "deleted": true
  }
}

Get generated media item

GET/v1/generated-media-items/{item_id}

Bearer token

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.

  • idstringuuid
  • media_typestring

    One ofimagevideo

  • positioninteger
  • statusstring

    One ofpendinggeneratingcompletedfailed

  • urlstring | null
  • is_publicboolean
  • discount_appliedboolean
  • voice_conversion_statusstring | null
  • created_atstringdate-time
curl "https://reelmirror.com/api/v1/generated-media-items/$ITEM_ID" \
  -H "Authorization: Bearer $REELMIRROR_API_KEY"
Response 200 (example)
{
  "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}

Bearer token

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.

  • idstring
  • deletedboolean

    One oftrue

curl -X DELETE "https://reelmirror.com/api/v1/generated-media-items/$ITEM_ID" \
  -H "Authorization: Bearer $REELMIRROR_API_KEY"
Response 200 (example)
{
  "data": {
    "id": "8f14e45f-ceea-4e7a-9c2d-3b1a5f2e7c10",
    "deleted": true
  }
}

List source posts

GET/v1/personas/{persona_id}/source-posts

Bearer token

List synced source posts from a persona's tracked creators.

Path parameters

  • persona_idstringrequired

Query parameters

  • limitinteger≤ 100default 20

    Maximum number of results to return

  • offsetintegerdefault 0

    Number of results to skip

Response 200

List of source posts with media items

  • dataarray of object
    11 item attributes
    • idstringuuid
    • creator_idstringuuid
    • platformstring

      One ofinstagramtiktok

    • platform_post_idstring
    • post_typestring

      One ofimagevideocarousel

    • captionstring | null
    • like_countinteger | null
    • comment_countinteger | null
    • posted_atstring | nulldate-time
    • media_itemsarray of object
      5 item attributes
      • idstringuuid
      • media_typestring

        One ofimagevideo

      • positioninteger
      • urlstring | null
      • duration_secondsnumber | null
    • created_atstringdate-time
  • countinteger
curl "https://reelmirror.com/api/v1/personas/$PERSONA_ID/source-posts" \
  -H "Authorization: Bearer $REELMIRROR_API_KEY"
Response 200 (example)
{
  "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

Bearer token

List generated posts for a persona with their media items.

Path parameters

  • persona_idstringrequired

Query parameters

  • limitinteger≤ 100default 20

    Maximum number of results to return

  • offsetintegerdefault 0

    Number of results to skip

  • statusstring

    Filter by generation status

    One ofpendinggeneratingcompletedpartialfailed

  • review_statusstring

    Filter by review status

    One ofpending_reviewapprovedrejectedpublished

Response 200

List of generated posts

  • dataarray of object
    11 item attributes
    • idstringuuid
    • persona_idstringuuid
    • source_post_idstringuuid
    • statusstring

      One ofpendinggeneratingcompletedpartialfailed

    • review_statusstring | null

      Review lifecycle state. `pending_review` = awaiting action; `approved` = approved but not yet published; `rejected` = rejected; `published` = published to at least one account.

      One ofpending_reviewapprovedrejectedpublished

    • trigger_sourcestring | null

      How this generation was triggered. `manual` = user-initiated, `auto_clone` = automatic cloning from source, `api` = via API.

      One ofmanualauto_cloneapi

    • captionstring | null
    • errorstring | null

      Error message when status is `failed`

    • media_itemsarray of object
      9 item attributes
      • idstringuuid
      • media_typestring

        One ofimagevideo

      • positioninteger
      • statusstring

        One ofpendinggeneratingcompletedfailed

      • urlstring | null
      • is_publicboolean
      • discount_appliedboolean
      • voice_conversion_statusstring | null
      • created_atstringdate-time
    • created_atstringdate-time
    • updated_atstringdate-time
  • countinteger
curl "https://reelmirror.com/api/v1/personas/$PERSONA_ID/generated-posts" \
  -H "Authorization: Bearer $REELMIRROR_API_KEY"
Response 200 (example)
{
  "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
}