GET
/
timesheets
/
cost-codes
cURL
curl --request GET \
  --url https://api.buildpass.global/timesheets/cost-codes \
  --header 'Authorization: Bearer <token>' \
  --header 'X-BuildPass-Api-Version: <x-buildpass-api-version>' \
  --header 'X-BuildPass-Builder-Id: <x-buildpass-builder-id>'
{
  "data": [
    {
      "id": "tscc_clgbsb90b001qjy0f0eo1hspp",
      "code": "001",
      "description": "Concrete Foundation"
    }
  ]
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

X-BuildPass-Builder-Id
string
required

Call the /builders endpoint to get a builder ID

Example:

"buil_clgbsb90b001qjy0f0eo1hspp"

X-BuildPass-Api-Version
enum<string>
default:v1
required

What API version to use.

Available options:
v1
Example:

"v1"

Response

200
application/json

A list of timesheet cost codes

The response is of type object.