Workspace Members
https://api.xata.io/workspaces/workspace_id/members
This endpoint allows operations concerning the members of a given workspace.
Expected parameters
Name | Description | In | Required | Schema |
---|---|---|---|---|
workspace_id | Workspace ID | path | ✅ | string |
Get the List Members of a Workspace
GEThttps://api.xata.io/workspaces/workspace_id/members
Retrieve the list of members of the given workspace
Responses
type GetWorkspaceMembersList = {
members: WorkspaceMember[];
invites: WorkspaceInvite[];
};
type WorkspaceMember = {
userId: UserID;
fullname: string;
/**
* @format email
*/
email: string;
role: Role;
};
type WorkspaceInvite = {
inviteId: InviteID;
/**
* @format email
*/
email: string;
/**
* @format date-time
*/
expires: string;
role: Role;
};
/**
* @pattern [a-zA-Z0-9_-~:]+
*/
type UserID = string;
type Role = "owner" | "maintainer";
/**
* @pattern [a-zA-Z0-9]+
*/
type InviteID = string;
type GetWorkspaceMembersList = {
id?: string;
message: string;
};
{
"message": "invalid API key"
}
{
"message": "invalid API key"
}
type GetWorkspaceMembersList = {
id?: string;
message: string;
};
type GetWorkspaceMembersList = void;