{ "opencollection": "1.0.0", "info": { "name": "AI Service Actions Credits API", "version": "1.0.0" }, "items": [ { "info": { "name": "Credits", "type": "folder" }, "items": [ { "info": { "name": "Show consumed and remaining credits.", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/credits", "headers": [ { "name": "X-StorageApi-Token", "value": "1234-567890abcdefghjkl" } ] }, "docs": "Show consumed and remaining credits of the project, identified by the Storage API token.\n" }, { "info": { "name": "Show consumed and remaining credits with optional top-up.", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/credits", "headers": [ { "name": "X-StorageApi-Token", "value": "1234-567890abcdefghjkl" } ] }, "docs": "Show consumed and remaining credits of the project, identified by the Storage API token. If the credit balance\n is zero or negative, then an automatic top-up is attempted. If it succeeds, the new credit balance is returned.\n" } ] } ], "bundled": true }