Saltar al contingut principal
GET
curl
Aquesta API de l’historial de consultes telefòniques de Didit enumera les consultes de risc telefòniques de l’aplicació, de la més recent a la més antiga. Cada resultat inclou el número de telèfon complet, l’estat, el país, el tipus de línia, la puntuació de risc i l’hora de creació. La puntuació de risc és null quan no està disponible. Filtra per un phone_number exacte o per una finestra de creació. La finestra inclou created_after i exclou created_before. Per llegir la pàgina següent, envia el valor de next com a offset fins que next sigui null. next i previous són desplaçaments de pàgina com "20", no URL. La paginació automàtica d’un SDK de servidor no pot seguir aquests desplaçaments, així que també hi has de passar offset manualment.

Autoritzacions

x-api-key
string
header
requerit

Your application's API key, from Developers -> API keys in the Business Console. The primary key has full access. A named key can be scoped: none, read or write per resource, limited to some workflows or to approved sessions, to a list of IP addresses, and to an expiry date. 401 means the key is wrong, revoked or expired; 403 means no key was sent, the key has no access to this resource or action, or the request came from an address outside its IP list; 404 on a session route means the session is outside the key's workflows or statuses. A key without media access receives image, video and PDF URLs as null, and a key without sessions write receives session links and tokens as null. See https://docs.didit.me/console/api-keys.

Paràmetres de consulta

phone_number
string

One number. An E.164 number.

Exemple:

"+12025550136"

created_after
string<date-time>

Include lookups created at or after this time. The earliest lookup time, ISO 8601.

created_before
string<date-time>

Include lookups created before this time.

limit
integer
predeterminat:20

20 by default, 100 at most. Rows per page.

Rang requerit: 1 <= x <= 100
Exemple:

20

offset
integer

Where the page starts: 0 by default, or the next or previous value of another page. Rows to skip.

Rang requerit: x >= 0

Resposta

A page of matching phone lookups.

count
integer

Rows that match the filters.

Exemple:

1

next
string | null

Offset of the next page of lookups, as a string such as "20", or null on the last page. It is not a URL: send it as offset to read that page.

Pattern: ^[0-9]+$
Exemple:

"20"

previous
string | null

Offset of the previous page of lookups, as a string such as "0", or null on the first page. It is not a URL: send it as offset to read that page.

Pattern: ^[0-9]+$
Exemple:

"0"

results
object[]

The rows, newest first.

Darrera modificació el 24 de novembre del 2026