Credit history
Your credit history, newest first. Page with `next_cursor`.
/api/v1/credits/ledgerYour credit history, newest first. Page with `next_cursor`.
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query parameters
limitintegerPage size, 1 to 200. Default 50.
cursorstring`next_cursor` from the previous page.
Responses
A page of ledger entries.
entriesobject[]next_cursoranySomething refused the request. Every value of `error.code`, and of the `reveal_code` / `hold_code` a refused write adds, is enumerated in the schema — read them there rather than from this sentence. A 429 carries `Retry-After` alongside the same `X-RateLimit-*` headers every other response has. A 405 carries `Allow`.
errorobjectrequiredSomething refused the request. Every value of `error.code`, and of the `reveal_code` / `hold_code` a refused write adds, is enumerated in the schema — read them there rather than from this sentence. A 429 carries `Retry-After` alongside the same `X-RateLimit-*` headers every other response has. A 405 carries `Allow`.
errorobjectrequiredSomething refused the request. Every value of `error.code`, and of the `reveal_code` / `hold_code` a refused write adds, is enumerated in the schema — read them there rather than from this sentence. A 429 carries `Retry-After` alongside the same `X-RateLimit-*` headers every other response has. A 405 carries `Allow`.
errorobjectrequiredSomething refused the request. Every value of `error.code`, and of the `reveal_code` / `hold_code` a refused write adds, is enumerated in the schema — read them there rather than from this sentence. A 429 carries `Retry-After` alongside the same `X-RateLimit-*` headers every other response has. A 405 carries `Allow`.
errorobjectrequiredSomething refused the request. Every value of `error.code`, and of the `reveal_code` / `hold_code` a refused write adds, is enumerated in the schema — read them there rather than from this sentence. A 429 carries `Retry-After` alongside the same `X-RateLimit-*` headers every other response has. A 405 carries `Allow`.
errorobjectrequiredcurl --request GET \
--url "https://getrevised.com/api/v1/credits/ledger" \
--header "Authorization: Bearer YOUR_API_KEY"const res = await fetch("https://getrevised.com/api/v1/credits/ledger", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_API_KEY"
},
});
const data = await res.json();import requests
headers = {
"Authorization": "Bearer YOUR_API_KEY",
}
r = requests.get("https://getrevised.com/api/v1/credits/ledger", headers=headers)
r.raise_for_status()
data = r.json(){
"entries": [],
"next_cursor": {}
}{
"error": {
"available_at": "2023-11-07T05:31:56Z",
"code": "conflict",
"credits_needed": 123,
"credits_remaining": 123,
"expires_at": "2023-11-07T05:31:56Z",
"hold_code": "ALREADY_EXTENDED",
"limit": 123,
"message": "<string>",
"resets_at": "2023-11-07T05:31:56Z",
"reveal_code": "FEATURED_REQUIRES_PRO"
}
}{
"error": {
"available_at": "2023-11-07T05:31:56Z",
"code": "conflict",
"credits_needed": 123,
"credits_remaining": 123,
"expires_at": "2023-11-07T05:31:56Z",
"hold_code": "ALREADY_EXTENDED",
"limit": 123,
"message": "<string>",
"resets_at": "2023-11-07T05:31:56Z",
"reveal_code": "FEATURED_REQUIRES_PRO"
}
}{
"error": {
"available_at": "2023-11-07T05:31:56Z",
"code": "conflict",
"credits_needed": 123,
"credits_remaining": 123,
"expires_at": "2023-11-07T05:31:56Z",
"hold_code": "ALREADY_EXTENDED",
"limit": 123,
"message": "<string>",
"resets_at": "2023-11-07T05:31:56Z",
"reveal_code": "FEATURED_REQUIRES_PRO"
}
}{
"error": {
"available_at": "2023-11-07T05:31:56Z",
"code": "conflict",
"credits_needed": 123,
"credits_remaining": 123,
"expires_at": "2023-11-07T05:31:56Z",
"hold_code": "ALREADY_EXTENDED",
"limit": 123,
"message": "<string>",
"resets_at": "2023-11-07T05:31:56Z",
"reveal_code": "FEATURED_REQUIRES_PRO"
}
}{
"error": {
"available_at": "2023-11-07T05:31:56Z",
"code": "conflict",
"credits_needed": 123,
"credits_remaining": 123,
"expires_at": "2023-11-07T05:31:56Z",
"hold_code": "ALREADY_EXTENDED",
"limit": 123,
"message": "<string>",
"resets_at": "2023-11-07T05:31:56Z",
"reveal_code": "FEATURED_REQUIRES_PRO"
}
}