Sentra
Users

Get user by ID

Retrieves a specific user by their ID

GET
/users/{id}
X-API-KEY<token>

API key for authentication (prefix: sk_dev_ for development, sk_live_ for production)

In: header

Path Parameters

idstring

User ID

Formatuuid

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://api.sentra.xyz/api/v1/users/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "email": "user@example.com",
  "firstName": "string",
  "middleName": "string",
  "lastName": "string",
  "businessName": "string",
  "type": "INDIVIDUAL",
  "kycStatus": "NOT_STARTED",
  "kycUrl": "http://example.com",
  "phoneNumber": "string",
  "phoneCountryCode": "string",
  "capabilities": [
    "USD"
  ],
  "address": {
    "addressLine1": "string",
    "addressLine2": "string",
    "city": "string",
    "state": "string",
    "postalCode": "string",
    "countryCode": "string"
  },
  "metadata": {},
  "createdAt": "2019-08-24T14:15:22Z",
  "updatedAt": "2019-08-24T14:15:22Z"
}
{
  "message": "Unauthorized",
  "statusCode": 401
}
{
  "message": "Resource not found",
  "statusCode": 404
}
{
  "message": "Internal server error",
  "statusCode": 500
}