Logs
Retrieve API request logs through the Resend API.
Operations
| Method | Endpoint | Description |
|---|---|---|
GET | /logs | Retrieve a list of logs |
GET | /logs/{log_id} | Retrieve a single log |
Example
Retrieve a list of logs, with the TypeScript SDK:
ts
import { Resend } from "@octridev/resend";
const client = new Resend({
// Optional: replaces the default server and any server an operation declares.
baseUrl: "https://api.resend.com",
auth: { bearerAuth: process.env.API_TOKEN! },
});
const result = await client.logs.list();
console.log(result);Nine more languages
The same call exists in every SDK. See SDKs for the other nine.