get_x_ads_leads
Read the leads from an X lead form read-only
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
| Parameter | Type | Description |
|---|---|---|
adAccountId | string | X ad account id (list_x_ads_accounts); omit if only one is shared |
accountId | string | older name for adAccountId (MCP only) |
leadFormId | string | X lead form id from list_x_ads_lead_forms; required unless exportId is given |
startTime | string | ISO 8601 |
endTime | string | ISO 8601; default now |
days | number | window length when startTime is omitted; default 30 |
format | "json" | "csv" | "xlsx" | json (default, returns leads inline) | csv | xlsx (returns a download link) |
exportId | string | collect 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.
Related tools
update_x_ads_lead_formChange an X lead formupload_x_ads_mediaUpload media to an X ad accountcreate_x_ads_lead_formCreate an X lead formlist_x_ads_mediaList an X ad account’s Media Librarylist_x_ads_lead_formsList X lead formscreate_x_ads_cardBuild an X ad cardlist_x_ads_cardsList X ad cardscreate_x_ads_postWrite a promoted-only X post for adslist_x_ads_postsList the posts an X ad account can promotepreview_x_ads_postPreview an X ad post