Clarity Sidebar Layout API
The sidebar-layout API from Clarity — 1 operation(s) for sidebar-layout.
The sidebar-layout API from Clarity — 1 operation(s) for sidebar-layout.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/onclarity-com:onclarity-com-sidebar-layout-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Fast Sidebar Layout API
version: 0.1.0
tags:
- name: sidebar-layout
paths:
/api/v1/sidebar-layout:
get:
tags:
- sidebar-layout
summary: Get Sidebar Layout
description: 'The caller''s own sidebar. Personal, so no role check: everyone arranges their own.'
operationId: get_sidebar_layout_api_v1_sidebar_layout_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/SidebarLayoutResponse'
security:
- HTTPBearer: []
put:
tags:
- sidebar-layout
summary: Save Sidebar Layout
description: Replace the caller's sidebar for this project. Leaves every other member's alone.
operationId: save_sidebar_layout_api_v1_sidebar_layout_put
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/SidebarLayoutRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/SidebarLayoutResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- HTTPBearer: []
components:
schemas:
SidebarLayoutRequest:
properties:
items:
items:
anyOf:
- $ref: '#/components/schemas/NavItem'
- $ref: '#/components/schemas/ShortcutItem'
type: array
maxItems: 90
title: Items
hidden:
items:
type: string
type: array
maxItems: 40
title: Hidden
chats_limit:
anyOf:
- type: integer
maximum: 50.0
minimum: 1.0
- type: 'null'
title: Chats Limit
type: object
required:
- items
title: SidebarLayoutRequest
description: 'The whole sidebar, first entry to last: Save sends it all.'
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError
ShortcutItem:
properties:
kind:
type: string
const: shortcut
title: Kind
type:
type: string
enum:
- app
- chat
- folder
- dashboard
- signal
- survey
title: Type
ref:
type: string
maxLength: 200
minLength: 1
title: Ref
label:
type: string
maxLength: 200
title: Label
default: ''
type: object
required:
- kind
- type
- ref
title: ShortcutItem
description: 'A shortcut the person added: a chat, a dashboard, an app, … by its id or slug. The
label is the name it had when added, shown until the UI knows a fresher one.'
NavItem:
properties:
kind:
type: string
const: nav
title: Kind
id:
type: string
maxLength: 64
minLength: 1
title: Id
type: object
required:
- kind
- id
title: NavItem
description: One of the sidebar's main entries (Overview, Signals, …), by its UI id.
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
SidebarLayoutResponse:
properties:
items:
items:
anyOf:
- $ref: '#/components/schemas/NavItem'
- $ref: '#/components/schemas/ShortcutItem'
type: array
title: Items
hidden:
items:
type: string
type: array
title: Hidden
chats_limit:
anyOf:
- type: integer
- type: 'null'
title: Chats Limit
is_default:
type: boolean
title: Is Default
type: object
required:
- items
- hidden
- chats_limit
- is_default
title: SidebarLayoutResponse
description: 'The caller''s sidebar for this project. ``is_default`` when they never saved one: the
UI then draws its own default order.'
securitySchemes:
HTTPBearer:
type: http
scheme: bearer
HTTPBasic:
type: http
scheme: basic