Get User
curl --request GET \
--url https://api.suggestkit.app/api/v1/sdk/users/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.suggestkit.app/api/v1/sdk/users/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.suggestkit.app/api/v1/sdk/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.suggestkit.app/api/v1/sdk/users/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.suggestkit.app/api/v1/sdk/users/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.suggestkit.app/api/v1/sdk/users/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.suggestkit.app/api/v1/sdk/users/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyUsers
Get User
Retrieve a specific user by their ID
GET
/
api
/
v1
/
sdk
/
users
/
{id}
Get User
curl --request GET \
--url https://api.suggestkit.app/api/v1/sdk/users/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.suggestkit.app/api/v1/sdk/users/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.suggestkit.app/api/v1/sdk/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.suggestkit.app/api/v1/sdk/users/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.suggestkit.app/api/v1/sdk/users/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.suggestkit.app/api/v1/sdk/users/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.suggestkit.app/api/v1/sdk/users/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyRetrieve a specific user by their ID. This endpoint returns user details including revenue information and platform data.
string
required
The unique user ID to retrieve (CUID format, e.g., clm7x1a2b000008l7h3k1b2c3)
Response Fields
| Field | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | Unique user identifier |
| projectId | string | Yes | Project this user belongs to |
| appUserId | string | No | Your app’s custom user identifier |
| string | No | User email address | |
| monthlyRevenue | number | No | User’s monthly revenue/subscription amount |
| country | string | No | User’s country |
| userPlatform | string | No | Platform (IOS, ANDROID, WEB, OTHER) |
| locale | string | No | User’s locale/language |
| createdAt | string | Yes | User creation timestamp (ISO 8601) |
| updatedAt | string | Yes | Last update timestamp (ISO 8601) |
Example Response
{
"id": "clm7x1a2b000008l7h3k1b2c3",
"projectId": "clm7x1a2b000008l7h3k1b2c3",
"appUserId": "my_user_456",
"email": "user@example.com",
"monthlyRevenue": 9.99,
"country": "US",
"userPlatform": "IOS",
"locale": "en_US",
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-01-15T10:30:00.000Z"
}
Error Responses
| Status Code | Description | Example Response |
|---|---|---|
| 404 | User not found | {"error": "User not found"} |
| 401 | Unauthorized - Invalid API key | {"error": "Unauthorized"} |
| 500 | Internal server error | {"error": "Failed to get user"} |
Was this page helpful?
⌘I