Create Inline Skill
POST
/api/v3/organizations/{organisation}/ai/skills
const url = 'https://dashboard.quantcdn.io/api/v3/organizations/example/ai/skills';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"code-review","description":"Expert code review with security analysis","content":"You are an expert code reviewer...","triggerCondition":"When the user asks for code review","tags":["example"],"requiredTools":["example"],"namespace":"example","files":{},"disableModelInvocation":true,"allowedTools":["example"],"installedBy":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://dashboard.quantcdn.io/api/v3/organizations/example/ai/skills \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "code-review", "description": "Expert code review with security analysis", "content": "You are an expert code reviewer...", "triggerCondition": "When the user asks for code review", "tags": [ "example" ], "requiredTools": [ "example" ], "namespace": "example", "files": {}, "disableModelInvocation": true, "allowedTools": [ "example" ], "installedBy": "example" }'Creates a new skill with inline content. Use this for custom skills * that are defined directly in your organization. * * Trigger Conditions: * - Natural language description of when to use the skill * - Used by AI to determine when to suggest or apply the skill * - Example: ‘When the user asks about code review or security analysis’
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”organisation
required
string
The organisation ID
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
name
required
string
Example
code-reviewdescription
string
Example
Expert code review with security analysiscontent
required
string
Example
You are an expert code reviewer...triggerCondition
required
string
Example
When the user asks for code reviewtags
Array<string>
requiredTools
Array<string>
namespace
string
files
object
disableModelInvocation
boolean
allowedTools
Array<string>
installedBy
string
Responses
Section titled “Responses”Skill created successfully
Media typeapplication/json
object
success
boolean
skill
object
message
string
Example
{ "success": true, "message": "Skill created successfully"}Invalid request parameters
Access denied
Failed to create skill
