GET
/
api
/
organization
/
users
/
{organization_id}
curl --request GET \
  --url https://api.trieve.ai/api/organization/users/{organization_id} \
  --header 'Authorization: <api-key>' \
  --header 'TR-Organization: <tr-organization>'
[
  {
    "email": "developers@trieve.ai",
    "id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
    "name": "Trieve",
    "orgs": [
      {
        "created_at": "2021-01-01 00:00:00.000",
        "id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
        "name": "Trieve",
        "registerable": true,
        "updated_at": "2021-01-01 00:00:00.000"
      }
    ],
    "user_orgs": [
      {
        "created_at": "2021-01-01 00:00:00.000",
        "id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
        "org_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
        "role": 0,
        "updated_at": "2021-01-01 00:00:00.000",
        "user_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3"
      }
    ]
  }
]

Authorizations

Authorization
string
header
required

Headers

TR-Organization
string
required

The organization id to use for the request

Path Parameters

organization_id
string
required

The id of the organization you want to fetch the users of.

Response

200
application/json
Array of users who belong to the specified by organization
created_at
string
required
email
string
required
id
string
required
orgs
object[]
required
user_orgs
object[]
required
name
string | null