# API Openapi Generic

> How to integrate external APIs safely; how to store and query OpenAPI without polluting context.

- Skill: `bishal-pdmsft/api-openapi-generic` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx get-skill add bishal-pdmsft/api-openapi-generic`
- Raw SKILL.md: https://api.skillmd.com/api/skills/bishal-pdmsft/api-openapi-generic/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- Author: bishal-pdMSFT (https://skillmd.com/u/bishal-pdmsft)
- Updated: 2026-11-15
- Page: https://skillmd.com/skills/bishal-pdmsft/api-openapi-generic

---


# API Integration (Generic)

- Prefer finding OpenAPI/Swagger spec; store it in `references/` (not pasted into chat).
- Implement:
  - timeouts
  - retries with backoff
  - idempotency where required
  - clear error classification (retryable vs non-retryable)
- Keep a project overlay skill `api-<vendor>` with endpoints used by the project.

## Setup API Environment

Securely manage API credentials before integration. Run the following to initialize environment variables:

```bash
python scripts/api_key_manager.py
```

This script ensures proper credential handling for API operations.
