# Hermoso: get_x_ads_leads: Read the leads · Hermoso developer docs

> Machine-readable twin of https://hermoso.ai/docs/reference/ads/get_x_ads_leads/. Generated from the shipped page. Do not edit by hand.
> Full agent guide: https://hermoso.ai/llms.txt · MCP: https://app.hermoso.ai/mcp

[Docs](https://hermoso.ai/docs/) / [Tool reference](https://hermoso.ai/docs/reference/) / [Ad campaign management](https://hermoso.ai/docs/reference/ads/) / get_x_ads_leads

# `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](https://hermoso.ai/docs/reference/ads/). Generated from the running MCP server, like the rest of the [tool reference](https://hermoso.ai/docs/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

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](https://hermoso.ai/docs/credits/).

## Related tools

- [update_x_ads_lead_form](https://hermoso.ai/docs/reference/ads/update_x_ads_lead_form/) Change an X lead form
- [upload_x_ads_media](https://hermoso.ai/docs/reference/ads/upload_x_ads_media/) Upload media to an X ad account
- [create_x_ads_lead_form](https://hermoso.ai/docs/reference/ads/create_x_ads_lead_form/) Create an X lead form
- [list_x_ads_media](https://hermoso.ai/docs/reference/ads/list_x_ads_media/) List an X ad account’s Media Library
- [list_x_ads_lead_forms](https://hermoso.ai/docs/reference/ads/list_x_ads_lead_forms/) List X lead forms
- [create_x_ads_card](https://hermoso.ai/docs/reference/ads/create_x_ads_card/) Build an X ad card
- [list_x_ads_cards](https://hermoso.ai/docs/reference/ads/list_x_ads_cards/) List X ad cards
- [create_x_ads_post](https://hermoso.ai/docs/reference/ads/create_x_ads_post/) Write a promoted-only X post for ads
- [list_x_ads_posts](https://hermoso.ai/docs/reference/ads/list_x_ads_posts/) List the posts an X ad account can promote
- [preview_x_ads_post](https://hermoso.ai/docs/reference/ads/preview_x_ads_post/) Preview an X ad post

[All 759 Ad campaign management tools](https://hermoso.ai/docs/reference/ads/) · [tools.json](https://hermoso.ai/docs/reference/tools.json)
