Logs
Search and retrieve tool execution logs
Search and retrieve tool execution logs with filtering, pagination, and time range support.
POST
/
api
/
v3.1
/
logs
/
tool_execution
Search and retrieve tool execution logs
import requests
url = "https://backend.composio.dev/api/v3.1/logs/tool_execution"
payload = {
"limit": 20,
"cursor": "<string>",
"filters": []
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({limit: 20, cursor: '<string>', filters: []})
};
fetch('https://backend.composio.dev/api/v3.1/logs/tool_execution', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://backend.composio.dev/api/v3.1/logs/tool_execution \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"limit": 20,
"cursor": "<string>",
"filters": []
}
'package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://backend.composio.dev/api/v3.1/logs/tool_execution"
payload := strings.NewReader("{\n \"limit\": 20,\n \"cursor\": \"<string>\",\n \"filters\": []\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://backend.composio.dev/api/v3.1/logs/tool_execution")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"limit\": 20,\n \"cursor\": \"<string>\",\n \"filters\": []\n}")
.asString();using RestSharp;
var options = new RestClientOptions("https://backend.composio.dev/api/v3.1/logs/tool_execution");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("x-api-key", "<api-key>");
request.AddJsonBody("{\n \"limit\": 20,\n \"cursor\": \"<string>\",\n \"filters\": []\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
false{
"logs": [
{
"id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"type": "<string>",
"status": "success",
"level": "info",
"metadata": {
"credential_source": "connected_account",
"instant_charge": "<string>"
},
"metrics": {},
"parent": {
"log_id": "<string>",
"tool_slug": "<string>"
},
"message": "<string>"
}
],
"next_cursor": "<string>"
}{
"error": {
"message": "<string>",
"code": 123,
"slug": "<string>",
"status": 123,
"request_id": "<string>",
"suggested_fix": "<string>",
"errors": [
"<string>"
]
}
}{
"error": {
"message": "<string>",
"code": 123,
"slug": "<string>",
"status": 123,
"request_id": "<string>",
"suggested_fix": "<string>",
"errors": [
"<string>"
]
}
}{
"error": {
"message": "<string>",
"code": 123,
"slug": "<string>",
"status": 123,
"request_id": "<string>",
"suggested_fix": "<string>",
"errors": [
"<string>"
]
}
}Authorizations
Body
application/json
Search and retrieve tool execution logs
import requests
url = "https://backend.composio.dev/api/v3.1/logs/tool_execution"
payload = {
"limit": 20,
"cursor": "<string>",
"filters": []
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({limit: 20, cursor: '<string>', filters: []})
};
fetch('https://backend.composio.dev/api/v3.1/logs/tool_execution', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://backend.composio.dev/api/v3.1/logs/tool_execution \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"limit": 20,
"cursor": "<string>",
"filters": []
}
'package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://backend.composio.dev/api/v3.1/logs/tool_execution"
payload := strings.NewReader("{\n \"limit\": 20,\n \"cursor\": \"<string>\",\n \"filters\": []\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://backend.composio.dev/api/v3.1/logs/tool_execution")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"limit\": 20,\n \"cursor\": \"<string>\",\n \"filters\": []\n}")
.asString();using RestSharp;
var options = new RestClientOptions("https://backend.composio.dev/api/v3.1/logs/tool_execution");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("x-api-key", "<api-key>");
request.AddJsonBody("{\n \"limit\": 20,\n \"cursor\": \"<string>\",\n \"filters\": []\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
false{
"logs": [
{
"id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"type": "<string>",
"status": "success",
"level": "info",
"metadata": {
"credential_source": "connected_account",
"instant_charge": "<string>"
},
"metrics": {},
"parent": {
"log_id": "<string>",
"tool_slug": "<string>"
},
"message": "<string>"
}
],
"next_cursor": "<string>"
}{
"error": {
"message": "<string>",
"code": 123,
"slug": "<string>",
"status": 123,
"request_id": "<string>",
"suggested_fix": "<string>",
"errors": [
"<string>"
]
}
}{
"error": {
"message": "<string>",
"code": 123,
"slug": "<string>",
"status": 123,
"request_id": "<string>",
"suggested_fix": "<string>",
"errors": [
"<string>"
]
}
}{
"error": {
"message": "<string>",
"code": 123,
"slug": "<string>",
"status": 123,
"request_id": "<string>",
"suggested_fix": "<string>",
"errors": [
"<string>"
]
}
}