Store Provider Tokens
curl --request POST \
--url https://app.all-hands.dev/api/add-git-providers \
--header 'Content-Type: application/json' \
--header 'X-Session-API-Key: <api-key>' \
--data '
{
"mcp_config": {
"sse_servers": [
{
"url": "<string>",
"api_key": "<string>"
}
],
"stdio_servers": [
{
"name": "<string>",
"command": "<string>",
"args": [
"<string>"
],
"env": {}
}
],
"shttp_servers": [
{
"url": "<string>",
"api_key": "<string>"
}
]
},
"provider_tokens": {}
}
'import requests
url = "https://app.all-hands.dev/api/add-git-providers"
payload = {
"mcp_config": {
"sse_servers": [
{
"url": "<string>",
"api_key": "<string>"
}
],
"stdio_servers": [
{
"name": "<string>",
"command": "<string>",
"args": ["<string>"],
"env": {}
}
],
"shttp_servers": [
{
"url": "<string>",
"api_key": "<string>"
}
]
},
"provider_tokens": {}
}
headers = {
"X-Session-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-Session-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
mcp_config: {
sse_servers: [{url: '<string>', api_key: '<string>'}],
stdio_servers: [{name: '<string>', command: '<string>', args: ['<string>'], env: {}}],
shttp_servers: [{url: '<string>', api_key: '<string>'}]
},
provider_tokens: {}
})
};
fetch('https://app.all-hands.dev/api/add-git-providers', 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.all-hands.dev/api/add-git-providers",
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([
'mcp_config' => [
'sse_servers' => [
[
'url' => '<string>',
'api_key' => '<string>'
]
],
'stdio_servers' => [
[
'name' => '<string>',
'command' => '<string>',
'args' => [
'<string>'
],
'env' => [
]
]
],
'shttp_servers' => [
[
'url' => '<string>',
'api_key' => '<string>'
]
]
],
'provider_tokens' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Session-API-Key: <api-key>"
],
]);
$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.all-hands.dev/api/add-git-providers"
payload := strings.NewReader("{\n \"mcp_config\": {\n \"sse_servers\": [\n {\n \"url\": \"<string>\",\n \"api_key\": \"<string>\"\n }\n ],\n \"stdio_servers\": [\n {\n \"name\": \"<string>\",\n \"command\": \"<string>\",\n \"args\": [\n \"<string>\"\n ],\n \"env\": {}\n }\n ],\n \"shttp_servers\": [\n {\n \"url\": \"<string>\",\n \"api_key\": \"<string>\"\n }\n ]\n },\n \"provider_tokens\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Session-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://app.all-hands.dev/api/add-git-providers")
.header("X-Session-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"mcp_config\": {\n \"sse_servers\": [\n {\n \"url\": \"<string>\",\n \"api_key\": \"<string>\"\n }\n ],\n \"stdio_servers\": [\n {\n \"name\": \"<string>\",\n \"command\": \"<string>\",\n \"args\": [\n \"<string>\"\n ],\n \"env\": {}\n }\n ],\n \"shttp_servers\": [\n {\n \"url\": \"<string>\",\n \"api_key\": \"<string>\"\n }\n ]\n },\n \"provider_tokens\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.all-hands.dev/api/add-git-providers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Session-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"mcp_config\": {\n \"sse_servers\": [\n {\n \"url\": \"<string>\",\n \"api_key\": \"<string>\"\n }\n ],\n \"stdio_servers\": [\n {\n \"name\": \"<string>\",\n \"command\": \"<string>\",\n \"args\": [\n \"<string>\"\n ],\n \"env\": {}\n }\n ],\n \"shttp_servers\": [\n {\n \"url\": \"<string>\",\n \"api_key\": \"<string>\"\n }\n ]\n },\n \"provider_tokens\": {}\n}"
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}API Reference
Store Provider Tokens
POST
/
api
/
add-git-providers
Store Provider Tokens
curl --request POST \
--url https://app.all-hands.dev/api/add-git-providers \
--header 'Content-Type: application/json' \
--header 'X-Session-API-Key: <api-key>' \
--data '
{
"mcp_config": {
"sse_servers": [
{
"url": "<string>",
"api_key": "<string>"
}
],
"stdio_servers": [
{
"name": "<string>",
"command": "<string>",
"args": [
"<string>"
],
"env": {}
}
],
"shttp_servers": [
{
"url": "<string>",
"api_key": "<string>"
}
]
},
"provider_tokens": {}
}
'import requests
url = "https://app.all-hands.dev/api/add-git-providers"
payload = {
"mcp_config": {
"sse_servers": [
{
"url": "<string>",
"api_key": "<string>"
}
],
"stdio_servers": [
{
"name": "<string>",
"command": "<string>",
"args": ["<string>"],
"env": {}
}
],
"shttp_servers": [
{
"url": "<string>",
"api_key": "<string>"
}
]
},
"provider_tokens": {}
}
headers = {
"X-Session-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-Session-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
mcp_config: {
sse_servers: [{url: '<string>', api_key: '<string>'}],
stdio_servers: [{name: '<string>', command: '<string>', args: ['<string>'], env: {}}],
shttp_servers: [{url: '<string>', api_key: '<string>'}]
},
provider_tokens: {}
})
};
fetch('https://app.all-hands.dev/api/add-git-providers', 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.all-hands.dev/api/add-git-providers",
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([
'mcp_config' => [
'sse_servers' => [
[
'url' => '<string>',
'api_key' => '<string>'
]
],
'stdio_servers' => [
[
'name' => '<string>',
'command' => '<string>',
'args' => [
'<string>'
],
'env' => [
]
]
],
'shttp_servers' => [
[
'url' => '<string>',
'api_key' => '<string>'
]
]
],
'provider_tokens' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Session-API-Key: <api-key>"
],
]);
$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.all-hands.dev/api/add-git-providers"
payload := strings.NewReader("{\n \"mcp_config\": {\n \"sse_servers\": [\n {\n \"url\": \"<string>\",\n \"api_key\": \"<string>\"\n }\n ],\n \"stdio_servers\": [\n {\n \"name\": \"<string>\",\n \"command\": \"<string>\",\n \"args\": [\n \"<string>\"\n ],\n \"env\": {}\n }\n ],\n \"shttp_servers\": [\n {\n \"url\": \"<string>\",\n \"api_key\": \"<string>\"\n }\n ]\n },\n \"provider_tokens\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Session-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://app.all-hands.dev/api/add-git-providers")
.header("X-Session-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"mcp_config\": {\n \"sse_servers\": [\n {\n \"url\": \"<string>\",\n \"api_key\": \"<string>\"\n }\n ],\n \"stdio_servers\": [\n {\n \"name\": \"<string>\",\n \"command\": \"<string>\",\n \"args\": [\n \"<string>\"\n ],\n \"env\": {}\n }\n ],\n \"shttp_servers\": [\n {\n \"url\": \"<string>\",\n \"api_key\": \"<string>\"\n }\n ]\n },\n \"provider_tokens\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.all-hands.dev/api/add-git-providers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Session-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"mcp_config\": {\n \"sse_servers\": [\n {\n \"url\": \"<string>\",\n \"api_key\": \"<string>\"\n }\n ],\n \"stdio_servers\": [\n {\n \"name\": \"<string>\",\n \"command\": \"<string>\",\n \"args\": [\n \"<string>\"\n ],\n \"env\": {}\n }\n ],\n \"shttp_servers\": [\n {\n \"url\": \"<string>\",\n \"api_key\": \"<string>\"\n }\n ]\n },\n \"provider_tokens\": {}\n}"
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Body
application/json
Settings for POST requests
Configuration for MCP (Message Control Protocol) settings.
Attributes: sse_servers: List of MCP SSE server configs stdio_servers: List of MCP stdio server configs. These servers will be added to the MCP Router running inside runtime container. shttp_servers: List of MCP HTTP server configs.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Response
Successful Response
Was this page helpful?
⌘I

