---
title: "Sources API"
description: "Track social accounts"
canonical_url: https://reelmirror.com/docs/api/sources
markdown_url: https://reelmirror.com/docs/api/sources.md
last_updated: 2026-11-09
---
# ReelMirror API reference: Sources

> Track social accounts

The ReelMirror API is in beta. Base URL: `https://reelmirror.com/api` (every path starts with `/v1`). Authenticate every request with `Authorization: Bearer rm_...`. Machine-readable contract: https://reelmirror.com/docs/openapi.json.

## Endpoints

- [List sources](https://reelmirror.com/docs/api/sources#list-sources): `GET /v1/personas/{persona_id}/sources`
- [Add source](https://reelmirror.com/docs/api/sources#add-source): `POST /v1/personas/{persona_id}/sources`
- [Get source](https://reelmirror.com/docs/api/sources#get-source): `GET /v1/personas/{persona_id}/sources/{source_id}`
- [Update source](https://reelmirror.com/docs/api/sources#update-source): `PATCH /v1/personas/{persona_id}/sources/{source_id}`
- [Remove source](https://reelmirror.com/docs/api/sources#remove-source): `DELETE /v1/personas/{persona_id}/sources/{source_id}`

### List sources

`GET /v1/personas/{persona_id}/sources`

Authentication: bearer token · Operation ID: `listSources`

#### Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `persona_id` | string | Yes |  |

#### Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `limit` | integer, ≤ 100, default 20 | No | Maximum number of results to return |
| `offset` | integer, default 0 | No | Number of results to skip |

#### Response 200

List of sources

- `data` (array of object; optional)
  - `id` (string, uuid; optional)
  - `creator_id` (string, uuid; optional)
  - `platform` (string, one of `instagram`, `tiktok`; optional)
  - `handle` (string; optional): Social account handle (e.g. `natgeo`)
  - `automation_mode` (string, default "sync_only", one of `sync_only`, `auto_clone`, `auto_publish`; optional): Automation level: `sync_only` = sync content only, `auto_clone` = sync + auto-generate clones, `auto_publish` = sync + generate + publish automatically
  - `status` (string, one of `pending`, `synced`, `error`; optional)
  - `last_synced_at` (string | null, date-time; optional)
  - `content_count` (integer; optional)
  - `created_at` (string, date-time; optional)
- `count` (integer; optional)

#### Example request

```bash
curl "https://reelmirror.com/api/v1/personas/$PERSONA_ID/sources" \
  -H "Authorization: Bearer $REELMIRROR_API_KEY"
```

### Add source

`POST /v1/personas/{persona_id}/sources`

Authentication: bearer token · Operation ID: `addSource`

#### Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `persona_id` | string | Yes |  |

#### Request body (application/json, required)

- `platform` (string, one of `instagram`, `tiktok`; required)
- `handle` (string; required): Social account handle (e.g. `natgeo`). Leading `@` is stripped automatically.
- `automation_mode` (string, default "sync_only", one of `sync_only`, `auto_clone`, `auto_publish`; optional): Automation level for this source. Defaults to `sync_only`.

#### Response 201

Source added

Fields inside `data`:

- `id` (string, uuid; optional)
- `creator_id` (string, uuid; optional)
- `platform` (string, one of `instagram`, `tiktok`; optional)
- `handle` (string; optional): Social account handle (e.g. `natgeo`)
- `automation_mode` (string, default "sync_only", one of `sync_only`, `auto_clone`, `auto_publish`; optional): Automation level: `sync_only` = sync content only, `auto_clone` = sync + auto-generate clones, `auto_publish` = sync + generate + publish automatically
- `status` (string, one of `pending`, `synced`, `error`; optional)
- `last_synced_at` (string | null, date-time; optional)
- `content_count` (integer; optional)
- `created_at` (string, date-time; optional)

#### Example request

```bash
curl -X POST "https://reelmirror.com/api/v1/personas/$PERSONA_ID/sources" \
  -H "Authorization: Bearer $REELMIRROR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "platform": "instagram",
  "handle": "string"
}'
```

### Get source

`GET /v1/personas/{persona_id}/sources/{source_id}`

Scope: `sources:read` · Operation ID: `getSource`

Get a single tracked source by ID. Requires `sources:read` scope.

#### Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `persona_id` | string | Yes |  |
| `source_id` | string | Yes |  |

#### Response 200

Source details

Fields inside `data`:

- `id` (string, uuid; optional)
- `creator_id` (string, uuid; optional)
- `platform` (string, one of `instagram`, `tiktok`; optional)
- `handle` (string; optional): Social account handle (e.g. `natgeo`)
- `automation_mode` (string, default "sync_only", one of `sync_only`, `auto_clone`, `auto_publish`; optional): Automation level: `sync_only` = sync content only, `auto_clone` = sync + auto-generate clones, `auto_publish` = sync + generate + publish automatically
- `status` (string, one of `pending`, `synced`, `error`; optional)
- `last_synced_at` (string | null, date-time; optional)
- `content_count` (integer; optional)
- `created_at` (string, date-time; optional)

Errors: `404` return the standard error envelope.

#### Example request

```bash
curl "https://reelmirror.com/api/v1/personas/$PERSONA_ID/sources/$SOURCE_ID" \
  -H "Authorization: Bearer $REELMIRROR_API_KEY"
```

### Update source

`PATCH /v1/personas/{persona_id}/sources/{source_id}`

Scope: `sources:write` · Operation ID: `updateSource`

Update source settings such as automation mode. Requires `sources:write` scope.

#### Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `persona_id` | string | Yes |  |
| `source_id` | string | Yes |  |

#### Request body (application/json, required)

- `automation_mode` (string, one of `sync_only`, `auto_clone`, `auto_publish`; optional): Automation level for this source

#### Response 200

Source updated

Fields inside `data`:

- `id` (string, uuid; optional)
- `creator_id` (string, uuid; optional)
- `platform` (string, one of `instagram`, `tiktok`; optional)
- `handle` (string; optional): Social account handle (e.g. `natgeo`)
- `automation_mode` (string, default "sync_only", one of `sync_only`, `auto_clone`, `auto_publish`; optional): Automation level: `sync_only` = sync content only, `auto_clone` = sync + auto-generate clones, `auto_publish` = sync + generate + publish automatically
- `status` (string, one of `pending`, `synced`, `error`; optional)
- `last_synced_at` (string | null, date-time; optional)
- `content_count` (integer; optional)
- `created_at` (string, date-time; optional)

#### Example request

```bash
curl -X PATCH "https://reelmirror.com/api/v1/personas/$PERSONA_ID/sources/$SOURCE_ID" \
  -H "Authorization: Bearer $REELMIRROR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### Remove source

`DELETE /v1/personas/{persona_id}/sources/{source_id}`

Authentication: bearer token · Operation ID: `removeSource`

#### Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `persona_id` | string | Yes |  |
| `source_id` | string | Yes |  |

#### Response 200

Source removed

Fields inside `data`:

- `id` (string; optional)
- `deleted` (boolean, one of `true`; optional)

#### Example request

```bash
curl -X DELETE "https://reelmirror.com/api/v1/personas/$PERSONA_ID/sources/$SOURCE_ID" \
  -H "Authorization: Bearer $REELMIRROR_API_KEY"
```

