Skip to content

Get a skill

GET
/skills/{skillId}
import { FloraClient } from '@flora-ai/flora';
const client = new FloraClient({ apiKey: process.env['FLORA_API_KEY'] });
const skill = await client.skills.retrieve({
skillId: '<skillId>',
});
console.log(skill);

Returns a single skill owned by the authenticated user with its body. Missing and foreign skills both return 404.

Error responses use the standard error body.

skillId
required

Skill identifier

string
/^skill_\S+$/

Skill identifier

Skill returned.

Media type application/json
object
skill_id
required

Skill identifier

string
/^skill_\S+$/
slug
required

Skill URL slug

string
name
required

Skill name

string
description
required

Skill description

string
thumbnail_video_url

Skill thumbnail video URL

string
thumbnail_image_url

Skill thumbnail image URL

string
body
required

Skill body

string
>= 1 characters
Example
{
"skill_id": "skill_abc123",
"slug": "brand-voice",
"name": "Brand Voice",
"description": "Writes in our brand voice.",
"body": "# Brand Voice\nWrite warmly and plainly."
}