Call the API with explicit headers.
Section: API and GraphQL
Add custom headers
bash
bash
gh api repos/{owner}/{repo} -H "Accept: application/vnd.github+json"Explanation
Call the API with explicit headers.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing API and GraphQL