Get CL2C User Details API
Learn how to retrieve a specific CL2C user's details through the /v1/cl2c/users/{id} endpoint.
The GET /v1/cl2c/users/{id}
API endpoint allows you to fetch the details of a specific CL2C user based on their unique id
. You must provide the tenant
ID and X-API-Key
for authentication.
Endpoint
GET
/v1/cl2c/users/{id}
Fetches the details of a CL2C user.
Parameters
Name | Type | Location | Required | Description |
---|---|---|---|---|
id | string | Path | Yes | The unique ID of the user you want to retrieve. |
tenant | string | Header | Yes | Tenant ID for accessing this API. |
X-API-Key | string | Header | Yes | API Key ID for accessing this API. |
Responses
Success (200)
Content Type: application/json
Example Response
This response includes detailed information about the user, including id
, userName
, firstName
, lastName
, email
, emailConfirmed
, authenticated
, authValidUpto
, authLocation
, phoneNumber
, and walletAddress
.
Error (400)
Content Type: application/json
Example Error Response
This response provides detailed error information, including the error type, status, and any additional validation errors for specific fields.
Default Error Response
Content Type: application/json
Example Default Error Response
This generic error response includes an array of messages, error source, exception details, an error ID for reference, and a support message.
Code Samples
Usage in Different Frameworks
Node.js Example