Skip to main content
GET
Get Materials

Authorizations

Authorization
string
header
required

A JWT Bearer token header for authentication and authorization, in the format Authorization: Bearer <token>

Headers

x-client-secret
string
required

A secret token identifying the client connecting to the API

Example:

"Syou3EZiO5vuMEgNyBeA8cjEMYOnQDwP"

Path Parameters

project_id
string
required
Required string length: 20 - 37
Examples:

"prj_1CTWZQGKE1S0VAXA"

"prj_1E0QTWB22SBX34D1"

Query Parameters

material_type
string | null

The type of the material. Use GET /projects/{project_id}/supported_material_types to discover which types are valid for your project.

Example:

"hfc_ods_container"

supplier_reference_id
string | null

A string that must be unique for all resources created by a specific supplier. It can be used by a client to identify the correct objects in their system.

Required string length: 1 - 200
last
integer
default:10

An integer number of items to retrieve before the item represented by the cursor passed in the before parameter. Defaults to 10 with a maximum value of 50.

Required range: x <= 50
before
string | null

An opaque cursor representing the first item in the previously requested page to select items ordered before it. Submit the previously requested page’s start_cursor here when paginated backwards.

Minimum string length: 1
first
integer
default:10

An integer number of items to retrieve after the item represented by the cursor passed in the after parameter. Defaults to 10 with a maximum value of 50.

Required range: x <= 50
after
string | null

An opaque cursor representing the last item in the previously requested page to select items ordered after it. Submit the previously requested page’s end_cursor here when paginated forwards.

Minimum string length: 1
related_site_id
string[] | null

Return only assets related to this site. Repeat the parameter to match any of several sites, which must all have the same site type.

Required string length: 20 - 37
related_activity_id
string[] | null

Return only assets related to this activity. Repeat the parameter to match any of several activities, which must all have the same activity type.

Required string length: 20 - 37
related_material_id
string[] | null

Return only assets related to this material. Repeat the parameter to match any of several materials, which must all have the same material type.

Required string length: 20 - 37

Response

Successful Response

nodes
Material · object[]
required
page_info
PageInfo · object
required
total_count
integer
required