Retrieve an identity
curl --request GET \
--url https://api.qonversion.io/v3/identities/{identity_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.qonversion.io/v3/identities/{identity_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.qonversion.io/v3/identities/{identity_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.qonversion.io/v3/identities/{identity_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;
}require 'uri'
require 'net/http'
url = URI("https://api.qonversion.io/v3/identities/{identity_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_bodypackage main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.qonversion.io/v3/identities/{identity_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.qonversion.io/v3/identities/{identity_id}")
.header("Authorization", "Bearer <token>")
.asString();{
"id": "new_identity",
"user_id": "QON_7791ae4e888bdeb81842b36a"
}{
"error": {
"type": "request",
"code": "<string>",
"message": "<string>"
},
"meta": {
"reference": "https://documentation.qonversion.io/reference/handling-api-errors"
}
}{
"error": {
"type": "request",
"code": "<string>",
"message": "<string>"
},
"meta": {
"reference": "https://documentation.qonversion.io/reference/handling-api-errors"
}
}Identity
Retrieve an identity
Retrieves an identity by its ID.
GET
/
identities
/
{identity_id}
Retrieve an identity
curl --request GET \
--url https://api.qonversion.io/v3/identities/{identity_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.qonversion.io/v3/identities/{identity_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.qonversion.io/v3/identities/{identity_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.qonversion.io/v3/identities/{identity_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;
}require 'uri'
require 'net/http'
url = URI("https://api.qonversion.io/v3/identities/{identity_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_bodypackage main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.qonversion.io/v3/identities/{identity_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.qonversion.io/v3/identities/{identity_id}")
.header("Authorization", "Bearer <token>")
.asString();{
"id": "new_identity",
"user_id": "QON_7791ae4e888bdeb81842b36a"
}{
"error": {
"type": "request",
"code": "<string>",
"message": "<string>"
},
"meta": {
"reference": "https://documentation.qonversion.io/reference/handling-api-errors"
}
}{
"error": {
"type": "request",
"code": "<string>",
"message": "<string>"
},
"meta": {
"reference": "https://documentation.qonversion.io/reference/handling-api-errors"
}
}Identities map your internal user IDs to Qonversion User IDs, enabling cross-platform user tracking.
Authorizations
Use your Project Key from the Qonversion dashboard (Project Settings -> Project Keys -> Project Key).
Production keys have no prefix; keys prefixed with test_ target the sandbox environment.
Example (sandbox): Bearer test_PV77YHL7qnGvsdmpTs7gimsxUvY-Znl2
Example (production): Bearer JFPATc4VaaWYsfurml3qZ4zsmNw0VfWH
Path Parameters
User Identity ID
⌘I