Materials
API endpoints for managing materials
GET /materials
Fetch All Materials
Endpoint
Description
Request
Headers
Name
Type
Description
Response
Field
Type
Description
Field
Type
Description
Example
Notes
Authorizations
AuthorizationstringRequired
Enter token in format (Bearer <your_token>)
Query parameters
per_pageintegerOptionalExample:
Number of items per page (-1 for all)
25pageintegerOptionalExample:
Number of page
2order_bystringOptionalExample:
Field to order by
created_atorderstring · enumOptionalExample:
Sorting order (asc or desc)
descPossible values: category_idintegerOptionalExample:
Filter materials by category ID
5texture_idintegerOptionalExample:
Filter materials by texture ID
2Responses
200
Successful response
application/json
401
Unauthorized
500
Internal Server Error
get
/api/open-api/v1/materialsGET /materials/{id}
Get Material by ID Endpoint
Authorizations
AuthorizationstringRequired
Enter token in format (Bearer <your_token>)
Path parameters
idinteger · int64Required
ID of the material
Responses
200
Successful response
application/json
401
Unauthorized
404
Material not found
500
Internal Server Error
get
/api/open-api/v1/materials/{id}Authorizations
AuthorizationstringRequired
Enter token in format (Bearer <your_token>)
Query parameters
order_bystringOptionalExample:
Column to order the results by (default: created_at)
nameorderstring · enumOptionalExample:
Order direction (asc or desc, default: desc)
ascPossible values: Responses
200
Successful response
application/json
401
Unauthorized
500
Internal Server Error
get
/api/open-api/v1/materials-categories/listLast updated