Skip to content

Integrations

Resend

Connect Resend to Alter Vault for secure API access

Use Resend credentials to make authenticated API calls through Alter Vault without exposing API keys in code.

PropertyValue
Template IDresend
CategoryCommunication
Credential TypeBearer Token

Log in to the Resend Dashboard

Log in to the Resend Dashboard at resend.com.

Navigate to API Keys

Navigate to API Keys at resend.com/api-keys.

Create an API Key

Click ‘Create API Key’ and set permissions.

Copy the API key

Copy the generated API key.

Open the Developer Portal

Go to portal.alterauth.com and navigate to the application.

Add Resend

Go to Managed Secrets > Add Provider > Resend.

Enter credentials

Paste the API Key into the credential field.

Save

Click Save. You’ll receive a grant_id to use with the SDK.

from alter_sdk import PendingApproval
response = await alter_app.proxy_request(
HttpMethod.POST,
"https://api.resend.com/emails",
grant_id="YOUR_GRANT_ID",
json={
"from": "Sender <sender@YOUR_VERIFIED_DOMAIN>",
"to": ["recipient@example.com"],
"subject": "Hello",
"html": "<p>Hello from Alter</p>",
},
)
if isinstance(response, PendingApproval):
for gate in response.gates:
print("Approval required:", gate.approval_url)
response = await alter_app.await_approval(response.approval_id)

Alter policy rules can target these attested operations and families for operation-level and parameter-aware controls.

Operation IDFamiliesMethodProvider pathNotes
emails/sendsendPOST/emailsalso accepts post:/emails
emails/send-batchsendPOST/emails/batchalso accepts post:/emails/batch
broadcasts/sendsendPOST/broadcasts/{id}/sendalso accepts post:/broadcasts/{id}/send
inboxes/reply-thread-emailsendPOST/inboxes/{inbox_id}/threads/{thread_id}/emails/{email_id}/reply—
inboxes/forward-thread-emailsendPOST/inboxes/{inbox_id}/threads/{thread_id}/emails/{email_id}/forward—
inboxes/send-draftsendPOST/inboxes/{inbox_id}/drafts/{draft_id}/send—
emails/cancelwritePOST/emails/{email_id}/cancelalso accepts post:/emails/{email_id}/cancel
emails/listreadGET/emailsalso accepts get:/emails
emails/getreadGET/emails/{email_id}also accepts get:/emails/{email_id}
emails/list-receivingreadGET/emails/receivingalso accepts get:/emails/receiving
broadcasts/createwritePOST/broadcastsalso accepts post:/broadcasts
broadcasts/updatewritePATCH/broadcasts/{id}also accepts patch:/broadcasts/{id}
broadcasts/removedeleteDELETE/broadcasts/{id}also accepts delete:/broadcasts/{id}
broadcasts/listreadGET/broadcastsalso accepts get:/broadcasts
contacts/createwritePOST/contactsalso accepts post:/contacts
contacts/updatewritePATCH/contacts/{id}also accepts patch:/contacts/{id}
contacts/removedeleteDELETE/contacts/{id}also accepts delete:/contacts/{id}
contacts/listreadGET/contactsalso accepts get:/contacts
audiences/createwritePOST/audiencesalso accepts post:/audiences
audiences/removedeleteDELETE/audiences/{id}also accepts delete:/audiences/{id}
audiences/listreadGET/audiencesalso accepts get:/audiences
templates/createwritePOST/templatesalso accepts post:/templates
templates/removedeleteDELETE/templates/{id}also accepts delete:/templates/{id}
domains/createadminPOST/domainsalso accepts post:/domains
domains/verifyadmin, send, writePOST/domains/{domain_id}/verifyalso accepts post:/domains/{domain_id}/verify
domains/enable-forgeadmin, writePOST/domains/{domain_id}/forge—
domains/updateadminPATCH/domains/{domain_id}also accepts patch:/domains/{domain_id}
domains/removeadmin, deleteDELETE/domains/{domain_id}also accepts delete:/domains/{domain_id}
domains/listreadGET/domainsalso accepts get:/domains
api-keys/createadminPOST/api-keysrefused by default: hands the caller a provider credential, or revokes the connection’s own (a credential_minting rule can allow it); also accepts post:/api-keys
api-keys/removeadmin, deleteDELETE/api-keys/{api_key_id}also accepts delete:/api-keys/{api_key_id}
api-keys/listreadGET/api-keysalso accepts get:/api-keys
webhooks/createadmin, send, writePOST/webhooksallowed; its secret is never stored in a payload capture; also accepts post:/webhooks; delivery address in policy parameter endpoint
webhooks/updateadmin, send, writePATCH/webhooks/{webhook_id}also accepts patch:/webhooks/{webhook_id}; delivery address in policy parameter endpoint
webhooks/removeadmin, deleteDELETE/webhooks/{webhook_id}also accepts delete:/webhooks/{webhook_id}
webhooks/listreadGET/webhooksalso accepts get:/webhooks
automations/cancel-runwritePOST/automations/{automation_id}/runs/{run_id}/cancel—

These operations are in the provider’s published API specification, but Alter has not reviewed them yet, so their families are unknown. Every operation, family or content rule refuses one with operation_unreviewed unless a rule admits it by name, so a broad rule cannot be dodged by calling one. A rule names one by the provider-qualified name in the first column, never by the bare operation ID, which other providers may share. To use one under a rule, list that name in an operation allowlist to allow it, or in a require_approval rule whose every condition names it to hold it for approval; saving such a rule needs an organization admin. A family never admits one. Because an unreviewed operation may create credentials or change account security, admitting one also needs a scoped credential_minting allowance naming the provider and that name. See Unreviewed operations.

Name in a ruleMethodProvider path
resend:api-keys/updatePATCH/api-keys/{api_key_id}
resend:audiences/getGET/audiences/{id}
resend:automations/createPOST/automations
resend:automations/duplicatePOST/automations/{automation_id}/duplicate
resend:automations/getGET/automations/{automation_id}
resend:automations/get-runGET/automations/{automation_id}/runs/{run_id}
resend:automations/listGET/automations
resend:automations/list-runsGET/automations/{automation_id}/runs
resend:automations/removeDELETE/automations/{automation_id}
resend:automations/stopPOST/automations/{automation_id}/stop
resend:automations/updatePATCH/automations/{automation_id}
resend:broadcasts/cancelPOST/broadcasts/{id}/cancel
resend:broadcasts/duplicatePOST/broadcasts/{id}/duplicate
resend:broadcasts/getGET/broadcasts/{id}
resend:broadcasts/list-clicked-linksGET/broadcasts/{id}/clicked-links
resend:broadcasts/recipientsGET/broadcasts/{id}/recipients
resend:contact-properties/createPOST/contact-properties
resend:contact-properties/getGET/contact-properties/{id}
resend:contact-properties/listGET/contact-properties
resend:contact-properties/removeDELETE/contact-properties/{id}
resend:contact-properties/updatePATCH/contact-properties/{id}
resend:contacts/add-segmentPOST/contacts/{contact_id}/segments/{segment_id}
resend:contacts/create-importPOST/contacts/imports
resend:contacts/getGET/contacts/{id}
resend:contacts/get-importGET/contacts/imports/{id}
resend:contacts/list-importsGET/contacts/imports
resend:contacts/list-segmentsGET/contacts/{contact_id}/segments
resend:contacts/list-topicsGET/contacts/{contact_id}/topics
resend:contacts/remove-segmentDELETE/contacts/{contact_id}/segments/{segment_id}
resend:contacts/update-topicsPATCH/contacts/{contact_id}/topics
resend:domains/create-claimPOST/domains/claim
resend:domains/getGET/domains/{domain_id}
resend:domains/get-claimGET/domains/{domain_id}/claim
resend:domains/verify-claimPOST/domains/{domain_id}/claim/verify
resend:emails/get-attachmentGET/emails/{email_id}/attachments/{attachment_id}
resend:emails/get-receivingGET/emails/receiving/{email_id}
resend:emails/get-receiving-attachmentGET/emails/receiving/{email_id}/attachments/{attachment_id}
resend:emails/list-attachmentsGET/emails/{email_id}/attachments
resend:emails/list-receiving-attachmentsGET/emails/receiving/{email_id}/attachments
resend:emails/sharePOST/emails/{email_id}/share
resend:emails/updatePATCH/emails/{email_id}
resend:events/createPOST/events
resend:events/getGET/events/{identifier}
resend:events/listGET/events
resend:events/removeDELETE/events/{identifier}
resend:events/sendPOST/events/send
resend:events/updatePATCH/events/{identifier}
resend:inboxes/add-thread-labelsPOST/inboxes/{inbox_id}/threads/{thread_id}/labels
resend:inboxes/createPOST/inboxes
resend:inboxes/create-draftPOST/inboxes/{inbox_id}/drafts
resend:inboxes/create-labelPOST/inboxes/{inbox_id}/labels
resend:inboxes/getGET/inboxes/{inbox_id}
resend:inboxes/get-agentGET/inboxes/{inbox_id}/agent
resend:inboxes/get-draftGET/inboxes/{inbox_id}/drafts/{draft_id}
resend:inboxes/get-threadGET/inboxes/{inbox_id}/threads/{thread_id}
resend:inboxes/get-thread-emailGET/inboxes/{inbox_id}/threads/{thread_id}/emails/{email_id}
resend:inboxes/listGET/inboxes
resend:inboxes/list-draftsGET/inboxes/{inbox_id}/drafts
resend:inboxes/list-labelsGET/inboxes/{inbox_id}/labels
resend:inboxes/list-thread-emailsGET/inboxes/{inbox_id}/threads/{thread_id}/emails
resend:inboxes/list-threadsGET/inboxes/{inbox_id}/threads
resend:inboxes/removeDELETE/inboxes/{inbox_id}
resend:inboxes/remove-draftDELETE/inboxes/{inbox_id}/drafts/{draft_id}
resend:inboxes/remove-labelDELETE/inboxes/{inbox_id}/labels/{label_id}
resend:inboxes/remove-threadDELETE/inboxes/{inbox_id}/threads/{thread_id}
resend:inboxes/remove-thread-labelDELETE/inboxes/{inbox_id}/threads/{thread_id}/labels/{label_id}
resend:inboxes/search-threadsGET/inboxes/{inbox_id}/threads/search
resend:inboxes/set-thread-labelsPUT/inboxes/{inbox_id}/threads/{thread_id}/labels
resend:inboxes/updatePATCH/inboxes/{inbox_id}
resend:inboxes/update-agentPATCH/inboxes/{inbox_id}/agent
resend:inboxes/update-draftPATCH/inboxes/{inbox_id}/drafts/{draft_id}
resend:inboxes/update-labelPATCH/inboxes/{inbox_id}/labels/{label_id}
resend:inboxes/update-threadPATCH/inboxes/{inbox_id}/threads/{thread_id}
resend:logs/getGET/logs/{log_id}
resend:logs/listGET/logs
resend:oauth/list-grantsGET/oauth/grants
resend:oauth/revoke-grantDELETE/oauth/grants/{oauth_grant_id}
resend:segments/createPOST/segments
resend:segments/getGET/segments/{id}
resend:segments/listGET/segments
resend:segments/list-contactsGET/segments/{id}/contacts
resend:segments/removeDELETE/segments/{id}
resend:segments/updatePATCH/segments/{id}
resend:suppressions/addPOST/suppressions
resend:suppressions/batch-addPOST/suppressions/batch/add
resend:suppressions/batch-removePOST/suppressions/batch/remove
resend:suppressions/getGET/suppressions/{suppression}
resend:suppressions/listGET/suppressions
resend:suppressions/removeDELETE/suppressions/{suppression}
resend:templates/duplicatePOST/templates/{id}/duplicate
resend:templates/getGET/templates/{id}
resend:templates/listGET/templates
resend:templates/publishPOST/templates/{id}/publish
resend:templates/updatePATCH/templates/{id}
resend:topics/createPOST/topics
resend:topics/getGET/topics/{id}
resend:topics/listGET/topics
resend:topics/removeDELETE/topics/{id}
resend:topics/updatePATCH/topics/{id}
resend:usage/getGET/usage
resend:webhooks/getGET/webhooks/{webhook_id}
resend:webhooks/get-eventGET/webhooks/{webhook_id}/events/{event_id}
resend:webhooks/list-event-attemptsGET/webhooks/{webhook_id}/events/{event_id}/attempts
resend:webhooks/list-eventsGET/webhooks/{webhook_id}/events
resend:webhooks/replay-eventPOST/webhooks/{webhook_id}/events/{event_id}/replay
resend:webhooks/rotate-signing-secretPOST/webhooks/{webhook_id}/signing-secret/rotate

These operations are in the specification too, but a request to one is served by another route, so a rule cannot name them: name the operation it classifies as instead.

Specification operationClassified as
emails/metricsemails/get

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand how our website, product, and documentation are used.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

Advertising

Shares visits and sign-ups with Meta, Reddit, and X so we can measure which of our ads work.

You can change these choices at any time from Cookie settings.