Skip to content

feat: add support for Logs API#96

Merged
christina-de-martinez merged 1 commit intomainfrom
fix/add-logs-api
Apr 8, 2026
Merged

feat: add support for Logs API#96
christina-de-martinez merged 1 commit intomainfrom
fix/add-logs-api

Conversation

@christina-de-martinez
Copy link
Copy Markdown
Contributor

@christina-de-martinez christina-de-martinez commented Apr 8, 2026

Summary by cubic

Adds support for the Logs API to list and retrieve API request logs with pagination. Single-log retrieval includes request and response bodies; tests and local endpoints are included.

  • New Features
    • Added Log model with metadata plus optional request_body and response_body.
    • Added IResend methods: LogListAsync(PaginatedQuery?) and LogRetrieveAsync(Guid).
    • Implemented client calls for GET /logs (supports limit, before, after) and GET /logs/{id}.
    • Added tests for listing and pagination behavior.
    • Added local dev endpoints in tools/Resend.ApiServer to simulate the Logs API.

Written for commit e4db939. Summary will update on new commits.

Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 5 files

Confidence score: 3/5

  • There is a concrete security/compliance risk in src/Resend/IResend.cs: newly added Resend Logs SDK methods are missing the explicit API-key permission verification reminder required by the “API Key Permission Check SDK Methods” rule.
  • Because this issue is high severity (8/10) with high confidence (10/10), the merge carries some user-impact risk if consumers call these methods without clear permission guidance.
  • Pay close attention to src/Resend/IResend.cs - ensure the new SDK methods include the required API-key permission verification reminder before merging.
Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="src/Resend/IResend.cs">

<violation number="1" location="src/Resend/IResend.cs:977">
P1: Custom agent: **API Key Permission Check SDK Methods**

This adds new Resend Logs SDK methods without an explicit API-key permission verification reminder required by the “API Key Permission Check SDK Methods” rule; confirm production keys can access Logs endpoints before release.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants