GET
Get current user credits

Authorizations

Authorization
string
header
required

Bearer token for authentication. Format: 'Bearer {token}'

Response

Get current user credits

Api_V1_Entities_Credit model

credit_balance_in_cents
integer<int32>
required

Your own credits, in cents. They pay for nothing until you transfer them to a workspace with POST /workspace/credits/transfer

credit_balance_formatted
string
required

Formatted credit balance

referral_code
string
required

User's referral code

referral_percentage
integer<int32>
required

Referral credit percentage

credit_operations
any[]
required

Your credit operations, newest first. operation_type is earned (from a referral), promotion (for a post about Miget), adjustment (a correction by Miget) or transferred_out (moved to a workspace); deducted and spent_on_usage are payments made from your credits before they moved to workspaces