Skip to main content
GET
/
customers
/
{_id}
Get Customer by ID
curl --request GET \
  --url https://api.yourjobsearchgenius.ai/v1/customers/{_id} \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "_id": "507f1f77bcf86cd799439011",
    "firstName": "John",
    "lastName": "Doe",
    "email": "[email protected]",
    "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
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

_id
string
required

The customer's unique identifier

Example:

"507f1f77bcf86cd799439011"

Response

Customer details response

data
object
required
success
boolean
required

Indicates if the request was successful

Example:

true