Create Box Feed

User Intent

"How do I sync files from Box? Show me Box feed configuration."

Operation

SDK Method: createFeed() with FeedTypes.Site Feed Service: Box OAuth: Required


Code Example (TypeScript)

import { Graphlit } from 'graphlit-client';
import { FeedTypes, FeedServiceTypes } from 'graphlit-client/dist/generated/graphql-types';

const graphlit = new Graphlit();

const feed = await graphlit.createFeed({
  name: 'Company Box',
  type: FeedTypes.Site,
  site: {
    type: FeedServiceTypes.Box,
    token: process.env.BOX_TOKEN!,
    folderPath: '/Engineering',
    fileTypes: ['pdf', 'docx'],
  },
  // Optional: add workflow for content processing
  // workflow: { id: workflow.createWorkflow.id }
});

console.log(`Created Box feed: ${feed.createFeed.id}`);

Last updated

Was this helpful?