npm install @directus/sdk
import { Directus } from '@directus/sdk';
const directus = new Directus('https://api.example.com/');
const items = await directus.items('articles').readOne(15);
console.log(items);
import { Directus } from '@directus/sdk';
const directus = new Directus('https://api.example.com/');
directus
.items('articles')
.readOne(15)
.then((item) => {
console.log(item);
});
See the docs