API reference

Exclusion list

The exclusion list holds the people Gemlead never contacts, by X account or by domain, like your customers, your team or a competitor. A lead on it never enters a campaign. The list holds 5 000 entries.

Each persona has its own list too, set with persona. It holds on every X account that shares the persona. A lead is left out when it is on its persona's list or on its X account's.

The exclusion list object

The X accounts and the domains Gemlead never contacts, like your customers, your team or a competitor. A lead on the list, by its username or the domain on its profile, never enters a campaign.

Attributes

  • objectstring
    Always exclusion_list.
  • persona_idstring or null
    The persona whose own list this is, or null for the X account's list.
  • handlesarray of strings
    X usernames, without the @.
  • domainsarray of strings
    Domains, like bigcustomer.com. An email adds its domain.
  • max_entriesinteger
    How many entries the list holds at most.
Exclusion list object
{
  "object": "exclusion_list",
  "persona_id": null,
  "handles": ["competitor_hq", "my_cofounder"],
  "domains": ["bigcustomer.com"],
  "max_entries": 5000
}

Retrieve the exclusion list

GET/v1/exclusion_listread scopeMCPget_exclusion_list

Returns every X account and domain on the list.

Query parameters

  • personastring
    A persona's ID, to work on that persona's own list. Without it, the X account's list.

Returns

The exclusion list object.

Errors

GET/v1/exclusion_list
curl https://gemlead.ai/api/v1/exclusion_list \
  -H "Authorization: Bearer $GEMLEAD_API_KEY"
Response200
{
  "object": "exclusion_list",
  "persona_id": null,
  "handles": ["competitor_hq", "my_cofounder"],
  "domains": ["bigcustomer.com"],
  "max_entries": 5000
}

Add to the exclusion list

POST/v1/exclusion_list/addwrite scopeMCPedit_exclusion_list

Adds X accounts or domains to the list. Leads that match stop in every campaign.

Body parameters

  • entriesarray of stringsRequired
    1 to 500 entries. Each an @username, an x.com profile URL, a domain, or an email for its domain.
  • personastring
    A persona's ID, to work on that persona's own list. Without it, the X account's list.

Returns

The updated exclusion list object.

Errors

POST/v1/exclusion_list/add
curl -X POST https://gemlead.ai/api/v1/exclusion_list/add \
  -H "Authorization: Bearer $GEMLEAD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "entries": ["@competitor_hq", "bigcustomer.com"]
  }'
Response200
{
  "object": "exclusion_list",
  "persona_id": null,
  "handles": ["competitor_hq", "my_cofounder"],
  "domains": ["bigcustomer.com"],
  "max_entries": 5000
}

Remove from the exclusion list

POST/v1/exclusion_list/removewrite scopeMCPedit_exclusion_list

Takes X accounts or domains off the list.

Body parameters

  • entriesarray of stringsRequired
    1 to 500 entries, as listed.
  • personastring
    A persona's ID, to work on that persona's own list. Without it, the X account's list.

Returns

The updated exclusion list object.

Errors

POST/v1/exclusion_list/remove
curl -X POST https://gemlead.ai/api/v1/exclusion_list/remove \
  -H "Authorization: Bearer $GEMLEAD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "entries": ["my_cofounder"]
  }'
Response200
{
  "object": "exclusion_list",
  "persona_id": null,
  "handles": ["competitor_hq"],
  "domains": ["bigcustomer.com"],
  "max_entries": 5000
}