curl --request PUT \
--url https://api.studio.prisme.ai/v2/user/active-org \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"orgSlug": "<string>"
}
'{
"org": {
"slug": "<string>",
"name": "<string>",
"status": "<string>",
"branding": {},
"navigation": {
"version": 123,
"homePage": "<string>",
"menu": [
{
"id": "workspaces",
"type": "category",
"label": "Workspaces",
"icon": "folder",
"expanded": true,
"items": [
{
"id": "workspaces-list",
"type": "item",
"label": "All workspaces",
"href": "/workspaces"
},
{
"id": "workspaces-create",
"type": "item",
"label": "Create workspace",
"href": "/workspaces/new"
}
]
}
],
"footer": [
{
"id": "workspaces",
"type": "category",
"label": "Workspaces",
"icon": "folder",
"expanded": true,
"items": [
{
"id": "workspaces-list",
"type": "item",
"label": "All workspaces",
"href": "/workspaces"
},
{
"id": "workspaces-create",
"type": "item",
"label": "Create workspace",
"href": "/workspaces/new"
}
]
}
],
"quickActions": [
{
"id": "workspaces",
"type": "category",
"label": "Workspaces",
"icon": "folder",
"expanded": true,
"items": [
{
"id": "workspaces-list",
"type": "item",
"label": "All workspaces",
"href": "/workspaces"
},
{
"id": "workspaces-create",
"type": "item",
"label": "Create workspace",
"href": "/workspaces/new"
}
]
}
]
},
"role": {
"slug": "<string>",
"name": "<string>",
"permissions": [
"<string>"
],
"scopes": [
"<string>"
]
},
"groups": [
"<string>"
],
"settings": {},
"subscription": {
"slug": "<string>",
"name": "<string>",
"tier": "<string>",
"id": "<string>",
"plan": "<string>",
"isDefault": true,
"limits": {},
"features": {},
"billing": {},
"startedAt": "<string>",
"expiresAt": "<string>",
"createdBy": "<string>",
"updatedBy": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}
},
"permissions": [
"<string>"
],
"organizations": [
{
"slug": "<string>",
"name": "<string>",
"roleSlug": "<string>",
"groups": [
"<string>"
]
}
]
}Set Active Org
Set the active organization for the current session
curl --request PUT \
--url https://api.studio.prisme.ai/v2/user/active-org \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"orgSlug": "<string>"
}
'{
"org": {
"slug": "<string>",
"name": "<string>",
"status": "<string>",
"branding": {},
"navigation": {
"version": 123,
"homePage": "<string>",
"menu": [
{
"id": "workspaces",
"type": "category",
"label": "Workspaces",
"icon": "folder",
"expanded": true,
"items": [
{
"id": "workspaces-list",
"type": "item",
"label": "All workspaces",
"href": "/workspaces"
},
{
"id": "workspaces-create",
"type": "item",
"label": "Create workspace",
"href": "/workspaces/new"
}
]
}
],
"footer": [
{
"id": "workspaces",
"type": "category",
"label": "Workspaces",
"icon": "folder",
"expanded": true,
"items": [
{
"id": "workspaces-list",
"type": "item",
"label": "All workspaces",
"href": "/workspaces"
},
{
"id": "workspaces-create",
"type": "item",
"label": "Create workspace",
"href": "/workspaces/new"
}
]
}
],
"quickActions": [
{
"id": "workspaces",
"type": "category",
"label": "Workspaces",
"icon": "folder",
"expanded": true,
"items": [
{
"id": "workspaces-list",
"type": "item",
"label": "All workspaces",
"href": "/workspaces"
},
{
"id": "workspaces-create",
"type": "item",
"label": "Create workspace",
"href": "/workspaces/new"
}
]
}
]
},
"role": {
"slug": "<string>",
"name": "<string>",
"permissions": [
"<string>"
],
"scopes": [
"<string>"
]
},
"groups": [
"<string>"
],
"settings": {},
"subscription": {
"slug": "<string>",
"name": "<string>",
"tier": "<string>",
"id": "<string>",
"plan": "<string>",
"isDefault": true,
"limits": {},
"features": {},
"billing": {},
"startedAt": "<string>",
"expiresAt": "<string>",
"createdBy": "<string>",
"updatedBy": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}
},
"permissions": [
"<string>"
],
"organizations": [
{
"slug": "<string>",
"name": "<string>",
"roleSlug": "<string>",
"groups": [
"<string>"
]
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Response
Success — returns updated org details
Hide child attributes
Hide child attributes
Organization navigation configuration
Hide child attributes
Hide child attributes
Schema version number
Route to use as home page (e.g., "/apps/agent-factory"). Must be a valid relative path starting with /. If not set, defaults to the platform default (SecureChat).
^\/[a-zA-Z0-9\-_\/]*$Main menu items
Hide child attributes
Hide child attributes
Unique identifier for this menu item
category, item, divider Display label (not required for dividers)
Icon name (from lucide-react)
Icon color (CSS color value)
Link destination (for type=item)
Link target
_self, _blank Whether category is expanded by default
Badge text to show (e.g., "New", "Beta")
Permissions required to see this item
Features attached to this item
Hide child attributes
Hide child attributes
agent, template Unique identifier for this feature within the menu item
Display label for the feature
Agent ID (required when type=agent)
Template ID (required when type=template)
Permissions required to see this feature
Child items (for type=category)
Footer menu items
Hide child attributes
Hide child attributes
Unique identifier for this menu item
category, item, divider Display label (not required for dividers)
Icon name (from lucide-react)
Icon color (CSS color value)
Link destination (for type=item)
Link target
_self, _blank Whether category is expanded by default
Badge text to show (e.g., "New", "Beta")
Permissions required to see this item
Features attached to this item
Hide child attributes
Hide child attributes
agent, template Unique identifier for this feature within the menu item
Display label for the feature
Agent ID (required when type=agent)
Template ID (required when type=template)
Permissions required to see this feature
Child items (for type=category)
Quick action buttons
Hide child attributes
Hide child attributes
Unique identifier for this menu item
category, item, divider Display label (not required for dividers)
Icon name (from lucide-react)
Icon color (CSS color value)
Link destination (for type=item)
Link target
_self, _blank Whether category is expanded by default
Badge text to show (e.g., "New", "Beta")
Permissions required to see this item
Features attached to this item
Hide child attributes
Hide child attributes
agent, template Unique identifier for this feature within the menu item
Display label for the feature
Agent ID (required when type=agent)
Template ID (required when type=template)
Permissions required to see this feature
Child items (for type=category)
Hide child attributes
Hide child attributes
active, inactive, trialing, past_due, canceled Was this page helpful?