Artwork
Upload a logo, artwork or recipient portrait
Send the raw file bytes (not multipart, not base64) with its Content-Type and an X-Artwork-Filename whose extension matches; up to 5 MiB. Add X-Artwork-Purpose: portrait for a recipient photo (PNG, JPEG or WebP, at least 256 × 256). Use the returned asset_ ID in customization.logoAssetId, recipient.assetIds or recipient.photo. Artwork has its own rate limits (600 writes a minute) and daily allowances.
post/artwork
Request
- Base URL: https://gtmswag.com/api/v1
- URL: https://gtmswag.com/api/v1/artwork
- Auth: HTTP bearer
Headers
X-Artwork-Filenamestring required
Original filename; its extension must match Content-Type (png, jpg/jpeg, webp, pdf).
X-Artwork-Purpose'artwork' | 'portrait'
portrait for a recipient photo (PNG, JPEG or WebP, at least 256 × 256); omit for logos and artwork.
Response
Success: {"data": Asset}.
Changes
No recorded changes to this operation across all 1 revision of this API.