Appearance
Keys & OAuth API
Manage third-party API keys and OAuth connections.
Store a Key
bash
curl -s -X POST https://api.universalapi.co/keys/store \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"serviceName": "serpapi", "apiKey": "your-serpapi-key"}' | jqList Keys
bash
curl -s https://api.universalapi.co/keys/list \
-H "Authorization: Bearer YOUR_TOKEN" | jqReturns metadata only — never exposes the actual key values.
Check Key Exists
bash
curl -s https://api.universalapi.co/keys/check/serpapi \
-H "Authorization: Bearer YOUR_TOKEN" | jqOAuth Authorization
bash
curl -s "https://api.universalapi.co/oauth/authorize/google" \
-H "Authorization: Bearer YOUR_TOKEN" | jqReturns an authorization URL. Redirect the user to complete OAuth. Supported providers: google, microsoft, github.
How Keys Are Injected
| Resource Type | How Keys Are Available |
|---|---|
| Actions | event['keys']['serviceName'] |
| MCP Servers | process.env.SERVICENAME_KEY |
| Agents | os.environ['UAPI_KEYS_JSON'] (JSON dict) |
See Authentication for full details.