Skip to main content
POST
Create a library asset

Authorizations

x-magnific-api-key
string
header
required

Your Magnific API key. Learn how to obtain an API key

Body

application/json
name
string
required

Letters, digits, - and _ only (no spaces), up to 50. Unique among your assets.

Maximum string length: 50
Pattern: ^[a-zA-Z0-9_-]+$
type
enum<string>
required

character, product or locations.

Available options:
character,
product,
locations
images
object[]
required

1 to 6 images, each {"creation_id": "…"} or {"url": "https://…"} (JPEG, PNG or WebP, up to 25 MB). The first is the cover.

Required array length: 1 - 6 elements
description
string | null

What it is, up to 1000 characters.

Maximum string length: 1000
gender
string | null

Characters only.

Maximum string length: 32
product_type
string | null

Products only.

Maximum string length: 64

Response

data
object
required