What is AgentSecrets?
The Zero-Knowledge Difference
How AgentSecrets Works
Installation
Quick Start
Migrating from .env Files
Migrating from Vault / AWS
Migrating from dotenv-vault
Production Checklist
Credential Exposure
What Zero-Knowledge Means
The Proxy Model
The Three-Layer Model
Environments
Agent Identity
Storage Modes
The No get() Principle
Secret-Level Policies
Cloud Overview & Architecture
The Dual-Engine Model
Cloud Resolver Data Plane
Workload & Agent Tokens
Egress Allowlists & Audit Streams
Cloud REST API Reference
Account (init / login)
Server & Self-Hosting (server)
Docs
Shell Autocompletion
Keychain Auth
Secrets
Environments
Credential Proxy
env Injection
Workspaces & Teams
Projects
Agent Identity
Audit & Governance
Integrations Overview
Claude Desktop
Cursor
OpenClaw
HTTP Proxy (Any)
LangChain (Soon)
CrewAI (Soon)
CI/CD Pipeline
SDK Overview
Python SDK
Python API Reference
Python SDK Manual Testing
JavaScript SDK (Soon)
Ecosystem Overview
Zero-Knowledge MCP Server
Server Overview
5-Layer Architecture
Self-Hosting Guide
Authentication & Keys
Workspaces & Teams
Projects & Scope
Environments
Secrets & Sync Protocol
Agent Identity Resolution
Telemetry & Metrics Engine
Audit Log Sync
API Endpoint Reference
Security Overview
Anti-Impersonation & Process Verification
Encryption Model
Zero-Knowledge Sync
Proxy Security Layers
Threat Model
OWASP Top 10 Mitigation
Security FAQ
Third-Party Audit
Reporting Vulnerabilities
Guides Overview
Building on the SDK
Stripe Integration
OpenAI Integration
Multi-Agent Setup
Onboarding Team
CI/CD Pipeline
Publishing ZK MCP
Rotating Credentials
Auditing Team Activity
Dev to Production
Kubernetes Deployment
Monorepo Setup
Production Proxy Hardening
vs .env Files
vs HashiCorp Vault
vs AWS Secrets Manager
vs dotenv-vault
vs Infisical
When Not to Use
Proxy Not Starting
Proxy Not Resolving
Domain Blocked
Sync Conflicts
MCP Not Connecting
Session Token Errors
Proxy Session Authorization
Keychain Storage & Backends
SSRF & Destination Rules
Installation Issues
Error Codes Reference
Frequently Asked Questions
v3.1.x
v3.0.0
v2.1.0
v2.0.0
v1.4.0
v1.3.x
v1.2.0
v1.1.x
v1.0.x
AgentSecrets CloudCloud REST API Reference

Cloud REST API Reference

The AgentSecrets Cloud REST API provides HTTP interfaces for credential resolution, headless environment delivery, and data plane liveness monitoring.


Base Service URLs

Service DomainEndpoint URLDescription
Cloud Resolver Data Planehttps://resolver.agentsecrets-website.vercel.appHigh-throughput credential resolution and wire proxying.
Control Plane APIhttps://api.agentsecrets-website.vercel.appWorkspace, token, audit, and billing endpoints.

1Outbound Credential Resolution

Resolves placeholder credential handles (AS_SECRET_KEY), injects real credentials over outbound TLS 1.3, and returns a sanitized response.

Endpoint

POST /v1/resolve

Headers

HeaderTypeDescription
AuthorizationstringBearer <AGENTSECRETS_TOKEN> (Required).
Content-Typestringapplication/json (Required).

Request Body Schema

{ "target_url": "https://api.stripe.com/v1/charges", "method": "POST", "headers": { "Authorization": "Bearer AS_SECRET_STRIPE_KEY", "Content-Type": "application/x-www-form-urlencoded" }, "body": "amount=2000&currency=usd&source=tok_visa" }

Response (200 OK)

{ "status_code": 200, "headers": { "Content-Type": "application/json", "Request-Id": "req_12345" }, "body": "{\"id\": \"ch_12345\", \"amount\": 2000, \"status\": \"succeeded\"}", "redacted": false }

Error Responses

401 Unauthorized (invalid_token)

{ "error_code": "invalid_token", "message": "Workload token is invalid or expired" }

403 Forbidden (domain_blocked)

{ "error_code": "domain_blocked", "message": "Target host 'evil-attacker.com' is not permitted by workspace allowlist" }

2Container Environment Ingestion ()

Retrieves scoped environment secrets over TLS for container initialization. Used by agentsecrets env and CI/CD runners.

Endpoint

POST /api/workloads/env/

Headers

HeaderTypeDescription
AuthorizationstringBearer <AGENTSECRETS_TOKEN> (Required).

Response (200 OK)

{ "status": "success", "workspace_id": "8fa3c012-7b89-4e01-a1b2-c3d4e5f6a7b8", "project_id": "1ab4d982-3c4e-5f6a-7b8c-9d0e1f2a3b4c", "environment": "production", "secrets": { "DATABASE_URL": "postgres://user:pass@db.internal:5432/prod", "STRIPE_KEY": "sk_live_...", "OPENAI_API_KEY": "sk-proj-..." } }

3Resolver Health & Liveness Probe

Liveness probe for load balancers and container orchestrators.

Endpoint

GET /healthz

Response (200 OK)

{ "status": "healthy", "service": "agentsecrets-cloud-resolver", "timestamp": "2026-08-23T00:00:00Z" }

Python SDK Reference Implementation

Using the official Python SDK with the credential helper:

from agentsecrets import AgentSecrets, credential secrets = AgentSecrets() response = secrets.call( "https://api.stripe.com/v1/charges", method="POST", headers={"Authorization": f"Bearer {credential.STRIPE_KEY}"}, body={"amount": 2000, "currency": "usd"} ) print("Status:", response.status_code) print("Data:", response.json())
Was this helpful?
Thanks for your feedback!
Your feedback helps us improve the platform.