Debugging And Api

Request History - Branch Default Settings, and More!

Summary

In Xano, a no-code platform for building backend services, request history is a powerful feature that records information about various actions, such as endpoints, middleware, functions, tasks, and triggers. This article will guide you through managing request history, including viewing request details, filtering history, exporting data, and using the Metadata API to store history permanently.

Viewing Request History

To view the request history for an endpoint, follow these steps:

  1. Open the endpoint in Xano.
  2. Click on the three dots in the top-right corner and select "Request History" or access it from the left toolbar.
  3. The request history panel will slide out, displaying the request details.

At the top of the panel, you'll find filters to help you narrow down the request history based on various criteria, such as time, status code, input size, and output size. Additionally, a chart visualizes the last 24 hours of traffic or requests received.

When you click on a specific request, you'll see identifying information, request details, and a curl command to reproduce the request in tools like Postman. If the output size exceeds 10 kilobytes, Xano won't display the complete output, but you can still view the logic route or the path the logic took.

Filtering Request History

To filter the request history, use the following options:

  1. Time: Filter requests based on a specific time range.
  2. Status Code: Filter requests by their HTTP status codes (e.g., 200s, 400s).
  3. Input Size: Filter requests based on their input size.
  4. Output Size: Filter requests based on their output size.

Exporting Request History

If you need to export the request history, follow these steps:

  1. Open the request history panel.
  2. Click on the blue bar at the top.
  3. Select "Export Data" to export the data as a CSV file.
  4. Optionally, you can include the request output, but be aware that this may significantly increase the file size and export time.

Using the Metadata API

If you need to store request history permanently, you can use the Metadata API. Here's an example:

  1. Create a function that uses the Metadata API and your instance's API key.
  2. Set the endpoint to look at your workspace's ID and request history.
  3. Run the endpoint to fetch the request history data.
  4. Save the data to a database or storage solution that doesn't delete data every 24 hours.

By following these steps, you can effectively manage and archive request history in Xano, ensuring that you have access to valuable debugging and troubleshooting information when needed.

This transcript was AI generated to allow users to quickly answer technical questions about Xano.

Was this helpful?

I found it helpful

I need more support
Recommended videos

View all videos

Sign up for XanoSign up for Xano

Build without limits on a secure, scalable backend.

Unblock your team's progress and create a backend that will scale for free.

Start building for free