In plain words
API docs are the manual a service publishes for its API: every address it answers, the method, the required fields, which key to send and what errors come back.
Where you see it
Stripe's API reference is typical: one page per action, such as Create a refund, with the parameters down the middle and an example request and response on the right. Many docs sites now also offer a Markdown copy or an llms.txt file written for agents.
What goes wrong
- Trusting the agent's memory of an API
Agents learned most APIs a year or more ago, and fields get renamed or retired. Give it the docs page for the version you're on.
- Missing the units
Stripe and many payment APIs take amounts in the smallest unit, so 1000 means $10.00. Read the field's description, not only its name.
amount: 25 // 25 cents, not 25 dollars - Skipping the errors and limits
Docs list the errors you'll get and how many requests you may send per second. Code written from the happy-path example breaks on the first 429, the code for too many requests.
What to tell your agent
Quick check
Sign in to earn +10 XP for itQuickBite refunds a $25.00 order through Stripe, and the customer gets 25 cents back. What happened?