GET
/
accounts
/
workspaces
curl --request GET \
  --url https://api.mudstack.com/accounts/workspaces \
  --header 'Authorization: Bearer <token>' \
  --header 'x-account-id: <x-account-id>'
[
  {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "thumbnail_file_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "defaultAvatar": 1,
    "created_by_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "sequence": "<string>",
    "roles": {
      "workspace_id": "<string>",
      "user_id": "<string>",
      "roles": [
        "<string>"
      ],
      "user": {
        "id": "<string>",
        "auth0UserID": "<string>",
        "username": "<string>",
        "email": "<string>",
        "firstName": "<string>",
        "lastName": "<string>",
        "avatar_file_id": "<string>",
        "defaultAvatar": 123,
        "industry": "<string>",
        "occupation": "<string>",
        "company": "<string>",
        "emailVerified": true,
        "isActive": true,
        "city": "<string>",
        "state": "<string>",
        "country": "<string>",
        "zipCode": "<string>",
        "invited_by_user": {}
      }
    },
    "usage": {}
  }
]

Authorizations

Authorization
string
header
required

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

Headers

x-account-id
string
required

Response

200 - application/json
Workspaces retrieved successfully

The response is of type object[].