concept call in category api

This is an excerpt from Manning's book Irresistible APIs: Designing web APIs that developers will love.
Another great example is Twilio. It has a goal of making it possible for any new developer to be able to make a call to its API in less than five minutes. Although this isn’t possible for every API, it’s a great goal to strive for when creating your “getting started” documentation.
Reference documentation— “What does it do?” This is the documentation you’re probably expecting to need. You’ll be answering more specific questions such as “What does each endpoint of the platform do?” “How does a developer call it?” and “What is the expected response to a call?”
Consoles are great, but the utility is pretty much bounded in the web page. It’s not possible to interact with the input/output without copying and pasting. If a developer can successfully make the call from the command line, it becomes much easier to grab the result and stick it in a file or process it with a local script. There are two main command-line utilities for making HTTP calls:
curl—The curl command is the old standby. Most developers and system administrators are familiar with the curl command as a way to request web pages. It can, and does, get used to scrape web pages and is quite useful for grabbing HTML files in order to process them. But it’s not tuned for API use, and the output formatting makes it difficult to visually parse the response for a request to a JSON-formatted REST API call. Additionally, creating a custom authorization module is not straightforward, and so companies frequently “wrap” curl to include the authentication in the calls (which means the credentials are likely to be passed on the command line).