Cost rates · Timeglass API
List Member Cost Rates
GET /v1/cost-rates
Returns every member except viewers with their cost rates, oldest first. Requires a key created with member cost rates included, by someone who is still a workspace admin. For a salaried member, hourly_rate is the hourly equivalent.
Query parameters
limit· integercursor· string
Response 200
data· array of object · requiredmember_id· string · requiredcost_rates· array of object · requiredkind· string · required · One of:hourly,salaryhourly_rate· number · requiredcurrency· string · requiredeffective_from· string · required
next_cursor· string,null · required
curl "https://api.timeglass.ai/v1/cost-rates" \
-H "Authorization: Bearer $TIMEGLASS_API_KEY"
Get a Member's Cost Rates
GET /v1/members/{memberId}/cost-rates
Returns the member with their cost rates, oldest first. Requires a key created with member cost rates included, by someone who is still a workspace admin. For a salaried member, hourly_rate is the hourly equivalent.
Path parameters
memberId· string · required
Response 200
member_id· string · requiredcost_rates· array of object · requiredkind· string · required · One of:hourly,salaryhourly_rate· number · requiredcurrency· string · requiredeffective_from· string · required
curl "https://api.timeglass.ai/v1/members/4bfe4a4b-c86b-4b8e-b3f5-3d1c4a2e9f10/cost-rates" \
-H "Authorization: Bearer $TIMEGLASS_API_KEY"
Set a Member's Cost Rate From a Date
POST /v1/members/{memberId}/cost-rates
Requires a key with the read_write scope.
Requires a key created with member cost rates included, by someone who is still a workspace admin. Sets the hourly cost rate, in the workspace currency, that applies from effective_from (YYYY-MM-DD) until the member's next rate. A rate already on that date is replaced, and sending the same rate again changes nothing. A different rate on a salaried member's date replaces the salary with an hourly rate. A member's earliest rate also covers their earlier work, and changing a past rate changes cost figures for time already recorded.
Path parameters
memberId· string · required
Request body
hourly_rate· number · requiredeffective_from· string · required
Response 200
member_id· string · requiredcost_rates· array of object · requiredkind· string · required · One of:hourly,salaryhourly_rate· number · requiredcurrency· string · requiredeffective_from· string · required
curl -X POST "https://api.timeglass.ai/v1/members/4bfe4a4b-c86b-4b8e-b3f5-3d1c4a2e9f10/cost-rates" \
-H "Authorization: Bearer $TIMEGLASS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"hourly_rate": 0,
"effective_from": "string"
}'