Daftar Pengguna
GET/v1/organizations/users
Menampilkan daftar anggota organisasi.
Parameters
Returns
Daftar Pengguna
<?php
require_once dirname(__DIR__) . '/vendor/autoload.php';
$client = new Client(apiKey: 'my-anthropic-api-key');
$page = $client->beta->organization->users->list(
afterID: 'after_id',
beforeID: 'before_id',
email: 'dev@stainless.com',
limit: 1,
roles: ['string'],
);
var_dump($page);Response 200
{
"data": [
{
"id": "user_01WCz1FkmYMm4gnmykNKUu3Q",
"added_at": "2024-10-30T23:58:27.427722Z",
"email": "user@emaildomain.com",
"name": "Jane Doe",
"role": "admin",
"type": "user"
}
],
"first_id": "first_id",
"has_more": true,
"last_id": "last_id"
}Returns Examples
Response 200
{
"data": [
{
"id": "user_01WCz1FkmYMm4gnmykNKUu3Q",
"added_at": "2024-10-30T23:58:27.427722Z",
"email": "user@emaildomain.com",
"name": "Jane Doe",
"role": "admin",
"type": "user"
}
],
"first_id": "first_id",
"has_more": true,
"last_id": "last_id"
}