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

Loading API key...

API Endpoints

API Key Management

GET/api/keys

List your API keys (requires session)


POST/api/keys

Create a new API key (requires session)


DELETE/api/keys/[id]

Revoke an API key (requires session)

Web Management

GET/api/quota/status

Check storage quota and usage


GET/api/gateway/ipfs/[cid]

Download or view IPFS content


POST/api/upload-direct

Upload files (TUS resumable protocol)

IPFS CLI Proxy

Use standard IPFS CLI commands directly with Glashaus. All operations are authenticated and quota-enforced.

CLI/api/v0/add

Upload files with automatic pinning

CLI/api/v0/pin/add

Pin content by CID

CLI/api/v0/pin/rm

Unpin content

CLI/api/v0/pin/ls

List your pins


Authentication

Use Basic Auth with your API key (set NEXT_PUBLIC_URL from .env):

bash
# 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 ls

Manage Your API Keys

Create, view, and revoke API keys from your developer dashboard. All keys are securely hashed and you can set scoped permissions.

Go to API Keys

Need Help?

Can't find what you're looking for? Our support team is here to help.