# Type-safe API client (/api--rest-client)

/api--rest-client is a Claude Code skill in the Code section. Generates a typed client SDK for your API from its OpenAPI spec or route files, with error handling, retries and timeouts.

- Web version: https://skills.sgomez.dev/en/s/api--rest-client
- Section: [Code](https://skills.sgomez.dev/en/code.md)
- Author: Santiago Gómez de la Torre
- License: MIT
- Source: https://github.com/sgomez-dev/claude-skills/blob/main/skills/api/rest-client.md
- Updated 26 Mar 2026

## How to ask for it

- `/api--rest-client generate a TypeScript client for my REST API`
- `/api--rest-client I need a typed SDK generated from my OpenAPI spec`
- `/api--rest-client create an API client to call these endpoints`

## Install

macOS · Linux:

```
curl -fsSL https://raw.githubusercontent.com/sgomez-dev/claude-skills/main/install.sh | bash
```

Windows:

```
irm https://raw.githubusercontent.com/sgomez-dev/claude-skills/main/install.ps1 | iex
```

Claude Code plugin:

```
/plugin marketplace add sgomez-dev/claude-skills
/plugin install api-skills@claude-skills-collection
```

## Permissions

- Reads: `**/*`
- Writes: `**/*`
- Runs: —
- Network: No
- Destructive: No

## Author's description

Generate a type-safe API client SDK from endpoint definitions

- [How we review this](https://skills.sgomez.dev/en/methodology.md)
