---
title: "Odošle správu"
method: POST
path: "/api/sktalk/receive"
tags: ["Zasielanie podaní"]
---

# Odošle správu

`POST /api/sktalk/receive`

## Request

- Base URL: `https://fix.slovensko-sk-api.staging.slovensko.digital`
- URL: `https://fix.slovensko-sk-api.staging.slovensko.digital/api/sktalk/receive`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Odošle SKTalk správu.

Za normálnych okolností je potrebné odoslanú správu následne uložiť medzi odoslané správy v schránke. Využite endpoint `api/sktalk/save_to_outbox` alebo `api/sktalk/receive_and_save_to_outbox`.

## Request body

- object
  - `message` string, xml, required: SKTalk správa vo formáte XML.

## Response `200`

Úspešné odosialnie SKTalk správy.

- SktalkReceiveResult: Výsledok odoslania SKTalk správy.
  - `receive_result` integer, required: Výsledok odoslania správy, hodnota `0` znamená úspešné prijatie správy na odoslanie.

## Changes

- **2021-01-22** `39464695fc7b`: 2 breaking, 1 info
  - request body became required
  - removed the media type `application/x-www-form-urlencoded` from the request body
  - added the media type `application/json` to the request body
- **2020-02-19** `8702b6a8aae8`: 1 breaking, 1 warning, 1 info
  - the response's body type changed from `object` to no type for status `200`
  - deleted the `query` request parameter `message`
  - added optional request body
- **2019-09-02** `13363364a402`: 4 info
  - the endpoint scheme security `API + OBO Token` was added to the API
  - the endpoint scheme security `API Token` was added to the API
  - the endpoint scheme security `API + OBO token` was removed from the API
  - the endpoint scheme security `API token` was removed from the API
- **2019-03-06** `d5a7c974a1b4`: 1 info
  - the endpoint scheme security `API token` was added to the API
- **2019-01-16** `7f12ca4ca5a9`: 1 warning, 7 info
  - deleted the `header` request parameter `Authorization`
  - deleted the `query` request parameter `token` with deprecation
  - removed the non-success response with the status `400`
  - removed the non-success response with the status `401`
  - …4 more

[Operation history](https://skmtc.dev/slovensko-digital/apis/slovensko-sk-api/changes/api/sktalk/receive/post.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)
