Skip to content

Complete Font Upload

POST
/v1/fonts/uploads/{face_id}/complete
curl --request POST \
--url https://agents.lumalabs.ai/v1/fonts/uploads/example/complete \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "replace_face_id": "example" }'

Parse and measure the uploaded bytes and add the face to its family.

replace_face_id names a face of the same weight and style to supersede; without it, a face already in that slot is a 409 FONT.VARIANT_CONFLICT. Completing a face that is already ready answers it again.

face_id
required
Face Id
string
Media typeapplication/json
CompleteFontUploadRequest
object
replace_face_id
Any of:
string
Examplegenerated
{
"replace_face_id": "example"
}

Successful Response

Media typeapplication/json
CompletedFontFace

A face as Luma read it from the uploaded file.

object
face_id
required
Face Id

A font_face:<uuid> ref.

string
family_id
required
Family Id

A font_family:<uuid> ref.

string
is_variable
Is Variable
boolean
name
required
Name
string
style
required
Style
string
variation_axes
Any of:
Array<object>
FontAxisOut

One OpenType variation axis from an uploaded variable font.

object
default_value
required
Default Value
number
max_value
required
Max Value
number
min_value
required
Min Value
number
tag
required
Tag
string
weight
required
Weight
integer
Example
{
"is_variable": false
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"ctx": {},
"input": "example",
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}