GET
/
api
/
v1
/
users
/
{user_id}
/
curl --request GET \
  --url https://hpay-api.host-sl.com/api/v1/users/user_abc123/ \
  --header 'api-key: YOUR_API_KEY' \
  --header 'secret-key: YOUR_SECRET_KEY'
{
  "id": "user_abc123",
  "app_user_id": 1,
  "name": "John Doe",
  "email": "john@example.com",
  "phone_number": "+23279123456",
  "is_active": true,
  "created_at": "2025-01-16T10:30:00Z"
}

Endpoint

GET /api/v1/users/{user_id}/

Path Parameters

user_id
string
required
The unique identifier of the user to retrieve

Headers

api-key
string
required
Your application API key
secret-key
string
required
Your application secret key

Response

id
string
Unique identifier for the user
app_user_id
integer
The user ID from your own application
name
string
User’s full name
email
string
User’s email address
phone_number
string
User’s phone number
is_active
boolean
Whether the user account is active
created_at
string
ISO 8601 timestamp of creation
curl --request GET \
  --url https://hpay-api.host-sl.com/api/v1/users/user_abc123/ \
  --header 'api-key: YOUR_API_KEY' \
  --header 'secret-key: YOUR_SECRET_KEY'
{
  "id": "user_abc123",
  "app_user_id": 1,
  "name": "John Doe",
  "email": "john@example.com",
  "phone_number": "+23279123456",
  "is_active": true,
  "created_at": "2025-01-16T10:30:00Z"
}