OAuth
List and manage OAuth grants through the Resend API.
Operations
| Method | Endpoint | Description |
|---|---|---|
GET | /oauth/grants | Retrieve a list of OAuth grants |
DELETE | /oauth/grants/{oauth_grant_id} | Revoke an OAuth grant |
Example
Retrieve a list of OAuth grants, 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.oauth.listGrants();
console.log(result);Nine more languages
The same call exists in every SDK. See SDKs for the other nine.