Skip to main content
POST
manage templates

Authorizations

Authorization
string
header
required

An API key (es_live_…) from Settings, under API keys, or an OAuth access token.

Headers

Idempotency-Key
string

Retry a paid dispatch safely: the same key returns the job already dispatched instead of charging again.

x-workspace-id
string

The workspace this one call acts in, when it is not the key's own.

Body

application/json
action
enum<string>
required
Available options:
rename,
delete
template
string
required

The saved graphic or caption template, by its name or id.

Maximum string length: 120
kind
enum<string>

Which one, when a graphic and a caption template share the name.

Available options:
graphic,
caption
name
string

rename: the new name, unused in this workspace.

Maximum string length: 60
context
string

Optional: one sentence shown to the user beside this action.

Maximum string length: 600

Response

Done, or a job started for work that runs longer (follow it with get_jobs).

ok
any
required
data
object
required
meta
object
required
media
object[]