---
metadata:
  - name: generator
    content: Diplodoc Platform v5.50.6
alternate:
  - https://yandex.ru/dev/direct/doc/en/concepts/format.md
  - https://yandex.ru/dev/direct/doc/ru/concepts/format.md
sourcePath: en/dg/concepts/format.md
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.ru/dev/direct/doc/en/llms.txt

# Interaction format

Requests to the Yandex Direct API are made over the HTTPS protocol using the POST method.

A request must contain the HTTP `Authorization` header with the OAuth token of the user that the API request is being made on behalf of. It may also contain other headers that are necessary for processing the request. The response contains the `RequestId` header — the unique ID of the request.

Input and output data structures are passed in the body of the request and response. The Yandex.Direct API supports two formats: [JSON](https://yandex.ru/dev/direct/doc/en/concepts/json.md) and [SOAP/XML](https://yandex.ru/dev/direct/doc/en/concepts/soap.md). All data is UTF-8 encoded.
