API reference
Credits
Read total credits and usage.
GET /credits returns the account total credits and total usage.
Request
http
GET https://plaingateway.com/api/v1/credits Authorization: Bearer sk-pg-v1-...
Response
http
HTTP/1.1 200
{
"data": {
"total_credits": 50,
"total_usage": 50.177992694
}
}