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

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

const response = await client.sources.getSource({
  teamId: process.env.OCTOSPARK_TEAM_ID ?? "teamId",
  sourceId: process.env.OCTOSPARK_SOURCE_ID ?? "sourceId",
})
{
  "source": {
    "id": "<string>",
    "teamId": "<string>",
    "title": "<string>",
    "statusError": "<string>",
    "saved": true,
    "createdAt": "<string>",
    "updatedAt": "<string>"
  },
  "extraction": {
    "extractedText": "<string>",
    "summary": "<string>",
    "imageUrls": [
      "<string>"
    ],
    "sourceMetadata": {}
  },
  "toolCallId": "<string>",
  "creditsUsedDecimillicents": 123
}

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

source
object
required
extraction
object
required
toolCallId
string | null
required
creditsUsedDecimillicents
number
required