Skip to main content
GET
Get costs

Authorizations

Authorization
string
header
required

Send Authorization: Bearer <credential> to https://customer-api.mountthor.com. People use the session that mthr login stores (a token starting mt_session_, valid for up to 12 hours). Automation uses a service-account credential (starting mt_sa_v1_, valid for 90 days) from Create credential. Each operation names the permission it needs. Service accounts hold permissions through custom roles, and some operations refuse them; those operations say so.

Query Parameters

period
string
required

current (the current calendar month) or a past month as YYYY-MM.

Response

OK

period_start
string<date-time>

Start of the period covered (inclusive). The period ends at period_end, never later than now.

period_end
string<date-time>
requested
string

The canonicalized requested period (current or YYYY-MM).

line_items
object[]

Itemized lines, meter-ordered for stable client rendering.

total
object

Sum of amount across all priced lines.