# Getting Started

This guide shows how to make your first request to the **Fortisx API** and interpret responses.

***

## Base URL

```
https://api.fortisx.fi/v1
```

> Use this URL for all production requests.

***

## Authentication

* **System Endpoints:** no API key required.
* **All other endpoints:** include your API key as a Bearer token in the `Authorization` header:

```
Authorization: Bearer <API_KEY>
```

***

## Your First Call: `GET /ping`

Returns a simple health-check response to verify connectivity with the API.

**HTTP**

```
GET /ping
Accept: application/json
```

***

## Quick Examples

### cURL

```bash
curl -G "https://api.fortisx.fi/v1/ping" -H "Accept: application/json"
```

***

## Successful Response

**200 OK**

```json
{ "status": "ok" }
```

***

## Error Responses

All error responses follow the same JSON shape:

```json
{ "error": "<short description>" }
```

See [**Errors**](/docs/api-reference/errors.md) for details.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://fortisx.gitbook.io/docs/introduction/readme.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
