curl --request GET \
--url https://hub.oxen.ai/api/repos/{namespace}/{repo_name}/workspaces \
--header 'Authorization: Bearer <token>'
{
"status": "success",
"status_message": "resource_found",
"workspaces": [
{
"branch_name": "main",
"closing_branch": null,
"closing_commit": null,
"commit": {
"author": "Bessie Oxington",
"email": "ox@oxen.ai",
"id": "a1757296b8a914d0c3a540129600dd57",
"message": "moooooooo",
"timestamp": "2024-12-06T01:04:06Z"
},
"commit_id": "1965a303-58e0-4400-bf8a-f190b4c663f8",
"commits_behind": [],
"entity_type": "user",
"id": "3420e5f7-dfe7-49d2-9f61-7490a403a85b",
"inserted_at": "2024-12-08T19:30:54Z",
"name": "title_embeddings",
"repository_id": "baa97a0d-1a91-475b-af7e-9a4107cb51cd",
"resource_path": "/",
"target_branch": "main",
"updated_at": "2024-12-08T19:30:54Z",
"user_id": "e05ec332-b17a-4403-abb2-6fcd7f0e2c7b"
}
]
}
List Workspaces
curl --request GET \
--url https://hub.oxen.ai/api/repos/{namespace}/{repo_name}/workspaces \
--header 'Authorization: Bearer <token>'
{
"status": "success",
"status_message": "resource_found",
"workspaces": [
{
"branch_name": "main",
"closing_branch": null,
"closing_commit": null,
"commit": {
"author": "Bessie Oxington",
"email": "ox@oxen.ai",
"id": "a1757296b8a914d0c3a540129600dd57",
"message": "moooooooo",
"timestamp": "2024-12-06T01:04:06Z"
},
"commit_id": "1965a303-58e0-4400-bf8a-f190b4c663f8",
"commits_behind": [],
"entity_type": "user",
"id": "3420e5f7-dfe7-49d2-9f61-7490a403a85b",
"inserted_at": "2024-12-08T19:30:54Z",
"name": "title_embeddings",
"repository_id": "baa97a0d-1a91-475b-af7e-9a4107cb51cd",
"resource_path": "/",
"target_branch": "main",
"updated_at": "2024-12-08T19:30:54Z",
"user_id": "e05ec332-b17a-4403-abb2-6fcd7f0e2c7b"
}
]
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
"{{repo_namespace}}"
"{{repo_name}}"
OK
The response is of type object
.