# API Reference

{% hint style="info" %}
Please refer to our [Terms of Use](/switch-api/terms-of-use.md) before accessing or using the API endpoints.
{% endhint %}

Here you can find information about the environments under which the Switch API can be reached. Click into each card to see specific reference per environment.

## Test environment

The Switch API reference for the test environment.

{% content-ref url="/pages/xtkVWvTw6U4XsgmbbxZW" %}
[Test](/switch-api/api-reference/test.md)
{% endcontent-ref %}

## Production environment

The Switch API reference for the production environment.

{% content-ref url="/pages/D0YFFNxbvtaV1vhpcqDE" %}
[Production](/switch-api/api-reference/production.md)
{% endcontent-ref %}


---

# 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://developer.switchmarket.se/switch-api/api-reference.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.
