Перейти к основному содержимому

listMembers

POST 

https://yuchat.ai/public/v1/member.list

получение списка участников воркспейса

Request

Bodyrequired

    workspaceIdstringrequired

    id воркспейса

Responses

список участников

Schema
    members object[]
  • Array [
  • memberIdstring
    profile object

    информация о профиле участника

    profileIdstring
    primaryEmailstring
    fullNamestring
    typeAccountType (string)

    тип аккаунта

    Possible values: [REGULAR, BOT, VOICE_BOT, INTEGRATION_BOT, GUEST_ACCOUNT]

    Example: REGULAR
    details object

    дополнительная информация о пользователе

    positionstring
    departmentstring
    phoneNumberstring
    locationAccountLocation (string)

    статус участника

    Possible values: [LOCATION_NOT_SET, OFFICE, HOME, VACATION]

    roleTypeMemberRoleType (string)

    роль участника воркспейса

    Possible values: [MEMBER, ADMIN, OWNER, GUEST, GUEST_CALLER]

    presence object
    isOnlineboolean
    isOnCallboolean
    lastSeenAtdate-time
    statusMemberStatus (string)

    статус участника

    Possible values: [PENDING, ACTIVE, SUSPENDED]

  • ]

Authorization: http

name: bearerAuthtype: httpscheme: bearerbearerFormat: JWTdescription: Токен, который можно получить от aibot@yuchat.ai с помощью команды /botcreate.
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://yuchat.ai/public/v1/member.list");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <token>");
var content = new StringContent("{\n \"workspaceId\": \"w67Y89gu\"\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
https://yuchat.ai
Auth
Body required
{
  "workspaceId": "w67Y89gu"
}
ResponseClear

Click the Send API Request button above and see the response here!