Skip to main content
GET
List device rewards

Authorizations

Authorization
string
header
required

Bearer token obtained from POST /auth/tokens.

Path Parameters

device_id
string
required

Flatpeak Device ID.

Query Parameters

start_time
string<date-time>

Start time, in UTC.

end_time
string<date-time>

End time, in UTC.

limit
integer
default:30

Maximum number of objects to return per page, default 30. Maximum 100.

Required range: 1 <= x <= 100
cursor
string

Pagination cursor. Pass next_cursor from the previous response unchanged; omit for the first page. A cursor used with different parameters returns 400 cursor_invalid.

Response

Device reward list response.

Standard envelope for paginated list endpoints.

object
enum<string>
default:list
required

Object type.

Available options:
list
url
string
required

URL for this list.

Example:

"/users"

next_cursor
string | null
required

Opaque cursor for the next page. Pass it as cursor on the next request. null on the last page. Do not stop on a short or empty data array.

Example:

"djF8ZXZ0fGE5ZjN8NjYxNjc3ODdjMTY1MmIzZmJlYmE1ZjAx"

data
Reward · object[]
required

The page of results.