Retrieve API request history with optional filtering and pagination
Retrieve API request history with optional filtering and pagination
GET
/
workspace
/
{workspace_id}
/
request_history
Retrieve API request history with optional filtering and pagination
curl --request GET \
--url https://x8ki-letl-twmt.n7.xano.io/api:meta/workspace/{workspace_id}/request_history \
--header 'Authorization: Bearer <token>'import requests
url = "https://x8ki-letl-twmt.n7.xano.io/api:meta/workspace/{workspace_id}/request_history"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://x8ki-letl-twmt.n7.xano.io/api:meta/workspace/{workspace_id}/request_history', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://x8ki-letl-twmt.n7.xano.io/api:meta/workspace/{workspace_id}/request_history",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://x8ki-letl-twmt.n7.xano.io/api:meta/workspace/{workspace_id}/request_history"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://x8ki-letl-twmt.n7.xano.io/api:meta/workspace/{workspace_id}/request_history")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://x8ki-letl-twmt.n7.xano.io/api:meta/workspace/{workspace_id}/request_history")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"curPage": 123,
"nextPage": 123,
"prevPage": 123,
"items": [
{
"id": 1,
"created_at": "2023-04-12 18:34:01+0000",
"duration": 0.025,
"status": 200,
"verb": "GET",
"uri": "https://x1234-4567-8901.n7.xano.com/api:meta",
"input": {
"page": 1
},
"request_headers": [
"Accept: application/json"
],
"response_headers": [
"Content-Type: application/json"
],
"workspace_id": 123,
"branch_id": 123,
"api_id": 123,
"query_id": 123
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Query Parameters
Related topics
Xano Metadata API (Instances)Retrieve API function request history with optional filtering and paginationRetrieve trigger request history with optional filtering and paginationWas this page helpful?
Retrieve API request history with optional filtering and pagination
curl --request GET \
--url https://x8ki-letl-twmt.n7.xano.io/api:meta/workspace/{workspace_id}/request_history \
--header 'Authorization: Bearer <token>'import requests
url = "https://x8ki-letl-twmt.n7.xano.io/api:meta/workspace/{workspace_id}/request_history"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://x8ki-letl-twmt.n7.xano.io/api:meta/workspace/{workspace_id}/request_history', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://x8ki-letl-twmt.n7.xano.io/api:meta/workspace/{workspace_id}/request_history",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://x8ki-letl-twmt.n7.xano.io/api:meta/workspace/{workspace_id}/request_history"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://x8ki-letl-twmt.n7.xano.io/api:meta/workspace/{workspace_id}/request_history")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://x8ki-letl-twmt.n7.xano.io/api:meta/workspace/{workspace_id}/request_history")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"curPage": 123,
"nextPage": 123,
"prevPage": 123,
"items": [
{
"id": 1,
"created_at": "2023-04-12 18:34:01+0000",
"duration": 0.025,
"status": 200,
"verb": "GET",
"uri": "https://x1234-4567-8901.n7.xano.com/api:meta",
"input": {
"page": 1
},
"request_headers": [
"Accept: application/json"
],
"response_headers": [
"Content-Type: application/json"
],
"workspace_id": 123,
"branch_id": 123,
"api_id": 123,
"query_id": 123
}
]
}