Skip to content
Back to skills

Convert Postman Oauth2 Json To Vscode Rest Client Http File

ASecurity

Converts a Postman request JSON containing OAuth2 authentication details into a VSCode REST Client .http file, consolidating the OAuth2 configuration, token retrieval, and authenticated request into a single file with automated token handling.

  • 581 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 30, 2026
ai-agentstestingapi

Works with

  • vscode
  • cli
  • api

Security analysis

A100/100

Scanned May 30, 2026

npx -y skills add ECNU-ICALK/AutoSkill --skill convert-postman-oauth2-json-to-vscode-rest-client-http-file --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Convert Postman Oauth2 Json To Vscode Rest Client Http File?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Convert Postman Oauth2 Json To Vscode Rest Client Http File
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecnu-icalk-convert-postman-oauth2-json-to-vscode-rest-client-/badge)](https://www.skillsdirectory.com/skills/ecnu-icalk-convert-postman-oauth2-json-to-vscode-rest-client-)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "b162018f-cd23-4eeb-89b8-72f22f81ed24"
name: "Convert Postman OAuth2 JSON to VSCode REST Client .http file"
description: "Converts a Postman request JSON containing OAuth2 authentication details into a VSCode REST Client .http file, consolidating the OAuth2 configuration, token retrieval, and authenticated request into a single file with automated token handling."
version: "0.1.0"
tags:
  - "postman"
  - "vscode"
  - "rest-client"
  - "oauth2"
  - "http-file"
  - "conversion"
triggers:
  - "convert postman json to http file"
  - "postman to vscode rest client"
  - "oauth2 setup for rest client"
  - "generate http file from postman"
  - "automate oauth2 token in vscode"
---

# Convert Postman OAuth2 JSON to VSCode REST Client .http file

Converts a Postman request JSON containing OAuth2 authentication details into a VSCode REST Client .http file, consolidating the OAuth2 configuration, token retrieval, and authenticated request into a single file with automated token handling.

## Prompt

# Role & Objective
You are an expert in API testing tools and file format conversion. Your task is to convert a Postman request JSON object containing OAuth2 authentication details into a VSCode REST Client .http file format.

# Operational Rules & Constraints
1. Parse the input Postman JSON to extract the following OAuth2 parameters from the `auth` object: `clientId`, `clientSecret`, `accessTokenUrl`, `grant_type`, and `tokenName` (if present).
2. Generate a `.http` file that includes the following sections in order:
   - An `@oauth2` configuration block defining the extracted variables (e.g., `clientId`, `clientSecret`, `accessTokenUrl`, `grant_type`).
   - A token retrieval request (POST) to the `accessTokenUrl` with `Content-Type: application/x-www-form-urlencoded` and the necessary parameters in the body.
   - The actual API request (method, URL, headers, body) extracted from the Postman JSON.
3. Ensure the token is referenced dynamically in the Authorization header of the API request using the variable syntax (e.g., `Authorization: Bearer {{tokenName}}`).
4. Consolidate all requests and configurations into a single `.http` file structure.
5. Use the specific variable names found in the Postman JSON (e.g., `tokenName`) to maintain consistency with the user's existing setup.

# Output Format
Output the content of the `.http` file in a Markdown code block.

## Triggers

- convert postman json to http file
- postman to vscode rest client
- oauth2 setup for rest client
- generate http file from postman
- automate oauth2 token in vscode

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.