Credentials API
Generate and revoke proxy access credentials.
Credentials (username + password) authenticate HTTP clients to the proxy itself via the Proxy-Authorization header. The plaintext password is returnedonly on creation.
List Credentials
/api/proxies/:id/credentialscurl https://cifp.vril.dev/api/proxies/proxy-id/credentials \
-H "Authorization: Bearer YOUR_API_KEY"{
"credentials": [
{
"id": "cred_uuid",
"username": "proxy-abc123def456-u1a2b3c",
"description": "my-agent-prod",
"lastUsedAt": "2026-06-05T14:22:00Z",
"expiresAt": null,
"createdAt": "2026-06-01T10:00:00Z"
}
],
"count": 1
}The passwordHash is never included in list responses. Each entry also reports its port and ipAuthEnabled. Listing requires credentials:read; generating and revoking require credentials:write. See the Port Manager guide for how per-port credentials work.
Generate Credential
/api/proxies/:id/credentialscurl -X POST https://cifp.vril.dev/api/proxies/proxy-id/credentials \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"description": "my-agent-prod",
"expiresAt": "2026-12-31T00:00:00Z"
}'{
"id": "cred_uuid",
"username": "proxy-abc123def456-u1a2b3c",
"password": "CIFPrand0mGeneratedPassword",
"description": "my-agent-prod",
"expiresAt": "2026-12-31T00:00:00Z",
"createdAt": "2026-06-06T09:00:00Z"
}Save the password immediately
The password field is only present in this response. It is stored as a bcrypt hash and cannot be recovered. Generate a new credential if lost.
| Field | Required | Description |
|---|---|---|
| description | No | Human-readable label (e.g. "staging-agent"). Max 200 chars. |
| expiresAt | No | ISO-8601 expiry. After this, the credential is rejected. |
| port | No | Port the credential is valid on, 1024–65535. Defaults to 3128. Reserved ports (1344, 13440, 5353, 8080) return 400; a port held by an active Secure Share returns 409. |
| ipAuthEnabled | No | Dual-Auth: also require a source IP from the allowlist. Defaults to true. |
| username | No | 3–64 characters of letters, digits, dots, underscores, hyphens. A hyprx- prefix is added if missing. Must not contain "__" or reserved targeting words (cc, st, ct, s, ttl, session, ...). |
| password | No | 8–72 bytes, no whitespace, quotes, # or control characters. Generated (32 characters) if omitted. |
Revoke Credential
/api/proxies/:id/credentials/:credIdDeletes the credential and immediately syncs the change to the proxy. The next connection attempt using this credential is rejected with 407.
curl -X DELETE \
https://cifp.vril.dev/api/proxies/proxy-id/credentials/cred-uuid \
-H "Authorization: Bearer YOUR_API_KEY"
# Returns 204 No ContentUsing Credentials with a Proxy
# curl
curl -x "https://<proxy-host>:443" \
-U "proxy-abc123def456-u1a2b3c:CIFPrand0mGeneratedPassword" \
https://api.example.com/
# Python requests
import requests
proxies = {"https": "https://proxy-abc123def456-u1a2b3c:password@<proxy-host>:443"}
requests.get("https://api.example.com/", proxies=proxies)