Skip to content
Docs
Open Escouade
Documentation contents

Docs › Mail › Tools

list_contacts

View as .md

List contacts.

The space’s global directory, independent of audiences: search, tags, membership, and unsubscribe or other effective block. Requires access to every inbox. Sends nothing.

Access

  • Key: an Escouade Mail key with read.
  • Space: any space, verified or not.
  • Changes nothing: yes, it only reads.
  • Safe to replay: yes.

Parameters

ParameterTypeRequiredDescription
querystringnoSearch in the address, the name and the fields.
labelstringnoExact tag.
audience_idstringnoLimit to one of the space’s audiences.
subscriptionone of subscribed, unsubscribed, blockednosubscribed: no known block (not proof of consent). unsubscribed: unsubscribed. blocked: another effective block.
offsetintegernoPosition to start from, for the next page.
limitintegernoNumber of contacts returned.

Call it

Terminal
curl -s https://api.subagent.fr/v1/list_contacts \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer sak_…' \
  -d '{}'

The full page in French, with the response fields and every refusal the tool can return: /mail/docs/reference/list_contacts.