# API Reference

### Welcome to ForHotel Documentation <a href="#welcome-to-forhotel.eu-documentation" id="welcome-to-forhotel.eu-documentation"></a>

This space contains information about the services and API provided by ForHotel. You'll find API documentation with examples, object model explanations, code snippets and integration best practices examples.

### **Help** <a href="#help" id="help"></a>

If you have any comments, suggestions or recommendations, please let us know via <tech.team@fortravel.tech>

### Postman Collection <a href="#postman-collection" id="postman-collection"></a>

To make the integration process as easy as possible, we have prepared a Postman Collection with all our API methods.

### API Reference <a href="#api-reference" id="api-reference"></a>

API is organised around REST. Our API has a predictable, resource-oriented URLs, and uses HTTP response codes to indicate API errors. We use built-in HTTP features, like HTTP authentication and HTTP verbs, which are understood by off-the-shelf HTTP clients. We support cross-origin resource sharing, allowing you to interact securely with our API from a client-side web application. JSON is returned by all API responses, including errors.

API support only`POST`method queries.

### Authentication <a href="#authentication" id="authentication"></a>

API Key access which can be created after contacts with our tech team <tech.team@fortravel.tech>

#### API Key Access <a href="#api-key-access" id="api-key-access"></a>

Authentication method, where previously generated API Key is used to sign requests:

```
GET http://{host}/api/who-am-i HTTP/1.1 
Host: Can be changed in every time. You always can take actual via tech team. 
Content-Type: application/json 
api-token: uU08XiMgk8a7CrY4xUjAReUIuTrn83R123adaVb8Tf/qMcVTEgriuJhXWs/1Q1P
```

### Sandbox Server <a href="#sandbox-server" id="sandbox-server"></a>

[Swagger Api Documentation](https://stage-api.forhotel.eu/swagger-ui/index.html?urls.primaryName=external)

[Pure Open-API Doc](https://stage-api.forhotel.eu/api-docs/external)

<https://stage-api.forhotel.eu>

<ag@fortravel.tech>
