List workspace members
import { FloraClient } from '@flora-ai/flora';
const client = new FloraClient({ apiKey: process.env['FLORA_API_KEY'] });
// Paginated lists are async iterables; further pages are fetched as needed.for await (const workspace of await client.workspaces.listMembers({ workspaceId: '<workspaceId>',})) { console.log(workspace);}curl -X GET 'https://app.flora.ai/api/v1/workspaces/<workspaceId>/members' \ -H 'Authorization: Bearer $FLORA_API_KEY'Returns one page of members for a workspace the authenticated credential can access — email, display name, and role for each. Use meta.next_cursor to fetch subsequent pages, or pass email to look up one person. Lets an integration acting for the workspace (for example the FLORA Slack agent) tell which of the people it serves hold a FLORA account here. Workspaces the credential cannot read return 403.
Error responses use the standard error body.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Workspace identifier
Workspace identifier
Query Parameters
Section titled “ Query Parameters ”Maximum number of results to return
Maximum number of results to return
Opaque cursor for fetching the next page
Opaque cursor for fetching the next page
Return only the member who owns this email address, or no members when nobody who owns it belongs to the workspace. Matching ignores case for addresses stored in lowercase; an address stored with upper case matches only in that casing. At Gmail and Googlemail, dots in the local part are ignored. cursor and limit are ignored, and meta.next_cursor is null.
Return only the member who owns this email address, or no members when nobody who owns it belongs to the workspace. Matching ignores case for addresses stored in lowercase; an address stored with upper case matches only in that casing. At Gmail and Googlemail, dots in the local part are ignored. cursor and limit are ignored, and meta.next_cursor is null.
Responses
Section titled “ Responses ”Workspace members returned.
object
Workspace identifier
Example
{ "workspace_id": "ws_abc123", "members": [ { "email": "ana@example.com" } ], "meta": { "next_cursor": "eyJvZmZzZXQiOjIwfQ" }}