From 196b4a6ceb5aab79132a305d3fdb0653a0313df4 Mon Sep 17 00:00:00 2001 From: Kanishk Rawat Date: Mon, 9 Feb 2026 14:22:13 +0530 Subject: [PATCH] Update general/api-client/send-api-request.mdx Co-Authored-By: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com> --- general/api-client/send-api-request.mdx | 27 +++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/general/api-client/send-api-request.mdx b/general/api-client/send-api-request.mdx index f20d4bf..d0af1fd 100644 --- a/general/api-client/send-api-request.mdx +++ b/general/api-client/send-api-request.mdx @@ -92,6 +92,33 @@ Review the headers sent back by the server in the **Headers** tab. --- +## Path Variables + +Path variables allow you to define dynamic segments in your API URL using the `:variableName` syntax. This is useful for RESTful APIs where resource identifiers are part of the URL path. + +For example, if your API endpoint is: +``` +https://api.example.com/users/:userId/posts/:postId +``` + +Requestly automatically detects the path variables (`:userId` and `:postId`) from the URL and displays them in the **Params** tab under **Path Variables**. You can then set values for each variable: + +| Key | Value | Description | +|-----|-------|-------------| +| userId | 123 | The user's unique identifier | +| postId | 456 | The post's unique identifier | + +When you send the request, Requestly compiles the URL with your provided values: +``` +https://api.example.com/users/123/posts/456 +``` + + + Path variables are automatically extracted from your URL. Simply type a URL with `:variableName` segments, and they'll appear in the Path Variables table for you to fill in. + + +--- + ## Query Parameters In the **Query Params** section, you can add query parameters as **key-value pairs** to send extra information with the URL. To add more parameters, click on the `+ Add More` button.