Menu
Platform
AI
Alerts and status pages
App store purchases
Credits
Generated Assets
Knowledge
KV
Localization
Notifications
Organizations
Payments
Queues
Realtime
Sandboxes
Storage
Workflows
API reference
- Overview
- Access API keys
- Agent sessions API
- Agent versions API
- Agents API
- AI models API
- Artifact references API
- Artifacts API
- Assets API
- Auth configs API
- Bank receipts API
- Bank transfer accounts API
- Buckets API
- Builds API
- Catalogs API
- Chat profiles API
- Chat reports API
- Chat sticker packs API
- Checkout policies API
- Checkout sessions API
- Config changes API
- Config flags API
- Config segments API
- Connection providers API
- Connections API
- Connectors API
- Credit grants API
- Customer organizations API
- Customer subscriptions API
- Databases API
- Documents API
- Email domains API
- End users API
- Entities API
- Entitlement grants API
- Entries API
- Environments API
- Episodes API
- Error events API
- Error groups API
- Events API
- Exchange rates API
- Generations API
- Glossaries API
- Goals API
- Identities API
- Inbound emails API
- Inbound endpoints API
- Inbound messages API
- Inbound sms API
- Invitations API
- Job runs API
- Jobs API
- Knowledge schemas API
- KV API
- KV namespaces API
- Lease events API
- Leases API
- Licence keys API
- Licence tokens API
- Mail domains API
- Mail routes API
- Mailbox connect links API
- Mailbox OAUTH apps API
- Mailboxes API
- Memberships API
- Memories API
- Memory stores API
- Merchant accounts API
- Message topics API
- Messages API
- OAUTH clients API
- Objects API
- Organization roles API
- Orgs API
- Owner pools API
- Phone numbers API
- Portal sessions API
- Preferences API
- Price catalogs API
- Processor events API
- Projects API
- Queued executions API
- Queues API
- Realtime channels API
- Realtime members API
- Realtime messages API
- Recipients API
- Relations API
- Releases API
- Revenue API
- Revenue facts API
- Revenue sources API
- Runs API
- Sandbox shapes API
- Schedules API
- Scrubbing policies API
- Search API
- Search indexes API
- Secret versions API
- Secrets API
- Service enablements API
- Service observations API
- Services API
- Serving routes API
- Session events API
- Sessions API
- Signing key versions
- Signing keys
- Sms numbers API
- Source maps API
- Spaces API
- Store connections API
- Store consumption requests API
- Store purchases API
- Subscriptions API
- Suppressions API
- Tax threshold statuses API
- Templates API
- Test clocks API
- Token exchanges API
- Transfers API
- Trust policies API
- Trusted issuers API
- Uptime checks API
- Uptime manifests API
- Uptime sources API
- Usage events API
- Usage invoices API
- Usage meter prices API
- Usage meters API
- Usage reservations API
- Usage settings API
- Usage tiers API
- Volumes API
- Waits API
- Webhook deliveries API
- Webhook endpoints API
- Workflows API
Getting Started
Authentication
KV Store
Deploy & Infrastructure
Reference
Assets
An Asset is one declared asset and its generated variants.
An Asset is one declared asset and its generated variants. Its id is the 16-hex logical key of the recipe, so the same recipe is always the same Asset. There is no create, update or delete: the key is immutable, and :generate writes the record.
Service Sylphx Generated Assets · Resource type assets.sylphx.com/Asset · Name pattern orgs/{org}/projects/{project}/envs/{env}/assets/{asset} · Shape record
#Fields
| Field | Type | What it is |
|---|---|---|
name | string | orgs/{org}/projects/{project}/envs/{env}/assets/{asset}, where {asset} is the 16-hex logical key. |
uid | string | ast_<cell><ulid>; never reused. Output only. |
meta | ResourceMeta | Resource metadata. |
key | string | The logical key: 16 lowercase hex characters computed from the recipe. Output only. |
kind | AssetKind | What kind of asset this is. Output only. One of image, sfx, music, video, character, voice. |
recipe | AssetRecipe | The recipe the asset was declared with. Output only. |
canonical | string | The exact text the key is the hash of. Output only. |
variants_wanted | int32 | How many variants the recipe asks for. Output only. |
state | AssetState | Where the asset is in its life. Output only. One of pending, ready, approved, failed, refused, unsupported. |
conditions | Condition[] | Ready, Reconciling, Stalled. Output only. |
seed | string | The seed of the asset, a decimal integer as a string. Output only. |
variants | Variant[] | The stored variants, ordered by slot. Output only. |
create_time | timestamp | When the asset was first generated. Output only. |
update_time | timestamp | When the asset last changed. Output only. |
#Methods
Every method of the collection, in the registry's order, with the scope it needs. The full request, response and examples are one link away.
| Method | Call | What it does |
|---|---|---|
GET | get | Gets an asset. |
GET | list | Lists assets. The filter is limited to kind, state, and review_state. |
GET | export | Exports every servable variant in the environment as one flat, paged manifest, independent of the keys the code declares. Rejected and retired variants are left out unless filter asks for their review_state. The last page carries a digest a client checks to know it holds the whole set. |
POST | generate | Records the recipes as assets and generates the variants that are missing. Each call is idempotent and works within a bounded time; call again until pending is 0. |
POST | lock | Returns the assets.lock entries and canonical text for the keys the call names, and only those. A read with a request body, like a query. |
POST | approve_variant | Approves one variant and records who approved it. |
POST | reject_variant | Rejects one variant. Its slot is freed and the next :generate fills it; the rejected file keeps serving at its URL. |
POST | retire_variant | Retires one variant. Its URL answers 404 from then on and its slot is freed. |
#get
Gets an asset.
GET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/assets/asset · scope assets:read · effect read · Request, response and examples
#list
Lists assets. The filter is limited to kind, state, and review_state.
GET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/assets · scope assets:read · effect read · paginated · Request, response and examples
#export
Exports every servable variant in the environment as one flat, paged manifest, independent of the keys the code declares. Rejected and retired variants are left out unless filter asks for their review_state. The last page carries a digest a client checks to know it holds the whole set.
GET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/assets:export · scope assets:read · effect read · Request, response and examples
#generate
Records the recipes as assets and generates the variants that are missing. Each call is idempotent and works within a bounded time; call again until pending is 0.
POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/assets:generate · scope assets:write · effect write · Request, response and examples
#lock
Returns the assets.lock entries and canonical text for the keys the call names, and only those. A read with a request body, like a query.
POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/assets:lock · scope assets:read · effect read · Request, response and examples
#approve_variant
Approves one variant and records who approved it.
POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/assets/asset:approveVariant · scope assets:write · effect write · Request, response and examples
#reject_variant
Rejects one variant. Its slot is freed and the next :generate fills it; the rejected file keeps serving at its URL.
POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/assets/asset:rejectVariant · scope assets:write · effect write · Request, response and examples
#retire_variant
Retires one variant. Its URL answers 404 from then on and its slot is freed.
POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/assets/asset:retireVariant · scope assets:write · effect destructive · Request, response and examples