curl --request GET \
--url https://api.diversion.dev/v0/repos/{repo_id}/workspaces \
--header 'Authorization: Bearer <token>'{
"object": "Workspace",
"items": [
{
"workspace_id": "<string>",
"base_commit_id": "<string>",
"repo_id": "<string>",
"journal_ordinal_id": 123,
"name": "<string>",
"source_commit": "<string>",
"branch_id": "<string>"
}
]
}List user’s workspaces. Repo owners and admins can optionally list all workspaces in the repo (not just their own) by setting scope=all.
curl --request GET \
--url https://api.diversion.dev/v0/repos/{repo_id}/workspaces \
--header 'Authorization: Bearer <token>'{
"object": "Workspace",
"items": [
{
"workspace_id": "<string>",
"base_commit_id": "<string>",
"repo_id": "<string>",
"journal_ordinal_id": 123,
"name": "<string>",
"source_commit": "<string>",
"branch_id": "<string>"
}
]
}This API uses OAuth 2 with the implicit grant flow
The repo ID of the repository. Repo name can be used instead of the ID, but usage of ID for permanent linking and API requests is preferred.
3 - 128"example_id"
Success
Workspace