Public HTTP surface
All endpoints use JSON unless returning an export. Send X-API-Key on every call. Idempotency-Key is optional and is useful when retrying a write after an uncertain response.
Discovery and account
Inspect the live capabilities and current workspace before submitting work.
GET/v1/platformsList platform capabilities⌄
Returns registered operations with availability flags, limits and credit rates. Check available before submitting work.
Response · 200 OK[
{
"platform": "instagram",
"label": "Instagram",
"operations": [
{
"operation": "profile",
"max_results": 1,
"credits_per_result": 1,
"results_per_credit": 1,
"base_credits": 0,
"available": true,
"unavailable_reason": null
},
{
"operation": "followers",
"max_results": 5000,
"credits_per_result": 2,
"results_per_credit": 1,
"base_credits": 0,
"available": true,
"unavailable_reason": null
},
{
"operation": "stories",
"max_results": 50,
"credits_per_result": 0,
"results_per_credit": 1,
"base_credits": 5,
"available": true,
"unavailable_reason": null
}
]
}
]GET/v1/accountGet the workspace account⌄
Returns workspace identity, plan limits, role and API concurrency limits.
Response · 200 OK{
"organization_id": "workspace_01H...",
"organization_name": "Acme data team",
"monthly_quota": 0,
"rate_limit_per_minute": 60,
"max_result_limit": 25000,
"max_active_jobs": 10,
"authenticated_key_id": "key_01H...",
"auth_type": "api_key",
"role": "owner",
"user": null,
"workspaces": []
}GET/v1/usage/currentGet current credit usage⌄
Returns available, purchased, promotional, reserved and lifetime credit totals.
Response · 200 OK{
"period_start": "2026-11-01",
"credit_limit": 5000,
"units_used": 82,
"units_reserved": 0,
"units_remaining": 5118,
"credits_used": 82,
"credits_reserved": 0,
"credits_remaining": 5118,
"purchased_credits": 5000,
"promotional_credits": 118,
"promotional_expires_at": "2026-12-01T00:00:00Z",
"lifetime_purchased": 5000,
"lifetime_spent": 82
}Jobs
A job is one operation against one public target.
POST/v1/extractExtract one bounded target now⌄
Runs one target synchronously when its requested size fits the current synchronous limit.
Response · 200 OKcurl -X POST "https://api.caelario.com/v1/extract" \
-H "X-API-Key: $CAELARIO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"platform": "instagram",
"operation": "profile",
"target": "nike"
}'{
"id": "91eb7b54-...-5d11",
"platform": "instagram",
"operation": "profile",
"target": "nike",
"requested_limit": 1,
"include_posts": 0,
"status": "completed",
"result_count": 1,
"billed_units": 1,
"credit_rate": 1,
"results_per_credit": 1,
"billed_credits": 1,
"result": {
"platform": "instagram",
"username": "nike",
"display_name": "Nike",
"is_verified": true
},
"error": null,
"cached": false,
"deduplicated": false,
"idempotent_replay": false
}POST/v1/jobsCreate a job⌄
Validates the request, reserves its maximum credit cost and returns immediately.
Response · 202 Acceptedcurl -X POST "https://api.caelario.com/v1/jobs" \
-H "X-API-Key: $CAELARIO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"platform": "instagram",
"operation": "profile",
"target": "nike",
"include_posts": 5
}'{
"id": "8587ec50-...-9a7b",
"platform": "instagram",
"operation": "profile",
"target": "nike",
"requested_limit": 1,
"include_posts": 5,
"status": "queued",
"attempts": 0,
"max_attempts": 3,
"progress_stage": "queued",
"progress_message": "Queued. Your extraction will start shortly.",
"progress_current": 0,
"progress_total": 6,
"heartbeat_at": null,
"next_attempt_at": null,
"cancel_requested_at": null,
"result_count": null,
"billed_units": 0,
"credit_rate": 1,
"results_per_credit": 1,
"billed_credits": 0,
"result": null,
"error": null,
"created_at": "2026-08-23T12:00:00Z",
"started_at": null,
"finished_at": null,
"cached": false,
"deduplicated": false,
"idempotent_replay": false
}GET/v1/jobsList jobs⌄
Returns the latest workspace jobs. Use the limit query parameter from 1 to 100.
Response · 200 OK[{
"id": "8587ec50-...-9a7b",
"platform": "instagram",
"operation": "profile",
"target": "nike",
"requested_limit": 1,
"include_posts": 5,
"status": "queued",
"attempts": 0,
"max_attempts": 3,
"progress_stage": "queued",
"progress_message": "Queued. Your extraction will start shortly.",
"progress_current": 0,
"progress_total": 6,
"heartbeat_at": null,
"next_attempt_at": null,
"cancel_requested_at": null,
"result_count": null,
"billed_units": 0,
"credit_rate": 1,
"results_per_credit": 1,
"billed_credits": 0,
"result": null,
"error": null,
"created_at": "2026-08-23T12:00:00Z",
"started_at": null,
"finished_at": null,
"cached": false,
"deduplicated": false,
"idempotent_replay": false
}]GET/v1/jobs/{job_id}Get a job⌄
Returns progress, attempts, settlement, result or terminal error.
Response · 200 OK{
"id": "8587ec50-...-9a7b",
"platform": "instagram",
"operation": "profile",
"target": "nike",
"requested_limit": 1,
"include_posts": 5,
"status": "completed",
"attempts": 1,
"max_attempts": 3,
"progress_stage": "completed",
"progress_message": "Extraction completed",
"progress_current": 6,
"progress_total": 6,
"heartbeat_at": "2026-08-23T12:00:04Z",
"next_attempt_at": null,
"cancel_requested_at": null,
"result_count": 6,
"billed_units": 6,
"credit_rate": 1,
"results_per_credit": 1,
"billed_credits": 6,
"result": {
"profile": {
"platform": "instagram",
"username": "nike",
"display_name": "Nike",
"is_verified": true
},
"posts": [
{
"kind": "post",
"platform": "instagram",
"username": "nike",
"caption": "Example public post"
}
]
},
"error": null,
"created_at": "2026-08-23T12:00:00Z",
"started_at": "2026-08-23T12:00:01Z",
"finished_at": "2026-08-23T12:00:04Z",
"cached": false,
"deduplicated": false,
"idempotent_replay": false
}POST/v1/jobs/{job_id}/cancelCancel a job⌄
Cancels queued work immediately or requests cooperative cancellation for running work.
Response · 200 OK{
"id": "8587ec50-...-9a7b",
"platform": "instagram",
"operation": "profile",
"target": "nike",
"requested_limit": 1,
"include_posts": 5,
"status": "cancelled",
"attempts": 0,
"max_attempts": 3,
"progress_stage": "cancelled",
"progress_message": "Queued. Your extraction will start shortly.",
"progress_current": 0,
"progress_total": 6,
"heartbeat_at": null,
"next_attempt_at": null,
"cancel_requested_at": null,
"result_count": null,
"billed_units": 0,
"credit_rate": 1,
"results_per_credit": 1,
"billed_credits": 0,
"result": null,
"error": null,
"created_at": "2026-08-23T12:00:00Z",
"started_at": null,
"finished_at": null,
"cached": false,
"deduplicated": false,
"idempotent_replay": false
}GET/v1/jobs/{job_id}/exportExport a job⌄
Downloads a completed result using format=json, csv or xlsx.
Batches
A batch applies the same operation and limit to an ordered set of targets.
POST/v1/batchesCreate a batch⌄
Creates up to 100 independently retried child jobs in one request.
Response · 202 Acceptedcurl -X POST "https://api.caelario.com/v1/batches" \
-H "X-API-Key: $CAELARIO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"platform": "instagram",
"operation": "posts",
"targets": ["nike", "adidas", "puma"],
"limit": 12
}'{
"id": "53337f72-...-dc2e",
"platform": "instagram",
"operation": "posts",
"requested_limit": 12,
"include_posts": 0,
"target_count": 3,
"status": "queued",
"queued_count": 3,
"running_count": 0,
"completed_count": 0,
"failed_count": 0,
"cancelled_count": 0,
"result_count": 0,
"reserved_credits": 36,
"billed_credits": 0,
"cancel_requested_at": null,
"created_at": "2026-08-23T12:05:00Z",
"jobs": [
{ "id": "job_nike", "target": "nike", "status": "queued" },
{ "id": "job_adidas", "target": "adidas", "status": "queued" },
{ "id": "job_puma", "target": "puma", "status": "queued" }
],
"idempotent_replay": false
}GET/v1/batchesList batches⌄
Returns recent batches. Set include_jobs=true to include child job summaries.
Response · 200 OK[{
"id": "53337f72-...-dc2e",
"platform": "instagram",
"operation": "posts",
"requested_limit": 12,
"include_posts": 0,
"target_count": 3,
"status": "queued",
"queued_count": 3,
"running_count": 0,
"completed_count": 0,
"failed_count": 0,
"cancelled_count": 0,
"result_count": 0,
"reserved_credits": 36,
"billed_credits": 0,
"cancel_requested_at": null,
"created_at": "2026-08-23T12:05:00Z",
"jobs": [
{ "id": "job_nike", "target": "nike", "status": "queued" },
{ "id": "job_adidas", "target": "adidas", "status": "queued" },
{ "id": "job_puma", "target": "puma", "status": "queued" }
],
"idempotent_replay": false
}]GET/v1/batches/{batch_id}Get a batch⌄
Returns aggregate status, result counts, credit settlement and child jobs.
Response · 200 OK{
"id": "53337f72-...-dc2e",
"platform": "instagram",
"operation": "posts",
"requested_limit": 12,
"include_posts": 0,
"target_count": 3,
"status": "queued",
"queued_count": 3,
"running_count": 0,
"completed_count": 0,
"failed_count": 0,
"cancelled_count": 0,
"result_count": 0,
"reserved_credits": 36,
"billed_credits": 0,
"cancel_requested_at": null,
"created_at": "2026-08-23T12:05:00Z",
"jobs": [
{ "id": "job_nike", "target": "nike", "status": "queued" },
{ "id": "job_adidas", "target": "adidas", "status": "queued" },
{ "id": "job_puma", "target": "puma", "status": "queued" }
],
"idempotent_replay": false
}POST/v1/batches/{batch_id}/cancelCancel a batch⌄
Cancels every child job still owned by and running for the batch.
Response · 200 OK{
"id": "53337f72-...-dc2e",
"platform": "instagram",
"operation": "posts",
"requested_limit": 12,
"include_posts": 0,
"target_count": 3,
"status": "cancelled",
"queued_count": 3,
"running_count": 0,
"completed_count": 0,
"failed_count": 0,
"cancelled_count": 0,
"result_count": 0,
"reserved_credits": 36,
"billed_credits": 0,
"cancel_requested_at": null,
"created_at": "2026-08-23T12:05:00Z",
"jobs": [
{ "id": "job_nike", "target": "nike", "status": "queued" },
{ "id": "job_adidas", "target": "adidas", "status": "queued" },
{ "id": "job_puma", "target": "puma", "status": "queued" }
],
"idempotent_replay": false
}GET/v1/batches/{batch_id}/exportExport a batch⌄
Downloads all ready child results using format=json, csv or xlsx.
Schedules
Schedules store a reusable request and dispatch normal jobs or batches when due.
POST/v1/schedulesCreate a schedule⌄
Creates a once, daily, weekly or monthly schedule.
Response · 201 Createdcurl -X POST "https://api.caelario.com/v1/schedules" \
-H "X-API-Key: $CAELARIO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Daily brand monitoring",
"platform": "x",
"operation": "posts",
"targets": ["XDevelopers", "OpenAI"],
"limit": 20,
"frequency": "daily",
"timezone": "Europe/Amsterdam",
"starts_at": "2026-08-24T09:00:00+02:00",
"overlap_policy": "skip"
}'{
"id": "schedule_7d3b...91fa",
"name": "Daily brand monitoring",
"platform": "x",
"operation": "posts",
"targets": ["XDevelopers", "OpenAI"],
"requested_limit": 20,
"include_posts": 0,
"frequency": "daily",
"timezone": "Europe/Amsterdam",
"starts_at": "2026-08-24T09:00:00+02:00",
"next_run_at": "2026-08-24T07:00:00Z",
"last_run_at": null,
"status": "active",
"overlap_policy": "skip",
"created_at": "2026-08-23T12:10:00Z",
"updated_at": "2026-08-23T12:10:00Z",
"runs": []
}GET/v1/schedulesList schedules⌄
Returns active and paused schedules plus their recent runs.
Response · 200 OK[{
"id": "schedule_7d3b...91fa",
"name": "Daily brand monitoring",
"platform": "x",
"operation": "posts",
"targets": ["XDevelopers", "OpenAI"],
"requested_limit": 20,
"include_posts": 0,
"frequency": "daily",
"timezone": "Europe/Amsterdam",
"starts_at": "2026-08-24T09:00:00+02:00",
"next_run_at": "2026-08-24T07:00:00Z",
"last_run_at": null,
"status": "active",
"overlap_policy": "skip",
"created_at": "2026-08-23T12:10:00Z",
"updated_at": "2026-08-23T12:10:00Z",
"runs": []
}]GET/v1/schedules/{schedule_id}Get a schedule⌄
Returns recurrence, next run and dispatch history.
Response · 200 OK{
"id": "schedule_7d3b...91fa",
"name": "Daily brand monitoring",
"platform": "x",
"operation": "posts",
"targets": ["XDevelopers", "OpenAI"],
"requested_limit": 20,
"include_posts": 0,
"frequency": "daily",
"timezone": "Europe/Amsterdam",
"starts_at": "2026-08-24T09:00:00+02:00",
"next_run_at": "2026-08-24T07:00:00Z",
"last_run_at": null,
"status": "active",
"overlap_policy": "skip",
"created_at": "2026-08-23T12:10:00Z",
"updated_at": "2026-08-23T12:10:00Z",
"runs": []
}PUT/v1/schedules/{schedule_id}Update a schedule⌄
Replaces the request recipe and recurrence while preserving paused state.
Response · 200 OK{
"id": "schedule_7d3b...91fa",
"name": "Daily brand monitoring",
"platform": "x",
"operation": "posts",
"targets": ["XDevelopers", "OpenAI"],
"requested_limit": 20,
"include_posts": 0,
"frequency": "daily",
"timezone": "Europe/Amsterdam",
"starts_at": "2026-08-24T09:00:00+02:00",
"next_run_at": "2026-08-24T07:00:00Z",
"last_run_at": null,
"status": "active",
"overlap_policy": "skip",
"created_at": "2026-08-23T12:10:00Z",
"updated_at": "2026-08-23T12:10:00Z",
"runs": []
}POST/v1/schedules/{schedule_id}/pausePause a schedule⌄
Stops future automatic dispatches without deleting history.
Response · 200 OK{
"id": "schedule_7d3b...91fa",
"name": "Daily brand monitoring",
"platform": "x",
"operation": "posts",
"targets": ["XDevelopers", "OpenAI"],
"requested_limit": 20,
"include_posts": 0,
"frequency": "daily",
"timezone": "Europe/Amsterdam",
"starts_at": "2026-08-24T09:00:00+02:00",
"next_run_at": "2026-08-24T07:00:00Z",
"last_run_at": null,
"status": "paused",
"overlap_policy": "skip",
"created_at": "2026-08-23T12:10:00Z",
"updated_at": "2026-08-23T12:10:00Z",
"runs": []
}POST/v1/schedules/{schedule_id}/resumeResume a schedule⌄
Reactivates a paused recurring schedule and advances its next run if needed.
Response · 200 OK{
"id": "schedule_7d3b...91fa",
"name": "Daily brand monitoring",
"platform": "x",
"operation": "posts",
"targets": ["XDevelopers", "OpenAI"],
"requested_limit": 20,
"include_posts": 0,
"frequency": "daily",
"timezone": "Europe/Amsterdam",
"starts_at": "2026-08-24T09:00:00+02:00",
"next_run_at": "2026-08-24T07:00:00Z",
"last_run_at": null,
"status": "active",
"overlap_policy": "skip",
"created_at": "2026-08-23T12:10:00Z",
"updated_at": "2026-08-23T12:10:00Z",
"runs": []
}POST/v1/schedules/{schedule_id}/runRun a schedule now⌄
Creates an immediate manual occurrence using the saved recipe.
Response · 202 Accepted{
"id": "schedule_7d3b...91fa",
"name": "Daily brand monitoring",
"platform": "x",
"operation": "posts",
"targets": ["XDevelopers", "OpenAI"],
"requested_limit": 20,
"include_posts": 0,
"frequency": "daily",
"timezone": "Europe/Amsterdam",
"starts_at": "2026-08-24T09:00:00+02:00",
"next_run_at": "2026-08-24T07:00:00Z",
"last_run_at": null,
"status": "active",
"overlap_policy": "skip",
"created_at": "2026-08-23T12:10:00Z",
"updated_at": "2026-08-23T12:10:00Z",
"runs": [{ "id": "run_01H...", "trigger": "manual", "status": "queued", "job_id": null, "batch_id": "batch_01H..." }]
}DELETE/v1/schedules/{schedule_id}Delete a schedule⌄
Soft-deletes the schedule while retaining prior jobs and accounting.
Response · 204 No ContentAsk AI and templates
Turn a question or research template into collected data and a written analysis.
POST/v1/assistant/plansAsk a question⌄
Plans which data to collect for a plain-English question and returns the steps with a maximum credit cost. Nothing runs and nothing is charged yet. A plan can also come back as kind=clarify with a follow-up question.
Response · 200 OKcurl -X POST https://api.caelario.com/v1/assistant/plans \
-H "X-API-Key: $CAELARIO_API_KEY" -H "Content-Type: application/json" \
-d '{"question": "Which brands sponsor mkbhd on YouTube?"}'{
"id": "plan_01H...",
"question": "Which brands sponsor mkbhd on YouTube?",
"status": "planned",
"kind": "plan",
"source": "ai",
"title": "YouTube sponsors for mkbhd",
"steps": [
{ "platform": "youtube", "operation": "sponsored_videos", "target": "mkbhd", "limit": 30,
"purpose": "Recent videos with sponsors", "job_id": null, "status": null }
],
"estimated_credits": 60,
"answer": null
}GET/v1/assistant/templatesList research templates⌄
Returns the ready-made research recipes with their inputs, steps, platforms and flat price per run.
POST/v1/assistant/templates/{template_id}/plansFill in a template⌄
Creates a priced plan from a template and its inputs, without using the model to plan. Template plans do not count toward the daily question limit.
Response · 200 OKcurl -X POST https://api.caelario.com/v1/assistant/templates/creator-brand-deals/plans \
-H "X-API-Key: $CAELARIO_API_KEY" -H "Content-Type: application/json" \
-d '{"inputs": {"handle": "mkbhd"}}'{
"id": "plan_01H...",
"question": "Which brands sponsor mkbhd on YouTube?",
"status": "planned",
"kind": "plan",
"source": "template",
"title": "YouTube sponsors for mkbhd",
"steps": [
{ "platform": "youtube", "operation": "sponsored_videos", "target": "mkbhd", "limit": 30,
"purpose": "Recent videos with sponsors", "job_id": null, "status": null }
],
"estimated_credits": 60,
"answer": null
}GET/v1/assistant/plansList plans⌄
Returns recent questions and template runs for the workspace, newest first.
GET/v1/assistant/plans/{plan_id}Get a plan and its answer⌄
Returns the plan, each step's job status, result count and credits, and the written answer once status is answered.
Response · 200 OK{
"id": "plan_01H...",
"status": "answered",
"steps": [
{ "platform": "youtube", "operation": "sponsored_videos", "target": "mkbhd",
"job_id": "job_01H...", "status": "completed", "result_count": 9, "billed_credits": 18 }
],
"answer": "Tech and software brands account for most deals...\n\n**What stands out**\n- ...\n\n**What you could do**\n- ...",
"answered_at": "2026-11-20T10:04:12Z"
}PATCH/v1/assistant/plans/{plan_id}/steps/{index}Change a step's target⌄
Replaces the target of one step before the plan is approved, for example to fix a username.
POST/v1/assistant/plans/{plan_id}/approveApprove and run a plan⌄
Submits one job per step. Credits are reserved per job exactly like POST /v1/jobs. Approving twice returns 409.
POST/v1/assistant/plans/{plan_id}/cancelCancel a plan⌄
Cancels a plan that has not finished and any of its queued jobs.
GET/v1/assistant/jobs/{job_id}/planFind the plan behind a job⌄
Returns the plan that created a job, so a job result can be shown with its question and answer.