Sharing & Collaboration
Share your mock APIs with team members, clients, and stakeholders for seamless collaboration
Why Share Mock APIs?
Sharing your mock APIs enables collaboration across your entire team without requiring everyone to create accounts or set up their own instances. Anyone with the shared link can access and use your mock API immediately.
Share with frontend developers, QA testers, and mobile developers so everyone uses the same API
Show stakeholders and clients working prototypes without giving them access to your account
Make your mock API publicly available for open-source projects or community testing
Revoke access anytime by disabling the shared link without affecting your project
Sharing Methods
Generate a shareable link that allows anyone with the URL to access your mock API endpoints. No authentication required.
How it works:
- 1. Enable public sharing in project settings
- 2. Copy the generated public URL
- 3. Share the URL with your team or clients
- 4. They can immediately start making API requests
Example Public URL:
https://api.mockbuilder.com/public/abc123xyz/usersGenerate API tokens for controlled access. Recipients must include the token in their requests to access your mock API.
How it works:
- 1. Generate an API token in project settings
- 2. Share the token securely with authorized users
- 3. They include the token in the Authorization header
- 4. Revoke tokens anytime to remove access
Example Request with Token:
How to Share a Project
Open Project Settings
Navigate to your project and click the "Settings" tab
Enable Public Access
Toggle the "Public Access" switch to enable sharing
Copy the Public URL
Click the "Copy Link" button to copy the shareable URL to your clipboard
Share with Your Team
Send the URL via email, Slack, or your preferred communication method
Monitor Usage (Optional)
Check request logs to see who's using your shared API
Access Control & Permissions
- ✓Make API requests to all public endpoints
- ✓Receive mock data responses
- ✓Test CRUD operations (changes are isolated per session)
- ✓Access API documentation (if enabled)
- ✗Modify project settings or configuration
- ✗Add, edit, or delete endpoints
- ✗Change data schemas or validation rules
- ✗View or access your account information
- ✗Permanently modify the shared data (changes are session-isolated)
Revoking Access
You can revoke access to your shared API at any time:
Method 1: Disable Public Access
- 1. Go to Project Settings
- 2. Toggle off "Public Access"
- 3. The shared link immediately stops working
Method 2: Regenerate Public URL
- 1. Go to Project Settings
- 2. Click "Regenerate Public Link"
- 3. Old link stops working; new link is generated
- 4. Share the new link with authorized users only
Method 3: Revoke API Tokens
- 1. Go to Project Settings → API Tokens
- 2. Click "Revoke" next to the token you want to disable
- 3. Requests using that token will be rejected immediately
Common Use Cases
Scenario: Your backend team is still building the API, but the frontend team needs to start development now.
Solution: Create a mock API, share the public link with the frontend team, and they can immediately start building against realistic endpoints.
Scenario: You need to demonstrate a working prototype to stakeholders, but the real backend isn't ready yet.
Solution: Share a mock API that returns realistic data for demos. After the presentation, you can disable sharing or regenerate the link.
Scenario: QA testers need a stable API to test against without affecting production or development environments.
Solution: Share a dedicated mock API for testing. Testers get consistent responses, and you can monitor usage via request logs.
Scenario: Partner teams or contractors need to integrate with your API before it's deployed.
Solution: Use token-based sharing for controlled access. Partners include the token in requests, and you can revoke it once integration testing is complete.
Security Considerations
Important Security Notes
- ⚠️Don't share sensitive data: Only use mock/fake data in shared projects
- ⚠️Public links are accessible by anyone: Anyone with the URL can access your API
- ⚠️Use tokens for sensitive projects: Token-based access provides better control
- ⚠️Monitor request logs: Keep an eye on who's accessing your shared API
- ⚠️Revoke access after use: Disable sharing when it's no longer needed
- ⚠️Rate limits still apply: Shared APIs are subject to the same rate limits
Best Practices
- ✓Share project-specific links instead of your main account URL
- ✓Use descriptive project names so recipients know what the API is for
- ✓Include API documentation when sharing to help users understand endpoints
- ✓Set appropriate rate limits to prevent abuse of shared APIs
- ✓Communicate changes to your team when you update the shared API
- ✓Create separate projects for different audiences (internal team vs. clients)
- ✓Regenerate links periodically for long-term shared projects