Preview: the PushFleet API isn't live yet. Join the waitlist
Users
Users exist as soon as a device registers under their ID; there’s nothing to create.
List a user’s devices
Section titled “List a user’s devices”GET /v1/users/{user}/devices
Needs devices: read. Paginated.
await fleet.users.listDevices("user_8f3k");fleet.users.list_devices("user_8f3k")fleet.Users.ListDevices(ctx, "user_8f3k")fleet.users().list_devices("user_8f3k").await?;fleet.users.list_devices("user_8f3k")curl https://api.pushfleet.com/v1/users/user_8f3k/devices \
-H "Authorization: Bearer $PUSHFLEET_SECRET_KEY"Remove a user
Section titled “Remove a user”DELETE /v1/users/{user}
Removes the user and every device they registered, for example when someone deletes their account. Needs devices: write. Answers 204.
await fleet.users.delete("user_8f3k");fleet.users.delete("user_8f3k")fleet.Users.Delete(ctx, "user_8f3k")fleet.users().delete("user_8f3k").await?;fleet.users.delete("user_8f3k")curl -X DELETE https://api.pushfleet.com/v1/users/user_8f3k \
-H "Authorization: Bearer $PUSHFLEET_SECRET_KEY"