From d7695485320b03955b49c07798324ece5f680420 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Volf?= Date: Fri, 9 Jan 2026 12:01:30 +0100 Subject: [PATCH 1/2] fix: add missing docs for attachment param for KV getRecord --- ...key-value-stores@{storeId}@records@{recordKey}.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/apify-api/openapi/paths/key-value-stores/key-value-stores@{storeId}@records@{recordKey}.yaml b/apify-api/openapi/paths/key-value-stores/key-value-stores@{storeId}@records@{recordKey}.yaml index 85a414ad69..4763074d4e 100644 --- a/apify-api/openapi/paths/key-value-stores/key-value-stores@{storeId}@records@{recordKey}.yaml +++ b/apify-api/openapi/paths/key-value-stores/key-value-stores@{storeId}@records@{recordKey}.yaml @@ -40,6 +40,16 @@ get: schema: type: string example: 2wTI46Bg8qWQrV7tavlPI + - name: attachment + in: query + description: | + If `true` or `1`, the response will be served with `Content-Disposition: attachment` header, + causing web browsers to offer downloading HTML records instead of displaying them. + required: false + style: form + schema: + type: boolean + example: true responses: '200': description: '' From 6746747e577eb650d748dfb97062818bdc7193ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Volf?= Date: Fri, 9 Jan 2026 17:35:52 +0100 Subject: [PATCH 2/2] add notice about HTML modifications --- .../key-value-stores@{storeId}@records@{recordKey}.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apify-api/openapi/paths/key-value-stores/key-value-stores@{storeId}@records@{recordKey}.yaml b/apify-api/openapi/paths/key-value-stores/key-value-stores@{storeId}@records@{recordKey}.yaml index 4763074d4e..c02d0b60b4 100644 --- a/apify-api/openapi/paths/key-value-stores/key-value-stores@{storeId}@records@{recordKey}.yaml +++ b/apify-api/openapi/paths/key-value-stores/key-value-stores@{storeId}@records@{recordKey}.yaml @@ -14,6 +14,10 @@ get: Most HTTP clients support decompression by default. After using the HTTP client with decompression support, the `Accept-Encoding` header is set by the client and body is decompressed automatically. + + Please note that for security reasons, Apify API can perform small modifications + to HTML documents before they are served via this endpoint. To fetch the raw HTML + content without any modifications, use the `attachment` query parameter. operationId: keyValueStore_record_get parameters: - name: storeId