Workspaces
The authenticated User is the Account. The Workspace header selects the active User- or Team-owned context for workspace resources.
Headers
| Header | Type | Description |
|---|---|---|
| Workspace | string | Your workspace identifier |
Endpoints
Workspace-owned resources are rooted at:
/workspace/workspace/*
Identity-only resources remain rooted at:
/session/session/*
To see this in action, simply copy / paste the following commands and replace the display headers with your own credentials. You should get the same 200 response as shown for both requests.
Requests
Workspace Request
curl -L "https://api.playbooks.ai/workspace"
--header "Authorization: <your_api_key>"
--header "Workspace: <team_uuid>"Session Request
curl "https://api.playbooks.ai/session"
--header "Authorization: <your_api_key>"
--header "Workspace: <team_uuid>"Response
Response
{
"data": {
"id": "6",
"status": "active",
"name": "Mile Hi Labs",
"tagline": "Elevated Software & System Design",
...
}
}