Get the current workspace
$ cadenya workspaces get
GET/v1/workspaces/current
Retrieves the workspace associated with the current API token. Useful for workspace-scoped tokens to identify which workspace they belong to.
Get the current workspace
cadenya workspaces get \
--api-key 'My API Key'{
"metadata": {
"id": "id",
"accountId": "accountId",
"name": "name",
"profileId": "profileId",
"externalId": "externalId",
"labels": {
"foo": "string"
}
},
"spec": {
"description": "description"
}
}Returns Examples
{
"metadata": {
"id": "id",
"accountId": "accountId",
"name": "name",
"profileId": "profileId",
"externalId": "externalId",
"labels": {
"foo": "string"
}
},
"spec": {
"description": "description"
}
}