Add a provider
curl --request POST \
--url https://api.dualmindlab.tech/api/admin/providers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"provider_name": "google",
"display_name": "Google AI Studio"
}
'import requests
url = "https://api.dualmindlab.tech/api/admin/providers"
payload = {
"provider_name": "google",
"display_name": "Google AI Studio"
}
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({provider_name: 'google', display_name: 'Google AI Studio'})
};
fetch('https://api.dualmindlab.tech/api/admin/providers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({provider_name: 'google', display_name: 'Google AI Studio'})
};
fetch('https://api.dualmindlab.tech/api/admin/providers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.dualmindlab.tech/api/admin/providers"
payload := strings.NewReader("{\n \"provider_name\": \"google\",\n \"display_name\": \"Google AI Studio\"\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))
}using RestSharp;
var options = new RestClientOptions("https://api.dualmindlab.tech/api/admin/providers");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
request.AddJsonBody("{\n \"provider_name\": \"google\",\n \"display_name\": \"Google AI Studio\"\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
HttpResponse<String> response = Unirest.post("https://api.dualmindlab.tech/api/admin/providers")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"provider_name\": \"google\",\n \"display_name\": \"Google AI Studio\"\n}")
.asString();{
"success": true,
"data": {
"provider_name": "groq",
"display_name": "Groq",
"is_enabled": true,
"priority": 0,
"key_count": 2,
"status": "active",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}{
"success": false,
"error": "Role must be one of: admin, user"
}{
"success": false,
"error": "Role must be one of: admin, user"
}Add a provider
Adds a provider row and refreshes the cache. Only groq, google and cloudflare are routed by the API today; other names are stored but unused.
POST
/
api
/
admin
/
providers
Add a provider
curl --request POST \
--url https://api.dualmindlab.tech/api/admin/providers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"provider_name": "google",
"display_name": "Google AI Studio"
}
'import requests
url = "https://api.dualmindlab.tech/api/admin/providers"
payload = {
"provider_name": "google",
"display_name": "Google AI Studio"
}
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({provider_name: 'google', display_name: 'Google AI Studio'})
};
fetch('https://api.dualmindlab.tech/api/admin/providers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({provider_name: 'google', display_name: 'Google AI Studio'})
};
fetch('https://api.dualmindlab.tech/api/admin/providers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.dualmindlab.tech/api/admin/providers"
payload := strings.NewReader("{\n \"provider_name\": \"google\",\n \"display_name\": \"Google AI Studio\"\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))
}using RestSharp;
var options = new RestClientOptions("https://api.dualmindlab.tech/api/admin/providers");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
request.AddJsonBody("{\n \"provider_name\": \"google\",\n \"display_name\": \"Google AI Studio\"\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
HttpResponse<String> response = Unirest.post("https://api.dualmindlab.tech/api/admin/providers")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"provider_name\": \"google\",\n \"display_name\": \"Google AI Studio\"\n}")
.asString();{
"success": true,
"data": {
"provider_name": "groq",
"display_name": "Groq",
"is_enabled": true,
"priority": 0,
"key_count": 2,
"status": "active",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}{
"success": false,
"error": "Role must be one of: admin, user"
}{
"success": false,
"error": "Role must be one of: admin, user"
}AdminOnly
Bearer token, role admin
Authorizations
Supabase access token of an account with role = 'admin' in public.users.
Body
application/json
Last modified on October 18, 2026
Was this page helpful?
⌘I