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"

{
    "user_id": "123",
    "email": "abc@example.com",
    "first_name": "abc",
    "last_name": "abc",
    "metadata": {}
}

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

user_id
string
required

The unique ID of the user.

Curl
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"

Python
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

user_id
string
required

The unique ID of the user.

email
string
required

Email address of the user.

first_name
string
required

First name of the user.

last_name
string
required

Last name of the user.

metadata
object
required

Additional metadata related to the user.