POST
/
v1
/
teams
/
{teamId}
/
sources
/
{sourceId}
/
reingest
TypeScript client
import { OctosparkClient } from '@octospark/sdk'

const client = new OctosparkClient({
  token: process.env.OCTOSPARK_TOKEN
})

const response = await client.sources.reingestSource({
  teamId: process.env.OCTOSPARK_TEAM_ID ?? "teamId",
  sourceId: process.env.OCTOSPARK_SOURCE_ID ?? "sourceId",
})
{
  "id": "<string>",
  "teamId": "<string>",
  "title": "<string>",
  "statusError": "<string>",
  "saved": true,
  "createdAt": "<string>",
  "updatedAt": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

teamId
string
required

Team (workspace) id (UUID). Discover ids via the list teams endpoint or the agent context.

sourceId
string
required

Content source id (UUID), as returned by the create source and list sources endpoints.

Response

Success

id
string
required
teamId
string
required
sourceType
enum<string>
required
Available options:
text,
article,
youtube,
tiktok,
audio,
pdf,
skill
title
string | null
required
status
enum<string>
required
Available options:
pending,
extracting,
ready,
failed,
skipped_insufficient_credits
statusError
string | null
required
saved
boolean
required
createdAt
string
required
updatedAt
string
required