Testing REST endpoints in the browser with the Sandbox API console
The Sandbox page is a console that lets you test REST endpoints from your browser before writing code; requests are sent directly to the Daras API URL using the API key you enter.
Steps
- Open
developers.daras.com.tr/sandbox("Sandbox" in the menu) on the developer portal. - There is no preset list of endpoints: choose the method (GET, POST, PATCH, DELETE) from the selector to the left of the path field and type the endpoint path next to it (default
/catalog/products). The full target URL appears next to the "Gönder" (Send) button. - The "Test anahtarı üret" (Generate test key) link at the top of the page opens the Ayarlar → Erişim anahtarları (API) (Settings → Access keys (API)) page in the dashboard. Paste the generated key into the "API anahtarı" (API key) field; the console sends it in the
Authorization: Bearerheader. - In the "Header" tab you can view the headers to be sent, and in the "Query" tab you can view the query parameters added to the path (for example,
?limit=20); for POST and PATCH requests, edit the JSON body in the "Body" tab. - Click "Gönder" to run the request; the status code, response time (ms), and response body appear in the "Yanıt" (Response) section.
- To use the same request in your code, select the TS, PY, PHP, Go, or cURL tab in the snippet below and click the "kopyala" (copy) button.
Tips
- Requests go to the live API: write requests made with a live (
sk_live_) key modify your store's real data. For testing, use a test (sk_test_) key from a store in test mode. - If a request fails with a network error, the error message appears in the response area; check your key and path.
- The cards at the bottom of the page show the per-key rate limit per minute and the number of webhook topics.