NetConnect API
Identity

Get Profile

Return the user profile that owns the supplied API key.

Endpoint

GET /api/v1/profile

Headers

HeaderRequiredValue
X-API-KEYYesnetconnect_live_... or netconnect_test_...

Response

Returns the authenticated user profile:

{
  "success": true,
  "data": {
    "_creationTime": 1769108357246.0674,
    "_id": "user_profile_abc123",
    "countryCode": "",
    "countryISO": "GH",
    "countryName": "Ghana",
    "createdAt": 1769108357649,
    "creatorId": "user_creator_xyz789",
    "email": "contact@acmetelecoms.example",
    "firstName": "Lorem",
    "fullName": "Lorem Net",
    "gender": "Male",
    "lastName": "Net",
    "middleName": "",
    "phoneNumber": "+233201234567",
    "referralCode": "JA1234",
    "registeredAt": 1769109065157,
    "role": "SuperAgent",
    "status": "Active",
    "uniqueId": "000001",
    "updateMeta": {
      "action": "update",
      "name": "Lorem Net",
      "userId": "user_update_def456"
    },
    "updatedAt": 1774989265345,
    "userId": "user_id_abc123",
    "walletAvailableBalance": 0,
    "walletHeldBalance": 0,
    "walletTotalBalance": 0
  }
}

Response fields

FieldTypeNotes
_idstringProfile identifier
_creationTimenumberCreation timestamp (unix ms)
userIdstringUser identifier
firstNamestringFirst name
middleNamestringMiddle name
lastNamestringLast name
fullNamestringFull name
genderstringGender
phoneNumberstringContact phone (GH format)
emailstringContact email address
rolestringAgent, SuperAgent, Customer, or Staff
statusstringAccount status (Active, Suspended, etc.)
countryCodestringCountry dial code
countryISOstringISO country code (e.g., GH)
countryNamestringCountry name
referralCodestringUnique referral code
uniqueIdstringInternal unique identifier
creatorIdstringID of the user who created this profile
registeredAtnumberRegistration timestamp (unix ms)
createdAtnumberRecord creation timestamp (unix ms)
updatedAtnumberLast update timestamp (unix ms)
updateMetaobjectMetadata about the last update (action, name, userId)
walletAvailableBalancenumberFunds immediately spendable (GHS)
walletHeldBalancenumberFunds reserved for pending orders (GHS)
walletTotalBalancenumberSum of available and held (GHS)

Use Cases

  • Handshake validation: Verify API key is active and belongs to expected party
  • Profile lookup: Get current storefront identity and business info
  • KYC status check: Confirm verification status before operations
  • Onboarding: First call to confirm partner setup is complete

Errors

  • 401 - Missing or invalid API key
  • 403 - Profile has been suspended

Sample request

curl -X GET "https://api.netconnectgh.online/api/v1/profile" \
  -H "X-API-KEY: netconnect_live_your_secret_here" \
  -H "Content-Type: application/json"

On this page