One extra file of a skill (text)
GET
/v1/studio/skills/{skill}/files/{file}
const url = 'http://localhost:8300/v1/studio/skills/example/files/example';const options = { method: 'GET', headers: {'x-api-key': '<x-api-key>', 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 http://localhost:8300/v1/studio/skills/example/files/example \ --header 'Authorization: Bearer <token>' \ --header 'x-api-key: <x-api-key>'Every user. file is one of the skill’s files (a plain name: no folders); 404 otherwise or for a skill that is not on.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”skill
required
string
file
required
string
Responses
Section titled “Responses”The file
Media typeapplication/json
object
skill
required
string
file
required
string
text
required
string
Example generated
{ "skill": "example", "file": "example", "text": "example"}Missing or invalid x-api-key (Kong), or missing/invalid/expired/revoked bearer token
Media typeapplication/json
object
detail
required
string
Example generated
{ "detail": "example"}Not found
Media typeapplication/json
object
detail
required
string
Example generated
{ "detail": "example"}