hermosodocs

get_x_ads_leads

Read the leads from an X lead form read-only

Area: X ADS LEAD GEN, CARDS, MEDIA, PROMOTED-ONLY POSTS · Ad campaign management. Generated from the running MCP server, like the rest of the tool reference.

Description

Read the leads submitted to an X lead form over a window (default the last 30 days) — each lead's answers keyed by field (EMAIL, FULL_NAME…). X builds the export as a job; this waits up to ~45s and, if X is still working, returns an exportId to collect later with no new job. X lets only an ACCOUNT ADMIN export leads, and refuses an ARCHIVED form, so export before archiving. format csv/xlsx returns a download link instead. The result is personal information. Free.

Parameters

ParameterTypeDescription
adAccountIdstringX ad account id (list_x_ads_accounts); omit if only one is shared
accountIdstringolder name for adAccountId (MCP only)
leadFormIdstringX lead form id from list_x_ads_lead_forms; required unless exportId is given
startTimestringISO 8601
endTimestringISO 8601; default now
daysnumberwindow length when startTime is omitted; default 30
format"json" | "csv" | "xlsx"json (default, returns leads inline) | csv | xlsx (returns a download link)
exportIdstringcollect an export that was still running

Example call

Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/get_x_ads_leads.

MCP (tools/call)

{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_x_ads_leads","arguments":{}}}

CLI

hermoso call get_x_ads_leads --json '{}'

Credits

Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.

All 759 Ad campaign management tools · tools.json