APICost type

Get a cost type

GET
/public/v1/cost-types/{id}

Get a single cost type by ID. Returns 404 if no cost type with that ID exists in your company or if it has been soft-deleted. Inactive (but not deleted) cost types are still returned.

Required permission: costs_permissions_manage_cost_types.

Authorization

Bearer
headerAuthorizationBearer <token>

API token generated in Distru (Settings → Distru API). Send it on every request as Authorization: Bearer YOUR_API_TOKEN.

Path Parameters

id*string

ID of the cost type to fetch.

Response Body

A single cost type

*/*
  1. response

A single cost type

data?

A cost type

Example Request
curl -X GET 'https://app.distru.com/public/v1/cost-types/00000000-0000-0000-0000-000000000010'
Example Response
{  "data": {    "active": true,    "allow_inline_edits": true,    "cost_per_unit": "25.5",    "deleted_at": null,    "description": null,    "id": "00000000-0000-0000-0000-000000000010",    "inserted_datetime": "2026-08-24T16:01:03.662817Z",    "name": "Freight",    "unit_type": {      "id": "00000000-0000-0000-0000-000000000ab5",      "name": "Unit Type 16"    },    "updated_datetime": "2026-08-24T16:01:03.662817Z"  }}