Overview
Shares provide secure, time-limited access to services via shareable links. The Shares API enables creating shares, managing access control, and monitoring usage.Create Share
Create a shareable link for a service.ID of the service to share
Share name (1-100 characters)
Share description (max 500 characters)
Expiration duration:
1h, 24h, 7d, 30d, neverAllowed URL paths (supports wildcards). Example:
["/api/*", "/public/*"]HTTP methods to allow:
GET, POST, PUT, PATCH, DELETERate limit per minute (1-1000)
List Shares
Retrieve all shares for a service.Full tokens are never returned in list operations, only a preview prefix for identification.
Revoke Share
Revoke a share, making it no longer usable.Get Share Info
Retrieve public information about a share. No authentication required.This endpoint provides minimal information about the share without requiring authentication.
Get Access Logs
Retrieve access logs for a share.Share Proxying
When a user accesses a share URL, requests are proxied through the Private Connect hub to the target service.HTTP/HTTPS Proxying
For HTTP/HTTPS services, all requests are proxied:HTML responses include a Private Connect branding banner for share attribution.
Database Query Execution
For database services (PostgreSQL, MySQL, MongoDB, Redis), execute queries via the API:SQL query to execute (max 10,000 characters)
Access Control
Path Restrictions
Restrict access to specific URL paths:*matches any characters within a path segment/*matches all paths under a directory- Exact matches require full path
Method Restrictions
Limit HTTP methods:PUT, PATCH, and DELETE requests, providing read-only access with limited write capabilities.
Rate Limiting
Set custom rate limits per share:/shared/:token/*- 5,000 requests/minute (for web apps with many assets)/api/shared/:token/query- 30 queries/minute (for database queries)
Share Expiration
Shares can have time-based expiration:1h - One Hour
1h - One Hour
Ideal for temporary demos or quick testing sessions.
24h - 24 Hours (default)
24h - 24 Hours (default)
Good for daily testing access or short-term collaboration.
7d - 7 Days
7d - 7 Days
Suitable for weekly sprints or short projects.
30d - 30 Days
30d - 30 Days
For longer-term contractor access or extended testing.
never - No Expiration
never - No Expiration
Permanent share until manually revoked. Use with caution.
Expired shares automatically become inactive and return a
403 Forbidden error.Share Subdomains
Shares can be accessed via custom subdomains:Monitoring and Analytics
Track share usage via access logs:- IP addresses - See who’s accessing the share
- User agents - Identify browsers and tools
- Request paths - Monitor which endpoints are accessed
- Status codes - Track errors and successful requests
- Latency - Measure performance
- Access count - Total number of requests
- Last accessed - Most recent activity timestamp
Use Cases
Client Demos
Share development environments with clients for feedback without VPN access.
External Audits
Provide time-limited database access to auditors with query logging.
API Testing
Share staging APIs with external testers or integration partners.
Team Collaboration
Enable temporary access for contractors or remote team members.
Best Practices
- Set expiration - Always use time-limited shares unless permanent access is required
- Restrict paths - Limit access to only necessary endpoints
- Monitor logs - Regularly review access logs for suspicious activity
- Revoke promptly - Remove access when collaboration ends
- Use rate limits - Protect services from abuse with appropriate rate limits
- Read-only when possible - Use
allowedMethods: ["GET"]for read-only access