Fetch users

GET {{baseUrl}}/users?page=<integer>&per_page=<integer>&last_seen_at:before=<string>&last_seen_at:after=<string>&last_notified_at:before=<string>&last_notified_at:after=<string>&order_by=last_seen_at,ASC

Fetches users for the project identified by the auth keys. Supports filtering, ordering, and pagination.

Request Params

KeyDatatypeRequiredDescription
pagestringThe page number of the paginated response. Defaults to 1.
per_pagestringThe number of items per page. Defaults to 20.
last_seen_at:beforestringFetch users seen before the specified last_seen_at timestamp. Please send it in RFC3339 format
last_seen_at:afterstringFetch users seen after the specified last_seen_at timestamp. Please send it in RFC3339 format
last_notified_at:beforestringFetch users last notified before the specified last_notified_at timestamp. Please send it in RFC3339 format
last_notified_at:afterstringFetch users last notified after the specified last_notified_at timestamp. Please send it in RFC3339 format
order_bystringUse it to order the returned list of users. Defaults to created_at,DESC

HEADERS

KeyDatatypeRequiredDescription
X-MAGICBELL-API-KEYstring(Required) The (public) API key of your MagicBell project.
X-MAGICBELL-API-SECRETstring(Required) The API secret of your MagicBell project.
Acceptstring

RESPONSES

status: OK

{&quot;current_page&quot;:&quot;\u003cinteger\u003e&quot;,&quot;per_page&quot;:&quot;\u003cinteger\u003e&quot;,&quot;users&quot;:[{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;external_id&quot;:&quot;\u003cstring\u003e&quot;,&quot;email&quot;:&quot;\u003cstring\u003e&quot;,&quot;first_name&quot;:&quot;\u003cstring\u003e&quot;,&quot;last_name&quot;:&quot;\u003cstring\u003e&quot;,&quot;custom_attributes&quot;:{&quot;eiusmod_754&quot;:&quot;Excepteur aute in cupidatat sint&quot;,&quot;in761&quot;:&quot;ut ipsum cupidatat sit&quot;},&quot;phone_numbers&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;]},{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;external_id&quot;:&quot;\u003cstring\u003e&quot;,&quot;email&quot;:&quot;\u003cstring\u003e&quot;,&quot;first_name&quot;:&quot;\u003cstring\u003e&quot;,&quot;last_name&quot;:&quot;\u003cstring\u003e&quot;,&quot;custom_attributes&quot;:{&quot;officia_b01&quot;:&quot;eiusmod velit pariatur dolor&quot;},&quot;phone_numbers&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;]}]}