Loading...

GET /api/scheduledReports/{reportId}

When someone asks when to expect a vehicle’s statistics, look up the email schedule. You can check whether it covers that vehicle or its whole group, and whether it runs daily or weekly.

Use the schedule ID to see the next delivery time in UTC and the configured email addresses. If the emails field is absent, the statistics go to the person who created the schedule. This is the account holder if they created it, or the sub-user if they did.

Request Details

HTTP method GET
Path /api/scheduledReports/{reportId}

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

Path parameters

ParameterTypeRequiredDescription
reportIdStringRequiredStringYesCopy the id with the srp- prefix returned by GET /api/scheduledReports.

Administrators can manage the account’s schedules. Other users can manage only the ones they created.

Authentication Required

Requires access to Activity Summary.

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

Example Request

GET /api/scheduledReports/{reportId} 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.

The schedule identifies its name, interval and target group or device. nextSend is the next delivery time in UTC. The emails field is omitted when the schedule has no explicitly saved recipients.

FieldTypePresenceDescription
idStringAlwaysStringAlwaysPublic schedule ID (srp-).
nameStringConditionalStringConditionalSchedule name.
intervalStringAlwaysStringAlwaysEmail frequency, daily or weekly.
groupStringConditionalStringConditionalPublic group ID when the target is a group.
deviceIdStringConditionalStringConditionalTracker ID when the target is a device.
emailsStringConditionalStringConditionalExplicit recipients. Omitted when the schedule uses the default recipient.
nextSendDate-timeConditionalDate-timeConditionalNext delivery time in UTC, when scheduled.
apiUsageIntegerAlwaysIntegerAlwaysUsage units for this request.
apiDailyUsageIntegerAlwaysIntegerAlwaysAPI units the user had used today before this request.

Example Successful Response

The example shows an HTTP 200 response.

{ "id": "srp-AbCdMNxQWr", "name": "Fleet summary", "interval": "weekly", "deviceId": "123456789012345", "emails": "dispatch@example.com", "nextSend": "2027-01-11T00:00:00", "apiUsage": 1, "apiDailyUsage": 24 }

Errors

HTTP statusWhen it occurs
400If the ID is recognised but the schedule is outside the set you can manage or does not exist. If 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.
404If the route or ID is unrecognised.
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": "The scheduled report was not found." }
Index
Last modification: 2026-11-30 22:51:54