REST Client · Example Payload

Rest Client Request Chaining Example

REST Client VS Code extension example: request chaining to authenticate and then use the token.

ClientsHTTP ClientIDE ExtensionVS CodeAPI Testing

Rest Client Request Chaining Example is an example object payload from REST Client, with 4 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

descriptionfileFormatcontentfeatures

Example Payload

rest-client-request-chaining-example.json Raw ↑
{
  "description": "REST Client VS Code extension example: request chaining to authenticate and then use the token.",
  "fileFormat": ".http",
  "content": "@host = https://api.example.com\n\n### Login - obtain access token\n# @name login\nPOST {{host}}/auth/token HTTP/1.1\nContent-Type: application/json\n\n{\n  \"username\": \"{{$dotenv USERNAME}}\",\n  \"password\": \"{{$dotenv PASSWORD}}\"\n}\n\n### Get Profile - use token from login response\nGET {{host}}/v1/me HTTP/1.1\nAuthorization: Bearer {{login.response.body.$.access_token}}\n\n### Create Resource - chained auth\n# @name createUser\nPOST {{host}}/v1/users HTTP/1.1\nContent-Type: application/json\nAuthorization: Bearer {{login.response.body.$.access_token}}\nX-Request-ID: {{$guid}}\n\n{\n  \"name\": \"New User\",\n  \"email\": \"newuser@example.com\"\n}",
  "features": [
    "File-level @host variable",
    "Named request with # @name login",
    "Response variable reference: {{login.response.body.$.access_token}}",
    "System variable: {{$guid}} generates UUID",
    "dotenv variable: {{$dotenv USERNAME}} reads from .env file"
  ]
}

Work with this as data

Every example here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for examples

4 MCP tools reach this
  • find_examplesBrowse and filter every example in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This example
curl "https://apis.io/api/v1/examples/rest-client-request-chaining-example"
All examples
curl "https://apis.io/api/v1/examples?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.