Skip to main content

Get Mineral Compositions

Method: GET
/api/v1/mineral-compositions


Description

This endpoint retrieves a list of mineral compositions. You can filter the results by mineral composition status, byproduct type, and sort order.


🔑 Authentication

This endpoint requires authentication via headers.

ParamValueType
tenantId{{tenantId}}string
userId{{userId}}string
countryCode{{countryCode}}string

Query Parameters

NameTypeDescription
activeMineralCompositionstringFilter by active mineral composition (Available values: 0, 1).
mineralCompositionByproductTypeIdsstringFilter by byproduct type IDs.
orderstringSort results in ascending (ASC) or descending (DESC) order.
pagestringSpecify the page number for paginated results.
limitstringSpecify the number of results per page.

Response: 200 OK

A successful response returns a list of mineral compositions with their details.

Example Response:

[
{
"compositionId": "12345",
"name": "Iron Ore",
"description": "High-grade iron ore",
"active": 1,
"byproductType": "Mineral",
"createdAt": "2025-02-12T04:04:39.986Z"
},
{
"compositionId": "67890",
"name": "Copper",
"description": "Pure copper",
"active": 1,
"byproductType": "Metal",
"createdAt": "2025-02-10T11:22:30.000Z"
}
]

LANGUAGE

AUTHORIZATION

Bearer

CURL REQUEST


curl --request GET \ 
--url /api/v1/mineral-compositions \
--header 'accept: application/json' \
--header 'content-type: application/json'

RESPONSE


Click Try It! to start a request and see the response here!