Get your account
Returns what the API currently knows about your own account: profile fields including base_currency (the currency your calculations convert into; null means USD), the subscription active at the moment of the request (null when none), and your credit counters.
GET /me
Returns what the API currently knows about your own account: profile fields including base_currency (the currency your calculations convert into; null means USD), the subscription active at the moment of the request (null when none), and your credit counters.
credit.totalis every credit granted to the account,credit.usedwhat has been consumed, andcredit.remainingthe difference, never below0.- These are the figures billing is applied against. They follow changes made in the dashboard within about a minute.
A 404 means your account has not reached the API yet; retry shortly.
Usage
| Name | Description |
|---|---|
| Authentication | API key required |
| Credit cost | Free |
| Recommended interval | 60 seconds |
Responses
| Status | Description | Schema |
|---|---|---|
200 | Successful Response | Envelope_SyncUserView_ |
401 | Authentication is missing or invalid | ErrorEnvelope |
403 | The credential is valid but not allowed to call this operation | ErrorEnvelope |
404 | The requested resource does not exist | ErrorEnvelope |
503 | The service is temporarily unavailable; retry later | ErrorEnvelope |
Models
CreditMeta
Credit accounting for a billable request.
| Field | Type | Required | Description |
|---|---|---|---|
cost | integer | Yes | Credits this request costs. |
remaining | integer | Yes | Estimated credit balance left after this request. A hint rather than a ledger: concurrent requests can make it slightly off. |
Envelope_SyncUserView_
| Field | Type | Required | Description |
|---|---|---|---|
data | SyncUserView | Yes | The endpoint payload. |
meta | Meta | Yes | Request metadata. |
ErrorBody
Details of a failed request.
| Field | Type | Required | Description |
|---|---|---|---|
code | string | Yes | Stable machine-readable error code. Branch on this value, not on message. |
message | string | Yes | Human-readable explanation. The wording may change. |
details | object or null | No | Optional structured context, such as the list of validation errors or, for credit_insufficient, the required and remaining credits. |
ErrorEnvelope
Error response: the error in error plus request metadata in meta.
Meta
Request metadata included in every enveloped response.
| Field | Type | Required | Description |
|---|---|---|---|
request_id | string | Yes | Unique identifier of this request, identical to the X-Request-ID response header. Quote it when contacting support. |
billable | boolean or null | No | Whether the request is billed in credits. Present only on metered endpoints; false means the request is free, for example because it costs nothing or your subscription covers it. |
credit | CreditMeta or null | No | Cost of the request and your estimated remaining balance. Present only when billable is true. |
page | PageMeta or null | No | Paging state. Present only on a response that lists a page. |
PageMeta
Where a paged list stands after this page.
| Field | Type | Required | Description |
|---|---|---|---|
limit | integer | Yes | Page size actually applied to this request. |
has_next | boolean | Yes | Whether another page follows. |
next_cursor | string or null | Yes | Pass it back unchanged as cursor to get the next page; null once the list is complete. |
SyncCredit
Credit counters of the account: granted, consumed and remaining.
| Field | Type | Required | Description |
|---|---|---|---|
total | integer | Yes | Credits granted to the account so far. |
used | integer | Yes | Credits consumed so far. |
remaining | integer | Yes | Credits left: total minus used, never below 0. |
SyncSubscription
The subscription active at the moment of the request. When several overlap, the one that expires last is returned.
| Field | Type | Required | Description |
|---|---|---|---|
category | string | Yes | Subscription category. |
plan_id | string | Yes | Subscribed plan. |
expires_at | string | Yes | When the subscription ends (RFC 3339, UTC). |
SyncUser
Profile fields of a cs.cheap account as the API currently knows them. A missing value is null; a null base_currency means the user never chose one and USD applies.
| Field | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Account id. |
name | string or null | No | Display name. |
email | string or null | No | E-mail address. |
email_verified | boolean or null | No | Whether the e-mail address is verified; null if unknown. |
image | string or null | No | Avatar image URL. |
steam_id | string or null | No | Linked Steam account id (SteamID64). |
created_at | string or null | No | When the account was created (RFC 3339, UTC). |
base_currency | string or null | No | Currency the account's calculations convert into (ISO 4217 code), and the default currency of the price endpoints; null means USD. |
SyncUserView
One account's profile, active subscription and credit balance.
| Field | Type | Required | Description |
|---|---|---|---|
user | SyncUser | Yes | Profile of the account. |
subscription | SyncSubscription or null | Yes | The subscription active right now; null when there is none. |
credit | SyncCredit | Yes | Credit counters of the account. |