Get All CL2C Users API
Learn how to retrieve a list of all CL2C users through the /v1/cl2c/users endpoint.
The GET /v1/cl2c/users
API endpoint provides a list of all CL2C users. Access to this endpoint requires specific headers, including tenant
and X-API-Key
, to authenticate the request securely.
Endpoint
GET
/v1/cl2c/users
Fetches a list of all CL2C users.
Parameters
Name | Type | Location | Required | Description |
---|---|---|---|---|
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 returns a JSON array of user objects, each containing fields such as id
, userName
, firstName
, lastName
, email
, emailConfirmed
, authenticated
, phoneNumber
, and walletAddress
.
Error (400)
Content Type: application/json
Example Error Response
This response provides detailed information on the errors that occurred, such as the specific field issues, error type, and status.
Default Error Response
Content Type: application/json
Example Default Error Response
This generic error response includes an array of messages, an error source, an exception message, and an error ID for support.
Code Samples
Usage in Different Frameworks
Node.js Example