π‘API Overview
Overview
The Molecule Protocol provides programmatic APIs for building applications, integrations, and automated workflows on top of decentralized science infrastructure. These APIs enable developers to query project data, tokenize research, and manage research datarooms.
API Areas
π Labs API
Upload files to lab datarooms for secure, decentralized research data storage, and query labs, members, activity, and legal-agreement status.
Purpose:
Create labs (datarooms) for onchain labs (OCLs)
Automate file uploads to lab datarooms
Integrate with data pipelines and CI/CD
Batch upload research data
Manage file versions, metadata, and LabNFT display metadata
Query labs, files, members, activity, and onchain events (mostly public access)
Manage service tokens and legal-agreement signing
Authentication:
Most queries (read operations): consumer credential only β public. One exception,
legalAgreementTemplate, needs a Service Token or an authenticated session.Write mutations (write operations): consumer credential plus either a Service Token (
X-Service-Token) or a Privy user session (Authorization+x-wallet-address) β the two paths are interchangeable. Exceptions:extendServiceTokenandrevokeServiceTokenare Service-Token-only, andgenerateServiceTokenbootstraps a token from a Privy session or wallet signature.
View Labs API Documentation β
π Tokenization API
Tokenize Labs into fungible IP Tokens (IPTs) on Base.
Purpose:
Tokenize Labs into tradeable ERC-20 tokens
Generate Lab (OCL) membership agreements
Manage the complete onchain tokenization workflow
Authentication: Consumer credential required
View Tokenization API Documentation β
π³ x402 Gateway
Pay-per-call HTTP 402 gateway that fronts a set of Labs API write mutations with per-request USDC settlement on Base.
Purpose:
Give autonomous agents and third-party tools write access without a long-lived service token
Pay per mutation call in USDC, settled on Base
Mint short-lived, scoped service tokens on the fly after payment
Authentication: Per-request stablecoin payment (no long-lived service token required)
View x402 Gateway Documentation β
π IPNFT API (Deprecated)
Query and browse IP-NFTs, IP Tokens (IPTs), and market data across the Molecule ecosystem.
Purpose:
Browse all IP-NFTs and IPTs on the platform
Query metadata, ownership, and project details
Access trading data and market metrics
Build marketplace UIs and token screeners
Authentication: Consumer credential required
View IPNFT API Documentation (Deprecated) β
Authentication
All Molecule APIs require a consumer credential; the Labs API additionally uses a Service Token for write operations. Obtaining credentials, the per-API header requirements, and the full Labs API authentication model (public queries vs. protected mutations) are documented on the dedicated Authentication page.
API Endpoints
All APIs use the same GraphQL endpoint:
Quick Start Guide
1. Get API Access
Contact the Molecule team via Discord to obtain your consumer credential.
2. Choose Your API
Upload files to a Lab dataroom
Tokenize a Lab into IP Tokens (IPTs)
Pay per call without a long-lived token
Browse IP-NFTs and IPTs (legacy)
Check market prices and trading data (legacy)
3. Make Your First Request
Example (Labs API β public labs query, consumer credential only):
Getting Support
If you encounter any issues or have questions about the APIs:
Discord: Join our Discord community for support
Documentation: Check the specific API documentation pages linked above
Contact: Reach out to the Molecule development team
Additional Resources
Last updated: July 2026
Last updated