Tutorials →
Get file metadata (mass, volume)
The sample code below reads an OBJ file to get the mass and volume of the object.
The sample below assumes you have exported your API token as an environment variable like so.
export KITTYCAD_API_TOKEN="YOUR-API-TOKEN"
Replace YOUR-API-TOKEN
with one of your API tokens. It looks like you need to generate an API Token first.
Below is our API-client code: