Get Customer by ID
curl --request GET \
--url https://api.yourjobsearchgenius.ai/v1/customers/{_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.yourjobsearchgenius.ai/v1/customers/{_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.yourjobsearchgenius.ai/v1/customers/{_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.yourjobsearchgenius.ai/v1/customers/{_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.yourjobsearchgenius.ai/v1/customers/{_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.yourjobsearchgenius.ai/v1/customers/{_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.yourjobsearchgenius.ai/v1/customers/{_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_body{
"data": {
"_id": "507f1f77bcf86cd799439011",
"firstName": "John",
"lastName": "Doe",
"email": "john@example.com",
"accountStatus": "active",
"onboardingCompleted": true,
"createdAt": "2024-01-01T00:00:00Z",
"subscriptionId": "sub_123456789",
"subscriptionStatus": "active",
"autoLogin": {
"autoLoginUrl": "https://app.yourjobsearchgenius.ai/auto-login?code=abc123",
"autoLoginCode": "abc123"
},
"engagementStats": {
"resumesCount": 5,
"interviewsCount": 8,
"jobTracking": {
"totalJobs": 30,
"statusBreakdown": {
"applied": 15,
"interviewing": 5,
"offered": 2,
"rejected": 8
}
},
"mockInterviews": {
"totalInterviews": 8,
"interviews": [
{
"_id": "507f1f77bcf86cd799439013",
"title": "Software Engineer Interview",
"stageType": "technical",
"difficulty": "medium",
"isCompleted": true,
"createdAt": "2024-01-10T14:30:00Z",
"takeCount": 3,
"averageScore": 82.3,
"allTakes": [
{
"_id": "507f1f77bcf86cd799439012",
"title": "Software Engineer Interview",
"stageType": "technical",
"difficulty": "medium",
"isCompleted": true,
"createdAt": "2024-01-10T14:30:00Z",
"score": 85.5
}
]
}
]
},
"offerNegotiationsCount": 2,
"contactsCount": 12,
"coverLettersCount": 7
},
"lastLoginDate": "2024-01-15T10:30:00Z",
"subscriptionPackageName": "Premium Plan",
"subscriptionFrequency": "monthly",
"subscriptionCurrentPeriodEnd": "2024-02-01T00:00:00Z"
},
"success": true
}{
"error": "Customer not found",
"success": false
}{
"error": "Customer not found",
"success": false
}{
"error": "Customer not found",
"success": false
}{
"error": "Customer not found",
"success": false
}Reseller - Customers
Get Customer
Retrieves detailed information about a specific customer including engagement statistics.
GET
/
customers
/
{_id}
Get Customer by ID
curl --request GET \
--url https://api.yourjobsearchgenius.ai/v1/customers/{_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.yourjobsearchgenius.ai/v1/customers/{_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.yourjobsearchgenius.ai/v1/customers/{_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.yourjobsearchgenius.ai/v1/customers/{_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.yourjobsearchgenius.ai/v1/customers/{_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.yourjobsearchgenius.ai/v1/customers/{_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.yourjobsearchgenius.ai/v1/customers/{_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_body{
"data": {
"_id": "507f1f77bcf86cd799439011",
"firstName": "John",
"lastName": "Doe",
"email": "john@example.com",
"accountStatus": "active",
"onboardingCompleted": true,
"createdAt": "2024-01-01T00:00:00Z",
"subscriptionId": "sub_123456789",
"subscriptionStatus": "active",
"autoLogin": {
"autoLoginUrl": "https://app.yourjobsearchgenius.ai/auto-login?code=abc123",
"autoLoginCode": "abc123"
},
"engagementStats": {
"resumesCount": 5,
"interviewsCount": 8,
"jobTracking": {
"totalJobs": 30,
"statusBreakdown": {
"applied": 15,
"interviewing": 5,
"offered": 2,
"rejected": 8
}
},
"mockInterviews": {
"totalInterviews": 8,
"interviews": [
{
"_id": "507f1f77bcf86cd799439013",
"title": "Software Engineer Interview",
"stageType": "technical",
"difficulty": "medium",
"isCompleted": true,
"createdAt": "2024-01-10T14:30:00Z",
"takeCount": 3,
"averageScore": 82.3,
"allTakes": [
{
"_id": "507f1f77bcf86cd799439012",
"title": "Software Engineer Interview",
"stageType": "technical",
"difficulty": "medium",
"isCompleted": true,
"createdAt": "2024-01-10T14:30:00Z",
"score": 85.5
}
]
}
]
},
"offerNegotiationsCount": 2,
"contactsCount": 12,
"coverLettersCount": 7
},
"lastLoginDate": "2024-01-15T10:30:00Z",
"subscriptionPackageName": "Premium Plan",
"subscriptionFrequency": "monthly",
"subscriptionCurrentPeriodEnd": "2024-02-01T00:00:00Z"
},
"success": true
}{
"error": "Customer not found",
"success": false
}{
"error": "Customer not found",
"success": false
}{
"error": "Customer not found",
"success": false
}{
"error": "Customer not found",
"success": false
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The customer's unique identifier
Pattern:
^[a-fA-F0-9]{24}$Example:
"507f1f77bcf86cd799439011"
⌘I