Skip to main content
GET
/
api
/
v1
/
credits
Get credits
curl --request GET \
  --url https://api.myrouter.example/api/v1/credits \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "total_credits": "<string>",
    "total_usage": "<string>",
    "remaining_credits": "<string>",
    "currency": "<string>",
    "updated_at": "2023-11-07T05:31:56Z"
  },
  "request_id": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-request-id
string

Optional caller request id.

Response

Get credits response.

data
object
required
request_id
string

Request id.