API reference

Get account details

Get authenticated user details. Request fields, response examples and integration guidance.

GET /user

Example request

Server-side HTTP request
curl --request GET \
  --url "https://api.strongmb.ng/v1/user" \
  --header "Authorization: Bearer $STRONGMB_API_KEY" \
  --header "Accept: application/json"

Returns the profile and account information of the currently authenticated user.

Headers

Header Value Required
Authorization Bearer YOUR_API_KEY Required
JSON Response
{
  "status": true,
  "message": "User details retrieved successfully",
  "data": {
    "account": {
      "name": "Strongmb User",
      "email": "[email protected]",
      "phone": "0123456789",
      "account_status": "active",
      "kyc_status": "incomplete",
      "tier": "tier 1"
    }
  },
  "metadata": {
    "code": "USER_DETAILS_RETRIEVED",
    "timestamp": 1773796899,
    "trace_id": "05E3F2360E"
  }
}
JSON Response
{
  "status": false,
  "message": "Unauthenticated. Invalid or missing API key.",
  "data": null,
  "metadata": {
    "code": "ERR_UNAUTHENTICATED",
    "timestamp": 1773796900,
    "trace_id": "A1B2C3D4E5"
  }
}

Response fields and types

These fields describe the authenticated account. Use data.account.account_status to check whether the account is active. An inactive account cannot perform other API operations. Error responses may return data: null.

Field path JSON type Meaning and handling
status boolean Request-level success flag. Check the HTTP status and metadata code as well; this flag indicates whether the account details request succeeded.
message string Human-readable description of the result. Use metadata.code for programmatic error handling instead of parsing this text.
data null | object Response data. Check the result before reading nested fields; an error may return null or validation details.
data.account object Details of the account authenticated by your secret key.
data.account.name string Name of the authenticated account holder.
data.account.email string Email address associated with the authenticated account. Treat it as personal information.
data.account.phone string Phone number of the authenticated user account.
data.account.account_status string Whether the account is active. An inactive account cannot proceed with other operations.
data.account.kyc_status string Current identity-verification status of the account.
data.account.tier string Account tier label. It can affect the limits shown on wallet records.
metadata object Diagnostic information about the response.
metadata.code string Machine-readable result code. Use it to distinguish validation, authentication and service errors.
metadata.timestamp integer Unix timestamp in seconds associated with the response.
metadata.trace_id string Correlation identifier for troubleshooting. Retain it with a redacted request when contacting support.

Questions? Let’s work through them.

Having an issue or need help with your integration? Join the Strongmb Slack community to ask questions and get assistance from our team and other developers.

Keep API keys and customer details private when sharing examples.

Experiencing a service issue? Check Strongmb’s service status for incident updates.

Join our Slack community

Did this page help you?

Search documentation