Loading...

GET /api/groups

If your application needs a list of fleets or branches, each saved group can represent one of them. A group brings together trackers by a criterion you choose, such as their branch or delivery route. Selecting a group on the map lets you see its devices together.

This request returns the groups available to your user and their public IDs. For example, you can show the names in a selector and use the selected group’s ID to look up its members. The list also starts with three special access options used when setting up sub-users.

Request Details

GET /api/groups

The example identifiers are fictional. Use the identifiers returned by your account’s list for the resource you want to look up or change.

Request Parameters

Send this request without parameters or a body.

Authentication Required

Send the access token in the Authorization: Bearer <token> header. See Authentication.

You need access to Groups. An administrator, including an administrator sub-user, can read the account’s groups. Other authorised users can read their own groups.

Example Request

GET /api/groups HTTP/1.1 Host: api.plaspy.com Authorization: Bearer {token}

Response Parameters

The first three entries in groups are special choices for assigning access when saving a user: all devices, administrator of this account, and administrator of their own account. Saved groups follow, with their names, devices and dates. Use the special IDs exactly as returned.

FieldTypePresenceDescription
groupsObject arrayAlwaysObject arrayAlwaysSpecial access choices followed by the available saved groups.
apiUsageIntegerAlwaysIntegerAlwaysUnits charged for this request.
apiDailyUsageIntegerAlwaysIntegerAlwaysDaily usage before the units for this request are added.

Fields in each group

FieldTypePresenceDescription
idStringAlwaysStringAlwaysPublic group ID with the grp- prefix.
nameStringAlwaysStringAlwaysName of the group or special access option.
descriptionStringWhen setStringWhen setGroup description, when set.
devicesString arrayIn saved groupsString arrayIn saved groupsIDs of the trackers assigned to the group.
creationDate-timeWhen setDate-timeWhen setCreation time in the requesting user’s time zone.
lastModifiedDate-timeWhen setDate-timeWhen setLast modification time in the requesting user’s time zone.

Example HTTP 200 response

{ "groups": [ { "id": "grp-AbCdMNxQWr", "name": "(All Devices)" }, { "id": "grp-EfGhRXwYmK", "name": "Administrator (Manage this account)" }, { "id": "grp-NpQrMWxYvK", "name": "Administrator (Manage their own account)" }, { "id": "grp-JkLmNZpQvW", "name": "City deliveries", "description": "City routes", "devices": [ "123456789012345" ], "creation": "2027-01-08T09:15:00", "lastModified": "2027-01-10T13:30:00" } ], "apiUsage": 1, "apiDailyUsage": 24 }

Errors

FieldTypePresenceDescription
successBooleanDepends on the errorBooleanDepends on the errorIn the operation errors shown here, the value is false.
errorStringDepends on the errorStringDepends on the errorMessage explaining why the request was rejected.
  • HTTP 401 if a valid Bearer token is missing.
  • HTTP 403 if the user lacks the required permission. The reason appears in error.

Example error

{ "success": false, "error": "Your user does not have permission to do this." }
Index
Questions?

We answer all support request within 24 business hours approximately, If you have a question that needs an immediate resolution, please contact us by other way.

We answer you in business hours, as soon as possible. We are located in Bogotá, Colombia, time zone (GMT-5).

Last modification: 2026-11-30 11:48:00