curl for APIs

A command-line tool for sending HTTP requests.

What does curl for APIs do?

curl sends HTTP requests from the command line. -X sets the method, -H adds a header, -d sends a body, -i shows the response headers.

curl -i -X POST https://api.example.com/login \
  -H "Content-Type: application/json" \
  -d '{"email":"ana@example.com","password":"..."}'

Level: Apprentice · More REST API terms at this level

Updated