Sourced
llms.txt
View Markdown

Api Keys ยท version 0.1.0

List workspace API keys

GET/api/api-keys

Request

cURL
curl -X GET 'https://sourced.sh/api/api-keys' \
  -H 'Authorization: Bearer $SOURCED_API_KEY'
TypeScript
const response = await fetch("https://sourced.sh/api/api-keys", {
  method: "GET",
  headers: {
    Authorization: `Bearer ${process.env.SOURCED_API_KEY}`,
  },
});
const data = await response.json();
Python
import os
import requests

response = requests.request(
    "GET",
    "https://sourced.sh/api/api-keys",
    headers={"Authorization": f"Bearer {os.environ['SOURCED_API_KEY']}"},
)

data = response.json()

Responses

200

API keys in the active workspace. Secret token values are never returned after creation.

application/json

Schema
type: object
required: apiKeys
properties:
  apiKeys (required): array
    type: array

401

403

Was this helpful?