Get the current workspace
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
curl https://api.cadenya.com/v1/workspaces/current \
-H "Authorization: Bearer $CADENYA_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"
}
}