Loading...

POST /api/users

When someone joins your team, an administrator can create a Plaspy sub-user so that person can sign in with their own credentials. For example, someone responsible for one van can have access to that van’s tracker. You can also assign a group of devices or an administrator profile.

The account needs sufficient licence capacity for the new sub-user. Send their sign-in details, country, time zone and access assignment. Once the profile is saved, the response includes its public ID for future lookups.

Request Details

POST /api/users

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

JSON body parameters

ParameterTypeRequiredDescription
nameStringRequiredStringYesSub-user display name.
emailStringRequiredStringYesLogin name. It must be available when creating a profile. Use the existing login when replacing the profile.
passwordStringRequiredStringYesPassword of at least eight characters with uppercase, lowercase and a digit. Write-only.
countryStringRequiredStringYesCountry key from GET /api/users/countries.
timeZoneStringRequiredStringYesID from the time zone list. Recognised IDs such as America/Bogota are also accepted.
groupStringConditionalStringConditionalID of a group or access option. For all devices or an administrator profile, use the ID of the corresponding option.
deviceIdStringConditionalStringConditionalID of a visible tracker. Required when group is omitted and access is limited to the device.
adminDevicesIntegerConditionalIntegerConditionalNumber of device licences allocated to the administrator profile that manages its own account.
fromDate-timeConditionalDate-timeConditionalStart of the access period. Also send expires to limit access to that period. Use ISO 8601 with Z or a time zone offset.
expiresDate-timeConditionalDate-timeConditionalEnd of the access period specified by from.
privilegesString arrayOptionalString arrayNoProfile privileges. Names are case-sensitive.
descriptionStringOptionalStringNoDescription of the sub-user.
messageStringOptionalStringNoMessage configured for the sub-user.
disabledBooleanOptionalBooleanNoSet to true to disable the sub-user.
disabledMessageStringOptionalStringNoMessage for the disabled sub-user.
tagsString mapOptionalString mapNoTags as string key/value pairs.

Access start and end times are saved to the minute. If you include seconds, the effective start or end is the beginning of that minute.

group or deviceId. For limited access, send the public ID of an account group from GET /api/groups, or a visible tracker ID from GET /api/devices. For access to all devices, use the ID of the (All Devices) option. A device is required when the group is omitted.

For an administrator profile, set group to the ID of one of the two administrator options from GET /api/groups. The Administrator (Manage their own account) option requires adminDevices (integer), the number of device licences allocated.

privileges (optional array of strings). Names are case-sensitive. Defined values are Edit, SendCommands, CallDevice, SendSMSCommands, SMSAlerts, User_PhonesTracking, User_PhoneTrackingOnce and WhatsAppAlerts. Availability depends on the profile and the account’s services.

Authentication Required

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

Requires an administrator with access to Users. Demo users have read access only.

Example Request

POST /api/users HTTP/1.1 Host: api.plaspy.com Authorization: Bearer {token} Content-Type: application/json

Example Request Body

{ "name": "Morgan Lee", "email": "dispatch@example.com", "country": "CO", "timeZone": "America/Bogota", "deviceId": "123456789012345", "password": "ExampleOnly9" }

Response Parameters

The response returns the saved sub-user with their public ID, status and group or device assignment. Optional fields appear when applicable. The password is write-only and is omitted from the response.

FieldTypePresenceDescription
idStringAlwaysStringAlwaysPublic sub-user ID with the usr- prefix.
nameStringAlwaysStringAlwaysSub-user display name.
emailStringAlwaysStringAlwaysSub-user login name.
countryStringAlwaysStringAlwaysCountry code saved in the profile.
timeZoneStringAlwaysStringAlwaysProfile time zone.
descriptionStringWhen setStringWhen setDescription of the sub-user.
messageStringWhen setStringWhen setMessage configured for the sub-user.
disabledBooleanAlwaysBooleanAlwaysIndicates whether the sub-user is disabled.
disabledMessageStringWhen setStringWhen setMessage configured for a disabled sub-user.
tagsString mapWhen setString mapWhen setTags associated with the profile.
privilegesString arrayWhen setString arrayWhen setNames of assigned privileges.
groupStringWhen setStringWhen setPublic ID of the group or special access profile.
deviceIdStringWhen setStringWhen setTracker ID assigned to a sub-user with access to one device.
adminDevicesIntegerWhen setIntegerWhen setDevice licences allocated to an administrator who manages their own account.
fromDate-timeWhen setDate-timeWhen setStart of the configured access period.
expiresDate-timeWhen setDate-timeWhen setEnd of the configured access period.
creationDate-timeWhen setDate-timeWhen setProfile creation date and time, when available.
modificationDate-timeWhen setDate-timeWhen setMost recent profile modification date and time, when available.
lastLoginDate-timeWhen setDate-timeWhen setLast sign-in date and time, when available.
successBooleanAlwaysBooleanAlwaysIn a successful response, true confirms the operation.
apiUsageIntegerAlwaysIntegerAlwaysUnits charged for this request.
apiDailyUsageIntegerAlwaysIntegerAlwaysDaily usage before the units for this request are added.

Example HTTP 200 response (excerpt)

{ "id": "usr-NpQrMWxYvK", "name": "Morgan Lee", "email": "dispatch@example.com", "country": "CO", "timeZone": "America/Bogota", "deviceId": "123456789012345", "disabled": false, "success": true, "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.
errorsObjectIn field validation errorsObjectIn field validation errorsIn a validation response, maps fields to their messages. The response shape depends on the error.
  • HTTP 401 if a valid Bearer token is missing.
  • HTTP 400 for a duplicate login, a weak password or missing input. When all other input is valid, an empty deviceId without a group marks only DeviceId in errors. If the only issues are a missing password, unknown country or unknown time zone, their messages are returned in error.
  • HTTP 403 if the user lacks the required permission. The reason appears in error.

Example error

{ "success": false, "error": "Password: Please insert a password" }
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:47