Get a knowledge source
GET
/v1/knowledge/{id}
const url = 'https://api.orvoca.com/v1/knowledge/example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.orvoca.com/v1/knowledge/example \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Responses
Section titled “Responses”The source
Media typeapplication/json
object
id
required
string
type
required
string
title
required
string
answer
required
string | null
url
required
string | null
agent_id
required
Null = every agent in the workspace
string | null
status
required
string
error
required
string | null
pages_done
required
Websites: pages read so far (of at most 50)
number | null
chunk_count
required
number
size_bytes
required
number | null
refreshed_at
required
string | null
created_at
required
string
Example
{ "type": "file", "status": "processing"}Invalid request
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
param
string
request_id
required
string
Example generated
{ "error": { "code": "example", "message": "example", "param": "example", "request_id": "example" }}Not signed in or bad API key
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
param
string
request_id
required
string
Example generated
{ "error": { "code": "example", "message": "example", "param": "example", "request_id": "example" }}Not allowed
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
param
string
request_id
required
string
Example generated
{ "error": { "code": "example", "message": "example", "param": "example", "request_id": "example" }}Not found
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
param
string
request_id
required
string
Example generated
{ "error": { "code": "example", "message": "example", "param": "example", "request_id": "example" }}