Upload Template
Add a background by sending the picture itself, as multipart/form-data.
createTemplate takes an address, which assumes the caller already has
somewhere to serve the file from. A script pulling pictures out of a
shared drive does not. The image’s dimensions are read from the file,
so they do not need to be supplied.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
This endpoint expects a multipart form containing a file.
file
name
Defaults to the file name, made presentable.
layout
Where the captions sit on a template.
Allowed values:
Response
This endpoint returns an object.
id
organizationId
name
slug
layout
Where the captions sit on a template.
curated
Part of the library the workspace curates, rather than a background
somebody found while composing one meme. Only curated templates
appear in the picker.
archived
Out of the picker. Memes already made from it keep rendering, which
is why a template is archived rather than deleted.
sortOrder
createdAt
updatedAt
builtinKey
Set on the templates that ship with the app.
imageUrl
width
The background's real pixel size, so the canvas can match the
picture instead of cropping it into a fixed box.
height
attribution
Where a searched template came from. The background is served from
there rather than copied, so the credit stays with the row.
sourceUrl
Errors
402
Subscription Required Error
409
Conflict Error
422
Validation Error