Get user by ID (CLI/SDK)
curl --request GET \
--url https://api.runflow.ai/api/v1/runtime/users/{id}import requests
url = "https://api.runflow.ai/api/v1/runtime/users/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.runflow.ai/api/v1/runtime/users/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.runflow.ai/api/v1/runtime/users/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.runflow.ai/api/v1/runtime/users/{id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.runflow.ai/api/v1/runtime/users/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.runflow.ai/api/v1/runtime/users/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"id": "123e4567-e89b-12d3-a456-426614174000",
"email": "john.doe@acme.com",
"name": "John Doe",
"role": "USER",
"isActive": true,
"lastLoginAt": "2025-01-01T00:00:00.000Z",
"createdAt": "2025-01-01T00:00:00.000Z",
"updatedAt": "2025-01-01T00:00:00.000Z",
"tenantId": "123e4567-e89b-12d3-a456-426614174000",
"phone": "+5511999999999",
"avatarUrl": "https://example.com/avatar.jpg",
"metadata": {
"auth0_user_id": "auth0|1234567890",
"auth0_created": true,
"invite_sent": false
},
"_count": {
"agents": 3,
"credentials": 5,
"executions": 12
}
}Runtime API - Users Management
Get user by ID (CLI/SDK)
Retrieves detailed information about a specific user.
GET
/
api
/
v1
/
runtime
/
users
/
{id}
Get user by ID (CLI/SDK)
curl --request GET \
--url https://api.runflow.ai/api/v1/runtime/users/{id}import requests
url = "https://api.runflow.ai/api/v1/runtime/users/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.runflow.ai/api/v1/runtime/users/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.runflow.ai/api/v1/runtime/users/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.runflow.ai/api/v1/runtime/users/{id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.runflow.ai/api/v1/runtime/users/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.runflow.ai/api/v1/runtime/users/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"id": "123e4567-e89b-12d3-a456-426614174000",
"email": "john.doe@acme.com",
"name": "John Doe",
"role": "USER",
"isActive": true,
"lastLoginAt": "2025-01-01T00:00:00.000Z",
"createdAt": "2025-01-01T00:00:00.000Z",
"updatedAt": "2025-01-01T00:00:00.000Z",
"tenantId": "123e4567-e89b-12d3-a456-426614174000",
"phone": "+5511999999999",
"avatarUrl": "https://example.com/avatar.jpg",
"metadata": {
"auth0_user_id": "auth0|1234567890",
"auth0_created": true,
"invite_sent": false
},
"_count": {
"agents": 3,
"credentials": 5,
"executions": 12
}
}Path Parameters
User UUID
Response
200 - application/json
User found.
User unique identifier
Example:
"123e4567-e89b-12d3-a456-426614174000"
User email address
Example:
"john.doe@acme.com"
User full name
Example:
"John Doe"
User role within the tenant
Available options:
ADMIN, USER, VIEWER, SUPER_ADMIN, HUB_USER Example:
"USER"
Whether the user is active
Example:
true
User last login timestamp
Example:
"2025-01-01T00:00:00.000Z"
Creation timestamp
Example:
"2025-01-01T00:00:00.000Z"
Last update timestamp
Example:
"2025-01-01T00:00:00.000Z"
Tenant ID that the user belongs to
Example:
"123e4567-e89b-12d3-a456-426614174000"
User phone number
Example:
"+5511999999999"
User avatar URL
Example:
"https://example.com/avatar.jpg"
User metadata (Auth0 integration data)
Example:
{
"auth0_user_id": "auth0|1234567890",
"auth0_created": true,
"invite_sent": false
}
User related statistics
Example:
{
"agents": 3,
"credentials": 5,
"executions": 12
}