Actions28
- Asset Actions
- Availability Exception Actions
- Event Actions
- Image Actions
- Listing Actions
- Marketplace Actions
- Stock Actions
- Transaction Actions
- User Actions
Asset → Get
AI-generatedSummary
Fetch a Sharetribe asset by category, optionally by version, with filters for fields like email texts and translations.
Inputs
- assetCategory (required) — Category of asset to retrieve, chosen from predefined options such as '/content/email-texts.json' or '/listings/listing-types.json'.
- assetPage (required) — Page name or ID to retrieve; for content-pages this selects a specific custom marketplace page.
- accessType — Version selection mode: 'alias' for latest version or 'version' for a specific version ID.
- versionOrAlias — Specific version ID when accessType is 'version'; ignored when using 'alias'.
- enableEmailTextsFilter — When fetching email-texts asset, filter returned fields by name.
- emailTextsFilterKeys — List of field names to include when emailTextsFilter is enabled.
- emailTextsCustomFilter — Comma‑separated patterns for case‑insensitive partial matching of field names.
- enableTranslationsFilter — When fetching translations asset, filter returned fields by name.
- translationsFilterKeys — List of translation field names to include when translationsFilter is enabled.
- translationsCustomFilter — Comma‑separated patterns for partial matching of translation field names.
Output shape
a single asset record (JSON object) representing the requested asset version.
Returns the latest version by default; if accessType='version' returns that exact version. Some filter fields are optional and may be omitted.
Examples
Example 1: Get the latest email‑texts asset and include only 'subject' and 'body' fields.
assetCategory: '/content/email-texts.json', assetPage: '', accessType: 'alias', enableEmailTextsFilter: true, emailTextsFilterKeys: ['subject','body']
Example 2: Retrieve a specific version of a custom marketplace page.
assetCategory: '/content/pages', assetPage: 'about', accessType: 'version', versionOrAlias: '8oxjntPCtFlM0w8OXZzA9Q'