Toolkits
Upsert a custom toolkit
Experimental: custom toolkits are in pilot and this contract may change. Creates a custom toolkit for the project with the provided slug, or updates its display metadata (name, API key field copy) when the project already owns a toolkit with that slug. A toolkit created here is shared with every user in the project; an existing toolkit keeps its access. app_url and auth_schemes cannot be changed on an existing toolkit: re-sending them unchanged is a no-op, changing them returns 409 (delete and re-register the toolkit instead, which revokes its connections).
POST
/
api
/
v3
/
custom
/
toolkits
/
upsert
Upsert a custom toolkit
import requests
url = "https://backend.composio.dev/api/v3/custom/toolkits/upsert"
payload = {
"slug": "MY_TOOLKIT",
"toolkit_config": {
"name": "<string>",
"app_url": "<string>",
"auth_schemes": [{ "mode": "NO_AUTH" }]
}
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
slug: 'MY_TOOLKIT',
toolkit_config: {name: '<string>', app_url: '<string>', auth_schemes: [{mode: 'NO_AUTH'}]}
})
};
fetch('https://backend.composio.dev/api/v3/custom/toolkits/upsert', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://backend.composio.dev/api/v3/custom/toolkits/upsert \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"slug": "MY_TOOLKIT",
"toolkit_config": {
"name": "<string>",
"app_url": "<string>",
"auth_schemes": [
{
"mode": "NO_AUTH"
}
]
}
}
'package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://backend.composio.dev/api/v3/custom/toolkits/upsert"
payload := strings.NewReader("{\n \"slug\": \"MY_TOOLKIT\",\n \"toolkit_config\": {\n \"name\": \"<string>\",\n \"app_url\": \"<string>\",\n \"auth_schemes\": [\n {\n \"mode\": \"NO_AUTH\"\n }\n ]\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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://backend.composio.dev/api/v3/custom/toolkits/upsert")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"slug\": \"MY_TOOLKIT\",\n \"toolkit_config\": {\n \"name\": \"<string>\",\n \"app_url\": \"<string>\",\n \"auth_schemes\": [\n {\n \"mode\": \"NO_AUTH\"\n }\n ]\n }\n}")
.asString();using RestSharp;
var options = new RestClientOptions("https://backend.composio.dev/api/v3/custom/toolkits/upsert");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("x-api-key", "<api-key>");
request.AddJsonBody("{\n \"slug\": \"MY_TOOLKIT\",\n \"toolkit_config\": {\n \"name\": \"<string>\",\n \"app_url\": \"<string>\",\n \"auth_schemes\": [\n {\n \"mode\": \"NO_AUTH\"\n }\n ]\n }\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
false{
"slug": "CUSTOM_MY_TOOLKIT"
}{
"error": {
"message": "<string>",
"code": 123,
"slug": "<string>",
"status": 123,
"request_id": "<string>",
"suggested_fix": "<string>",
"errors": [
"<string>"
]
}
}{
"error": {
"message": "<string>",
"code": 123,
"slug": "<string>",
"status": 123,
"request_id": "<string>",
"suggested_fix": "<string>",
"errors": [
"<string>"
]
}
}{
"error": {
"message": "<string>",
"code": 123,
"slug": "<string>",
"status": 123,
"request_id": "<string>",
"suggested_fix": "<string>",
"errors": [
"<string>"
]
}
}{
"error": {
"message": "<string>",
"code": 123,
"slug": "<string>",
"status": 123,
"request_id": "<string>",
"suggested_fix": "<string>",
"errors": [
"<string>"
]
}
}{
"error": {
"message": "<string>",
"code": 123,
"slug": "<string>",
"status": 123,
"request_id": "<string>",
"suggested_fix": "<string>",
"errors": [
"<string>"
]
}
}{
"error": {
"message": "<string>",
"code": 123,
"slug": "<string>",
"status": 123,
"request_id": "<string>",
"suggested_fix": "<string>",
"errors": [
"<string>"
]
}
}{
"error": {
"message": "<string>",
"code": 123,
"slug": "<string>",
"status": 123,
"request_id": "<string>",
"suggested_fix": "<string>",
"errors": [
"<string>"
]
}
}Authorizations
ApiKeyAuthUserApiKeyAuth
Body
application/json
Toolkit creation data
Upsert a custom toolkit
import requests
url = "https://backend.composio.dev/api/v3/custom/toolkits/upsert"
payload = {
"slug": "MY_TOOLKIT",
"toolkit_config": {
"name": "<string>",
"app_url": "<string>",
"auth_schemes": [{ "mode": "NO_AUTH" }]
}
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
slug: 'MY_TOOLKIT',
toolkit_config: {name: '<string>', app_url: '<string>', auth_schemes: [{mode: 'NO_AUTH'}]}
})
};
fetch('https://backend.composio.dev/api/v3/custom/toolkits/upsert', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://backend.composio.dev/api/v3/custom/toolkits/upsert \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"slug": "MY_TOOLKIT",
"toolkit_config": {
"name": "<string>",
"app_url": "<string>",
"auth_schemes": [
{
"mode": "NO_AUTH"
}
]
}
}
'package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://backend.composio.dev/api/v3/custom/toolkits/upsert"
payload := strings.NewReader("{\n \"slug\": \"MY_TOOLKIT\",\n \"toolkit_config\": {\n \"name\": \"<string>\",\n \"app_url\": \"<string>\",\n \"auth_schemes\": [\n {\n \"mode\": \"NO_AUTH\"\n }\n ]\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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://backend.composio.dev/api/v3/custom/toolkits/upsert")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"slug\": \"MY_TOOLKIT\",\n \"toolkit_config\": {\n \"name\": \"<string>\",\n \"app_url\": \"<string>\",\n \"auth_schemes\": [\n {\n \"mode\": \"NO_AUTH\"\n }\n ]\n }\n}")
.asString();using RestSharp;
var options = new RestClientOptions("https://backend.composio.dev/api/v3/custom/toolkits/upsert");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("x-api-key", "<api-key>");
request.AddJsonBody("{\n \"slug\": \"MY_TOOLKIT\",\n \"toolkit_config\": {\n \"name\": \"<string>\",\n \"app_url\": \"<string>\",\n \"auth_schemes\": [\n {\n \"mode\": \"NO_AUTH\"\n }\n ]\n }\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
false{
"slug": "CUSTOM_MY_TOOLKIT"
}{
"error": {
"message": "<string>",
"code": 123,
"slug": "<string>",
"status": 123,
"request_id": "<string>",
"suggested_fix": "<string>",
"errors": [
"<string>"
]
}
}{
"error": {
"message": "<string>",
"code": 123,
"slug": "<string>",
"status": 123,
"request_id": "<string>",
"suggested_fix": "<string>",
"errors": [
"<string>"
]
}
}{
"error": {
"message": "<string>",
"code": 123,
"slug": "<string>",
"status": 123,
"request_id": "<string>",
"suggested_fix": "<string>",
"errors": [
"<string>"
]
}
}{
"error": {
"message": "<string>",
"code": 123,
"slug": "<string>",
"status": 123,
"request_id": "<string>",
"suggested_fix": "<string>",
"errors": [
"<string>"
]
}
}{
"error": {
"message": "<string>",
"code": 123,
"slug": "<string>",
"status": 123,
"request_id": "<string>",
"suggested_fix": "<string>",
"errors": [
"<string>"
]
}
}{
"error": {
"message": "<string>",
"code": 123,
"slug": "<string>",
"status": 123,
"request_id": "<string>",
"suggested_fix": "<string>",
"errors": [
"<string>"
]
}
}{
"error": {
"message": "<string>",
"code": 123,
"slug": "<string>",
"status": 123,
"request_id": "<string>",
"suggested_fix": "<string>",
"errors": [
"<string>"
]
}
}