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.
filefileRequired
namestringOptional
Defaults to the file name, made presentable.
layoutenumOptional
Where the captions sit on a template.
Allowed values:

Response

This endpoint returns an object.
idstring
organizationIdstring
namestring
slugstring
layoutenum
Where the captions sit on a template.
curatedboolean
Part of the library the workspace curates, rather than a background somebody found while composing one meme. Only curated templates appear in the picker.
archivedboolean
Out of the picker. Memes already made from it keep rendering, which is why a template is archived rather than deleted.
sortOrderinteger
createdAtdatetime
updatedAtdatetime
builtinKeystringOptional
Set on the templates that ship with the app.
imageUrlstringOptional
widthintegerOptional
The background's real pixel size, so the canvas can match the picture instead of cropping it into a fixed box.
heightintegerOptional
attributionstringOptional
Where a searched template came from. The background is served from there rather than copied, so the credit stays with the row.
sourceUrlstringOptional

Errors

402
Subscription Required Error
409
Conflict Error
422
Validation Error