# Petstore

Welcome to the Petstore API Documentation Template! This is a starting point for creating clear, interactive, and user-friendly API documentation.

Use this template to explore best practices in structuring your docs, showcasing endpoints, and guiding users through your API. Everything here can be adapted to fit your own product.

{% hint style="info" %}
**Why this demo?**\
This template shows automatically generated docs from an OpenAPI spec. It uses [Gitbook-specific Open API extensions](https://gitbook.com/docs/extensions-reference) to create a rich, interactive experience.
{% endhint %}

{% tabs %}
{% tab title="Production" %}
**Base URL**\
`https://petstore.example.com/v1`
{% endtab %}

{% tab title="Staging" %}
**Base URL**\
`https://staging.petstore.example.com/v1`
{% endtab %}
{% endtabs %}

#### Getting Started

{% stepper %}
{% step %}

#### Create an account

Sign up for a free account at [petstore.example.com](https://petstore.example.com).
{% endstep %}

{% step %}

#### Get your API key

Sign in to the Petstore console and copy your key.
{% endstep %}

{% step %}

#### Make your first request

Call the GET /pets endpoint to check connectivity.
{% endstep %}
{% endstepper %}

#### Learn more

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-cover data-type="files"></th><th data-hidden></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Documentation</strong></td><td>Everything you need to know about the product</td><td></td><td></td><td></td></tr><tr><td><strong>Changelog</strong></td><td>See what’s new and improved</td><td></td><td></td><td></td></tr><tr><td><strong>Community</strong></td><td>Connect with other users and contributors</td><td></td><td></td><td></td></tr></tbody></table>

{% hint style="warning" %}
This API is for demo purposes only — **don’t** use it in production.
{% endhint %}


---

# 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://chatsystem-wiki.gitbook.io/chatsystem/api-reference/reference/petstore.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.
