canonical: https://jentic.com/apis/shakerhotel.ir/shakerhotel

# Shakerhotel Ir Vesta

The Vesta API lets travel agencies search and book Shaker Hotel rooms through a two-step reservation flow. An agency logs in with a username and password to receive a bearer token, lists the cities where hotels are offered (such as Mashhad, Tehran, Isfahan, and Istanbul in the spec's examples), and searches hotels in a city for a date_in and date_out. A pre-reserve call holds the chosen rooms for a guest name and phone and returns a reference, and a reserve call with that reference finalises the booking.

## For AI agents

Search Shaker Hotel availability by city and dates, place a temporary hold on rooms for a guest, and confirm the booking with the returned reference.

## Scope

Does not handle payments, flight booking, or reservation cancellation. Use for searching Shaker Hotel availability and placing agency reservations only.

## Capabilities

- Log in as an agency with a username and password to obtain an authorization token
- List the cities where hotels are offered, with each city's id, code, and en_name
- Search hotels in a city for a date_in and date_out stay
- Place a temporary pre-reservation for a hotel with guest name, phone, and a rooms array of id, number, and type
- Finalise a booking by sending the reference returned from the pre-reservation

## Use cases

### Agency booking assistant through Jentic

An AI agent connected through Jentic can handle a travel agency's Shaker Hotel bookings end to end. It looks up the city id, searches hotels for the requested dates, places a pre-reservation for the guest, and only confirms with the reserve call once the customer agrees. Jentic stores the agency login and attaches the bearer token, so the agent never handles the password.

Example prompt: Call POST `/api/agency/cities` to find the id for Mashhad, POST `/api/agency/v2/hotels` with city '1', date_in '2026-12-08', and date_out '2026-12-11', then POST `/api/agency/pre-reserve` for hotel 8 with name, phone, and rooms [{id: 90, number: 1, type: 'fullboard'}]

### Hold-then-confirm reservations

Agencies often need to hold a room while a customer pays or decides. The pre-reserve operation creates a temporary reservation and returns a reference; the agency sends that reference to the reserve operation to finalise it. Splitting the two steps means a hold can be placed without committing the booking.

Example prompt: After the customer confirms, call POST `/api/agency/reserve` with reference set to the value returned by the earlier pre-reserve call and report the returned message

### Availability search by city and date

Before quoting a customer, an agency searches Shaker Hotel properties in a city for specific check-in and check-out dates. The hotels search returns each hotel's id, address, and images, which the agency uses to present options and to pick the hotel id for the pre-reservation.

Example prompt: Call POST `/api/agency/v2/hotels` with city '2', date_in '2026-12-20', and date_out '2026-12-23', and list each hotel's id and address

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| POST | `/api/agency/login` | Log in and get a token |
| POST | `/api/agency/cities` | List cities |
| POST | `/api/agency/v2/hotels` | Search hotels by city and dates |
| POST | `/api/agency/pre-reserve` | Place a temporary reservation |
| POST | `/api/agency/reserve` | Confirm a reservation by reference |

## Key resources

- **Cities** — Destinations with id, code, name, and en_name used as the city filter for hotel search
- **Hotels** — Hotels in a city for a date range, with id, address, and images
- **Reservations** — Temporary pre-reservations identified by a reference, confirmed with the reserve operation

## 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:** 0 / 100
- **Maturity:** Non-Ready
- **Dimensions:**
  - Foundational Compliance: 100 / 100
  - Developer Experience & Jentic Compatibility: 72 / 100
  - AI-Readiness & Agent Experience: 32 / 100
  - Agent Usability: 94 / 100
  - Security: 60 / 100
  - AI Discoverability: 0 / 100
- **View full report:** https://jentic.com/apis/shakerhotel.ir/shakerhotel/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 Vesta API by hand means logging in with the agency username and password, holding the returned bearer token, and chaining the pre-reserve reference into the reserve call. Through Jentic you install once, import the Vesta API from the API Directory, store the login once, and your agent calls it.
- **Permission scoping:** The Vesta API carries the city, hotel, and reference inside the request body, so rules bound which operations your agent may call, not which hotel or booking. Limit the agent to the operations it needs, such as hotel search, and booking confirmation is not included unless you add it.
- **Credential handling:** Your agency login 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 'find hotels in Mashhad for these dates' or 'confirm a hotel reservation', and Jentic returns the matching Vesta operation with its input schema so the agent calls the right endpoint without browsing the reference docs.

## Related APIs

- **Booking.com API** — Global accommodation search and booking
- **Amadeus Hotel Search API** — Hotel availability and offers across many chains
- **Cloudbeds API** — Property management for hotels and hostels

## FAQ

### What authentication does the Vesta API use?

Per its OpenAPI spec, the Vesta API declares HTTP bearer authentication globally. POST `/api/agency/login` takes a username and password and returns an authorization object with a token of type bearer, which is sent on the hotel search, pre-reserve, and reserve calls. Through Jentic, the agency credentials are stored encrypted by your own Jentic One instance and the token is attached at call time.

### How does a booking go from hold to confirmed?

Call POST `/api/agency/pre-reserve` with date_in, date_out, hotel, name, phone, description, and a rooms array. The response includes a reference for the temporary reservation. Send that reference to POST `/api/agency/reserve` to finalise the booking.

### What are the rate limits for the Vesta API?

The spec's example responses include X-RateLimit-Limit and X-RateLimit-Remaining headers, with an example limit of 60, but it does not state the window. Read those headers on each response, and check with Shaker Hotel at https://shakerhotel.ir for the current limit.

### Is there a Vesta MCP server?

You don't need an MCP server to give your agent the Vesta API. Jentic connects it directly from the API Directory: import it, store the agency login once, and your agent calls the search and reservation operations it needs.

### How do I search hotels through Jentic?

Search Jentic for 'search Shaker Hotel availability by city and dates', load the POST `/api/agency/v2/hotels` operation, and execute it with a city id from POST `/api/agency/cities` plus date_in and date_out. To run it on your own infrastructure, install Jentic One from its GitHub repo.

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

Yes. For a quoting assistant, write a rule that allows only the cities and hotels search operations, so the agent can check availability for customers but cannot hold rooms or confirm bookings. Add pre-reserve when you want it to place holds, and keep reserve for a person to call. Every call it makes is logged for review.
