curl "https://app.runtm.com/api/cloud/organizations/org_abc123/provider-keys/anthropic" \
-H "Authorization: Bearer runtm_xxx" \
-H "X-Organization-Id: org_abc123"
import requests
org_id = "org_abc123"
provider = "anthropic"
resp = requests.get(
f"https://app.runtm.com/api/cloud/organizations/{org_id}/provider-keys/{provider}",
headers={
"Authorization": "Bearer runtm_xxx",
"X-Organization-Id": org_id,
},
)
print(resp.json())
const orgId = "org_abc123";
const provider = "anthropic";
const resp = await fetch(
`https://app.runtm.com/api/cloud/organizations/${orgId}/provider-keys/${provider}`,
{
headers: {
Authorization: "Bearer runtm_xxx",
"X-Organization-Id": orgId,
},
}
);
const data = await resp.json();
{
"provider": "anthropic",
"connected": true,
"key_preview": "sk-ant-...org1",
"updated_at": "2026-05-06T14:00:00Z"
}
Org Keys
Get Org Provider Key
Check whether an organization has a provider key configured.
GET
/
api
/
organizations
/
{org_id}
/
provider-keys
/
{provider}
curl "https://app.runtm.com/api/cloud/organizations/org_abc123/provider-keys/anthropic" \
-H "Authorization: Bearer runtm_xxx" \
-H "X-Organization-Id: org_abc123"
import requests
org_id = "org_abc123"
provider = "anthropic"
resp = requests.get(
f"https://app.runtm.com/api/cloud/organizations/{org_id}/provider-keys/{provider}",
headers={
"Authorization": "Bearer runtm_xxx",
"X-Organization-Id": org_id,
},
)
print(resp.json())
const orgId = "org_abc123";
const provider = "anthropic";
const resp = await fetch(
`https://app.runtm.com/api/cloud/organizations/${orgId}/provider-keys/${provider}`,
{
headers: {
Authorization: "Bearer runtm_xxx",
"X-Organization-Id": orgId,
},
}
);
const data = await resp.json();
{
"provider": "anthropic",
"connected": true,
"key_preview": "sk-ant-...org1",
"updated_at": "2026-05-06T14:00:00Z"
}
Returns the connection status and masked preview for a specific provider key belonging to an organization.
Required scope:
integrations:read
The
X-Organization-Id header must match the org_id path parameter.string
required
The organization ID.
string
required
The provider name. One of:
anthropic, openai, cursor, devin, gemini, copilot.string
required
Bearer token.
Authorization: Bearer runtm_xxxstring
required
Must match the
org_id path parameter.string
The provider name.
boolean
Whether a key is currently configured.
string
Masked key preview. 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/organizations/org_abc123/provider-keys/anthropic" \
-H "Authorization: Bearer runtm_xxx" \
-H "X-Organization-Id: org_abc123"
import requests
org_id = "org_abc123"
provider = "anthropic"
resp = requests.get(
f"https://app.runtm.com/api/cloud/organizations/{org_id}/provider-keys/{provider}",
headers={
"Authorization": "Bearer runtm_xxx",
"X-Organization-Id": org_id,
},
)
print(resp.json())
const orgId = "org_abc123";
const provider = "anthropic";
const resp = await fetch(
`https://app.runtm.com/api/cloud/organizations/${orgId}/provider-keys/${provider}`,
{
headers: {
Authorization: "Bearer runtm_xxx",
"X-Organization-Id": orgId,
},
}
);
const data = await resp.json();
{
"provider": "anthropic",
"connected": true,
"key_preview": "sk-ant-...org1",
"updated_at": "2026-05-06T14:00:00Z"
}