Skip to main content
GET
/
api
/
v2
/
workspace-group-members
/
admin
Get the current workspace admin workspace
curl --request GET \
  --url https://api.instantly.ai/api/v2/workspace-group-members/admin \
  --header 'Authorization: Bearer <token>'
{
  "workspace_name": "My Workspace",
  "has_admin_workspace": true,
  "workspace_group_member_id": "019cc043-e416-7bfb-a570-dda14f46c967"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

Default Response

workspace_name
string
required

The workspace name of the admin workspace. When the current workspace has no admin workspace, the workspace name will be "Undefined".

Example:

"My Workspace"

has_admin_workspace
boolean
required

Whether the current workspace has an admin workspace

Example:

true

workspace_group_member_id
string

The id of the workspace group member. You can use it to leave the admin workspace by calling the DELETE /workspace-group-members/:id endpoint

Example:

"019cc043-e416-7bfb-a570-dda14f46c967"