Upload a small file as a base64 body
post/assets
Before you call
- Credential
Authorization: Bearer $KEY- Scope
files:write- Mcp
rivier_assets_upload- Graphql
Mutation.filesAssetCreate- Sdk
files.asset.create- Cli
files asset create- Events
files.asset.created
Request bodyapplication/json, required
- contentstringrequired
- namestringAt most 300 characters.
- sha256stringPattern: ^[a-fA-F0-9]{64}$.
- allowDuplicateboolean
- kindstringOne of: logo, mark, lockup, wordmark, favicon, palette, typography, guideline, voice, imagery, persona_sheet, avatar, template, font, document, video, audio, image, other.
- descriptionstringAt most 2000 characters.
- altTextstringAt most 1500 characters.
- tagslist of string
- licenceobject or null
- rightsExpiresAtstring (date-time) or null
- aiobject or null
- disclosureLinestringAt most 400 characters.
- provenanceobject
- originPathstringAt most 500 characters.
- sourceRefstringAt most 500 characters.
- sourceUrlstring (uri)At most 1000 characters.
- importedFromstringAt most 200 characters.
- notestringAt most 500 characters.
- originPathstring
Responses
- 201application/jsonSuccess
- assetobjectrequired
- idstring (uuid)required
- namestringrequired
- kindstringrequiredOne of: logo, mark, lockup, wordmark, favicon, palette, typography, guideline, voice, imagery, persona_sheet, avatar, template, font, document, video, audio, image, other.
- statestringrequiredOne of: draft, in_review, approved, published, rejected, archived.
- descriptionstringrequired
- altTextstringrequired
- tagslist of stringrequired
- contentTypestringrequired
- bytesnumberrequired
- sha256string or nullrequired
- versionCountnumberrequired
- publicUrlstring or nullrequired
- createdAtstringrequired
- updatedAtstringrequired
- versionobject or null
- dedupedbooleanrequired
- warningslist of values
- assetobjectrequired
- 400application/jsonThe request was malformed
- errorstringrequired
- messagestring
- 401application/jsonNo valid credential
- errorstringrequired
- messagestring
- 403application/jsonThe credential lacks the scope, origin or address
- errorstringrequired
- messagestring
- 429application/jsonOver the key's rate limit; see Retry-After
- errorstringrequired
- messagestring