Logo
Search
Docs

List credentials

GET https://app.sulus.ai/api/tools/credentials

Slim list of the caller's active credentials, for the Authorization dropdown

Authentication

Send a bearer token created on your dashboard's Developer page:

Authorization: Bearer <YOUR_API_KEY>

Errors

StatusMeaningBody
401 Missing or invalid bearer token
403 Feature tools not enabled for the account

Notes

  • Only status: active credentials are included. On any failure this endpoint degrades to an empty list rather than an error.
curl --request GET \
  --url https://app.sulus.ai/api/tools/credentials \
  --header 'Authorization: Bearer <YOUR_API_KEY>'
import requests

url = "https://app.sulus.ai/api/tools/credentials"
headers = {"Authorization": "Bearer <YOUR_API_KEY>"}

response = requests.get(url, headers=headers)
print(response.json())
package main

import (
	"fmt"
	"io"
	"net/http"
)

func main() {
	url := "https://app.sulus.ai/api/tools/credentials"
	req, _ := http.NewRequest("GET", url, nil)
	req.Header.Add("Authorization", "Bearer <YOUR_API_KEY>")
	res, _ := http.DefaultClient.Do(req)
	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)
	fmt.Println(string(body))
}
Response 200
{
    "success": true,
    "data": [
        {
            "id": "3f9c2a10-6b4e-4a2d-9f0a-1c2d3e4f5a6b",
            "provider": "custom-credential",
            "name": "Orders API"
        }
    ]
}