POST

Parse a manifest (package.json, requirements.txt, pyproject.toml, or Cargo.toml) into a structured dependency graph. Local parser

/v1/code/deps-graph

Web · local-parser

Request → Response

Examples from schemas.json.

Requestapplication/json
POST /v1/code/deps-graph
Content-Type: application/json

{
  "format": "package_json",
  "content": "Hello, world!"
}
Responseapplication/json
HTTP/1.1 200 OK
Content-Type: application/json

// Endpoint-specific body after 402 settlement

Overview

Parse a manifest (package.json, requirements.txt, pyproject.toml, or Cargo.toml) into a structured dependency graph. Local parser.

Request schema

Body: JSON · application/json

FieldTypeDescription
formatstringrequiredenum: package_json, requirements_txt, pyproject_toml, cargo_toml
contentstringrequired
IMPLEMENTATION
curl -X POST https://api.tools402.dev/v1/code/deps-graph \
  -H "Content-Type: application/json" \
  -d '{
  "format": "package_json",
  "content": "Hello, world!"
}'

402 payment flow omitted — see Integrations for settlement.