API reference
Campaigns
A campaign takes a persona's hot leads through a flow of steps, likes, comments, follows and DMs, all from your X account, and moves every reply to your inbox. Create one from a template or your own flow, start it, and follow its numbers.
- GET/v1/
campaigns - GET/v1/
campaigns/ :id - POST/v1/
campaigns - POST/v1/
campaigns/ :campaign_id/ start - POST/v1/
campaigns/ :campaign_id/ pause - POST/v1/
campaigns/ :campaign_id/ archive - POST/v1/
campaigns/ :campaign_id/ duplicate - DELETE/v1/
campaigns/ :campaign_id - GET/v1/
campaigns/ :id/ stats - GET/v1/
campaigns/ :campaign_id/ settings - PATCH/v1/
campaigns/ :campaign_id/ settings - GET/v1/
campaigns/ :campaign_id/ leads - GET/v1/
campaigns/ :campaign_id/ trends - GET/v1/
campaign_templates
The campaign object
An outreach flow that sends DMs to a persona's hot leads, follows up and hands replies to your inbox.
Attributes
- idstringUnique identifier for the campaign.
- objectstringAlways
campaign. - namestringThe campaign's name.
- statusstringWhether the campaign is sending.
draftactivepausedarchived - personaobject or nullThe persona whose leads enter the campaign.
- methodstring or nullHow the campaign's leads were found. Null for older campaigns.
followingkeywordscompetitor_followerscompetitor_comments - min_scoreintegerLeads with a lower score never enter the campaign.
- daily_limitintegerThe most new leads that enter the campaign a day, 5 to 150. Default 60.
- statsobjectTotals since the campaign started. A reply counts when it comes within 7 days of the first DM.
- created_atstringWhen the campaign was created, ISO 8601.
- updated_atstringWhen the campaign last changed, ISO 8601.
{
"id": "c7RkQ2wLxe",
"object": "campaign",
"name": "Tipsters warm intro",
"status": "active",
"persona": {
"id": "lvWBPnytpS",
"name": "Tipsters"
},
"method": "keywords",
"min_score": 60,
"daily_limit": 50,
"stats": {
"leads": 640,
"dms_sent": 412,
"replies": 57,
"reply_rate": 13.8
},
"created_at": "2026-09-14T09:21:05.300Z",
"updated_at": "2026-11-06T07:45:12.904Z"
}List campaigns
Returns your campaigns, newest first.
Query parameters
- statusstringOnly campaigns with this status.
draftactivepausedarchived - personastringOnly campaigns of this persona ID.
- limitintegerHow many objects to return, from 1 to 100. Defaults to 25.
- cursorstringThe
next_cursorof the previous page, to get the page after it. See Pagination.
Returns
A list of campaign objects.
Errors
- A parameter has a value the API does not accept.
paramnames it.
curl -G https://gemlead.ai/api/v1/campaigns \
-H "Authorization: Bearer $GEMLEAD_API_KEY" \
-d status=active{
"object": "list",
"data": [
{
"id": "c7RkQ2wLxe",
"object": "campaign",
"name": "Tipsters warm intro",
"status": "active",
"persona": {
"id": "lvWBPnytpS",
"name": "Tipsters"
},
"method": "keywords",
"min_score": 60,
"daily_limit": 50,
"stats": {
"leads": 640,
"dms_sent": 412,
"replies": 57,
"reply_rate": 13.8
},
"created_at": "2026-09-14T09:21:05.300Z",
"updated_at": "2026-11-06T07:45:12.904Z"
}
],
"has_more": false,
"next_cursor": null
}Retrieve a campaign
read scopeReturns one campaign.
Path parameters
- idstringRequiredThe campaign's ID.
Returns
Errors
- No campaign with this ID on the key's account.
curl https://gemlead.ai/api/v1/campaigns/c7RkQ2wLxe \
-H "Authorization: Bearer $GEMLEAD_API_KEY"{
"id": "c7RkQ2wLxe",
"object": "campaign",
"name": "Tipsters warm intro",
"status": "active",
"persona": {
"id": "lvWBPnytpS",
"name": "Tipsters"
},
"method": "keywords",
"min_score": 60,
"daily_limit": 50,
"stats": {
"leads": 640,
"dms_sent": 412,
"replies": 57,
"reply_rate": 13.8
},
"created_at": "2026-09-14T09:21:05.300Z",
"updated_at": "2026-11-06T07:45:12.904Z"
}Create a campaign
Creates a campaign as a draft. Nothing goes out until you start it. Without template or flow, the campaign gets the app's default, the Warm up template for B2B and Instant for B2C.
Body parameters
- persona_idstringRequiredThe persona whose leads enter it.
- namestringRequiredThe campaign's name, up to 100 characters.
- methodstringOnly leads found this way enter. Leave it out for every lead of the persona.
followingkeywordscompetitor_followerscompetitor_comments - min_scoreintegerOnly leads with at least this score enter, 0 to 100. Default 60.
- daily_limitintegerThe most new leads that enter a day, 5 to 150. Default 60. Each new lead starts with Radar, which adds it to a private X list of the account, and X blocks those adds for 6 to 24 hours above a few hundred a day.
- lead_orderstringWhich leads enter first. Default
highest, ornewestfor the keyword and competitor methods.highestlowestshufflenewest - templatestringThe flow to start from. See List campaign templates. Not with
flow.warm_upinstantdirect_messageblank - flowobjectYour own flow, instead of a template.
Returns
The new campaign object, its status at draft.
Errors
- A required parameter is missing.
paramnames it. - A parameter has a value the API does not accept.
paramnames it. - The body has a field this endpoint does not take.
- No persona with this
persona_idon the key's account.
curl -X POST https://gemlead.ai/api/v1/campaigns \
-H "Authorization: Bearer $GEMLEAD_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"persona_id": "lvWBPnytpS",
"name": "Tipsters warm intro",
"method": "keywords",
"daily_limit": 50,
"template": "instant"
}'{
"id": "c7RkQ2wLxe",
"object": "campaign",
"name": "Tipsters warm intro",
"status": "draft",
"persona": {
"id": "lvWBPnytpS",
"name": "Tipsters"
},
"method": "keywords",
"min_score": 60,
"daily_limit": 50,
"stats": {
"leads": 0,
"dms_sent": 0,
"replies": 0,
"reply_rate": null
},
"created_at": "2026-09-14T09:21:05.300Z",
"updated_at": "2026-11-06T07:45:12.904Z"
}Start a campaign
Starts a draft or resumes a paused campaign. Leads enter and the steps go out from your X account.
Path parameters
- campaign_idstringRequiredThe campaign's ID.
Returns
The campaign object, its status at active.
Errors
- No campaign with this ID on the key's account.
- The campaign is archived. Duplicate it to run it again.
- The flow has no step yet.
curl -X POST \
https://gemlead.ai/api/v1/campaigns/c7RkQ2wLxe/start \
-H "Authorization: Bearer $GEMLEAD_API_KEY"{
"id": "c7RkQ2wLxe",
"object": "campaign",
"name": "Tipsters warm intro",
"status": "active",
"persona": {
"id": "lvWBPnytpS",
"name": "Tipsters"
},
"method": "keywords",
"min_score": 60,
"daily_limit": 50,
"stats": {
"leads": 640,
"dms_sent": 412,
"replies": 57,
"reply_rate": 13.8
},
"created_at": "2026-09-14T09:21:05.300Z",
"updated_at": "2026-11-06T07:45:12.904Z"
}Pause a campaign
Pauses a campaign. No new step goes out until you start it again, and leads keep their place.
Path parameters
- campaign_idstringRequiredThe campaign's ID.
Returns
The campaign object, its status at paused.
Errors
- No campaign with this ID on the key's account.
- The campaign is archived. Duplicate it to run it again.
- The campaign is a draft, there is nothing to pause.
curl -X POST \
https://gemlead.ai/api/v1/campaigns/c7RkQ2wLxe/pause \
-H "Authorization: Bearer $GEMLEAD_API_KEY"{
"id": "c7RkQ2wLxe",
"object": "campaign",
"name": "Tipsters warm intro",
"status": "paused",
"persona": {
"id": "lvWBPnytpS",
"name": "Tipsters"
},
"method": "keywords",
"min_score": 60,
"daily_limit": 50,
"stats": {
"leads": 640,
"dms_sent": 412,
"replies": 57,
"reply_rate": 13.8
},
"created_at": "2026-09-14T09:21:05.300Z",
"updated_at": "2026-11-06T07:45:12.904Z"
}Archive a campaign
Ends a campaign for good. Its history and its conversations stay, and Duplicate a campaign runs it again.
Path parameters
- campaign_idstringRequiredThe campaign's ID.
Returns
The campaign object, its status at archived.
Errors
- No campaign with this ID on the key's account.
curl -X POST \
https://gemlead.ai/api/v1/campaigns/c7RkQ2wLxe/archive \
-H "Authorization: Bearer $GEMLEAD_API_KEY"{
"id": "c7RkQ2wLxe",
"object": "campaign",
"name": "Tipsters warm intro",
"status": "archived",
"persona": {
"id": "lvWBPnytpS",
"name": "Tipsters"
},
"method": "keywords",
"min_score": 60,
"daily_limit": 50,
"stats": {
"leads": 640,
"dms_sent": 412,
"replies": 57,
"reply_rate": 13.8
},
"created_at": "2026-09-14T09:21:05.300Z",
"updated_at": "2026-11-06T07:45:12.904Z"
}Duplicate a campaign
Copies a campaign's settings and flow, without its leads, as a new draft.
Path parameters
- campaign_idstringRequiredThe campaign's ID.
Returns
The new campaign object, its status at draft.
Errors
- No campaign with this ID on the key's account.
curl -X POST \
https://gemlead.ai/api/v1/campaigns/c7RkQ2wLxe/duplicate \
-H "Authorization: Bearer $GEMLEAD_API_KEY"{
"id": "c2VbN6mQrz",
"object": "campaign",
"name": "Tipsters warm intro copy",
"status": "draft",
"persona": {
"id": "lvWBPnytpS",
"name": "Tipsters"
},
"method": "keywords",
"min_score": 60,
"daily_limit": 50,
"stats": {
"leads": 0,
"dms_sent": 0,
"replies": 0,
"reply_rate": null
},
"created_at": "2026-11-06T07:45:12.904Z",
"updated_at": "2026-11-06T07:45:12.904Z"
}Delete a campaign
Deletes a campaign. Its leads and their conversations stay. This cannot be undone.
Path parameters
- campaign_idstringRequiredThe campaign's ID.
Returns
An object with the campaign's id and deleted set to true.
Errors
- No campaign with this ID on the key's account.
curl -X DELETE \
https://gemlead.ai/api/v1/campaigns/c7RkQ2wLxe \
-H "Authorization: Bearer $GEMLEAD_API_KEY"{
"id": "c7RkQ2wLxe",
"object": "campaign",
"deleted": true
}The campaign stats object
A campaign's results over a period, in total and day by day.
Attributes
- objectstringAlways
campaign_stats. - campaign_idstringThe campaign's ID.
- fromstringThe first day,
YYYY-MM-DD. - tostringThe last day,
YYYY-MM-DD. - totalsobject
leads_added,dms_sent,repliesandreply_rateover the period. - dailyarray of objectsOne entry a day with its
date,dms_sentandreplies.
{
"object": "campaign_stats",
"campaign_id": "c7RkQ2wLxe",
"from": "2026-10-08",
"to": "2026-11-06",
"totals": {
"leads_added": 640,
"dms_sent": 412,
"replies": 57,
"reply_rate": 13.8
},
"daily": [
{
"date": "2026-11-04",
"dms_sent": 22,
"replies": 3
},
{
"date": "2026-11-05",
"dms_sent": 25,
"replies": 4
},
{
"date": "2026-11-06",
"dms_sent": 9,
"replies": 1
}
]
}Retrieve campaign stats
Returns a campaign's results over a period, in total and day by day. dms_sent counts the first DMs sent in the period, replies the replies of those leads within 7 days. Days are UTC dates.
Path parameters
- idstringRequiredThe campaign's ID.
Query parameters
- fromstringThe first day,
YYYY-MM-DD. Defaults to 30 days ago. - tostringThe last day,
YYYY-MM-DD. Defaults to today.
Returns
Errors
- No campaign with this ID on the key's account.
- A parameter has a value the API does not accept.
paramnames it.
curl -G https://gemlead.ai/api/v1/campaigns/c7RkQ2wLxe/stats \
-H "Authorization: Bearer $GEMLEAD_API_KEY" \
-d from=2026-10-08 \
-d to=2026-11-06{
"object": "campaign_stats",
"campaign_id": "c7RkQ2wLxe",
"from": "2026-10-08",
"to": "2026-11-06",
"totals": {
"leads_added": 640,
"dms_sent": 412,
"replies": 57,
"reply_rate": 13.8
},
"daily": [
{
"date": "2026-11-04",
"dms_sent": 22,
"replies": 3
},
{
"date": "2026-11-05",
"dms_sent": 25,
"replies": 4
},
{
"date": "2026-11-06",
"dms_sent": 9,
"replies": 1
}
]
}The campaign settings object
A campaign's settings and its whole flow, every step with its ID and options.
Attributes
- objectstringAlways
campaign_settings. - campaign_idstringThe campaign's ID.
- persona_idstring or nullThe persona whose leads enter it.
- namestringThe campaign's name.
- statusstringWhere the campaign stands.
draftactivepausedarchived - methodstring or nullOnly leads found this way enter.
nulllets every lead of the persona in.followingkeywordscompetitor_followerscompetitor_comments - min_scoreintegerOnly leads with at least this score enter, 0 to 100.
- daily_limitintegerThe most new leads that enter a day, 5 to 150.
- lead_orderstringWhich leads enter first.
highestscore,lowest,shuffleornewestfound.highestlowestshufflenewest - flowobjectIts flow.
- updated_atstringWhen it last changed, ISO 8601.
{
"object": "campaign_settings",
"campaign_id": "c7RkQ2wLxe",
"persona_id": "lvWBPnytpS",
"name": "Tipsters warm intro",
"status": "active",
"method": "keywords",
"min_score": 60,
"daily_limit": 50,
"lead_order": "newest",
"flow": {
"steps": [
{
"id": "in-like",
"type": "like",
"label": "Like",
"count": 1
},
{
"id": "in-follow",
"type": "follow",
"label": "Follow"
},
{
"id": "in-timer",
"type": "timer",
"label": "Timer",
"duration": "1d"
},
{
"id": "in-inbox",
"type": "can_dm",
"label": "Inbox opened test",
"if_yes": [
{
"id": "in-dm",
"type": "send_dm",
"label": "Direct message",
"mode": "ai",
"dm_kind": "cold",
"language": "auto",
"instructions": null,
"template": null
},
{
"id": "in-comment-bridge",
"type": "comment",
"label": "Comment",
"comment_type": "bridge",
"language": "auto",
"instructions": null
}
],
"if_no": [
{
"id": "in-comment-closed",
"type": "comment",
"label": "Comment",
"comment_type": "inbox_closed",
"language": "auto",
"instructions": null
}
]
},
{
"id": "in-timer-followup",
"type": "timer",
"label": "Timer",
"duration": "3d"
},
{
"id": "in-dm-followup",
"type": "send_dm",
"label": "Direct message",
"mode": "ai",
"dm_kind": "follow_up",
"language": "auto",
"instructions": null,
"template": null
},
{
"id": "in-cleaner",
"type": "cleaner",
"label": "Cleaner",
"unfollow": true,
"delete_comments": true,
"delete_likes": true
}
]
},
"updated_at": "2026-11-06T07:45:12.904Z"
}Retrieve campaign settings
Returns a campaign's settings and its flow, every step with its ID and options. Read it before you edit the flow.
Path parameters
- campaign_idstringRequiredThe campaign's ID.
Returns
Errors
- No campaign with this ID on the key's account.
curl https://gemlead.ai/api/v1/campaigns/c7RkQ2wLxe/settings \
-H "Authorization: Bearer $GEMLEAD_API_KEY"{
"object": "campaign_settings",
"campaign_id": "c7RkQ2wLxe",
"persona_id": "lvWBPnytpS",
"name": "Tipsters warm intro",
"status": "active",
"method": "keywords",
"min_score": 60,
"daily_limit": 50,
"lead_order": "newest",
"flow": {
"steps": [
{
"id": "in-like",
"type": "like",
"label": "Like",
"count": 1
},
{
"id": "in-follow",
"type": "follow",
"label": "Follow"
},
{
"id": "in-timer",
"type": "timer",
"label": "Timer",
"duration": "1d"
},
{
"id": "in-inbox",
"type": "can_dm",
"label": "Inbox opened test",
"if_yes": [
{
"id": "in-dm",
"type": "send_dm",
"label": "Direct message",
"mode": "ai",
"dm_kind": "cold",
"language": "auto",
"instructions": null,
"template": null
},
{
"id": "in-comment-bridge",
"type": "comment",
"label": "Comment",
"comment_type": "bridge",
"language": "auto",
"instructions": null
}
],
"if_no": [
{
"id": "in-comment-closed",
"type": "comment",
"label": "Comment",
"comment_type": "inbox_closed",
"language": "auto",
"instructions": null
}
]
},
{
"id": "in-timer-followup",
"type": "timer",
"label": "Timer",
"duration": "3d"
},
{
"id": "in-dm-followup",
"type": "send_dm",
"label": "Direct message",
"mode": "ai",
"dm_kind": "follow_up",
"language": "auto",
"instructions": null,
"template": null
},
{
"id": "in-cleaner",
"type": "cleaner",
"label": "Cleaner",
"unfollow": true,
"delete_comments": true,
"delete_likes": true
}
]
},
"updated_at": "2026-11-06T07:45:12.904Z"
}Update campaign settings
Changes the settings you send and keeps the others. A flow replaces the whole flow, even on a running campaign. Keep the IDs of the steps you keep, leads waiting on them stay there, and the app moves the others.
Path parameters
- campaign_idstringRequiredThe campaign's ID.
Body parameters
- namestringThe campaign's name, up to 100 characters.
- methodstring or nullOnly leads found this way enter,
nullfor every lead of the persona.followingkeywordscompetitor_followerscompetitor_comments - min_scoreintegerOnly leads with at least this score enter, 0 to 100.
- daily_limitintegerThe most new leads that enter a day, 5 to 150.
- lead_orderstringWhich leads enter first.
highestscore,lowest,shuffleornewestfound.highestlowestshufflenewest - flowobjectThe new flow, in full.
Returns
The updated campaign settings object.
Errors
- No campaign with this ID on the key's account.
- A parameter has a value the API does not accept.
paramnames it. - The body has a field this endpoint does not take.
- You changed the flow of an archived campaign. Duplicate it instead.
curl -X PATCH \
https://gemlead.ai/api/v1/campaigns/c7RkQ2wLxe/settings \
-H "Authorization: Bearer $GEMLEAD_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"daily_limit": 80,
"min_score": 70
}'{
"object": "campaign_settings",
"campaign_id": "c7RkQ2wLxe",
"persona_id": "lvWBPnytpS",
"name": "Tipsters warm intro",
"status": "active",
"method": "keywords",
"min_score": 70,
"daily_limit": 80,
"lead_order": "newest",
"flow": {
"steps": [
{
"id": "in-like",
"type": "like",
"label": "Like",
"count": 1
},
{
"id": "in-follow",
"type": "follow",
"label": "Follow"
},
{
"id": "in-timer",
"type": "timer",
"label": "Timer",
"duration": "1d"
},
{
"id": "in-inbox",
"type": "can_dm",
"label": "Inbox opened test",
"if_yes": [
{
"id": "in-dm",
"type": "send_dm",
"label": "Direct message",
"mode": "ai",
"dm_kind": "cold",
"language": "auto",
"instructions": null,
"template": null
},
{
"id": "in-comment-bridge",
"type": "comment",
"label": "Comment",
"comment_type": "bridge",
"language": "auto",
"instructions": null
}
],
"if_no": [
{
"id": "in-comment-closed",
"type": "comment",
"label": "Comment",
"comment_type": "inbox_closed",
"language": "auto",
"instructions": null
}
]
},
{
"id": "in-timer-followup",
"type": "timer",
"label": "Timer",
"duration": "3d"
},
{
"id": "in-dm-followup",
"type": "send_dm",
"label": "Direct message",
"mode": "ai",
"dm_kind": "follow_up",
"language": "auto",
"instructions": null,
"template": null
},
{
"id": "in-cleaner",
"type": "cleaner",
"label": "Cleaner",
"unfollow": true,
"delete_comments": true,
"delete_likes": true
}
]
},
"updated_at": "2026-11-06T07:45:12.904Z"
}The flow object
The steps a campaign runs for each lead, in order. A fork runs if_yes or if_no, then the steps after it. A flow holds 60 steps at most, forks go 2 deep and step IDs are unique. A step only takes the options of its type. Every like, comment, follow and DM goes out from your X account. The canvas in the app lays the flow out the same way as its own templates.
Attributes
- stepsarray of objectsRequiredThe steps, in order.
{
"steps": [
{
"id": "in-like",
"type": "like",
"label": "Like",
"count": 1
},
{
"id": "in-follow",
"type": "follow",
"label": "Follow"
},
{
"id": "in-timer",
"type": "timer",
"label": "Timer",
"duration": "1d"
},
{
"id": "in-inbox",
"type": "can_dm",
"label": "Inbox opened test",
"if_yes": [
{
"id": "in-dm",
"type": "send_dm",
"label": "Direct message",
"mode": "ai",
"dm_kind": "cold",
"language": "auto",
"instructions": null,
"template": null
},
{
"id": "in-comment-bridge",
"type": "comment",
"label": "Comment",
"comment_type": "bridge",
"language": "auto",
"instructions": null
}
],
"if_no": [
{
"id": "in-comment-closed",
"type": "comment",
"label": "Comment",
"comment_type": "inbox_closed",
"language": "auto",
"instructions": null
}
]
},
{
"id": "in-timer-followup",
"type": "timer",
"label": "Timer",
"duration": "3d"
},
{
"id": "in-dm-followup",
"type": "send_dm",
"label": "Direct message",
"mode": "ai",
"dm_kind": "follow_up",
"language": "auto",
"instructions": null,
"template": null
},
{
"id": "in-cleaner",
"type": "cleaner",
"label": "Cleaner",
"unfollow": true,
"delete_comments": true,
"delete_likes": true
}
]
}The campaign lead object
A lead in a campaign, the step it is on and what the campaign posted for it.
Attributes
- objectstringAlways
campaign_lead. - idstring or nullUnique identifier for the lead's run in this campaign.
- campaign_idstringThe campaign's ID.
- lead_idstring or nullThe lead's ID.
- statusstringThe lead's status in the campaign, like
waiting,replied,completedorfailed. - stepstring or nullThe label of the step it is on.
- entered_atstring or nullWhen it entered the campaign, ISO 8601.
- leadobject or nullThe lead.
- postedobjectWhat went out for this lead.
{
"object": "campaign_lead",
"id": "cl9TzQ4wKa",
"campaign_id": "c7RkQ2wLxe",
"lead_id": "msgOtJ8dvT",
"status": "replied",
"step": "Direct message",
"entered_at": "2026-11-05T15:00:08.000Z",
"lead": {
"id": "msgOtJ8dvT",
"object": "lead",
"profile": {
"x_user_id": "1460283925",
"username": "jane_builds",
"name": "Jane Doe",
"bio": "Runs a paid trading community. Daily setups, no hype.",
"followers_count": 12400,
"following_count": 380,
"location": "Austin, TX",
"website": "https://janedoe.com",
"profile_image_url": "https://pbs.twimg.com/profile_images/1460283925/jane_400x400.jpg",
"verified": true,
"url": "https://x.com/jane_builds"
},
"score": 86,
"score_reason": "Runs a paid trading community and asks how to collect payments for it.",
"hot": true,
"status": "scored",
"persona": {
"id": "lvWBPnytpS",
"name": "Tipsters"
},
"campaign": null,
"conversation_id": null,
"locked_to": null,
"found_at": "2026-11-05T14:02:11.482Z",
"scored_at": "2026-11-05T14:03:40.117Z",
"updated_at": "2026-11-05T14:03:40.117Z",
"metadata": {}
},
"posted": {
"comments": [],
"dms": [
{
"text": "Hey Jane, saw you want a real checkout for your picks. Want to see how others charge for their Discord?",
"message_id": "1985300011122233344",
"at": "2026-11-06T07:58:21.000Z"
}
]
}
}List campaign leads
Returns a campaign's leads by where they are in the flow, with what the campaign posted for each.
Path parameters
- campaign_idstringRequiredThe campaign's ID.
Query parameters
- stagestring
allis every lead that entered.steppassed the stepstep_id,forktook one branch of it.dm_sent,replied,finishedfor completed or replied,completedfor every step done without a reply. Defaultall.allstepforkdm_sentrepliedfinishedcompleted - step_idstringWith
steporfork, the step's ID. - branchstringWith
fork, the branch.yesno - skippedbooleanWith
stepon a comment or DM step, the leads it posted nothing for. - qstringSearch by name or username.
- limitintegerHow many objects to return, from 1 to 100. Defaults to 25.
- cursorstringThe
next_cursorof the previous page, to get the page after it. See Pagination.
Returns
A list of campaign lead objects, with total_count.
Errors
- No campaign with this ID on the key's account.
- A parameter has a value the API does not accept.
paramnames it.
curl -G https://gemlead.ai/api/v1/campaigns/c7RkQ2wLxe/leads \
-H "Authorization: Bearer $GEMLEAD_API_KEY" \
-d stage=replied{
"object": "list",
"data": [
{
"object": "campaign_lead",
"id": "cl9TzQ4wKa",
"campaign_id": "c7RkQ2wLxe",
"lead_id": "msgOtJ8dvT",
"status": "replied",
"step": "Direct message",
"entered_at": "2026-11-05T15:00:08.000Z",
"lead": {
"id": "msgOtJ8dvT",
"object": "lead",
"profile": {
"x_user_id": "1460283925",
"username": "jane_builds",
"name": "Jane Doe",
"bio": "Runs a paid trading community. Daily setups, no hype.",
"followers_count": 12400,
"following_count": 380,
"location": "Austin, TX",
"website": "https://janedoe.com",
"profile_image_url": "https://pbs.twimg.com/profile_images/1460283925/jane_400x400.jpg",
"verified": true,
"url": "https://x.com/jane_builds"
},
"score": 86,
"score_reason": "Runs a paid trading community and asks how to collect payments for it.",
"hot": true,
"status": "scored",
"persona": {
"id": "lvWBPnytpS",
"name": "Tipsters"
},
"campaign": null,
"conversation_id": null,
"locked_to": null,
"found_at": "2026-11-05T14:02:11.482Z",
"scored_at": "2026-11-05T14:03:40.117Z",
"updated_at": "2026-11-05T14:03:40.117Z",
"metadata": {}
},
"posted": {
"comments": [],
"dms": [
{
"text": "Hey Jane, saw you want a real checkout for your picks. Want to see how others charge for their Discord?",
"message_id": "1985300011122233344",
"at": "2026-11-06T07:58:21.000Z"
}
]
}
}
],
"has_more": true,
"next_cursor": "eyJzIjoiMjAyNi0xMS0wNVQxNDowMzo0MC4xMTdaIn0",
"total_count": 57
}The campaign trends object
A campaign's activity by day over 14 days or by hour over 24 hours, as on its chart in the app.
Attributes
- objectstringAlways
campaign_trends. - campaign_idstringThe campaign's ID.
- rangestringThe period.
14d24h - timezonestringThe time zone of the buckets.
- bucketsarray of objectsOne a day or an hour, each with its
keyand the metrics asked for. - totalsobjectSince the campaign started, its
started,sent,repliesandfollows, withlast_sent_atandlast_reply_at. - truncatedboolean
truewhen the campaign is too big to count in full. - generated_atstringWhen the numbers were read, ISO 8601.
{
"object": "campaign_trends",
"campaign_id": "c7RkQ2wLxe",
"range": "14d",
"timezone": "Europe/Paris",
"buckets": [
{
"key": "2026-11-04",
"started": 48,
"sent": 22,
"replies": 3,
"follows": 9
},
{
"key": "2026-11-05",
"started": 50,
"sent": 25,
"replies": 4,
"follows": 11
},
{
"key": "2026-11-06",
"started": 21,
"sent": 9,
"replies": 1,
"follows": 4
}
],
"totals": {
"started": 640,
"sent": 412,
"replies": 57,
"follows": 133,
"last_sent_at": "2026-11-06T08:20:03.000Z",
"last_reply_at": "2026-11-06T08:12:44.000Z"
},
"truncated": false,
"generated_at": "2026-11-06T08:30:00.000Z"
}Retrieve campaign trends
Returns the leads started, DMs sent, replies and follows of a campaign by day over 14 days, or by hour over 24 hours.
Path parameters
- campaign_idstringRequiredThe campaign's ID.
Query parameters
- metricsstringAny of
started,sent,repliesandfollows, comma separated. Default all four.startedsentrepliesfollows - rangestring
14dby day,24hby hour. Default14d.14d24h - timezonestringThe IANA time zone of the buckets, like
Europe/Paris. Default UTC.
Returns
Errors
- No campaign with this ID on the key's account.
- A parameter has a value the API does not accept.
paramnames it.
curl -G \
https://gemlead.ai/api/v1/campaigns/c7RkQ2wLxe/trends \
-H "Authorization: Bearer $GEMLEAD_API_KEY" \
-d range=14d \
--data-urlencode "timezone=Europe/Paris"{
"object": "campaign_trends",
"campaign_id": "c7RkQ2wLxe",
"range": "14d",
"timezone": "Europe/Paris",
"buckets": [
{
"key": "2026-11-04",
"started": 48,
"sent": 22,
"replies": 3,
"follows": 9
},
{
"key": "2026-11-05",
"started": 50,
"sent": 25,
"replies": 4,
"follows": 11
},
{
"key": "2026-11-06",
"started": 21,
"sent": 9,
"replies": 1,
"follows": 4
}
],
"totals": {
"started": 640,
"sent": 412,
"replies": 57,
"follows": 133,
"last_sent_at": "2026-11-06T08:20:03.000Z",
"last_reply_at": "2026-11-06T08:12:44.000Z"
},
"truncated": false,
"generated_at": "2026-11-06T08:30:00.000Z"
}The campaign template object
A flow to start a campaign from, as the app offers it. Every template's flow is a valid flow for Create a campaign.
Attributes
- objectstringAlways
campaign_template. - idstringThe template's ID, for the
templateparameter.warm_upinstantdirect_messageblank - descriptionstringWhat the flow does, in a few sentences.
- defaultbooleanWhether the app picks it for this method and market.
- flowobjectIts flow.
{
"object": "campaign_template",
"id": "direct_message",
"description": "Radar waits until they are online, then the message. No warm up.",
"default": false,
"flow": {
"steps": [
{
"id": "dm-snapshot",
"type": "snapshot",
"label": "Radar"
},
{
"id": "dm-send",
"type": "send_dm",
"label": "Direct message",
"mode": "ai",
"dm_kind": "cold",
"language": "auto",
"instructions": null,
"template": null
}
]
}
}List campaign templates
Returns the app's templates with their whole flows, the best reference for every step type and option. Warm up likes, comments and follows before the DM. Instant does it at once and DMs a day later. Direct message only sends the DM.
Query parameters
- methodstringThe campaign's method. The Instant flow changes with it.
followingkeywordscompetitor_followerscompetitor_comments - marketstringThe persona's market. In
b2c, Direct message sends at once, without Radar.b2bb2c
Returns
A list of campaign template objects.
Errors
- A parameter has a value the API does not accept.
paramnames it.
curl -G https://gemlead.ai/api/v1/campaign_templates \
-H "Authorization: Bearer $GEMLEAD_API_KEY" \
-d method=following \
-d market=b2b{
"object": "list",
"data": [
{
"object": "campaign_template",
"id": "direct_message",
"description": "Radar waits until they are online, then the message. No warm up.",
"default": false,
"flow": {
"steps": [
{
"id": "dm-snapshot",
"type": "snapshot",
"label": "Radar"
},
{
"id": "dm-send",
"type": "send_dm",
"label": "Direct message",
"mode": "ai",
"dm_kind": "cold",
"language": "auto",
"instructions": null,
"template": null
}
]
}
}
],
"has_more": false,
"next_cursor": null
}