Documentation

BeeLeado REST API

Connect your scripts and apps to campaigns, leads, Reddit outreach, and insights. 32 endpoints use your existing account permissions and plan limits.

OpenAPI 3.1 specification

Get started

Create an API key

Open Settings → Integrations → API keys. Choose a name, permissions, and expiry: 30, 90, or 365 days, or Never. Copy the key when it appears: it is shown only once. An active plan with API access is required. You can have up to 10 active keys, including keys that never expire.

Read-only keys can use GET endpoints. Read-and-write keys can also change data and send messages. Keys inherit the owner’s existing team access. Revoke a key in Settings to stop new requests; work already accepted may finish.

Keep keys on your server

Store the key as a secret environment variable named BEELEADO_API_KEY. Never put it in browser code, mobile apps, URLs, or a public repository.

Make your first request

bashCopy
curl --fail-with-body 'https://api.beeleado.com/v1/account/usage' \
  -H "Authorization: Bearer $BEELEADO_API_KEY"

Successful reads return a JSON object with a data field containing the endpoint result. Lists use limit and offset where listed below, with a maximum limit of 50. Booleans are true or false; arrays can repeat a query parameter or use comma-separated values. Unknown parameters are rejected.

bashCopy
curl --fail-with-body 'https://api.beeleado.com/v1/leads?limit=20&offset=0&status=new&platforms=reddit' \
  -H "Authorization: Bearer $BEELEADO_API_KEY"

Writes and retries

Every POST, PATCH, and DELETE requires an Idempotency-Key. Generate a UUID once per intended action and store it with the request. If a request times out or returns 503, resend the same body and key. Never generate a fresh key just to retry.

bashCopy
curl --fail-with-body -X PATCH 'https://api.beeleado.com/v1/leads/status' \
  -H "Authorization: Bearer $BEELEADO_API_KEY" \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: 19e4c4ae-9c0c-4cb1-9504-845a9f992655' \
  --data '{"lead_ids":[123],"status":"contacted"}'

Replace 123 with an owned lead ID and the example Idempotency-Key with a UUID for your intended action.

202 Accepted (example)

jsonCopy
{
  "operation": {
    "id": "8c8866d6-ae27-412d-b6bf-a9499811c2ec",
    "status": "running",
    "url": "/v1/operations/8c8866d6-ae27-412d-b6bf-a9499811c2ec",
    "result": null,
    "error": null
  }
}

Poll the returned URL with the same API key, waiting at least five seconds between polls. The status is running, succeeded, failed, or unknown. Succeeded includes the tool result, which may describe a queued job: for example, a campaign sync continues in the background and DMs follow delivery pacing. Inspect the result for per-item outcomes.

bashCopy
curl --fail-with-body 'https://api.beeleado.com/v1/operations/8c8866d6-ae27-412d-b6bf-a9499811c2ec' \
  -H "Authorization: Bearer $BEELEADO_API_KEY"

An operation receipt prevents duplicate retries

Receipts are retained for at least seven days and belong to the key that created them. Reusing a key with different parameters returns 409. Failed operations may have partial effects. An interrupted operation becomes unknown within six minutes and is never automatically rerun. Check your account before submitting another action. After receipt retention expires, the same Idempotency-Key can start a new operation.

Sending a write request authorizes its effects, including messages or deletion. BeeLeado does not post public comments through the API; comment drafts are suggestions. Connect Reddit in the BeeLeado app before sending DMs. Loading the targeting editor is a POST because it can refresh stored targeting.

Limits and errors

API requests are limited to 60 per minute and 2,000 per UTC day per account, shared across all keys. Polling and retrying also count. These are separate from MCP transport limits; existing campaign, AI, and DM quotas still apply. The API may return 503 while write capacity is occupied.

jsonCopy
{
  "error": {
    "code": "invalid_key",
    "message": "The API key is invalid, expired, or revoked."
  }
}
HTTPCodeNext step
400invalid_json / idempotency_key_requiredCheck the JSON body and Idempotency-Key header.
401invalid_keySupply an active, unexpired API key.
403insufficient_scope / not_entitled / forbiddenCheck key permissions, resource access, and your subscription.
404not_foundCheck the route or operation ID. Operations belong to the key that created them.
405method_not_allowedUse the method shown in the endpoint reference.
409idempotency_conflictUse the original request with this Idempotency-Key.
413 / 415body_too_large / invalid_content_typeKeep JSON bodies under 128 KiB and set Content-Type: application/json.
422invalid_parameters / request_refusedCheck parameters or the explanation in error.message.
429rate_limitedWait for the number of seconds in Retry-After.
503api_busy / service_unavailable / api_unavailableRetry after Retry-After. For writes, reuse the same Idempotency-Key.

Endpoint reference

Path parameters go in the URL. GET parameters go in the query string. All other parameters go in a JSON body.

Account

GET/v1/account/usage

Account usage · Read scope

Campaigns

GET/v1/campaigns

List campaigns · Read scope

GET/v1/campaigns/{campaign_id}

Get campaign · Read scope

POST/v1/campaigns

Create campaign · Read and write key · Asynchronous

PATCH/v1/campaigns/{campaign_id}

Update campaign · Read and write key · Asynchronous

DELETE/v1/campaigns/{campaign_id}

Delete campaign · Read and write key · Asynchronous

POST/v1/campaigns/{campaign_id}/syncs

Start campaign sync · Read and write key · Asynchronous

GET/v1/campaigns/{campaign_id}/syncs

List campaign syncs · Read scope

PATCH/v1/campaigns/{campaign_id}/blocklist

Update blocklist · Read and write key · Asynchronous

POST/v1/campaigns/{campaign_id}/targeting/load

Load targeting editor · Read and write key · Asynchronous

PATCH/v1/campaigns/{campaign_id}/targeting

Update targeting · Read and write key · Asynchronous

Leads

GET/v1/leads

Search leads · Read scope

GET/v1/leads/{lead_id}

Get lead · Read scope

PATCH/v1/leads/status

Update lead status · Read and write key · Asynchronous

POST/v1/leads/delete

Delete leads · Read and write key · Asynchronous

Outreach

POST/v1/leads/{lead_id}/drafts

Draft a reply · Read and write key · Asynchronous

POST/v1/leads/{lead_id}/messages

Send a Reddit DM · Read and write key · Asynchronous

POST/v1/dm-queue

Queue Reddit DMs · Read and write key · Asynchronous

GET/v1/dm-queue

List queued DMs · Read scope

PATCH/v1/dm-queue/{queued_dm_id}

Edit queued DM · Read and write key · Asynchronous

POST/v1/dm-queue/{queued_dm_id}/generate

Generate queued DM · Read and write key · Asynchronous

DELETE/v1/dm-queue/{queued_dm_id}

Remove queued DM · Read and write key · Asynchronous

GET/v1/campaigns/{campaign_id}/outreach-agent

Get outreach agent · Read scope

PATCH/v1/campaigns/{campaign_id}/outreach-agent

Configure outreach agent · Read and write key · Asynchronous

Conversations

GET/v1/conversations

List conversations · Read scope

GET/v1/conversations/{conversation_id}

Get conversation · Read scope

POST/v1/conversations/{conversation_id}/replies

Reply to conversation · Read and write key · Asynchronous

Insights

GET/v1/campaigns/{campaign_id}/insights/leads

Lead insights · Read scope

GET/v1/campaigns/{campaign_id}/insights/outreach

Outreach insights · Read scope

GET/v1/campaigns/{campaign_id}/market-signals

Market signals · Read scope

GET/v1/competitors

Competitors · Read scope

GET/v1/viral-posts

Viral posts · Read scope