TOOL WIKI · TOOLS & PROTOCOLS
Nango
Provides authentication and integration capabilities for connecting agents to APIs.
Jump to a section 10 sections
EXAMPLE USE CASE
Read an already connected account through an OAuth proxy
An agent application needs a stable capability interface or a user-bound connection before it can invoke an external operation.
- Input
- A trusted integration/connection mapping and server-side Nango key.
- Expected output
- Selected profile ID/login fields from the connected GitHub account.
- Success check: With an existing GitHub connection, the proxy returns that connected account’s profile.
- Try a failure: A revoked or wrong-user connection must stop the request rather than fall back to another account.
Example scope: Actual proxy request; the account connection must already exist and no account changes are made.
The agent host owns the task and the authenticated user context.
inputTo 02 · NangoManaging per-user service connections and tool access. Keep end-user connection scope separate from your application’s service identity.
processTo 03 · Remote capabilityDiscover a supported operation and validate its schema and version.
The receiving service enforces identity, scopes, and resource authorization.
Use timeouts and idempotency for operations that may be retried.
outputTo 06 · Result + auditReturn the authoritative outcome and record the effective actor and operation.
Result or stopping point
Managing per-user service connections and tool access. Keep end-user connection scope separate from your application’s service identity.
When to consider it
- Managing per-user service connections and tool access.
A design decision to make
- Keep end-user connection scope separate from your application’s service identity.
Prerequisites and setup
- A configured GitHub integration and an authorized test-user connection in Nango. The request reads the account profile and does not modify it.
python3 -m venv .venv
source .venv/bin/activate
pip install requests
export NANGO_SECRET_KEY="YOUR_KEY"
export NANGO_INTEGRATION_ID="YOUR_GITHUB_INTEGRATION_ID"
export NANGO_CONNECTION_ID="YOUR_TEST_USER_CONNECTION_ID"Try a small integration
proxy.py
import os
import requests
response = requests.get("https://api.nango.dev/proxy/user",timeout=15,
headers={"Authorization":"Bearer "+os.environ["NANGO_SECRET_KEY"],
"Provider-Config-Key":os.environ["NANGO_INTEGRATION_ID"],
"Connection-Id":os.environ["NANGO_CONNECTION_ID"]})
response.raise_for_status()
profile = response.json()
print({"id":profile.get("id"),"login":profile.get("login")})Run and check the result
python proxy.py- With an existing GitHub connection, the proxy returns that connected account’s profile.
- The application calls Nango with its server secret; Nango supplies/refreshes the provider credentials.
Common failures
- A transport acknowledgement is not task completion. Inspect error/terminal state and the actual returned artifact.
- Do not retry external writes without a durable operation identifier and documented idempotency behavior.
Production decisions
- Map external user, connection and session IDs from authenticated application state. Never let a model choose another user’s account.
- Restrict available operations and require review for consequential writes. Record request, task, tool and idempotency identifiers across boundaries.
- Treat raw proxy requests as a low-level capability: allowlist provider endpoints and methods, and apply per-connection authorization and rate limits.
Keep exploring
Explore the same layer
Compare candidates on your own workload. This entry describes a product’s role; it is not a claim that products in the category are interchangeable.