People you no longer reach
OpenAPI JSONconst url = 'https://api.eu.apigami.com/v1/users/unreached?days=30&limit=500';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.eu.apigami.com/v1/users/unreached?days=30&limit=500' \ --header 'Authorization: Bearer <token>'The people your app reached once and has not reached for at least days days, so you can erase what you keep on them. Nothing reaches them any more: they removed your app, left every application that called yours, or deleted their account. Someone reached again is not listed, whatever their date. Read it once a day and erase the data of each user_ref returned: the list has no acknowledgement, and erasing twice does nothing. Apigami checks who your app reaches once a day, so last_reached_at is right to within a day, and people your app stopped reaching before this list existed are not known. Your API key works here, and so does the production version’s APIGAMI_KEY in code Apigami hosts.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”How many days without being reached: a whole number from 1 to 365. Default 30.
How many people a page holds at most. Default 500, clamped to 1000.
The next of a previous answer. Leave it out for the first page.
Responses
Section titled “Responses”A page of people you no longer reach, by user_ref. next is the cursor of the following page, or null after the last one.
object
object
The last time Apigami saw your app reach this person.
Pass it back as cursor; null after the last page.
Example
{ "users": [ { "user_ref": "usr_3f9c1a0e7b2d4c58a61e9f0b2d7c4e13", "last_reached_at": "2026-10-02T03:10:00.000Z" } ], "next": null}days, limit or cursor could not be read.
object
Present and true when the approval window is open and the user has not answered within 45 s.
On consent requested and no grant from emails.send or ai.generate: the permission the user never decided, or refused. Absent for a site.
On no grant: the page of the user’s Apigami space where they allow it again; send them there.
On consent requested, in place of permission: the bare app_id of each application whose terms or subprocessors the user has yet to agree to, unlike the boxes of GET /apps/{app_id}. Only the connect page asks it: send them to connect_url, or to one of your pages.
With terms, when the user agrees under your application: your install link, where they tick the boxes still to tick.
Example
{ "error": "days must be a whole number from 1 to 365"}Missing, malformed or revoked API key, or the key of a version that is not in production.
object
Present and true when the approval window is open and the user has not answered within 45 s.
On consent requested and no grant from emails.send or ai.generate: the permission the user never decided, or refused. Absent for a site.
On no grant: the page of the user’s Apigami space where they allow it again; send them there.
On consent requested, in place of permission: the bare app_id of each application whose terms or subprocessors the user has yet to agree to, unlike the boxes of GET /apps/{app_id}. Only the connect page asks it: send them to connect_url, or to one of your pages.
With terms, when the user agrees under your application: your install link, where they tick the boxes still to tick.
Example
{ "error": "bad client credentials"}Your app is disabled.
object
Present and true when the approval window is open and the user has not answered within 45 s.
On consent requested and no grant from emails.send or ai.generate: the permission the user never decided, or refused. Absent for a site.
On no grant: the page of the user’s Apigami space where they allow it again; send them there.
On consent requested, in place of permission: the bare app_id of each application whose terms or subprocessors the user has yet to agree to, unlike the boxes of GET /apps/{app_id}. Only the connect page asks it: send them to connect_url, or to one of your pages.
With terms, when the user agrees under your application: your install link, where they tick the boxes still to tick.
Example
{ "error": "client disabled"}