Create a custom team subagent
curl --request POST \
--url https://app.felan.ai/api/v1/teams/{teamSlug}/subagents \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Release helper",
"description": "Prepares and verifies releases.",
"instructions": "Check the changelog, run release checks, and report blockers.",
"model": "high"
}
'import requests
url = "https://app.felan.ai/api/v1/teams/{teamSlug}/subagents"
payload = {
"name": "Release helper",
"description": "Prepares and verifies releases.",
"instructions": "Check the changelog, run release checks, and report blockers.",
"model": "high"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Release helper',
description: 'Prepares and verifies releases.',
instructions: 'Check the changelog, run release checks, and report blockers.',
model: 'high'
})
};
fetch('https://app.felan.ai/api/v1/teams/{teamSlug}/subagents', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.felan.ai/api/v1/teams/{teamSlug}/subagents",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Release helper',
'description' => 'Prepares and verifies releases.',
'instructions' => 'Check the changelog, run release checks, and report blockers.',
'model' => 'high'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.felan.ai/api/v1/teams/{teamSlug}/subagents"
payload := strings.NewReader("{\n \"name\": \"Release helper\",\n \"description\": \"Prepares and verifies releases.\",\n \"instructions\": \"Check the changelog, run release checks, and report blockers.\",\n \"model\": \"high\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.felan.ai/api/v1/teams/{teamSlug}/subagents")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Release helper\",\n \"description\": \"Prepares and verifies releases.\",\n \"instructions\": \"Check the changelog, run release checks, and report blockers.\",\n \"model\": \"high\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.felan.ai/api/v1/teams/{teamSlug}/subagents")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Release helper\",\n \"description\": \"Prepares and verifies releases.\",\n \"instructions\": \"Check the changelog, run release checks, and report blockers.\",\n \"model\": \"high\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "<unknown>",
"name": "Release helper",
"description": "Prepares and verifies releases.",
"instructions": "Check the changelog, run release checks, and report blockers.",
"model": "high"
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid subagent fields"
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>"
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>"
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>"
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>"
}
}Subagents
Create a custom team subagent
Creates a customer-defined subagent for future sessions. Team skills are automatically available; per-subagent skill, extension, credential, and execution-limit fields are not accepted.
POST
/
teams
/
{teamSlug}
/
subagents
Create a custom team subagent
curl --request POST \
--url https://app.felan.ai/api/v1/teams/{teamSlug}/subagents \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Release helper",
"description": "Prepares and verifies releases.",
"instructions": "Check the changelog, run release checks, and report blockers.",
"model": "high"
}
'import requests
url = "https://app.felan.ai/api/v1/teams/{teamSlug}/subagents"
payload = {
"name": "Release helper",
"description": "Prepares and verifies releases.",
"instructions": "Check the changelog, run release checks, and report blockers.",
"model": "high"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Release helper',
description: 'Prepares and verifies releases.',
instructions: 'Check the changelog, run release checks, and report blockers.',
model: 'high'
})
};
fetch('https://app.felan.ai/api/v1/teams/{teamSlug}/subagents', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.felan.ai/api/v1/teams/{teamSlug}/subagents",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Release helper',
'description' => 'Prepares and verifies releases.',
'instructions' => 'Check the changelog, run release checks, and report blockers.',
'model' => 'high'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.felan.ai/api/v1/teams/{teamSlug}/subagents"
payload := strings.NewReader("{\n \"name\": \"Release helper\",\n \"description\": \"Prepares and verifies releases.\",\n \"instructions\": \"Check the changelog, run release checks, and report blockers.\",\n \"model\": \"high\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.felan.ai/api/v1/teams/{teamSlug}/subagents")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Release helper\",\n \"description\": \"Prepares and verifies releases.\",\n \"instructions\": \"Check the changelog, run release checks, and report blockers.\",\n \"model\": \"high\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.felan.ai/api/v1/teams/{teamSlug}/subagents")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Release helper\",\n \"description\": \"Prepares and verifies releases.\",\n \"instructions\": \"Check the changelog, run release checks, and report blockers.\",\n \"model\": \"high\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "<unknown>",
"name": "Release helper",
"description": "Prepares and verifies releases.",
"instructions": "Check the changelog, run release checks, and report blockers.",
"model": "high"
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid subagent fields"
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>"
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>"
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>"
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>"
}
}Authorizations
Team API key. Current keys retain the bzy_team_ compatibility prefix.
Path Parameters
Felan team slug shown in dashboard URLs and Team Settings
Minimum string length:
1Body
application/json
Maximum string length:
100Example:
"Release helper"
Maximum string length:
1024Example:
"Prepares and verifies releases."
Maximum string length:
65536Example:
"Check the changelog, run release checks, and report blockers."
Inherit the team default, choose a portable model tier, or select an exact configured provider/model.
Available options:
inherit, xhigh, high, medium, low Example:
"high"
Response
Custom subagent created
Show child attributes
Show child attributes
