curl "https://app.runtm.com/api/cloud/user/provider-keys/anthropic" \
-H "Authorization: Bearer runtm_xxx"
import requests
provider = "anthropic"
resp = requests.get(
f"https://app.runtm.com/api/cloud/user/provider-keys/{provider}",
headers={"Authorization": "Bearer runtm_xxx"},
)
data = resp.json()
if data["connected"]:
print(f"Key configured: {data['key_preview']}")
const provider = "anthropic";
const resp = await fetch(
`https://app.runtm.com/api/cloud/user/provider-keys/${provider}`,
{
headers: {
Authorization: "Bearer runtm_xxx",
},
}
);
const data = await resp.json();
if (data.connected) {
console.log(`Key configured: ${data.key_preview}`);
}
{
"provider": "anthropic",
"connected": true,
"key_preview": "sk-ant-...x7f2",
"updated_at": "2026-05-08T12:00:00Z"
}
User Keys
Get User Provider Key
Check whether the authenticated user has a provider key configured.
GET
/
api
/
user
/
provider-keys
/
{provider}
curl "https://app.runtm.com/api/cloud/user/provider-keys/anthropic" \
-H "Authorization: Bearer runtm_xxx"
import requests
provider = "anthropic"
resp = requests.get(
f"https://app.runtm.com/api/cloud/user/provider-keys/{provider}",
headers={"Authorization": "Bearer runtm_xxx"},
)
data = resp.json()
if data["connected"]:
print(f"Key configured: {data['key_preview']}")
const provider = "anthropic";
const resp = await fetch(
`https://app.runtm.com/api/cloud/user/provider-keys/${provider}`,
{
headers: {
Authorization: "Bearer runtm_xxx",
},
}
);
const data = await resp.json();
if (data.connected) {
console.log(`Key configured: ${data.key_preview}`);
}
{
"provider": "anthropic",
"connected": true,
"key_preview": "sk-ant-...x7f2",
"updated_at": "2026-05-08T12:00:00Z"
}
Returns the connection status and masked preview for a specific provider key belonging to the authenticated user.
Required scope:
integrations:read
string
required
The provider name. One of:
anthropic, openai, cursor, devin, gemini, copilot.string
required
Bearer token.
Authorization: Bearer runtm_xxxstring
The provider name.
boolean
Whether a key is currently configured.
string
Masked key preview (e.g.
sk-ant-...x7f2). Null if no key is set.string
ISO 8601 timestamp of the last update. Null if no key is set.
curl "https://app.runtm.com/api/cloud/user/provider-keys/anthropic" \
-H "Authorization: Bearer runtm_xxx"
import requests
provider = "anthropic"
resp = requests.get(
f"https://app.runtm.com/api/cloud/user/provider-keys/{provider}",
headers={"Authorization": "Bearer runtm_xxx"},
)
data = resp.json()
if data["connected"]:
print(f"Key configured: {data['key_preview']}")
const provider = "anthropic";
const resp = await fetch(
`https://app.runtm.com/api/cloud/user/provider-keys/${provider}`,
{
headers: {
Authorization: "Bearer runtm_xxx",
},
}
);
const data = await resp.json();
if (data.connected) {
console.log(`Key configured: ${data.key_preview}`);
}
{
"provider": "anthropic",
"connected": true,
"key_preview": "sk-ant-...x7f2",
"updated_at": "2026-05-08T12:00:00Z"
}