Enterprise API Documentation
Integrate Glashaus IPFS pinning into your applications.
RESTful API with OAuth2, scoped permissions, audit logging, and rate limiting for enterprises.
Quick Start
Get an API Key
Generate an API key from your account settings.
Authorization: Bearer sk_your_api_key_hereMake Your First Request
Use the IPFS CLI or upload via HTTP with your API key.
# Set your Glashaus API URL (from NEXT_PUBLIC_URL environment variable)
export API_URL="https://glashaus.xyz"
export API_KEY="sk_YOUR_API_KEY"
# Configure IPFS to use Glashaus
ipfs config Addresses.API "$API_URL"
# Add a file with authentication
ipfs --api-auth basic:$API_KEY: add myfile.txtGet Your CID
Receive a content identifier to share and retrieve your file.
{
"cid": "QmXxxx...",
"size": 1024,
"created": "2025-02-04T10:30:00Z"
}API Endpoints
API Key Management
List your API keys (requires session)
Create a new API key (requires session)
Revoke an API key (requires session)
Web Management
Check storage quota and usage
Download or view IPFS content
Upload files (TUS resumable protocol)
IPFS CLI Proxy
Use standard IPFS CLI commands directly with Glashaus. All operations are authenticated and quota-enforced.
Upload files with automatic pinning
Pin content by CID
Unpin content
List your pins
Authentication
Use Basic Auth with your API key (set NEXT_PUBLIC_URL from .env):
# Configure with your environment
export API_URL="https://glashaus.xyz"
export API_KEY="sk_your_api_key"
# Configure IPFS
ipfs config Addresses.API "$API_URL"
# Use standard IPFS commands with authentication
ipfs --api-auth basic:$API_KEY: add myfile.txt
ipfs --api-auth basic:$API_KEY: pin add bafybeig5...
ipfs --api-auth basic:$API_KEY: pin lsDocumentation
Full API Reference
Complete endpoint documentation with request/response examples.
IPFS CLI Integration
Use standard IPFS commands with Glashaus. Configure your CLI to use our proxy.
Authentication
Learn about API keys, Basic Auth, and session-based authentication.
Rate Limiting & Quotas
Understand quota enforcement and best practices for your application.
Need Help?
Can't find what you're looking for? Our support team is here to help.