POST
/api/v1/vendor/assets/{id}/font-specimenAuthorization: Bearer <token>Upload Font Specimen
Upload live font specimen file for real-time interactive browser typesetting preview.
Description
Provides the live @font-face specimen file for the storefront's 'See Preview' interactive type-tester dialog.
Parameters
2 parameters| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| id | string | Required | — | Target asset GUID. |
| file | binary (multipart/form-data) | Required | — | WOFF2 or WOFF font specimen binary. |
Request Example
curl -X POST https://api.trykrafto.xyz/api/v1/vendor/assets/6f94726b-67a3-41bb-a5a4-927429beecfa/font-specimen \
-H "Authorization: Bearer kr_live_token..." \
-F "file=@/path/to/specimen.woff2"Response Example
application/json (200 OK)
{
"id": "prv_fnt_18",
"assetId": "6f94726b-67a3-41bb-a5a4-927429beecfa",
"kind": "FontSpecimen",
"url": "/api/v1/previews/prv_fnt_18"
}