Endpoint: GET /v1/users/{user_id}
This endpoint retrieves details of a specific user by their user_id. You will need an API key for authentication.
Parameters
The unique ID of the user.
curl -X GET https://agent.api.lyzr.app/v1/users/{user_id} \
-H "x-api-key: your_api_key_here" \
-H "Content-Type: application/json"
import requests
user_id = "1234"
url = "https://agent.api.lyzr.app/v1/users/{user_id}"
headers = {
"x-api-key": "your_api_key_here",
"Content-Type": "application/json"
}
response = requests.get(url, headers=headers)
{
"user_id": "123",
"email": "abc@example.com",
"first_name": "abc",
"last_name": "abc",
"metadata": {}
}
Response Parameters
The unique ID of the user.
Email address of the user.
Additional metadata related to the user.