Brix Media Folders API
The media-folders API from Brix — 3 operation(s) for media-folders.
The media-folders API from Brix — 3 operation(s) for media-folders.
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/brixsignage-com:brixsignage-com-media-folders-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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. 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: Brix Media Folders API
version: '1'
summary: 'Control plane for Brix digital signage: screens, content, playlists, schedules, casts and emergencies.'
description: 'Generated from the route table the API actually mounts
(`apps/api/routes.snapshot.json`), the description each route is required to
carry (`tests/contracts/route-registry.json`), and request/response schemas
(`apps/api/src/openapi/`). CI enforces all three, so this document cannot list a
route that does not exist or omit one that does.
**Schemas.** 447 operations carry request and response schemas
(`x-brix-schema: verified`). Each is checked in CI against the response the
real handler returns — a missing, mistyped or undeclared field fails the build.
The remaining operations are route-level only (`x-brix-schema: none`): their
path, method, permission and purpose are exact, but the shape of `data` is not
yet modelled, and we would rather say so than publish a schema that validates
against nothing. Objects are open: a new field is not a breaking change.
**Envelope.** Success bodies are `{ "data": … }`. Failures are
`{ "error": "", "message": "…" }`, plus `requestId` on a 5xx.
Many list routes page opt-in (see each operation): pass `?limit=` and
follow `nextCursor` via `?cursor=` until it is null.
**Authentication.** `Authorization: Bearer ` with an API key
(`ak_…`, created in the console under Settings → API & MCP) or a user session. An
API key carries a creator-chosen set of `resource.verb` permissions and may be
pinned to one location''s subtree; a key can never be granted a permission its
creator does not hold. The permission an operation needs is in
`x-brix-permission` and in its security requirement.
**Tenancy.** Every request resolves to one workspace. A resource belonging to
another tenant returns 404, never 403, so a response never confirms that an
account exists.
**Rate limits.** A 429 carries `Retry-After`; a 503 `database_busy` means retry
after the `Retry-After` interval.'
servers:
- url: https://api.brixsignage.com
description: Production
security:
- bearerAuth: []
tags:
- name: media-folders
paths:
/v1/media-folders:
get:
operationId: listMediaFolders
tags:
- media-folders
summary: List media folders
description: Return the media library's folder tree for this workspace, including each folder's id, name, parent folder, and location.
x-brix-permission: media.view
x-brix-schema: verified
parameters:
- name: limit
in: query
required: false
schema:
type: integer
minimum: 1
maximum: 200
description: Page size. Omit to get every row; pass it to page by `cursor`.
- name: cursor
in: query
required: false
schema:
type: string
description: The `nextCursor` of the previous page.
- name: count
in: query
required: false
schema:
type: string
enum:
- '1'
description: 'With `limit`: also return `total`.'
- name: usableAt
in: query
required: false
schema:
type: string
description: 'Location id: only folders usable at that location.'
responses:
'200':
description: Success.
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/MediaFolder'
nextCursor:
description: Present when `?limit` was passed. Send it back as `?cursor=` for the next page; null on the last page.
anyOf:
- type: string
- type: 'null'
total:
description: Total matching rows, when the route computes it.
type: integer
required:
- data
'401':
description: Missing, expired or revoked bearer token.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: The token lacks the permission this operation needs (see `x-brix-permission`).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
5XX:
description: Server error. The body carries a `requestId` to quote to support.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
security:
- bearerAuth:
- media.view
post:
operationId: createMediaFolder
tags:
- media-folders
summary: Create a media folder
description: 'Create a folder in the media library. Requires name; parentId and nodeId are optional. Omitting parentId places the folder at the root.
**Notes.**
- The 201 body is the row as written, not re-read: columns the create does not set are absent rather than null. GET returns every column.'
x-brix-permission: media.create
x-brix-schema: verified
x-brix-notes:
- 'The 201 body is the row as written, not re-read: columns the create does not set are absent rather than null. GET returns every column.'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
name:
type: string
parentId:
anyOf:
- type: string
- type: 'null'
nodeId:
description: 'Home location. Default: the caller''s own location.'
anyOf:
- type: string
- type: 'null'
required:
- name
responses:
'201':
description: Success.
content:
application/json:
schema:
type: object
properties:
data:
type: object
properties:
id:
type: string
description: Media folder id.
examples:
- fold_2b3c4d5e6f7a8b9c
spaceId:
type: string
parentId:
anyOf:
- type: string
- type: 'null'
name:
type: string
nodeId:
anyOf:
- type: string
- type: 'null'
createdAt:
type: string
description: ISO-8601 timestamp (UTC).
updatedAt:
type: string
description: ISO-8601 timestamp (UTC).
deletedAt:
anyOf:
- type: string
description: ISO-8601 timestamp (UTC).
- type: 'null'
required:
- id
- spaceId
- name
- createdAt
- updatedAt
- deletedAt
required:
- data
'401':
description: Missing, expired or revoked bearer token.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: The token lacks the permission this operation needs (see `x-brix-permission`).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: The location does not exist.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'422':
description: '`name` is missing.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
5XX:
description: Server error. The body carries a `requestId` to quote to support.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
security:
- bearerAuth:
- media.create
/v1/media-folders/{id}:
delete:
operationId: deleteMediaFolder
tags:
- media-folders
summary: Delete a media folder
description: Move a media folder to the recycle bin; it can be restored later. Assets inside the folder are not moved or deleted and keep their existing folder reference.
x-brix-permission: media.delete
x-brix-schema: verified
parameters:
- name: id
in: path
required: true
schema:
type: string
description: Media folder id.
example: fold_2b3c4d5e6f7a8b9c
responses:
'200':
description: Success.
content:
application/json:
schema:
type: object
properties:
data:
type: object
properties:
id:
type: string
deleted:
type: boolean
const: true
required:
- id
- deleted
required:
- data
'401':
description: Missing, expired or revoked bearer token.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: The token lacks the permission this operation needs (see `x-brix-permission`).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
5XX:
description: Server error. The body carries a `requestId` to quote to support.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
security:
- bearerAuth:
- media.delete
get:
operationId: getMediaFolder
tags:
- media-folders
summary: Get a media folder
description: Return one media folder.
x-brix-permission: media.view
x-brix-schema: verified
parameters:
- name: id
in: path
required: true
schema:
type: string
description: Media folder id.
example: fold_2b3c4d5e6f7a8b9c
responses:
'200':
description: Success.
content:
application/json:
schema:
type: object
properties:
data:
$ref: '#/components/schemas/MediaFolder'
required:
- data
'401':
description: Missing, expired or revoked bearer token.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: The token lacks the permission this operation needs (see `x-brix-permission`).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
5XX:
description: Server error. The body carries a `requestId` to quote to support.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
security:
- bearerAuth:
- media.view
patch:
operationId: updateMediaFolder
tags:
- media-folders
summary: Update a media folder
description: Rename a media folder or move it to a different parent folder or location. Accepts optional name, parentId, and nodeId.
x-brix-permission: media.edit
x-brix-schema: verified
parameters:
- name: id
in: path
required: true
schema:
type: string
description: Media folder id.
example: fold_2b3c4d5e6f7a8b9c
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
name:
type: string
parentId:
anyOf:
- type: string
- type: 'null'
nodeId:
anyOf:
- type: string
- type: 'null'
baseUpdatedAt:
description: The `updatedAt` your edit is based on; 409 with the current row if it moved.
type: string
responses:
'200':
description: Success.
content:
application/json:
schema:
type: object
properties:
data:
$ref: '#/components/schemas/MediaFolder'
required:
- data
'401':
description: Missing, expired or revoked bearer token.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: The token lacks the permission this operation needs (see `x-brix-permission`).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: No folder with this id.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'409':
description: '`conflict`: changed since `baseUpdatedAt`; the body carries `current`.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
5XX:
description: Server error. The body carries a `requestId` to quote to support.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
security:
- bearerAuth:
- media.edit
/v1/media-folders/{id}/restore:
post:
operationId: restoreMediaFolder
tags:
- media-folders
summary: Restore a deleted media folder
description: Bring back a deleted media folder so it reappears in the folder tree. Assets inside it keep whatever delete state they already had.
x-brix-permission: media.delete
x-brix-schema: verified
parameters:
- name: id
in: path
required: true
schema:
type: string
description: Media folder id.
example: fold_2b3c4d5e6f7a8b9c
responses:
'200':
description: Success.
content:
application/json:
schema:
type: object
properties:
data:
type: object
properties:
id:
type: string
restored:
type: boolean
const: true
required:
- id
- restored
required:
- data
'401':
description: Missing, expired or revoked bearer token.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: The token lacks the permission this operation needs (see `x-brix-permission`).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: No folder with this id.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'409':
description: '`not_deleted`.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
5XX:
description: Server error. The body carries a `requestId` to quote to support.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
security:
- bearerAuth:
- media.delete
components:
schemas:
MediaFolder:
type: object
properties:
id:
type: string
description: Media folder id.
examples:
- fold_2b3c4d5e6f7a8b9c
spaceId:
type: string
parentId:
anyOf:
- type: string
- type: 'null'
description: Parent folder; null = top level.
name:
type: string
nodeId:
anyOf:
- type: string
- type: 'null'
description: Home location; null = workspace root.
createdAt:
type: string
description: ISO-8601 timestamp (UTC).
updatedAt:
type: string
description: ISO-8601 timestamp (UTC).
deletedAt:
anyOf:
- type: string
description: ISO-8601 timestamp (UTC).
- type: 'null'
required:
- id
- spaceId
- parentId
- name
- nodeId
- createdAt
- updatedAt
- deletedAt
description: A folder in the media library.
Error:
type: object
properties:
error:
type: string
description: 'Machine-readable code: `unauthorized`, `forbidden`, `not_found`, `validation_error`, `conflict`, `rate_limited`, `internal_error`, …'
message:
description: Human-readable explanation. Safe to show an operator.
type: string
requestId:
description: 'Present on 5xx: quote it to support.'
type: string
required:
- error
additionalProperties: {}
description: Error envelope returned by every failing request.
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: An API key (`ak_…`) or a user session token. API keys carry `resource.verb` permissions.