> ## Documentation Index
> Fetch the complete documentation index at: https://docs.entityml.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get User Recent Requests

> Return the most recent logged API requests for a user.

## Request

<ParamField path="user_id" type="string" required>
  User ID to inspect.
</ParamField>

<ParamField query="limit" type="integer">
  Number of recent requests to return. Default: `10`.
</ParamField>

## Response

<ResponseField name="recent_requests" type="array">
  Request rows with `endpoint`, `timestamp`, `status`, `api_key_id`, and `timestamp_human`.
</ResponseField>

## Example

<CodeGroup>
  ```python Python SDK theme={null}
  from entityml import EntityMLClient

  client = EntityMLClient()
  recent = client.analytics.get_user_recent_requests(user_id="YOUR_USER_ID", limit=5)
  print(recent["recent_requests"])
  ```

  ```bash CLI theme={null}
  entityml analytics user-recent-requests --user-id YOUR_USER_ID --limit 5
  ```

  ```bash Raw HTTP (cURL) theme={null}
  curl "https://api.entityml.com/api/v1/user/YOUR_USER_ID/requests/recent?limit=5"
  ```
</CodeGroup>

### Example response

```json theme={null}
{
  "user_id": "YOUR_USER_ID",
  "recent_requests": [
    {
      "endpoint": "/api/v1/polymarket/market/data",
      "timestamp": "2026-05-01T15:30:00+00:00",
      "status": "success",
      "api_key_id": "key-uuid",
      "timestamp_human": "2026-05-01 15:30:00 UTC"
    }
  ],
  "total": 1
}
```
