Obter Perfil & Plano
curl --request GET \
--url https://api.stackr.lat/v1/users/{id}import requests
url = "https://api.stackr.lat/v1/users/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.stackr.lat/v1/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.stackr.lat/v1/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.stackr.lat/v1/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.stackr.lat/v1/users/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stackr.lat/v1/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_bodyUsuários
Obter Perfil & Plano
Retorna as informações do usuário autenticado e os limites do seu plano na Stackr.
GET
/
v1
/
users
/
{id}
Obter Perfil & Plano
curl --request GET \
--url https://api.stackr.lat/v1/users/{id}import requests
url = "https://api.stackr.lat/v1/users/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.stackr.lat/v1/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.stackr.lat/v1/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.stackr.lat/v1/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.stackr.lat/v1/users/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stackr.lat/v1/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_bodyParâmetros de Rota
string
required
Identificador do seu usuário (ex:
user_7c9b8e21-d102-4cbb-9fa3-a2b1c3d4e5f6).
[!IMPORTANT]
Por razões de privacidade, você só tem permissão para ler os detalhes da sua própria conta. Tentar acessar perfis de terceiros retornará o erro 401 Unauthorized.
Resposta de Sucesso (200 OK)
{
"ownerId": "user_7c9b8e21-d102-4cbb-9fa3-a2b1c3d4e5f6",
"plan": {
"id": "plan_b7a8c9d0-e1f2-3a4b-5c6d-7e8f9a0b1c2d",
"name": "PRO",
"price": 29.90,
"memoryLimitMb": 2048,
"cpuLimit": 2.0,
"maxBots": 10,
"maxDatabases": 5,
"expiresAt": "2026-06-30T18:30:00.000Z"
}
}
⌘I