Browse & Search
Cross-cutting read operations that aren't scoped to a single lab you administer: browsing and reading labs and their files, full-text search, and activity feeds. Reads tied to a specific resource live with that resource — e.g. members and DID-link status in Lab Management.
Listing Labs & Activity
Query operations for listing all labs and reading their activity feeds. To read a single lab and its data-room files, see Get Single Project with Files; to read one file, see Get File by Path.
List All Projects
Onchain labs, with optional membership filtering and page-numbered pagination. Superseded by labsConnection for new consumers, which adds cursor pagination, sorting and richer filters.
Returns LabsResult!.
walletAddress
String
Wallet address to filter labs by membership. When provided, returns labs where this wallet holds any active role (owner/contributor/viewer) unless narrowed by role.
role
Role filter, applied only when walletAddress is set, restricting the result to labs where that wallet holds this role. Omit to include every lab the wallet belongs to under any role.
page
Int
Page number (0-indexed).
perPage
Int
Number of items per page (max 100).
🔓 Public Endpoint: The
labsquery does not require authentication. You only need a consumer credential —Authorization: mol_<consumerId>_<secret>, with noBearerprefix — and no Service Token.
GraphQL Query:
query ListProjects($walletAddress: String, $page: Int, $perPage: Int) {
labs(walletAddress: $walletAddress, page: $page, perPage: $perPage) {
nodes {
oclId
shortname
name
description
labAccountAddress
labNftTokenId
latestContributionAt
trlValue
trlRationale
isVerified
}
totalCount
pageInfo {
hasNextPage
hasPreviousPage
currentPage
totalPages
}
}
}The
labslist returns lightweightLabRefobjects. Data-room contents and account details are not part ofLabRef— fetch them per lab vialabWithDataRoomAndFiles.
CMS-enriched fields (optional):
These fields are sourced from the Molecule CMS and hydrated only when requested in the selection set. They are null when the project has no corresponding CMS entry.
trlValue
String
Technology Readiness Level (TRL) assessment for the project
trlRationale
String
Explanation supporting the assigned TRL value
trlLastUpdated
DateTime
Timestamp of the last change to trlValue
weightedScore
Float
AI-generated weighted project score derived from the trlValue
scoreInterpretation
String
Human-readable summary of the overall assessment behind weightedScore
criterionScores
[JSON]
Per-criterion breakdown behind weightedScore. Each entry is a JSON object shaped like { "criterion": String, "score": Number }
scoredAt
DateTime
Timestamp the project scoring behind weightedScore was last computed
todos
[JSON]
AI-generated action items for the lab, each a JSON object shaped like { "todo": String, "completed": Boolean }
isVerified
Boolean
Whether the project has been verified by Molecule
Example Request:
Project Activity Feed
Get the activity timeline for a specific project. This is a public endpoint - no authentication required.
Unfiltered, nodes is a LabActivityNode union that also includes LabEventAnnouncement entries. Announcements are deprecated, but labs created before the deprecation still carry them, so pass filter: FILE if you want a file-only feed and handle __typename defensively if you do not. LabActivityFilter accepts FILE and ANNOUNCEMENT.
🔓 Public Endpoint: The
labActivityquery does not require authentication. You only need a consumer credential —Authorization: mol_<consumerId>_<secret>, with noBearerprefix — and no Service Token.
GraphQL Query:
Example Request:
Use Cases:
Project timelines showing what changed in a data room and when
Download links for data-room files
Encrypted file access (Onchain-Verified Envelope Encryption for new files)
Projects with many file events (efficient pagination)
Global Activity Feed
Get all activity across all projects. This is a public endpoint - no authentication required.
🔓 Public Endpoint: The
activitiesquery does not require authentication. You only need a consumer credential —Authorization: mol_<consumerId>_<secret>, with noBearerprefix — and no Service Token.
GraphQL Query:
Errors: a failed
activitiesquery returnsdata: nullwith a top-level GraphQLerrors[]entry whoseerrorTypeis the error code — see Errors.
Searching Labs
Semantic search across labs' files and announcements. Public. A blank prompt fails with VALIDATION_FAILED, and an upstream outage fails with UPSTREAM_UNAVAILABLE or TIMEOUT rather than returning an empty page.
Returns SearchLabsResult!.
prompt
String!
Natural-language search text. Truncated to 2000 characters.
filters
Filters narrowing which labs, tags, categories, access levels and entry kinds are searched.
page
Int
Page number, 0-indexed; negative or non-integer values fall back to 0.
perPage
Int
Hits per page, to a maximum of 100; values outside 1-100 and non-integers fall back to 10.
GraphQL Query:
SearchLabsHit is a union of SearchLabsFileHit and SearchLabsAnnouncementHit. The examples below match only the file arm; if you handle the union exhaustively, expect the announcement __typename too — announcements are deprecated but pre-existing ones are still indexed and still returned.
Example - Basic Search:
Example - Filtered Search:
Understanding Results:
Search results are returned as a union type. Use the __typename field to determine result type:
SearchLabsFileHit: File search result
Access via:
entry.fileContains: file metadata, tags, categories, download URL
JavaScript Example:
Onchain Activity
Onchain Activity Feed
Per-transaction onchain activity for a lab or wallet, newest first; distinct from labActivity, the data room feed. Requires at least one of oclId or wallet, AND-ed when both are given, and fails with VALIDATION_FAILED when both are missing or oclId is malformed.
Returns [OnChainEvent!]!.
oclId
String
Restrict the feed to this lab. 32-byte OCL id of the lab, 0x plus 64 hex, case-insensitive.
wallet
String
Restrict the feed to events involving this wallet address, case-insensitive. Covers role grants and revocations for the account and transfers to or from it.
limit
Int
Maximum transaction groups to return, 1 to 200. Values outside that range fall back to 50.
cursor
String
id of the last entry of the previous page. A value missing either half, or with a non-integer block number, is ignored and the first page returned.
For the flat, one-row-per-event stream, use rawOnChainActivity (same filters and cursor semantics).
* Provide at least one of oclId or wallet.
On a raw event, contractName is one of accessresolver, ocl, ipnft, ipt or bio-agent, and args is a JSON object of the decoded event arguments (BigInts as decimal strings, addresses lowercased).
Related
Lab Management — reads scoped to one lab
Files — reading a single file
Last updated
Was this helpful?