Memberships

Notes

Tability uses a model where users can be part of multiple workspaces with the same account.

As such, access management in a workspaces is done via the memberships model.

GET all the memberships in a specific workspace

GET https://api.tability.app/v2/workspaces/:workspaceID/memberships

Path Parameters

Name
Type
Description

:workspaceID*

String

Unique ID of the workspace

Request Body

Name
Type
Description

page

number

Identifier of the page results to fetch

name

string

Name or email of a specific user to search

role

string

Return the list of users corresponding to a specific role.

One of 'owner', 'admin', 'user', 'readonly'

[
    {
        "id": "62e10e3c-b227-427a-9500-7c528c8f915a",
        "workspace_id": "6bd9a8cf-72fd-44eb-980e-e7311a5f2de2",
        "user_id": "8abfb48d-53f8-4e4e-8f14-9667187170b4",
        "role": "readonly",
        "created_at": "2024-12-27T12:34:40.529Z",
        "updated_at": "2025-01-22T00:51:17.896Z",
        "cached_email": "[email protected]",
        "cached_firstname": "",
        "cached_lastname": "",
        "cached_avatar_url": "",
        "outcome_progress_prct": 0.0,
        "initiative_progress_prct": 0.0,
        "red_outcomes_count": 0,
        "yellow_outcomes_count": 0,
        "green_outcomes_count": 0,
        "grey_outcomes_count": 0,
        "total_outcomes_count": 0,
        "pending_checkins_count": 0,
        "ncs": 0.0,
        "total_initiatives_count": 0,
        "closed_initiatives_count": 0,
        "manager_id": "1810e8d9-5c91-4e5b-8e5d-2e621e1741a0"
    },
    {
        "id": "e992f480-482c-489c-9660-7233c5d52f23",
        "workspace_id": "6bd9a8cf-72fd-44eb-980e-e7311a5f2de2",
        "user_id": "81c05928-95a5-4f13-84c0-80d8bc87da8f",
        "role": "owner",
        "created_at": "2024-12-27T12:34:40.863Z",
        "updated_at": "2024-12-27T12:34:40.863Z",
        "cached_email": "[email protected]",
        "cached_firstname": "",
        "cached_lastname": "",
        "cached_avatar_url": "",
        "outcome_progress_prct": 0.0,
        "initiative_progress_prct": 0.0,
        "red_outcomes_count": 0,
        "yellow_outcomes_count": 0,
        "green_outcomes_count": 0,
        "grey_outcomes_count": 0,
        "total_outcomes_count": 0,
        "pending_checkins_count": 0,
        "ncs": 0.0,
        "total_initiatives_count": 0,
        "closed_initiatives_count": 0,
        "manager_id": null
    },
    {
        "id": "aafbc166-456a-456c-8fca-aec45173348a",
        "workspace_id": "6bd9a8cf-72fd-44eb-980e-e7311a5f2de2",
        "user_id": "bf88170d-1f6f-4c60-b400-82f50588440d",
        "role": "user",
        "created_at": "2024-12-27T12:34:41.204Z",
        "updated_at": "2024-12-27T12:34:41.204Z",
        "cached_email": "[email protected]",
        "cached_firstname": "",
        "cached_lastname": "",
        "cached_avatar_url": "",
        "outcome_progress_prct": 0.0,
        "initiative_progress_prct": 0.0,
        "red_outcomes_count": 0,
        "yellow_outcomes_count": 0,
        "green_outcomes_count": 0,
        "grey_outcomes_count": 0,
        "total_outcomes_count": 0,
        "pending_checkins_count": 0,
        "ncs": 0.0,
        "total_initiatives_count": 0,
        "closed_initiatives_count": 0,
        "manager_id": null
    }
]
   

GET the details for a specific membership

GET https://api.tability.app/v2/workspaces/:workspaceID/memberships/:membershipID

Path Parameters

Name
Type
Description

:workspaceID*

String

Unique ID of the workspace

:membershipID*

String

Unique ID of the membership

GET the manager for a specific membership

GET https://api.tability.app/v2/workspaces/:workspaceID/memberships/:membershipID/manager

Path Parameters

Name
Type
Description

:workspaceID*

String

Unique ID of the workspace

:membershipID*

String

Unique ID of the membership

GET the direct reports for a specific membership

GET https://api.tability.app/v2/workspaces/:workspaceID/memberships/:membershipID/direct_reports

Path Parameters

Name
Type
Description

:workspaceID*

String

Unique ID of the workspace

:membershipID*

String

Unique ID of the membership

UPDATE the details for a specific membership

PUT https://api.tability.app/v2/workspaces/:workspaceID/memberships/:membershipID

Path Parameters

Name
Type
Description

:workspaceID*

String

Unique ID of the workspace

:membershipID*

String

Unique ID of the membership

Body

Name
Type
Description

:role

String

Role of the user. One of 'owner', 'admin', 'user', 'readonly'

:manager_id

String

Unique ID of the membership corresponding to the manager

DELETE a specific membership

DELETE https://api.tability.app/v2/workspaces/:workspaceID/memberships/:membershipID

Path Parameters

Name
Type
Description

:workspaceID*

String

Unique ID of the workspace

:membershipID*

String

Unique ID of the membership (can be UUID)

POST Add new users to your workspace

POST https://api.tability.app/v2/workspaces/:workspaceID/memberships/

Path Parameters

Name
Type
Description

:workspaceID*

String

Unique ID of the workspace

:emails*

Array of emails

Array of all emails to add, limited to 50 per request

POST Add readonly users to your workspace

POST https://api.tability.app/v2/workspaces/:workspaceID/memberships/free

Path Parameters

Name
Type
Description

:workspaceID*

String

Unique ID of the workspace

:emails*

Array of emails

Array of all emails to add, limited to 50 per request

Last updated