Materials represent the raw materials and fabrics used in your products. Materials can reference certifications, track recyclability status, and specify country of origin for transparency.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Avelero/avelero/llms.txt
Use this file to discover all available pages before exploring further.
List materials
Retrieve all materials for your brand with usage metrics.Response
Returns an array of materials with product usage counts:Array of material objects
Unique identifier (UUID)
Material name (e.g., “Organic Cotton”, “Recycled Polyester”)
UUID of associated certification (if certified)
Whether the material is recyclable
true: Recyclablefalse: Not recyclablenull: Unknown/not specified
ISO 3166-1 alpha-2 country code (e.g., “US”, “GB”, “IT”)
Number of products using this material (includes both product-level and variant-level usage)
ISO 8601 timestamp
ISO 8601 timestamp
The
products_count metric aggregates unique products that use this material, whether attached at the product level or variant level.Create material
Create a new material entry.Request
Material name (1-100 characters)Examples: “Organic Cotton”, “Recycled Polyester”, “Merino Wool”, “Hemp Blend”
UUID of a certification from your brand’s certifications catalogLinks this material to a certification (e.g., GOTS, OEKO-TEX, Fair Trade).
Whether the material is recyclableLeave unset if recyclability is unknown or not applicable.
ISO 3166-1 alpha-2 country code (2 uppercase letters)Examples:
"US", "GB", "IT", "IN", "CN"Response
Validation rules
nameis required and must be 1-100 characters- Material names must be unique per brand (case-sensitive)
certification_idmust reference an existing certification if providedcountry_of_originis automatically converted to uppercasecountry_of_originmust be exactly 2 characters
Error handling
Update material
Update an existing material.Request
Material ID (UUID)
New material name (1-100 characters)
Update or clear certification link
- Pass a UUID to link a certification
- Pass
nullto remove the certification link - Omit to leave unchanged
Update recyclability status
- Pass
trueorfalseto set status - Pass
nullto clear/unset - Omit to leave unchanged
Update or clear country of origin
- Pass a 2-letter country code to set
- Pass
nullto clear - Omit to leave unchanged
Response
Only provided fields are updated. Omitted fields remain unchanged. To explicitly clear a nullable field, pass
null.Error handling
Delete material
Delete a material from your catalog.Request
Material ID (UUID)
Response
Error handling
TypeScript types
All procedures are fully typed when using the tRPC client:Schema types
Common patterns
Creating certified sustainable materials
Finding materials by usage
Filtering by attributes
Updating certification links
Integration with products
Materials can be attached to products at two levels:Product-level materials
When all variants share the same materials:Variant-level materials
When different variants use different materials:products_count metric in the list response aggregates both levels, counting unique products.