Show examples in:
Referenced records

Retrieve all records that are linked to this upload

Query parameters

nested  Optional  boolean  Example: true

For Modular Content, Structured Text and Single Block fields, return full payload for nested blocks instead of IDs

version  Optional  null, enum  Example: "current"

Retrieve only the selected type of version that is linked to the upload; current, published or both


Returns an array of item resource objects.


Example Basic example
import { buildClient } from '@datocms/cma-client-node';
async function run() {
const client = buildClient({ apiToken: '<YOUR_API_TOKEN>' });
const uploadId = 'q0VNpiNQSkG6z0lif_O1zg';
const uploads = await client.uploads.references(uploadId);
uploads.forEach((upload) => {