Understanding SyftHub
SyftHub acts as a registry and discovery layer for Syft Space endpoints: For providers (you):- Publish endpoints to reach a wider audience
- Control access through policies
- Track usage and analytics
- Monetize your knowledge
- Discover endpoints across the network
- Query multiple Spaces through a unified interface
- Pay for access to premium knowledge
- Build applications on top of distributed knowledge
Publishing to SyftHub doesn’t give others access to your raw data. They can only query through your endpoint’s API, subject to your policies.
Prerequisites
Before publishing, ensure you have:published: true status- Configured in Settings → Network
- Contact OpenMined to obtain token during beta
Publishing an endpoint
{
"marketplace_ids": [
"123e4567-e89b-12d3-a456-426614174000",
"223e4567-e89b-12d3-a456-426614174000"
],
"publish_to_all_marketplaces": false
}
Publishing via API
You can also publish endpoints programmatically: Endpoint:POST /api/v1/endpoints/{slug}/publish
Headers:
cURL example
Python example
What happens when you publish
When you publish an endpoint to SyftHub:Registration
- Metadata sent - Name, description, tags, response type
- Connection info - Your Space’s public URL or developer token
- Policy summary - Access requirements, rate limits, pricing
- Health check - SyftHub verifies the endpoint is accessible
Discovery
- Search indexing - Endpoint becomes searchable on SyftHub
- Category listing - Appears in relevant category pages
- Tag filtering - Can be found via tag searches
- Recommendations - May appear in related endpoint suggestions
Connectivity
- Proxy setup - SyftHub routes queries to your Space
- Authentication - SyftHub issues satellite tokens for users
- Monitoring - Usage and health metrics tracked
- Updates - Changes to your endpoint sync to SyftHub
Managing published endpoints
Viewing publication status
Check where your endpoint is published:- Navigate to the endpoint detail page
- View the “Published to” section
- See status for each marketplace:
- Published and active
- Publication pending
- Publication failed (with error)
- Not published
Updating published endpoints
Changes to your endpoint automatically sync to SyftHub: Automatically synced:- Name changes
- Description updates
- Tag modifications
- Policy changes
- Health status
- Slug changes (must unpublish and republish)
- Dataset/model changes (unpublish, update, republish recommended)
- Response type changes (unpublish, update, republish recommended)
Metadata syncs within a few minutes. Allow time for changes to propagate before testing.
Unpublishing endpoints
Remove your endpoint from SyftHub:
Via API:
Developer token setup
For local deployments, you need a developer token to publish:Obtaining a token
- During onboarding - Add token when registering your Space
- Settings page - Navigate to Settings → Network → Developer Token
- Contact OpenMined - Request token during beta period
Configuring the token
When tokens are needed
| Deployment Type | Token Required? | Reason |
|---|---|---|
| Local machine (localhost) | Yes | No public IP for SyftHub to reach |
| Cloud VM with public IP | No | SyftHub can reach directly |
| Docker on VM | No | Uses VM’s public IP |
| Local development only | No | Not publishing to SyftHub |
Developer tokens are temporary during beta. Production will use automatic tunnel setup.
Marketplace configuration
Manage which marketplaces your Space can publish to:Viewing marketplaces
Navigate to Settings → Marketplaces to see:- Connected marketplaces
- Connection status (active, error, disabled)
- Number of endpoints published to each
Adding marketplaces
Removing marketplaces
- Unpublish all endpoints from the marketplace first
- Click Remove on the marketplace settings page
- Confirm removal
Monitoring published endpoints
Usage analytics
Track how your published endpoints are being used: Per-endpoint metrics:- Total queries over time
- Unique users querying
- Geographic distribution
- Peak usage times
- Average query cost
- Access denials (403 errors)
- Rate limit hits (429 errors)
- Failed queries (400/500 errors)
- Successful queries (200 responses)
Health monitoring
SyftHub periodically checks your endpoint health:- Every 5 minutes (default interval)
- After receiving error reports from users
- When you update the endpoint
- Healthy - Endpoint responding normally
- Degraded - Elevated error rates
- Unhealthy - Failing health checks
- Offline - Unable to reach endpoint
Endpoints marked “Unhealthy” or “Offline” are deprioritized in search results until health is restored.
User feedback
Monitor feedback from SyftHub users:- Ratings (if enabled)
- Usage frequency
- Error reports
- Feature requests
Troubleshooting publication
Publication fails
Symptom: Publish operation returns errors Common causes:-
Slug conflict
- Another endpoint already uses this slug
- Solution: Check slug availability and choose a unique one
-
Network unreachable
- SyftHub cannot reach your Space
- Solution (local): Add/verify developer token
- Solution (VM): Check firewall rules and public IP
-
Authentication failed
- Invalid developer token or credentials
- Solution: Verify token in Settings → Network
-
Endpoint unhealthy
- Dataset or model not responding
- Solution: Test connection on endpoint detail page
Queries fail after publishing
Symptom: Users receive errors when querying Common causes:-
Policies too restrictive
- Access policy blocks legitimate users
- Solution: Review and adjust access patterns
-
Rate limits exceeded
- Unexpected query volume
- Solution: Increase rate limits or add user tiers
-
Backend issues
- Dataset or model becomes unhealthy
- Solution: Check provisioner status and health checks
-
Satellite token issues
- SyftHub authentication failing
- Solution: Verify marketplace connection in settings
Endpoint not appearing in search
Symptom: Users can’t find your endpoint on SyftHub Solutions:- Wait for indexing - Allow 5-10 minutes after publishing
- Check health status - Unhealthy endpoints are deprioritized
- Improve metadata - Add relevant tags and clear description
- Verify publication - Check endpoint detail page shows “Published”
Best practices
Before publishing
- Test thoroughly - Verify endpoint works with various queries
- Set up policies - Don’t publish without access control and rate limits
- Write clear descriptions - Help users understand what your endpoint offers
- Choose relevant tags - Improve discoverability with accurate tags
- Check slug availability - Avoid conflicts before publishing
After publishing
- Monitor health - Set up alerts for health status changes
- Track usage - Watch for unusual patterns or abuse
- Respond to issues - Fix problems quickly to maintain reputation
- Update regularly - Keep descriptions and tags current
- Gather feedback - Learn from how users interact with your endpoint
Maintenance
- Schedule updates - Announce maintenance windows to users
- Test before deploying - Use unpublished test endpoints
- Version carefully - Breaking changes may require new endpoints
- Document changes - Keep description updated with new features
- Monitor post-update - Watch for issues after changes
Security
- Use access policies - Don’t publish completely open endpoints
- Implement rate limits - Protect against abuse
- Monitor queries - Look for adversarial or malicious patterns
- Rotate credentials - Update API keys regularly
- Review policies - Adjust based on actual usage patterns
Understanding the Syft network
Decentralized architecture
The Syft network is designed for autonomy:- No central authority - Each Space is independent
- Open protocol - Anyone can create marketplaces
- Direct connections - Queries route directly to your Space
- Local control - You manage your data and policies
Multiple marketplaces
You can publish to multiple marketplaces simultaneously:- General purpose - SyftHub for broad discovery
- Industry specific - Vertical marketplaces (healthcare, legal, etc.)
- Private networks - Organization-specific registries
- Regional - Geographic or language-focused marketplaces
Attribution and tracking
The network maintains attribution:- Query origin - Every query includes verified user identity
- Usage tracking - Automatic accounting across network
- Citation - Source endpoints credited in responses
- Reputation - Reliability and quality tracked over time
Next steps
Query endpoints
Learn how users will query your published endpoints
Monitor usage
Track analytics and performance for your published endpoints