🐠
Project Permissions

Solana Synq enables collaborative development by allowing project owners to create and manage secondary team API keys. These keys provide restricted access to specific parts of your project, enabling your team members to contribute without compromising security.
You can manage project permissions and create team API keys at api.solSynq.xyz.
How Project Permissions Work
Primary API Key:
The primary API key grants full access to all features and capabilities of Solana Synapse.
This key is owned and managed by the project owner.
Secondary Team API Keys:
Secondary keys provide limited access to your project.
These keys can be configured with specific permissions, ensuring team members only access the resources and functionality they need.
Setting Up a Secondary Team API Key
Follow these steps to create and manage a secondary team API key:
1. Log in to the API Management Dashboard
Visit api.solSynq.xyz.
Use your credentials to log in and access the dashboard.
2. Navigate to "Team Keys"
Once logged in, go to the Team Keys section in the dashboard.
3. Create a New Team Key
Click Create New Key and configure the following:
Name: Assign a name for the team member or role (e.g., "Data Analyst" or "Workflow Engineer").
Permissions: Select the specific actions the team key can perform.
Examples include:
Access specific AI models (e.g., sentiment analysis, trading bot).
Query blockchain data.
Deploy workflows.
Expiration (Optional): Set an expiration date for the key if desired.
4. Generate and Share
Generate the key and securely share it with the team member.
Team members can now use the key to access the specified resources.
Example Use Cases
Developer:
A developer requires access to the sentiment analysis model for building a new workflow:
Grant permissions for model inference and data query.
Analyst:
A blockchain analyst needs access to transaction data for analysis:
Grant permissions to fetch_chain_data.
Manager:
A project manager oversees workflow automation but does not interact with technical tools:
Grant view-only permissions to monitor project status.
Code Example: Using a Team Key
Once a team member has their secondary API key, they can use it in the same way as the primary key, but with restricted functionality:
Python
pythonCopy codefrom solSynq import SynqClient
# Initialize Synapse Client with the team API key
client = SynqClient(api_key="team_api_key")
# Restricted access example
try:
data = client.fetch_chain_data("recent_transactions", chain="Solana")
print("Fetched data:", data)
except Exception as e:
print("Access denied or restricted:", e)
JavaScript
javascriptCopy codeconst { SynqClient } = require('solSynq');
// Initialize Synq Client with the team API key
const client = new SynqClient({ apiKey: 'team_api_key' });
// Restricted access example
client.fetchChainData('recent_transactions', 'Solana')
.then((data) => console.log('Fetched data:', data))
.catch((err) => console.error('Access denied or restricted:', err.message));
Managing Permissions
Edit Permissions:
Update a team API key’s permissions anytime via the dashboard.
Revoke Access:
If a team member no longer requires access, you can revoke their API key immediately.
Monitor Usage:
View detailed logs for each team key to monitor usage and ensure compliance.
Best Practices for Project Permissions
Limit Scope: Only grant access to what’s necessary for the team member’s role.
Rotate Keys Regularly: Update or regenerate keys periodically for enhanced security.
Secure Sharing: Use encrypted communication channels to share API keys with team members.
Monitor Activity: Regularly review key usage to detect unauthorized or suspicious behavior.
Start Managing Team Permissions
To manage your project’s permissions and create secondary API keys, log in to the dashboard at api.solSynq.xyz. Ensure your team operates securely and efficiently with Solana Synapse!