API Documentation
Authentication
Account
Content Generation
Repository Management
Repository Manipulation
Repository Commit Manipulation
Repository Workspace Manipulation
- GETList workspaces
- POSTCreate a workspace
- GETGet workspace details
- DELDelete workspace
- POSTUpdate workspace name
- POSTCheckout workspace ref
- GETWorkspace status
- POSTReset changes in workspace
- POSTMerge base branch into workspace
- GETGet workspace preferences
- PUTUpdate workspace preferences
- GETOther workspace statuses
Repository Branch Manipulation
Repository Tag Manipulation
Repository Shelves Manipulation
File Mutation
Repository Merge Manipulation
Collaborators
Repository Content Comparison
Organization Management
- GETList user's organizations
- POSTCreate organization
- GETGet organization details
- PATCHRename organization
- GETList organization repositories
- GETList organization members
- GETGet organization member details
- DELDelete a member from the organization
- GETList accessible repos
- POSTInvite a new member to the organization
- PATCHChange an organization member's role
- POSTLeave organization
- GETList organization subscription information
User Management
Repository Management
List user's repositories
Get a list of repositories accessibly by the authenticated user
GET
/
repos
Copy
Ask AI
curl --request GET \
--url https://api.diversion.dev/v0/repos \
--header 'Authorization: Bearer <token>'
Copy
Ask AI
{
"object": "Repo",
"items": [
{
"repo_name": "repo-name",
"description": "<string>",
"organization_id": "<string>",
"repo_id": "example_id",
"default_branch_id": "<string>",
"default_branch_name": "<string>",
"size_bytes": 123,
"owner_user_id": "<string>",
"created_timestamp": 123,
"sync_git_repo_url": "<string>",
"sync_git_level": 4,
"digest_method": "sha1"
}
]
}
Authorizations
This API uses OAuth 2 with the implicit grant flow
Query Parameters
If specified, filters repositories by ownership of the authenticated user. True would mean only repos they own will be returned. False would mean only repos they collaborate on will be returned.
Response
200
application/json
Success
The response is of type object
.
Copy
Ask AI
curl --request GET \
--url https://api.diversion.dev/v0/repos \
--header 'Authorization: Bearer <token>'
Copy
Ask AI
{
"object": "Repo",
"items": [
{
"repo_name": "repo-name",
"description": "<string>",
"organization_id": "<string>",
"repo_id": "example_id",
"default_branch_id": "<string>",
"default_branch_name": "<string>",
"size_bytes": 123,
"owner_user_id": "<string>",
"created_timestamp": 123,
"sync_git_repo_url": "<string>",
"sync_git_level": 4,
"digest_method": "sha1"
}
]
}
Assistant
Responses are generated using AI and may contain mistakes.