curl -X GET "https://app.runtm.com/api/v1/me" \
-H "Authorization: Bearer runtm_xxx"
import requests
response = requests.get(
"https://app.runtm.com/api/v1/me",
headers={"Authorization": "Bearer runtm_xxx"}
)
if response.status_code == 200:
data = response.json()
print(f"Tenant: {data['tenant_id']}")
print(f"Scopes: {', '.join(data['scopes'])}")
else:
print("Invalid API key")
const response = await fetch(
"https://app.runtm.com/api/v1/me",
{
headers: {
"Authorization": "Bearer runtm_xxx"
}
}
);
if (response.ok) {
const data = await response.json();
console.log(`Tenant: ${data.tenant_id}`);
console.log(`Scopes: ${data.scopes.join(", ")}`);
} else {
console.log("Invalid API key");
}
{
"tenant_id": "tenant_abc123",
"principal_id": "user_xyz789",
"scopes": ["read", "deploy", "delete"]
}
{
"detail": {
"error": "Invalid or expired API key"
}
}
User
Get Current User
Get information about the authenticated user
GET
/
v1
/
me
curl -X GET "https://app.runtm.com/api/v1/me" \
-H "Authorization: Bearer runtm_xxx"
import requests
response = requests.get(
"https://app.runtm.com/api/v1/me",
headers={"Authorization": "Bearer runtm_xxx"}
)
if response.status_code == 200:
data = response.json()
print(f"Tenant: {data['tenant_id']}")
print(f"Scopes: {', '.join(data['scopes'])}")
else:
print("Invalid API key")
const response = await fetch(
"https://app.runtm.com/api/v1/me",
{
headers: {
"Authorization": "Bearer runtm_xxx"
}
}
);
if (response.ok) {
const data = await response.json();
console.log(`Tenant: ${data.tenant_id}`);
console.log(`Scopes: ${data.scopes.join(", ")}`);
} else {
console.log("Invalid API key");
}
{
"tenant_id": "tenant_abc123",
"principal_id": "user_xyz789",
"scopes": ["read", "deploy", "delete"]
}
{
"detail": {
"error": "Invalid or expired API key"
}
}
Retrieve information about the currently authenticated user or service account. Useful for validating API keys and checking permissions.
Response
string
The tenant/organization ID
string
The user or service account ID
array
List of API key scopes:
read, deploy, delete, admincurl -X GET "https://app.runtm.com/api/v1/me" \
-H "Authorization: Bearer runtm_xxx"
import requests
response = requests.get(
"https://app.runtm.com/api/v1/me",
headers={"Authorization": "Bearer runtm_xxx"}
)
if response.status_code == 200:
data = response.json()
print(f"Tenant: {data['tenant_id']}")
print(f"Scopes: {', '.join(data['scopes'])}")
else:
print("Invalid API key")
const response = await fetch(
"https://app.runtm.com/api/v1/me",
{
headers: {
"Authorization": "Bearer runtm_xxx"
}
}
);
if (response.ok) {
const data = await response.json();
console.log(`Tenant: ${data.tenant_id}`);
console.log(`Scopes: ${data.scopes.join(", ")}`);
} else {
console.log("Invalid API key");
}
{
"tenant_id": "tenant_abc123",
"principal_id": "user_xyz789",
"scopes": ["read", "deploy", "delete"]
}
{
"detail": {
"error": "Invalid or expired API key"
}
}
This endpoint is commonly used to verify API key validity and check available permissions before making other API calls.