API Reference
Links
Conversions
Customers
Workspaces
Retrieve a workspace
Retrieve a workspace for the authenticated user.
GET
/
workspaces
/
{idOrSlug}
Copy
from dub import Dub
with Dub(
token="DUB_API_KEY",
) as d_client:
res = d_client.workspaces.get(request={
"id_or_slug": "<value>",
})
assert res is not None
# Handle response
print(res)
Copy
{
"id": "<string>",
"name": "<string>",
"slug": "<string>",
"logo": null,
"inviteCode": "<string>",
"plan": "free",
"stripeId": "<string>",
"billingCycleStart": 123,
"paymentFailedAt": "<string>",
"stripeConnectId": "<string>",
"totalLinks": 123,
"usage": 123,
"usageLimit": 123,
"linksUsage": 123,
"linksLimit": 123,
"salesUsage": 123,
"salesLimit": 123,
"domainsLimit": 123,
"tagsLimit": 123,
"foldersUsage": 123,
"foldersLimit": 123,
"usersLimit": 123,
"aiUsage": 123,
"aiLimit": 123,
"conversionEnabled": true,
"dotLinkClaimed": true,
"partnersEnabled": true,
"createdAt": "<string>",
"users": [
{
"role": "owner",
"defaultFolderId": "<string>"
}
],
"domains": [
{
"slug": "acme.com",
"primary": false,
"verified": false
}
],
"flags": {},
"store": {},
"allowedHostnames": [
"dub.sh"
]
}
Authorizations
Default authentication mechanism
Path Parameters
The ID or slug of the workspace.
Response
200
application/json
The retrieved workspace
The response is of type object
.
Copy
from dub import Dub
with Dub(
token="DUB_API_KEY",
) as d_client:
res = d_client.workspaces.get(request={
"id_or_slug": "<value>",
})
assert res is not None
# Handle response
print(res)
Copy
{
"id": "<string>",
"name": "<string>",
"slug": "<string>",
"logo": null,
"inviteCode": "<string>",
"plan": "free",
"stripeId": "<string>",
"billingCycleStart": 123,
"paymentFailedAt": "<string>",
"stripeConnectId": "<string>",
"totalLinks": 123,
"usage": 123,
"usageLimit": 123,
"linksUsage": 123,
"linksLimit": 123,
"salesUsage": 123,
"salesLimit": 123,
"domainsLimit": 123,
"tagsLimit": 123,
"foldersUsage": 123,
"foldersLimit": 123,
"usersLimit": 123,
"aiUsage": 123,
"aiLimit": 123,
"conversionEnabled": true,
"dotLinkClaimed": true,
"partnersEnabled": true,
"createdAt": "<string>",
"users": [
{
"role": "owner",
"defaultFolderId": "<string>"
}
],
"domains": [
{
"slug": "acme.com",
"primary": false,
"verified": false
}
],
"flags": {},
"store": {},
"allowedHostnames": [
"dub.sh"
]
}
Assistant
Responses are generated using AI and may contain mistakes.