# apic > apic is epic: run API requests from plain .http files, in the terminal, in CI, or from an AI agent, on any platform, with one static binary. Every page of apic.sh, the documentation for the apic CLI, grouped and ordered as the sidebar has them. Pages link to each other; the CLI reference and the `.http` format guide are the two most agents need, and the agents page is the contract for driving apic from one. The whole site as one Markdown document: https://apic.sh/llms-full.txt ## Start - [apic is epic](https://apic.sh/): Run API requests from plain .http files, in the terminal, in CI, or from an AI agent, on any platform, with one static binary. - [Getting started](https://apic.sh/getting-started/): Install apic, describe an API in .http files, log in once and reuse the token, wire it into CI and hand the same files to an AI agent, in about ten minutes. - [The terminal UI](https://apic.sh/tui/): apic ui, the terminal UI: browse requests, send them, read the response, the checks, the session and the history, with every key and flag explained. - [Cheat sheet](https://apic.sh/cheatsheet/): Every directive, variable source, selector, assertion operator, auth type, command and exit code apic understands, on one page. ## Learn - [From zero to apic](https://apic.sh/learn/): From zero to apic, a course in fourteen short lessons that takes you from nothing installed to running, testing and automating an API from .http files. - [Lesson 0: What apic is and why](https://apic.sh/learn/00-what-is-apic/): Lesson 0: the problem apic solves, what it is and is not, and what the course builds. - [Lesson 1: Install apic and send your first request](https://apic.sh/learn/01-first-request/): Lesson 1: install apic, try apic ui --demo, read the anatomy of a .http file, and use run, list, describe and the exit codes. - [Lesson 2: Variables and environments](https://apic.sh/learn/02-variables-and-environments/): Lesson 2: every place a {{variable}} can come from, environment files, secrets, --var and APIC_VAR_, and the precedence order. - [Lesson 3: Capture, the session and flows](https://apic.sh/learn/03-capture-session-flows/): Lesson 3: capture a value from a response, reuse it from the session in any later command, and run a whole file as a flow with # @ref. - [Lesson 4: Assertions, validation and polling](https://apic.sh/learn/04-assertions/): Lesson 4: assert on status, headers and JSON with selectors and operators, read a failure, validate a project, and poll with # @retry. - [Lesson 5: The terminal UI tour](https://apic.sh/learn/05-terminal-ui/): Lesson 5: drive a whole project from apic ui, with every key that has a purpose: run, read, check, edit, reload. - [Lesson 6: Authentication](https://apic.sh/learn/06-authentication/): Lesson 6: attach credentials with # @auth per request and per project: bearer, basic, API keys, OAuth2, AWS SigV4 and exec. - [Lesson 7: Behaviour tests with Gherkin](https://apic.sh/learn/07-gherkin/): Lesson 7: declare # @step phrases on requests, write a .feature file with the built-in vocabulary, run it and read the report. - [Lesson 8: CI without leaking secrets](https://apic.sh/learn/08-ci/): Lesson 8: run a smoke flow and a feature suite in GitHub Actions with the secret from the environment, --redact and a JUnit report. - [Lesson 9: From OpenAPI to a project, and back to curl](https://apic.sh/learn/09-import-export/): Lesson 9: turn an OpenAPI document, a Postman collection or a curl command into a project, run the draft against a mock of the document, tidy it, and export a curl command back out. - [Lesson 10: Agents and MCP](https://apic.sh/learn/10-agents/): Lesson 10: let an AI agent discover, describe and run your requests through the shell contract, --json and the MCP server, without handing it a secret. - [Lesson 11: Real APIs and the Taskfile front door](https://apic.sh/learn/11-real-apis/): Lesson 11: run the three example projects against real services, keep credentials out of git, and make task the way the team runs it. - [Lesson 12: Editors](https://apic.sh/learn/12-editors/): Lesson 12: send the same request from VS Code, a JetBrains IDE, Neovim and apic run, and know what each one ignores in the file. - [Lesson 13: How apic works inside, and your first contribution](https://apic.sh/learn/13-inside-apic/): Lesson 13: follow a request through the packages, the three contracts every change is checked against, and a first contribution end to end. ## Guides - [The .http format apic understands](https://apic.sh/format/): The .http request format apic runs: structure, # @directives, variables and their precedence, selectors, assertion operators, flows, dependencies, retries and cookies. - [Authentication](https://apic.sh/auth/): Attach credentials with # @auth or auth.default: bearer, basic, API key, digest, OAuth2 with caching and refresh, AWS SigV4, any CLI that prints a token, and TLS client certificates. - [Testing with Gherkin features](https://apic.sh/testing/): apic test runs Gherkin .feature files against your .http requests with a built-in step vocabulary, no Cucumber runtime, and JUnit and cucumber reports. - [Cookbook](https://apic.sh/cookbook/): Worked recipes for the jobs that come up most: real APIs, tokens, CRUD flows, polling, uploads and downloads, redirects, secrets in CI, agents and imports. - [Using apic from an AI agent](https://apic.sh/agents/): Drive an API from an AI agent with apic: the shell contract, stable --json output, exit codes, the error catalogue, the MCP server and the Agent Skill. - [Editors](https://apic.sh/editors/): What VS Code, JetBrains IDEs and Neovim give you for .http files, and what the apic extension and apic lsp add on top. - [Using apic with Taskfile](https://apic.sh/taskfile/): Make Task the front door for an apic project: tasks that run requests and flows, with the environment and secrets handled in one place. - [Migrating from Postman](https://apic.sh/migrate/postman/): Move a Postman collection to apic in one command: what apic import translates, what it lists as untranslated, and how to finish by hand. - [Migrating from Bruno](https://apic.sh/migrate/bruno/): Move a Bruno collection to apic: how the concepts map, block by block, with a worked example. - [Migrating from Hurl](https://apic.sh/migrate/hurl/): Move Hurl files to apic: how sections become # @ directives, what changes for the better, and what does not carry across. - [Migrating from httpyac](https://apic.sh/migrate/httpyac/): Run an httpyac project under apic: what runs unchanged, and how to replace script blocks, ?? tests and the directives apic does not have. - [Migrating from curl and Taskfile](https://apic.sh/migrate/curl/): Turn curl commands in a Taskfile, Makefile or wiki into named .http requests, with Task kept as the front door. ## Reference - [CLI reference](https://apic.sh/cli/): Every apic command with what it does, its --json output and its exit codes, plus every flag generated from the binary. - [Errors](https://apic.sh/errors/): The catalogue of error codes apic reports, each with its meaning and what to do next, for scripts and agents that branch on the code. - [Changelog](https://apic.sh/changelog/): What changed in each apic release: new commands, flags and MCP tools, changes to the --json contract, and fixes, newest first. - [FAQ](https://apic.sh/faq/): Short answers to the questions that come up: missing or wrong variables, the session, secrets in CI, AWS, proxies and OAuth2, Gherkin steps, the UI, installing and editors. - [How apic compares](https://apic.sh/comparison/): How apic compares with Taskfile and curl, REST Client and the JetBrains HTTP Client, ijhttp, Kulala.nvim, httpyac, Bruno, Hurl and Postman, honestly, with links to the migration guides. - [Verifying a release](https://apic.sh/verifying/): Check an apic release before you trust it: the checksums, the cosign signatures on checksums.txt and the container image, the per-archive SBOMs and the licence notices. - [Licence](https://apic.sh/licence/): apic is MIT licensed; what that lets you do, and the licences of the modules it ships with. - [Privacy](https://apic.sh/privacy/): What apic.sh collects (nothing of its own), what Cloudflare keeps as the host, which other services the pages link to, and what the apic CLI sends.