Skip to content

Upload a custom font

POST
/api/v1/custom-fonts/upload
curl --request POST \
--url http://127.0.0.1:58259/api/v1/custom-fonts/upload \
--header 'Content-Type: application/json' \
--data '{ "file": "binary" }'

Upload a custom font file (.ttf, .otf, .woff, .woff2) for the authenticated user

fontName
string

Font display name

Media type application/json
object
file
required

Font file (.ttf, .otf, .woff, .woff2)

string format: binary
Example generated
{
"file": "binary"
}

Font uploaded successfully

Media type */*
object
id
integer format: int64
fontName
string
originalFileName
string
format
string
Allowed values: TTF OTF WOFF WOFF2
fileSize
integer format: int64
uploadedAt
string format: date-time

Invalid file or quota exceeded

Media type */*
object
id
integer format: int64
fontName
string
originalFileName
string
format
string
Allowed values: TTF OTF WOFF WOFF2
fileSize
integer format: int64
uploadedAt
string format: date-time