For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Dashboard
User GuideDeveloper GuidesAPI Reference
User GuideDeveloper GuidesAPI Reference
    • Overview
  • Runtype API
      • GETList provider keys
      • POSTCreate a provider key
      • POSTDiscover models from endpoint
      • GETList provider keys by provider
      • DELDelete a provider key
      • PATCHUpdate a provider key
      • POSTDiscover models from existing key
      • POSTSync models for a provider key
Dashboard
LogoLogo
Runtype APIProvider Keys

List provider keys

GET
/v1/provider-keys
GET
/v1/provider-keys
$curl https://api.runtype.com/v1/provider-keys \
> -H "Authorization: <apiKey>" \
> -H "Content-Type: application/json"
1{
2 "providerKeys": [
3 {
4 "createdAt": "2024-05-20T10:15:30Z",
5 "id": "pk_8f3b2c1d4e5a6b7c8d9e0f1a2b3c4d5e",
6 "isActive": true,
7 "isDefault": true,
8 "keyPreview": "sk_live_1234abcd",
9 "lastUsedAt": "2024-06-01T08:45:00Z",
10 "name": "OpenAI GPT-4 Key",
11 "provider": "openai",
12 "updatedAt": "2024-05-25T12:00:00Z",
13 "usageCount": 2543,
14 "settings": {
15 "region": "us-west-2",
16 "quota": 100000
17 }
18 }
19 ]
20}
Returns all provider API keys for the authenticated user.
Was this page helpful?
Previous

Create a provider key

Next
Built with

Authentication

AuthorizationBearer
API key or Clerk session token

Response

Successful response
providerKeyslist of objects

Errors

401
Unauthorized Error
500
Internal Server Error