Skip to main content
GET
/
buckets
/
{bucket_id}
/
users
cURL
curl --request GET \
  --url https://api.nightly.sh/v1/buckets/{bucket_id}/users \
  --header 'Authorization: Bearer <token>'
{
  "has_more": true,
  "next_uri": "next-uri-here",
  "data": [
    {
      "id": "nly_test_usr_1amaj5125as",
      "username": "johndoe",
      "active": true,
      "created_at": 692233200
    },
    {
      "id": "nly_test_usr_8gkde9034zx",
      "username": "janedoe",
      "active": false,
      "created_at": 692233200
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

bucket_id
string
required

ID of Bucket

Query Parameters

limit
integer

The maximum number of results to return

after
string

The last ID on the page you're currently on when you want to fetch the next page.

Response

User response

data
object[]

Array of users

Example:
[
{
"id": "nly_test_usr_1amaj5125as",
"username": "johndoe",
"active": true,
"created_at": 692233200
},
{
"id": "nly_test_usr_8gkde9034zx",
"username": "janedoe",
"active": false,
"created_at": 692233200
}
]
has_more
boolean

Indicates if there are more buckets to fetch

next_uri
string

The URI to fetch the next page of results, if any.

Example:

"next-uri-here"