---
title: "Odhlási používateľa"
method: GET
path: "/logout"
tags: ["Prihlasovanie pomocou eID"]
---

# Odhlási používateľa

`GET /logout`

## Request

- Base URL: `https://fix.slovensko-sk-api.staging.slovensko.digital`
- URL: `https://fix.slovensko-sk-api.staging.slovensko.digital/logout`
- Auth: HTTP bearer

Odhlási používateľa pomocou slovensko.sk (ÚPVS).

Po úspešnom odhlásení nasleduje presmerovanie späť na callback URL tretej strany nastavený v premenných prostredia API (LOGOUT_CALLBACK_URL).

Ak URL obsahuje callback (pri odhlásení iniciovanom zo strany ÚPVS), je potrebné spraviť redirect na callback.

## Other responses

- `302`: Úspešné presmerovanie na callback URL tretej strany.

## Changes

- **2021-12-14** `51a848b21d06`: 1 warning
  - deleted the `query` request parameter `callback`
- **2021-01-22** `39464695fc7b`: 1 breaking
  - for the `query` request parameter `callback`, the format changed from `URL` to `url`
- **2019-09-02** `13363364a402`: 2 info
  - the endpoint scheme security `API + OBO Token` was added to the API
  - the endpoint scheme security `API + OBO token` was removed from the API
- **2019-01-16** `7f12ca4ca5a9`: 3 info
  - removed the non-success response with the status `400`
  - removed the non-success response with the status `401`
  - removed the non-success response with the status `500`

[Operation history](https://skmtc.dev/slovensko-digital/apis/slovensko-sk-api/changes/logout/get.md)

---

[API](https://skmtc.dev/slovensko-digital/apis/slovensko-sk-api.md) - [All operations](https://skmtc.dev/slovensko-digital/apis/slovensko-sk-api/llms.txt) - [OpenAPI document](https://skmtc.dev/slovensko-digital/apis/slovensko-sk-api/revisions/e8ab6a2875b7?raw)
