canonical: https://jentic.com/apis/simple-books-api.click/simple-books-api

# Simple Books Api Click API de Livros Simples

The Simple Books API lists a small collection of books and lets registered clients place, view, update, and delete orders for them. Anyone can check the API status, list books filtered by type such as fiction or non-fiction with a limit of up to 20, and get the details of one book by its bookId. To order, a client first registers with a clientName and clientEmail to receive an accessToken, then sends that token as a bearer JWT on the order endpoints. Its OpenAPI spec is written in Portuguese.

## For AI agents

Browse Simple Books titles by type, register an API client to get an access token, and place, read, rename, or delete book orders.

## Scope

Does not handle payments, shipping, inventory, or book search across real publishers. Use for listing Simple Books titles and placing and managing its orders only.

## Capabilities

- List books filtered by type, fiction or non-fiction, with a limit between 1 and 20
- Get the details of a single book by its integer bookId
- Register an API client with clientName and clientEmail to receive an accessToken for the order endpoints
- Place an order for a book with bookId and customerName and receive the new orderId
- List all orders and read a single order by orderId
- Change the customerName on an existing order or delete the order
- Check whether the API is up with the status endpoint

## Use cases

### Agent-placed book orders through Jentic

A developer's agent connected through Jentic can browse Simple Books titles and place an order on request. It lists books by type, picks a bookId, and creates the order with a customerName, receiving an orderId back. The accessToken from client registration is stored in your own Jentic One instance and attached to the order calls, so it never sits in the agent's context.

Example prompt: Search Jentic for 'order a book', call GET /books with type=fiction and limit=5, choose the first available book, then POST /orders with that bookId and customerName 'Maria Silva' and return the orderId

### Learning bearer-token API flows

The Simple Books API is small enough to read in one sitting and shows a full register-then-call pattern: POST /api-clients/ returns an accessToken, open endpoints work without it, and the order endpoints require it as a bearer JWT. Registering the same client twice returns a 409, which makes it a compact example for building and testing token handling in an agent or client library.

Example prompt: POST /api-clients/ with clientName 'test-client' and clientEmail 'test-client@example.com', store the returned accessToken, then call GET /orders with it and confirm the response is a list

### Order maintenance

Once orders exist, a client can list them, read one by orderId, correct the customerName with a PATCH, or remove it with a DELETE. Both changes return 204 with no body, so a follow-up GET on the order confirms the change or the deletion.

Example prompt: Call GET /orders, find the order for customerName 'Maria Silva', PATCH `/orders/{orderId}` with customerName 'Maria S. Silva', then GET `/orders/{orderId}` to confirm

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| GET | `/books` | List books |
| GET | `/books/{bookId}` | Get a book |
| POST | `/api-clients/` | Register an API client |
| POST | `/orders` | Place an order |
| GET | `/orders` | List orders |
| GET | `/orders/{orderId}` | Get an order |
| PATCH | `/orders/{orderId}` | Update an order |
| DELETE | `/orders/{orderId}` | Delete an order |

## Key resources

- **Books** — List books by type with a limit, and get one book by bookId
- **API clients** — Register a client with clientName and clientEmail to receive an accessToken
- **Orders** — Place, list, read, update the customerName of, and delete orders, using the bearer token
- **Status** — Check whether the API is available

## AI readiness

This API is usable in Jentic One now. Its AI-readiness score against Jentic's framework shows where it stands today and where improvements would make it even easier for agents to use.

- **Score:** 46 / 100
- **Maturity:** Foundational
- **Dimensions:**
  - Foundational Compliance: 74 / 100
  - Developer Experience & Jentic Compatibility: 60 / 100
  - AI-Readiness & Agent Experience: 22 / 100
  - Agent Usability: 94 / 100
  - Security: 75 / 100
  - AI Discoverability: 51 / 100
- **View full report:** https://jentic.com/apis/simple-books-api.click/simple-books-api/scorecard
- **How the score is calculated:** https://docs.jentic.com/reference/api-readiness-framework/overview/
- **More about the dimensions:** https://docs.jentic.com/reference/api-readiness-framework/specification/#dimensional-model-overview

### Score it yourself

Every API in the directory is allowlisted, so you can re-score it with no key required.

- **Score your own API:** https://jentic.com/scorecard.md
- **Scoring CLI agent skill:** https://github.com/jentic/jentic-api-scorecard/blob/main/skills/jentic-api-scorecard/SKILL.md

```sh
npx @jentic/api-scorecard-cli score <openapi-url>
```

## Why Jentic

- **Setup:** Wiring the Simple Books API by hand means registering a client to get an accessToken, keeping it, and attaching it as a bearer JWT to the order calls while leaving the open book endpoints alone. Through Jentic you install once, import it from the API Directory, store the token once, and your agent calls it.
- **Permission scoping:** The Simple Books API puts the order id in the URL path (`/orders/{orderId}`), so a rule can limit your agent to one order and the operations you pick for it. You choose the operations it may call, so destructive ones like deleting an order are not included unless you add them.
- **Credential handling:** Your Simple Books accessToken is stored once, encrypted, by your own Jentic One instance and injected at execution time. It never enters the agent's prompt, logs, or context.
- **Discovery method:** Agents search Jentic by intent such as 'order a book' or 'list fiction books', and Jentic returns the matching Simple Books operation with its input schema so the agent calls the right endpoint without reading the Portuguese-language spec.

## Related APIs

- **Google Books API** — Large book search and volume metadata API from Google
- **Open Library API** — Open book metadata, authors, and covers
- **ISBNdb API** — Book lookup by ISBN with publisher and edition data

## FAQ

### What authentication does the Simple Books API use?

Per its OpenAPI spec, the Simple Books API uses an HTTP bearer token in JWT format on the order endpoints only. You get the token by registering at POST /api-clients/ with clientName and clientEmail, which returns an accessToken. The status, book list, book details, and client registration endpoints need no token. Through Jentic, the token is stored encrypted by your own Jentic One instance and injected at execution time, so it never enters the agent's prompt, logs, or context.

### Is there a Simple Books API MCP server?

You don't need an MCP server to give your agent the Simple Books API. Jentic connects it directly from the API Directory: import it, store your access token once, and your agent calls it. The agent finds the book and order operations by intent when it needs them.

### Can I limit what my agent is allowed to do with the Simple Books API?

Yes. For an agent that should only browse and place orders, write a rule that allows GET /books, GET `/books/{bookId}`, and POST /orders. It can look up books and create new orders, but it cannot change or delete existing orders because the PATCH and DELETE operations are not in its rule.

### What are the rate limits for the Simple Books API?

The OpenAPI spec does not specify rate limits, and the spec lists no separate documentation site. Check the API's host at https://simple-books-api.click for any published limits.

### How do I order a book with the Simple Books API through Jentic?

Add the Simple Books API to Jentic One from the Jentic directory and store the accessToken you got from POST `/api-clients/.` Your agent searches for 'order a book', lists books with GET /books to pick a bookId, and calls POST /orders with that bookId and a customerName. To run it on your own infrastructure, install Jentic One from its GitHub repo.

### What happens if I register the same API client twice?

POST /api-clients/ returns 409 when the client is already registered. Keep the accessToken from the first registration, or register with a different clientEmail to get a new token.
