Get user credits
GET/v2/me/credits
Get information about the current user's credits
Request
Header Parameters
Custom User-Agent for your application, see user-agent.dev for implementation examples. Alternatively you can also use the 'MineSkin-User-Agent' header.
API key from account.mineskin.org
Responses
- 200
- 403
- 404
Credits Info
- application/json
- Schema
- Example (from schema)
Schema
credit
object
required
Credits information
current
object
Current credits used for this API key. May be empty if the API key has no credits (see returned warnings).
Type of credits
paid
Current balance
397
Total credits
500
all
object
All credits available for the current user
Total balance
5839
Total credits
10000
{
"credit": {
"current": {
"type": "paid",
"balance": 397,
"total": 500
},
"all": {
"balance": 5839,
"total": 10000
}
}
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Array [
]
Array [
]
false
errors
object[]
warnings
object[]
messages
object[]
links
object
Links to related resources
{
"success": false,
"errors": [
{
"code": "generic_error",
"message": "Something went wrong"
}
],
"warnings": [
{
"code": "string",
"message": "string"
}
],
"messages": [
{
"code": "string",
"message": "string"
}
],
"links": {
"self": "string"
}
}
Not Found
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Array [
]
Array [
]
false
errors
object[]
warnings
object[]
messages
object[]
links
object
Links to related resources
{
"success": false,
"errors": [
{
"code": "generic_error",
"message": "Something went wrong"
}
],
"warnings": [
{
"code": "string",
"message": "string"
}
],
"messages": [
{
"code": "string",
"message": "string"
}
],
"links": {
"self": "string"
}
}