refresh_credits
Refill execution credits for quota-governed managed runtimes by submitting a device ID and billing period, with optional credits used since last refresh.
Instructions
Issue a compatibility credit batch to a quota-governed managed runtime. This exists for non-Algenta managed plans; Algenta editions are unmetered and do not need execution credits. Requires an API-key identity (api_key_identity_required otherwise) and a registered device_id. credits_used reports consumption since the last refresh and defaults to 0. Returns credits_granted, credits_issued_this_month, monthly_limit (0 means unlimited), monthly_remaining, expires_at, refresh_after, and server_time.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device_id | Yes | Registered device id the credits are issued to. | |
| credits_used | No | Credits consumed since the last refresh; defaults to 0. | |
| billing_period | Yes | Billing month in YYYY-MM form. |