Packs
List a pack's assets
Page until nextCursor is null. An asset's id is also its job handle, so this is how you find the handle for something generated in an earlier run.
Note the four storage kinds don't map one-to-one onto the six things you can generate: item sprites and GUI sheets are both stored as texture under a prefixed name (item:sword, gui:hud), icons are stored as font, and a 3D item is a model.
/packs/{pack}/assetsPath parameters
packstringrequiredThe pack's slug, as returned by the packs endpoints.
Query parameters
kindstringOnly assets of this storage kind.
Options: texture, model, font, sound
limitinteger1–200default 50How many to return.
cursorintegermin 0From the previous response's nextCursor.
Response · 200
One page of assets.
assetsarray of objectrequiredThis page of assets.
idstringrequiredStable id, and the job handle this asset was created under.
kindstringrequiredWhich store it lives in.
Options: texture, model, font, sound
namestringrequiredIts name within the pack. Prefixed for item sprites and GUI sheets.
statusstringrequiredWhere the generation got to.
Options: generating, ready, error
displayNamestringThe label you gave it, if any.
promptstringWhat it was generated from.
errorstringWhy it failed. Null unless status is error.
sizeBytesintegerSize of the stored file.
updatedAtstringrequiredISO 8601.
nextCursorstringPass as cursor for the next page. Null on the last page.
Error codes
Branch on error.code, never on the message.
invalid_request400Something in the body or query is wrong. message says what.
invalid_api_key401The key isn't one of ours, or it has been revoked.
missing_api_key401No Authorization: Bearer header was sent.
plan_required403The key is valid, but its account is on Starter. The API needs a paid plan.
not_found404No such pack, asset or job.