Skip to content

People you no longer reach

OpenAPI JSON
GET
/v1/users/unreached
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.

days
integer
default: 30 >= 1 <= 365

How many days without being reached: a whole number from 1 to 365. Default 30.

limit
integer
default: 500 >= 1 <= 1000

How many people a page holds at most. Default 500, clamped to 1000.

cursor
string

The next of a previous answer. Leave it out for the first page.

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.

Media typeapplication/json
object
users
required
Array<object>
object
user_ref
required
string
last_reached_at
required

The last time Apigami saw your app reach this person.

string format: date-time
next
required

Pass it back as cursor; null after the last page.

string | null
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.

Media typeapplication/json
object
error
required
string
consentPending

Present and true when the approval window is open and the user has not answered within 45 s.

boolean
permission

On consent requested and no grant from emails.send or ai.generate: the permission the user never decided, or refused. Absent for a site.

string
Allowed values: emails ai
settings_url

On no grant: the page of the user’s Apigami space where they allow it again; send them there.

string format: uri
terms

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.

Array<string>
connect_url

With terms, when the user agrees under your application: your install link, where they tick the boxes still to tick.

string format: uri
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.

Media typeapplication/json
object
error
required
string
consentPending

Present and true when the approval window is open and the user has not answered within 45 s.

boolean
permission

On consent requested and no grant from emails.send or ai.generate: the permission the user never decided, or refused. Absent for a site.

string
Allowed values: emails ai
settings_url

On no grant: the page of the user’s Apigami space where they allow it again; send them there.

string format: uri
terms

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.

Array<string>
connect_url

With terms, when the user agrees under your application: your install link, where they tick the boxes still to tick.

string format: uri
Example
{
"error": "bad client credentials"
}

Your app is disabled.

Media typeapplication/json
object
error
required
string
consentPending

Present and true when the approval window is open and the user has not answered within 45 s.

boolean
permission

On consent requested and no grant from emails.send or ai.generate: the permission the user never decided, or refused. Absent for a site.

string
Allowed values: emails ai
settings_url

On no grant: the page of the user’s Apigami space where they allow it again; send them there.

string format: uri
terms

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.

Array<string>
connect_url

With terms, when the user agrees under your application: your install link, where they tick the boxes still to tick.

string format: uri
Example
{
"error": "client disabled"
}