Workspace
Workspace & members
Your workspace profile, subscription, prepaid credit balance, and team members.
GET
/workspaceGet workspace
The current workspace with its subscription, credit balance, USD→INR rate, and feature flags. Works with any authenticated key.
bash
curl https://api.bolchoai.in/v1/workspace -H "Authorization: Bearer $BOLCHO_API_KEY"Response
json
{ "id": "…", "name": "Acme", "slug": "acme", "creditsBalance": "12.40", "brandingRemovable": false, "subscription": { "tier": "free", "status": "active" }, "usdToInr": 86, "_count": { "agents": 3, "members": 5 } }GET
/workspace/members workspace:adminList members
Team members and their roles.
bash
curl https://api.bolchoai.in/v1/workspace/members \
-H "Authorization: Bearer $BOLCHO_API_KEY"Response
json
[ { "userId": "…", "role": "owner", "user": { "email": "a@acme.com", "name": "Asha" } } ]POST
/workspace/members workspace:adminInvite member
Invite (or link) a user to the workspace with a role.
Body
| email* | string | The member's email. |
| role* | enum | owner | admin | member | viewer. |
bash
curl -X POST https://api.bolchoai.in/v1/workspace/members \
-H "Authorization: Bearer $BOLCHO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"email": "string",
"role": "string"
}'Response
json
{ "id": "…", "userId": "…", "role": "member" }PATCH
/workspace/members/{userId} workspace:adminChange member role
Update a member's role.
Path parameters
| userId* | uuid | The member's user id. |
Body
| role* | enum | owner | admin | member | viewer. |
bash
curl -X PATCH https://api.bolchoai.in/v1/workspace/members/$USERID \
-H "Authorization: Bearer $BOLCHO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"role": "string"
}'DELETE
/workspace/members/{userId} workspace:adminRemove member
Remove a member from the workspace (can't remove the last owner).
Path parameters
| userId* | uuid | The member's user id. |
bash
curl -X DELETE https://api.bolchoai.in/v1/workspace/members/$USERID \
-H "Authorization: Bearer $BOLCHO_API_KEY"Response
json
{ "ok": true }