# Use Swagger UI

> Try any endpoint in Swagger UI, read its answer and authorize with your sign-in token.

5 min read · https://arena.rone.dev/guides/use-swagger-ui

## 1. Open Swagger UI

Select Swagger UI in the docs tabs, or open /api/docs. It lists the same endpoints as the docs pages, in the standard OpenAPI layout that many developers already know.

![The top of Swagger UI with four numbered marks](https://arena.rone.dev/images/guides/swagger-overview.png)

1. **Name and version.** The API's name and the release you are reading.
2. **Authorize.** Where you paste your sign-in token. Only the player endpoints need it.
3. **Group.** Endpoints are grouped. Select a group name to fold or unfold it.
4. **Endpoint row.** Method, path and name. Select the row to open it.

## 2. Try it out

Open GET /api/heroes/{hero_identifier}/counters and select Try it out. The fields become editable.

![An opened Swagger UI endpoint with editable fields and three numbered marks](https://arena.rone.dev/images/guides/swagger-try.png)

1. **Hero identifier.** Type a hero name or number, for example miya.
2. **Rank.** Pick the rank tier, for example mythic.
3. **Execute.** Sends the request.

## 3. Read the response

Scroll down to Server response. Swagger UI shows the exact request it sent as well as the answer.

![A Swagger UI server response with four numbered marks](https://arena.rone.dev/images/guides/swagger-response.png)

1. **Curl.** The same request as a command you can paste into a terminal.
2. **Request URL.** The full address, with your values in it.
3. **Code.** 200 means success.
4. **Response body.** The JSON answer. The icons in its corner copy or download it.

> **Note:** The Responses list further down shows example answers, not your live answer. Your answer is under Server response.

## 4. Authorize for player endpoints

Player endpoints answer only for the signed-in player. Sign in on the website (see the sign-in guide), open your name in the top bar and select Copy JWT. Then select Authorize in Swagger UI and paste it.

![The Authorize window of Swagger UI with two numbered marks](https://arena.rone.dev/images/guides/swagger-authorize.png)

1. **Value.** Paste the token here, without the word Bearer.
2. **Authorize.** Keeps the token for every request you send from this page.

> **Note:** A token gives access to your player data. Do not share it or post a screenshot of it. It expires after about a day.
