Loading...

GET /api/shares

If several customers have links for tracking deliveries, an administrator can review which vehicle or group each link covers and the dates when it can be opened. The list can include expired links.

Entries are sorted by name. To check a link before extending or revoking it, take its ID from the list. The url field contains the link a recipient can open without signing in while the link is valid.

Request Details

HTTP method GET
Path /api/shares

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

Requires an administrator with access to Users.

Send the token in the Authorization: Bearer {token} header. See Authentication.

Example Request

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

Response Parameters

The Presence column describes an HTTP 200 response. Conditional fields are omitted when they have no value. For a list, presence applies to each returned item.

The shares array lists each link and its url, validity period and device coverage. It can include expired links.

FieldTypePresenceDescription
sharesObject arrayAlwaysObject arrayAlwaysShared tracking links for the account.
apiUsageIntegerAlwaysIntegerAlwaysUsage units for this request.
apiDailyUsageIntegerAlwaysIntegerAlwaysAccount usage for the day before this request is added.

Fields in each shares item

FieldTypePresenceDescription
idStringAlwaysStringAlwaysPublic share ID (shr-).
nameStringAlwaysStringAlwaysName of the shared tracking link.
emailStringConditionalStringConditionalAddress for sending the link, if configured.
descriptionStringConditionalStringConditionalDescription of the shared tracking link, if available.
groupStringConditionalStringConditionalGroup ID when sharing a group.
deviceIdStringConditionalStringConditionalTracker ID when sharing one device.
fromDate-timeConditionalDate-timeConditionalStart of the access period, in UTC.
expiresDate-timeAlwaysDate-timeAlwaysEnd of the access period, in UTC.
timeZoneStringConditionalStringConditionalTime zone used to display times, if set.
urlStringConditionalStringConditionalLink the recipient can open during the access period.
creationDate-timeAlwaysDate-timeAlwaysTime the link was created, in UTC.

Example Successful Response

The sample url is shown as {url}. To share access, copy the link returned by your account.

The example shows an HTTP 200 response with selected fields.

{ "shares": [ { "id": "shr-EfGhRXwYmK", "name": "Delivery window", "deviceId": "123456789012345", "from": "2027-01-12T09:00:00", "expires": "2027-01-12T12:00:00", "creation": "2027-01-10T15:45:00", "url": "{url}" } ], "apiUsage": 1, "apiDailyUsage": 24 }

Errors

HTTP statusWhen it occurs
400If the request quota has been reached, error contains the reason.
401If a valid Bearer token is missing.
403If the user lacks the required permission. The reason appears in error.
500An unexpected error occurred while processing the request.

In an error response that includes success, its value is false and error contains the message.

Example Error Response

{ "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:51:25