Every resource in SmartlyQ belongs to a workspace. Workspaces provide tenant isolation — data in one workspace is invisible to another.Documentation Index
Fetch the complete documentation index at: https://docs.smartlyq.com/llms.txt
Use this file to discover all available pages before exploring further.
Passing workspace_id
Most endpoints accept an optionalworkspace_id parameter. When provided, the API:
- Verifies your API key’s user is a member of that workspace
- Scopes all returned data to that workspace
- Returns 403 Forbidden if you don’t have access
Finding your workspace ID
Use the/v1/me endpoint to list your available workspaces:
workspaces array with each workspace’s id and name.
Workspace isolation guarantees
- You can only access workspaces where your user is a member
- All create, read, update, and delete operations are scoped by
workspace_id - Passing another user’s
workspace_idreturns 403 Forbidden - Resources created without a
workspace_iddefault to your primary workspace
Endpoints that require workspace_id
| Endpoint | workspace_id | Notes |
|---|---|---|
POST /v1/chatbots | Required | Chatbot is created in the specified workspace |
GET /v1/social/accounts | Recommended | Returns only accounts for that workspace |
POST /v1/social/posts | Recommended | Post is associated with the workspace |
GET /v1/urls | Recommended | Returns only URLs for that workspace |
GET /v1/articles | Recommended | Returns only articles for that workspace |
GET /v1/images | Recommended | Returns only images for that workspace |
GET /v1/media | Recommended | Returns only media for that workspace |
Error response
If you pass aworkspace_id you don’t have access to:

