GET /users/{userId}/history – Retrieves the history of actions and changes for a specific user.
Headers:
Authorization: Bearer <access_token>
Content-Type: application/json or application/x-www-form-urlencoded
Body:
Path Parameters:
Query Parameters:
200 OK
400
401
404
500
{ "error": "Detailed error message here"} Copy
{ "error": "Detailed error message here"}
GET /users/exampleUserId/history{} // provider defaults to "auth0-user" if omitted Copy
GET /users/exampleUserId/history{} // provider defaults to "auth0-user" if omitted
{limit: 2,count: 10,next: "nextPageToken",items: [ { id: "event_123", userId: "user_123", type: "USER_CREATED", user: { // ...user fields... } updatedAt: "2023-12-20T00:00:00Z", }, { id: "event_456", userId: "user_123", type: "PASSWORD_CHANGED", user: { // ...user fields... }, updatedAt: "2023-12-21T00:00:00Z" }],format: "array";} Copy
{limit: 2,count: 10,next: "nextPageToken",items: [ { id: "event_123", userId: "user_123", type: "USER_CREATED", user: { // ...user fields... } updatedAt: "2023-12-20T00:00:00Z", }, { id: "event_456", userId: "user_123", type: "PASSWORD_CHANGED", user: { // ...user fields... }, updatedAt: "2023-12-21T00:00:00Z" }],format: "array";}
The API Gateway event containing the request.
A Promise resolving to an API Gateway-compatible response.
GET /users/{userId}/history – Retrieves the history of actions and changes for a specific user.
Remarks
📥 Request
Headers:
Authorization: Bearer <access_token>(required)Content-Type: application/json or application/x-www-form-urlencoded(required)Body:
Path Parameters:
Query Parameters:
📤 Response
200 OK– Returns a JSON-stringified PageObjectResponse or PageArrayResponse object containing the user's history where the items are of type Auth0UserEvent.❗ Errors
400401404500Error Response Format
📦 Examples
📥 Auth0 Request
📤 Response Example