GET
/workspaces List workspaces
Workspaces this credential can target. No workspace required.
Authenticate with
Authorization: Bearer obk_live_xxx. See authentication. Responses
200 OK
| Field | Type | Description |
|---|---|---|
workspaces | WorkspaceRef[] |
Example request
curl --request GET \
--url https://app.orchly.ai/api/v1/workspaces \
--header 'Authorization: Bearer obk_live_xxx'const res = await fetch(`https://app.orchly.ai/api/v1/workspaces`, {
method: 'GET',
headers: {
'Authorization': 'Bearer obk_live_xxx',
},
});
const data = await res.json();import requests
resp = requests.get(
"https://app.orchly.ai/api/v1/workspaces",
headers={
"Authorization": "Bearer obk_live_xxx",
},
)
data = resp.json() Example response
A 200 response. Dynamic fields are shown as their type.
{
"workspaces": [
{
"id": "string",
"name": "string",
"slug": "string"
}
]
}