Rivier/ Reference/ hosting

Hosting library extract colours

post/hosting/design-library/extract-colours

Colours from a logo or a picture (sent as base64) and the readable palette built from them, with every contrast correction listed. Nothing is stored.

Before you call

Credential
Authorization: Bearer $KEY
Scope
hosting:read
Mcp
rivier_design_library_extract_colours
Graphql
Query.hostingLibraryExtractColours
Sdk
hosting.library.extractColours
Cli
hosting library extract colours

Request bodyapplication/json, required

  • imagestringrequired
    The image as base64 (PNG, JPEG, WebP or GIF, up to 3 MB) At most 4200000 characters.
  • namestring
    At most 60 characters.

Responses

  • 200application/json
    Success
    • 400application/json
      The request was malformed
      • errorstringrequired
      • messagestring
    • 401application/json
      No valid credential
      • errorstringrequired
      • messagestring
    • 403application/json
      The credential lacks the scope, origin or address
      • errorstringrequired
      • messagestring
    • 429application/json
      Over the key's rate limit; see Retry-After
      • errorstringrequired
      • messagestring

    This page as Markdown