Account and credits
prism_get_accountReturns this Prism account's credits and prices: credits remaining, the price per contract ($0.50), whether an Unlimited subscription covers everything, and how many contracts were added this month. creditStatus is unlimited, ok, low (2 or fewer left) or empty -- check it before a batch and, when it is low or empty, ask your user before calling prism_buy_credits. purchaseOptions says whether that returns a checkout link for your user, a purchase URL an agent wallet can pay, or both.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pricing | Yes | ||
| nextStep | Yes | What the agent should do next, in plain words; null when nothing is needed. A step that would spend credits or money says to ask your user first: do not take it on your own. | |
| creditStatus | Yes | Where the account's credits stand: unlimited (subscription), ok, low (2 or fewer left), or empty (none; unlocking a preview that withholds facts returns code insufficient_credits). | |
| purchaseOptions | Yes | Which ways of buying credits are available right now. | |
| creditsRemaining | Yes | ||
| lowCreditThreshold | Yes | creditStatus is low at this many credits or fewer. | |
| monthlyContractLimit | Yes | ||
| unlimitedSubscription | Yes | Whether an Unlimited subscription covers every contract. | |
| contractsAddedThisMonth | Yes |