TubeOnAITubeOnAIDevelopers
Skip to Content
TubeOnAITubeOnAIDevelopers

Get a saved source

GET
/v1/ai/library/{id}

Authorization

bearerAuth
headerAuthorizationBearer <token>

Path Parameters

id*string

Response Body

application/json
  1. response
failure_reason?string|null
id*string

Pass as id to get_transcript (with poll_only: true while pending) or get_library_item.

kind*SourceKind

Source kind, in the Library's vocabulary.

Value in"youtube""article""podcast""media""upload""text"
library_url*string

The item in the TubeOnAI web app.

source_url?|

The original link, when the source has one.

status*ItemStatus

Where an item is: ready (its transcript can be read), processing, waiting (for captions or a live stream to end) or failed (see failure_reason).

Value in"ready""processing""waiting""failed"
title?string|null
transcript_available*boolean

The transcript or full text can be read now with get_transcript.

projects*array<>

The projects this source is in.

Example Request
curl -X GET 'https://beta.app.tubeonai.com/v1/ai/library/string'
Example Response
{  "failure_reason": "string",  "id": "string",  "kind": "youtube",  "library_url": "string",  "source_url": "string",  "status": "ready",  "title": "string",  "transcript_available": true,  "projects": [    {      "id": "string",      "name": "string"    }  ]}