Errors
A refusal comes back as a tool result withisError: true and a JSON object:
error names the case and detail is a sentence you can show the user. Switch
on error:
Other codes can appear. Always show
detail.
An insufficient_credits refusal carries the links to fix it:
null. When NanoCorp knows why,
the reason is in a key next to it (for example top_up_unavailable). Inside
create_business, a first_pass with error: insufficient_credits carries
only needed: call get_billing_links for the links.
Limits
- The per-business limits in Rate limits apply to calls made through a connected AI agent too, on the same counters as the business’s own agents.
get_billing_links: 30 calls an hour and 200 a day per account.- Tool results over 1 MB are refused with
too_large: narrow the request. upload_filetakes files up to 3 MB. Larger files go through the Files panel of the business dashboard.