# 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.

```bash
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](https://www.ask-codey.com/glossary/subjects/rest-api/apprentice)

Updated: September 27, 2026

Source: https://www.ask-codey.com/glossary/curl-for-apis
