Documentation Index
Fetch the complete documentation index at: https://mintlify.com/MatthewSabia1/SubPirate-Pro/llms.txt
Use this file to discover all available pages before exploring further.
Campaign Run Workflow
A campaign run represents a single execution of a campaign, which creates multiple posting attempts. The workflow is:- Queue a run via manual trigger or scheduled dispatch
- Build attempt plan by pairing accounts × subreddits × content
- Execute attempts sequentially, posting to Reddit
- Track status of each attempt (posted, failed, skipped)
- Calculate shortfall if daily target not met
Run Status Lifecycle
queued: Run is scheduled, waiting to executerunning: Run is actively postingcompleted: All attempts succeededpartial: Some attempts succeeded, some failed/skippedfailed: All attempts failedcanceled: Run was canceled (e.g., subscription lapsed)
GET /api/campaigns/:id/runs
List all runs for a campaign, paginated. Requires Viewer role.Path Parameters
Campaign UUID
Query Parameters
Pagination cursor from previous response’s
next_cursorNumber of runs per page (max 50)
Response
Array of campaign run objects
Pagination cursor for next page (null if no more results)
Example Request
POST /api/campaigns/:id/run
Trigger a manual campaign run. Requires Editor role and an active subscription.Path Parameters
Campaign UUID
Request Body
No body required. The run is generated based on current campaign configuration.Response
The created campaign run object (see GET schema)
If true, this run was queued behind an in-flight run
Number of posting attempts created for this run
Errors
- 403: Subscription required, or insufficient campaign role
- 409: No posts are due right now (daily target already met)
- 422: Campaign is not ready to run (missing content, accounts, or subreddits)
Example Request
Response Example
GET /api/campaigns/:id/runs/:runId
Get detailed information about a specific run, including all posting attempts. Requires Viewer role.Path Parameters
Campaign UUID
Run UUID
Response
Campaign run object (see GET /api/campaigns/:id/runs schema)
Array of posting attempt objects
Example Request
POST /api/campaigns/:id/run/preview
Preview what a campaign run would do without actually executing it. Requires Editor role. Useful for:- Validating campaign configuration before running
- Checking daily progress and remaining posts
- Debugging account health and subreddit availability
Path Parameters
Campaign UUID