GET
/
users
/
list
curl --request GET \
  --url https://api.duohub.ai/users/list \
  --header 'X-API-Key: <api-key>'
{
  "users": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "firstName": "John",
      "lastName": "Doe",
      "email": "john.doe@example.com",
      "owner": "d99e7428-40e1-7073-aa50-94cee086b518",
      "createdAt": "2024-01-01T00:00:00Z",
      "updatedAt": "2024-01-01T00:00:00Z"
    }
  ],
  "nextToken": "eyJpZCI6eyJTIjoiNDU2In0sInVwZGF0ZWRBdCI6eyJTIjoiMjAyNC0wMS0wMlQwMDowMDowMFoifX0=",
  "previousToken": null,
  "count": 1
}

Authorizations

X-API-Key
string
header
required

Your duohub API key. Type: str

Query Parameters

limit
integer
default:10

Maximum number of users to return

nextToken
string

Token for getting the next page of results

previousToken
string

Token for getting the previous page of results

Response

200
application/json
Users retrieved successfully
users
object[]
nextToken
string

Token for the next page of results

previousToken
string

Token for the previous page of results

count
integer

Number of users in the current page