Shared with Me API

Shared with Me endpoints in the Brix REST API: 4 operations (GET, POST, PUT). Each lists its path, auth, required permission and a curl example.

View as Markdown

Base URL https://api.brixsignage.com. Send Authorization: Bearer $BRIX_API_KEY unless an operation says No auth. The permission chip names what the key must hold. See Authentication and scopes, Errors and rate limits and Pagination.

GET/v1/shared-with-me

Bearer token playlist.view

List airtime slices that other teams have reserved and made available for the caller's team to fill. **Notes.** - Only slices the caller can fill are listed. Besides playlist.view, the caller needs playlist.edit at the location the slice is reserved for.

curl "https://api.brixsignage.com/v1/shared-with-me" \
  -H "Authorization: Bearer $BRIX_API_KEY"

Response 200 Success.

FieldTypeDescription
dataarray of object
data[].allocationIdstring
data[].labelstring
data[].reservedForNodeIdstringThe location the slice is reserved for.
data[].reservedForNamestring
data[].kind"percent" | "every-nth" | "daypart"Only `percent` and `every-nth` slices are listed.
data[].valuenumberThe share of airtime (a percentage, or every Nth item).
data[].requiresApprovalboolean
data[].sourcePlaylistobject
data[].sourcePlaylist.idstring
data[].sourcePlaylist.namestring
data[].sourcePlaylist.nodeIdstring | null
data[].fillobject | nullThe playlist that fills the slice; null when none is bound.

Response 401 Missing, expired or revoked bearer token.

FieldTypeDescription
errorstringMachine-readable code: `unauthorized`, `forbidden`, `not_found`, `validation_error`, `conflict`, `rate_limited`, `internal_error`, …
messagestringHuman-readable explanation. Safe to show an operator.
requestIdstringPresent on 5xx: quote it to support.

Response 403 The token lacks the permission this operation needs (see `x-brix-permission`).

FieldTypeDescription
errorstringMachine-readable code: `unauthorized`, `forbidden`, `not_found`, `validation_error`, `conflict`, `rate_limited`, `internal_error`, …
messagestringHuman-readable explanation. Safe to show an operator.
requestIdstringPresent on 5xx: quote it to support.

Response 5XX Server error. The body carries a `requestId` to quote to support.

FieldTypeDescription
errorstringMachine-readable code: `unauthorized`, `forbidden`, `not_found`, `validation_error`, `conflict`, `rate_limited`, `internal_error`, …
messagestringHuman-readable explanation. Safe to show an operator.
requestIdstringPresent on 5xx: quote it to support.

POST/v1/shared-with-me/{allocationId}/fill

Bearer token playlist.view

Create a new playlist and attach it as the fill for an airtime slice reserved for the caller's team. **Notes.** - Besides playlist.view, the caller needs playlist.edit at the location the slice is reserved for. - The new playlist is empty and is placed at the reserved location.

ParameterInTypeRequiredDescription
allocationIdpathstringyesSlice (allocation) id.

Request body application/json

FieldTypeRequiredDescription
namestringnoDefault `<location> slice`.
curl -X POST "https://api.brixsignage.com/v1/shared-with-me/{allocationId}/fill" \
  -H "Authorization: Bearer $BRIX_API_KEY" \
  -H "Content-Type: application/json"

Response 200 Success: A fill playlist is already bound: it is returned (`created: false`) and nothing is created.

FieldTypeDescription
dataobject
data.allocationIdstring
data.fillPlaylistIdstring
data.namestring
data.createdboolean

Response 201 Success.

FieldTypeDescription
dataobject
data.allocationIdstring
data.fillPlaylistIdstring
data.namestring
data.createdboolean

Response 401 Missing, expired or revoked bearer token.

FieldTypeDescription
errorstringMachine-readable code: `unauthorized`, `forbidden`, `not_found`, `validation_error`, `conflict`, `rate_limited`, `internal_error`, …
messagestringHuman-readable explanation. Safe to show an operator.
requestIdstringPresent on 5xx: quote it to support.

Response 403 You cannot fill this slice.

FieldTypeDescription
errorstringMachine-readable code: `unauthorized`, `forbidden`, `not_found`, `validation_error`, `conflict`, `rate_limited`, `internal_error`, …
messagestringHuman-readable explanation. Safe to show an operator.
requestIdstringPresent on 5xx: quote it to support.

Response 404 No such fillable slice in this workspace.

FieldTypeDescription
errorstringMachine-readable code: `unauthorized`, `forbidden`, `not_found`, `validation_error`, `conflict`, `rate_limited`, `internal_error`, …
messagestringHuman-readable explanation. Safe to show an operator.
requestIdstringPresent on 5xx: quote it to support.

Response 5XX Server error. The body carries a `requestId` to quote to support.

FieldTypeDescription
errorstringMachine-readable code: `unauthorized`, `forbidden`, `not_found`, `validation_error`, `conflict`, `rate_limited`, `internal_error`, …
messagestringHuman-readable explanation. Safe to show an operator.
requestIdstringPresent on 5xx: quote it to support.

PUT/v1/shared-with-me/{allocationId}/fill

Bearer token playlist.view

Attach an existing playlist as the fill for an airtime slice reserved for the caller's team. Send playlistId as null to remove it. **Notes.** - Besides playlist.view, the caller needs playlist.edit at the location the slice is reserved for.

ParameterInTypeRequiredDescription
allocationIdpathstringyesSlice (allocation) id.

Request body application/json

FieldTypeRequiredDescription
playlistIdstring | nullyesA playlist you can edit; null unbinds.
curl -X PUT "https://api.brixsignage.com/v1/shared-with-me/{allocationId}/fill" \
  -H "Authorization: Bearer $BRIX_API_KEY" \
  -H "Content-Type: application/json"

Response 200 Success.

FieldTypeDescription
dataobject
data.allocationIdstring
data.fillPlaylistIdstring | null

Response 401 Missing, expired or revoked bearer token.

FieldTypeDescription
errorstringMachine-readable code: `unauthorized`, `forbidden`, `not_found`, `validation_error`, `conflict`, `rate_limited`, `internal_error`, …
messagestringHuman-readable explanation. Safe to show an operator.
requestIdstringPresent on 5xx: quote it to support.

Response 403 You cannot fill this slice, or cannot edit that playlist.

FieldTypeDescription
errorstringMachine-readable code: `unauthorized`, `forbidden`, `not_found`, `validation_error`, `conflict`, `rate_limited`, `internal_error`, …
messagestringHuman-readable explanation. Safe to show an operator.
requestIdstringPresent on 5xx: quote it to support.

Response 404 No such fillable slice, or no such playlist in this workspace.

FieldTypeDescription
errorstringMachine-readable code: `unauthorized`, `forbidden`, `not_found`, `validation_error`, `conflict`, `rate_limited`, `internal_error`, …
messagestringHuman-readable explanation. Safe to show an operator.
requestIdstringPresent on 5xx: quote it to support.

Response 422 The playlist is the one the slice belongs to.

FieldTypeDescription
errorstringMachine-readable code: `unauthorized`, `forbidden`, `not_found`, `validation_error`, `conflict`, `rate_limited`, `internal_error`, …
messagestringHuman-readable explanation. Safe to show an operator.
requestIdstringPresent on 5xx: quote it to support.

Response 5XX Server error. The body carries a `requestId` to quote to support.

FieldTypeDescription
errorstringMachine-readable code: `unauthorized`, `forbidden`, `not_found`, `validation_error`, `conflict`, `rate_limited`, `internal_error`, …
messagestringHuman-readable explanation. Safe to show an operator.
requestIdstringPresent on 5xx: quote it to support.

GET/v1/shared-with-me/{allocationId}/source

Bearer token playlist.view

The owner's playlist, read only (names, kinds, thumbnails, durations), for a location that fills a share of it — so it can see what else plays on its screens. **Notes.** - Besides playlist.view, the caller needs playlist.edit at the location the slice is reserved for. - Read only. Other locations' shares and the owner's settings are not returned.

ParameterInTypeRequiredDescription
allocationIdpathstringyesSlice (allocation) id.
curl "https://api.brixsignage.com/v1/shared-with-me/{allocationId}/source" \
  -H "Authorization: Bearer $BRIX_API_KEY"

Response 200 Success.

FieldTypeDescription
dataobject
data.playlistobject
data.playlist.idstring
data.playlist.namestring
data.playlist.shuffleboolean
data.itemsarray of objectThe owner's items in order: what plays around your share.
data.items[].namestring
data.items[].kindstring
data.items[].thumbnailUrlstring | null
data.items[].durationSecnumber
data.shareobject
data.share.kind"percent" | "every-nth" | "daypart"
data.share.valuenumber
data.share.requiresApprovalboolean
data.share.reservedForNamestring
data.share.fillPlaylistIdstring | null

Response 401 Missing, expired or revoked bearer token.

FieldTypeDescription
errorstringMachine-readable code: `unauthorized`, `forbidden`, `not_found`, `validation_error`, `conflict`, `rate_limited`, `internal_error`, …
messagestringHuman-readable explanation. Safe to show an operator.
requestIdstringPresent on 5xx: quote it to support.

Response 403 You cannot fill this slice.

FieldTypeDescription
errorstringMachine-readable code: `unauthorized`, `forbidden`, `not_found`, `validation_error`, `conflict`, `rate_limited`, `internal_error`, …
messagestringHuman-readable explanation. Safe to show an operator.
requestIdstringPresent on 5xx: quote it to support.

Response 404 No such fillable slice in this workspace.

FieldTypeDescription
errorstringMachine-readable code: `unauthorized`, `forbidden`, `not_found`, `validation_error`, `conflict`, `rate_limited`, `internal_error`, …
messagestringHuman-readable explanation. Safe to show an operator.
requestIdstringPresent on 5xx: quote it to support.

Response 5XX Server error. The body carries a `requestId` to quote to support.

FieldTypeDescription
errorstringMachine-readable code: `unauthorized`, `forbidden`, `not_found`, `validation_error`, `conflict`, `rate_limited`, `internal_error`, …
messagestringHuman-readable explanation. Safe to show an operator.
requestIdstringPresent on 5xx: quote it to support.