From 7734e19e285fd0a9189b0f3fac3c78e2fbcbdc91 Mon Sep 17 00:00:00 2001
From: ssweber <57631333+ssweber@users.noreply.github.com>
Date: Mon, 31 Mar 2025 14:33:30 -0400
Subject: [PATCH] handle encoding for json

Instead of using data=data, use json=data to ensure the requests library automatically handles the encoding for JSON:
---
 docs/getting-started/api-endpoints.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/getting-started/api-endpoints.md b/docs/getting-started/api-endpoints.md
index 022b09b..fb77635 100644
--- a/docs/getting-started/api-endpoints.md
+++ b/docs/getting-started/api-endpoints.md
@@ -62,7 +62,7 @@ To ensure secure access to the API, authentication is required 🛡️. You can
           }
         ]
       }
-      response = requests.post(url, headers=headers, data=data)
+      response = requests.post(url, headers=headers, json=data)
       return response.json()
   ```