heymegabyte/agent-skills / skills/resend
resend
VerifiedResend API skill — auto-forged from OpenAPI 1.5.0. Resend is the email platform for developers.
types.ts
View on GitHub// Auto-generated by forge-skill-from-openapi
// API: resend
// Source: Resend v1.5.0
// DO NOT EDIT — re-run forge to regenerate
export type SendEmailRequest = {
"from": string;
"to": Record<string, unknown>;
"subject": string;
"bcc"?: Record<string, unknown>;
"cc"?: Record<string, unknown>;
"reply_to"?: Record<string, unknown>;
"html"?: string;
"text"?: string;
"template"?: Record<string, unknown>;
"headers"?: Record<string, unknown>;
"scheduled_at"?: string;
"attachments"?: Array<Attachment>;
"tags"?: Array<Tag>;
"topic_id"?: string;
};
export type Attachment = {
"content"?: string;
"filename"?: string;
"path"?: string;
"content_type"?: string;
"content_id"?: string;
};
export type Tag = {
"name"?: string;
"value"?: string;
};
export type EmailTemplateInput = {
"id": string;
"variables"?: Record<string, Record<string, unknown>>;
};
export type SendEmailResponse = {
"id"?: string;
};
export type UpdateEmailOptions = {
"scheduled_at"?: string;
};
export type Email = {
"object"?: string;
"id"?: string;
"to"?: Array<string>;
"from"?: string;
"created_at"?: string;
"subject"?: string;
"html"?: string;
"text"?: string;
"bcc"?: Array<string>;
"cc"?: Array<string>;
"reply_to"?: Array<string>;
"last_event"?: string;
};
export type ListEmailsResponse = {
"object"?: string;
"has_more"?: boolean;
"data"?: Array<Email>;
};
export type CreateBatchEmailsResponse = {
"data"?: Array<{
"id"?: string;
}>;
};
/** Configure the domain capabilities for sending and receiving emails. At least one capability must be enabled. */
export type DomainCapabilities = {
"sending"?: "enabled" | "disabled";
"receiving"?: "enabled" | "disabled";
};
export type CreateDomainRequest = {
"name": string;
"region"?: "us-east-1" | "eu-west-1" | "sa-east-1" | "ap-northeast-1";
"custom_return_path"?: string;
"open_tracking"?: boolean;
"click_tracking"?: boolean;
"tls"?: "opportunistic" | "enforced";
"capabilities"?: DomainCapabilities;
"tracking_subdomain"?: string;
};
export type CreateDomainResponse = {
"id"?: string;
"name"?: string;
"created_at"?: string;
"status"?: string;
"capabilities"?: DomainCapabilities;
"records"?: Array<DomainRecord>;
"region"?: string;
"open_tracking"?: boolean;
"click_tracking"?: boolean;
"tracking_subdomain"?: string;
};
export type UpdateDomainOptions = {
"open_tracking"?: boolean;
"click_tracking"?: boolean;
"tls"?: string;
"capabilities"?: DomainCapabilities;
"tracking_subdomain"?: string;
};
export type DomainRecord = {
"record"?: "SPF" | "DKIM" | "Receiving" | "Tracking";
"name"?: string;
"type"?: "MX" | "TXT" | "CNAME";
"ttl"?: string;
"status"?: "pending" | "verified" | "failed" | "temporary_failure" | "not_started";
"value"?: string;
"priority"?: number;
};
export type Domain = {
"object"?: string;
"id"?: string;
"name"?: string;
"status"?: string;
"created_at"?: string;
"region"?: string;
"open_tracking"?: boolean;
"click_tracking"?: boolean;
"tracking_subdomain"?: string;
"capabilities"?: DomainCapabilities;
"records"?: Array<DomainRecord>;
};
export type VerifyDomainResponse = {
"object"?: string;
"id"?: string;
};
export type ListDomainsResponse = {
"object"?: string;
"has_more"?: boolean;
"data"?: Array<ListDomainsItem>;
};
export type ListDomainsItem = {
"id"?: string;
"name"?: string;
"status"?: string;
"created_at"?: string;
"region"?: string;
"capabilities"?: DomainCapabilities;
};
export type UpdateDomainResponseSuccess = {
"id"?: string;
"object"?: string;
};
export type DeleteDomainResponse = {
"object"?: string;
"id"?: string;
"deleted"?: boolean;
};
export type CreateApiKeyRequest = {
"name": string;
"permission"?: "full_access" | "sending_access";
"domain_id"?: string;
};
export type CreateApiKeyResponse = {
"id"?: string;
"token"?: string;
};
export type ListApiKeysResponse = {
"object"?: string;
"has_more"?: boolean;
"data"?: Array<ApiKey>;
};
export type ApiKey = {
"id"?: string;
"name"?: string;
"created_at"?: string;
"last_used_at"?: string;
};
export type DeleteApiKeyResponse = {
"object"?: string;
"id"?: string;
"deleted"?: boolean;
};
export type CreateAudienceOptions = {
"name": string;
};
export type CreateAudienceResponseSuccess = {
"id"?: string;
"object"?: string;
"name"?: string;
};
export type GetAudienceResponseSuccess = {
"id"?: string;
"object"?: string;
"name"?: string;
"created_at"?: string;
};
export type RemoveAudienceResponseSuccess = {
"id"?: string;
"object"?: string;
"deleted"?: boolean;
};
export type ListAudiencesResponseSuccess = {
"object"?: string;
"data"?: Array<{
"id"?: string;
"name"?: string;
"created_at"?: string;
}>;
};
export type CreateContactOptions = {
"email": string;
"first_name"?: string;
"last_name"?: string;
"unsubscribed"?: boolean;
"properties"?: Record<string, Record<string, unknown>>;
"segments"?: Array<string>;
"topics"?: Array<{
"id"?: string;
"subscription"?: "opt_in" | "opt_out";
}>;
"audience_id"?: string;
};
export type CreateContactResponseSuccess = {
"object"?: string;
"id"?: string;
};
export type GetContactResponseSuccess = {
"object"?: string;
"id"?: string;
"email"?: string;
"first_name"?: string;
"last_name"?: string;
"created_at"?: string;
"unsubscribed"?: boolean;
"properties"?: Record<string, Record<string, unknown>>;
};
export type UpdateContactOptions = {
"email"?: string;
"first_name"?: string;
"last_name"?: string;
"unsubscribed"?: boolean;
"properties"?: Record<string, Record<string, unknown>>;
};
export type UpdateContactResponseSuccess = {
"object"?: string;
"id"?: string;
};
export type RemoveContactResponseSuccess = {
"object"?: string;
"id"?: string;
"deleted"?: boolean;
};
export type ListContactsResponseSuccess = {
"object"?: string;
"data"?: Array<{
"id"?: string;
"email"?: string;
"first_name"?: string;
"last_name"?: string;
"created_at"?: string;
"unsubscribed"?: boolean;
}>;
};
export type CreateBroadcastOptions = {
"name"?: string;
"segment_id": string;
"audience_id"?: string;
"from": string;
"subject": string;
"reply_to"?: Array<string>;
"preview_text"?: string;
"html"?: string;
"text"?: string;
"topic_id"?: string;
"send"?: boolean;
"scheduled_at"?: string;
};
export type CreateBroadcastResponseSuccess = {
"id"?: string;
"object"?: string;
};
export type ListBroadcastsResponseSuccess = {
"object"?: string;
"has_more"?: boolean;
"data"?: Array<{
"id"?: string;
"name"?: string;
"audience_id"?: string;
"segment_id"?: string;
"status"?: string;
"created_at"?: string;
"scheduled_at"?: string;
"sent_at"?: string;
"topic_id"?: string;
}>;
};
export type GetBroadcastResponseSuccess = {
"id"?: string;
"name"?: string;
"audience_id"?: string;
"segment_id"?: string;
"from"?: string;
"subject"?: string;
"reply_to"?: Array<string>;
"preview_text"?: string;
"status"?: string;
"created_at"?: string;
"scheduled_at"?: string;
"sent_at"?: string;
"text"?: string;
"html"?: string;
"topic_id"?: string;
};
export type UpdateBroadcastOptions = {
"name"?: string;
"audience_id"?: string;
"segment_id"?: string;
"from"?: string;
"subject"?: string;
"reply_to"?: Array<string>;
"preview_text"?: string;
"html"?: string;
"text"?: string;
"topic_id"?: string;
};
export type UpdateBroadcastResponseSuccess = {
"id"?: string;
"object"?: string;
};
export type RemoveBroadcastResponseSuccess = {
"id"?: string;
"object"?: string;
"deleted"?: boolean;
};
export type SendBroadcastOptions = {
"scheduled_at"?: string;
};
export type SendBroadcastResponseSuccess = {
"id"?: string;
};
export type RetrievedAttachment = {
"object"?: string;
"id"?: string;
"filename"?: string;
"content_type"?: string;
"content_id"?: string;
"content_disposition"?: "inline" | "attachment";
"download_url"?: string;
"expires_at"?: string;
"size"?: number;
};
export type ListAttachmentsResponse = {
"object"?: string;
"has_more"?: boolean;
"data"?: Array<{
"id"?: string;
"filename"?: string;
"content_type"?: string;
"content_id"?: string;
"content_disposition"?: "inline" | "attachment";
"download_url"?: string;
"expires_at"?: string;
"size"?: number;
}>;
};
export type GetReceivedEmailResponse = {
"object"?: string;
"id"?: string;
"to"?: Array<string>;
"from"?: string;
"subject"?: string;
"message_id"?: string;
"bcc"?: Array<string>;
"cc"?: Array<string>;
"reply_to"?: Array<string>;
"html"?: string;
"text"?: string;
"headers"?: Record<string, unknown>;
"created_at"?: string;
"attachments"?: Array<{
"id"?: string;
"filename"?: string;
"content_type"?: string;
"content_id"?: string;
"content_disposition"?: "inline" | "attachment";
"size"?: number;
}>;
};
export type ListReceivedEmailsResponse = {
"object"?: string;
"has_more"?: boolean;
"data"?: Array<{
"id"?: string;
"to"?: Array<string>;
"from"?: string;
"subject"?: string;
"message_id"?: string;
"bcc"?: Array<string>;
"cc"?: Array<string>;
"reply_to"?: Array<string>;
"created_at"?: string;
"attachments"?: Array<{
"id"?: string;
"filename"?: string;
"content_type"?: string;
"content_id"?: string;
"content_disposition"?: "inline" | "attachment";
"size"?: number;
}>;
}>;
};
export type CreateWebhookRequest = {
"endpoint": string;
"events": Array<string>;
};
export type CreateWebhookResponse = {
"object"?: string;
"id"?: string;
"signing_secret"?: string;
};
export type GetWebhookResponse = {
"object"?: string;
"id"?: string;
"endpoint"?: string;
"events"?: Array<string>;
"status"?: string;
"created_at"?: string;
"signing_secret"?: string;
};
export type ListWebhooksResponse = {
"object"?: string;
"has_more"?: boolean;
"data"?: Array<{
"id"?: string;
"endpoint"?: string;
"events"?: Array<string>;
"status"?: string;
"created_at"?: string;
}>;
};
export type UpdateWebhookRequest = {
"endpoint"?: string;
"events"?: Array<string>;
"status"?: "enabled" | "disabled";
};
export type UpdateWebhookResponse = {
"object"?: string;
"id"?: string;
};
export type DeleteWebhookResponse = {
"object"?: string;
"id"?: string;
"deleted"?: boolean;
};
export type TemplateVariable = {
"id"?: string;
"key": string;
"type": "string" | "number" | "boolean" | "object" | "list";
"fallback_value"?: Record<string, unknown>;
"created_at"?: string;
"updated_at"?: string;
};
export type TemplateVariableInput = {
"key": string;
"type": "string" | "number" | "boolean" | "object" | "list";
"fallback_value"?: Record<string, unknown>;
};
export type Template = {
"object"?: string;
"id"?: string;
"current_version_id"?: string;
"name"?: string;
"alias"?: string;
"from"?: string;
"subject"?: string;
"reply_to"?: Array<string>;
"html"?: string;
"text"?: string;
"variables"?: Array<TemplateVariable>;
"created_at"?: string;
"updated_at"?: string;
"status"?: "draft" | "published";
"published_at"?: string;
"has_unpublished_versions"?: boolean;
};
export type TemplateListItem = {
"id"?: string;
"name"?: string;
"status"?: "draft" | "published";
"published_at"?: string;
"created_at"?: string;
"updated_at"?: string;
"alias"?: string;
};
export type CreateTemplateRequest = {
"name": string;
"alias"?: string;
"from"?: string;
"subject"?: string;
"reply_to"?: Array<string>;
"html": string;
"text"?: string;
"variables"?: Array<TemplateVariableInput>;
};
export type CreateTemplateResponseSuccess = {
"id"?: string;
"object"?: string;
};
export type ListTemplatesResponseSuccess = {
"object"?: string;
"data"?: Array<TemplateListItem>;
"has_more"?: boolean;
};
export type UpdateTemplateOptions = {
"name"?: string;
"alias"?: string;
"from"?: string;
"subject"?: string;
"reply_to"?: Array<string>;
"html"?: string;
"text"?: string;
"variables"?: Array<TemplateVariableInput>;
};
export type UpdateTemplateResponseSuccess = {
"id"?: string;
"object"?: string;
};
export type RemoveTemplateResponseSuccess = {
"object"?: string;
"id"?: string;
"deleted"?: boolean;
};
export type PublishTemplateResponseSuccess = {
"id"?: string;
"object"?: string;
};
export type DuplicateTemplateResponseSuccess = {
"id"?: string;
"object"?: string;
};
export type CreateSegmentOptions = {
"name": string;
"audience_id"?: string;
"filter"?: Record<string, unknown>;
};
export type CreateSegmentResponseSuccess = {
"id"?: string;
"object"?: string;
};
export type GetSegmentResponseSuccess = {
"id"?: string;
"object"?: string;
"name"?: string;
"audience_id"?: string;
"filter"?: Record<string, unknown>;
"created_at"?: string;
};
export type ListSegmentsResponseSuccess = {
"object"?: string;
"has_more"?: boolean;
"data"?: Array<{
"id"?: string;
"name"?: string;
"audience_id"?: string;
"created_at"?: string;
}>;
};
export type RemoveSegmentResponseSuccess = {
"id"?: string;
"object"?: string;
"deleted"?: boolean;
};
export type CreateTopicOptions = {
"name": string;
"default_subscription": "opt_in" | "opt_out";
"description"?: string;
"visibility"?: "public" | "private";
};
export type CreateTopicResponseSuccess = {
"id"?: string;
"object"?: string;
};
export type GetTopicResponseSuccess = {
"id"?: string;
"object"?: string;
"name"?: string;
"description"?: string;
"default_subscription"?: "opt_in" | "opt_out";
"visibility"?: "public" | "private";
"created_at"?: string;
};
export type ListTopicsResponseSuccess = {
"object"?: string;
"has_more"?: boolean;
"data"?: Array<{
"id"?: string;
"name"?: string;
"description"?: string;
"default_subscription"?: "opt_in" | "opt_out";
"visibility"?: "public" | "private";
"created_at"?: string;
}>;
};
export type UpdateTopicOptions = {
"name"?: string;
"description"?: string;
"visibility"?: "public" | "private";
};
export type UpdateTopicResponseSuccess = {
"id"?: string;
"object"?: string;
};
export type RemoveTopicResponseSuccess = {
"id"?: string;
"object"?: string;
"deleted"?: boolean;
};
export type CreateContactPropertyOptions = {
"key": string;
"type": "string" | "number";
"fallback_value"?: Record<string, unknown>;
};
export type CreateContactPropertyResponseSuccess = {
"id"?: string;
"object"?: string;
};
export type GetContactPropertyResponseSuccess = {
"object"?: string;
"id"?: string;
"key"?: string;
"type"?: string;
"fallback_value"?: Record<string, unknown>;
"created_at"?: string;
};
export type ListContactPropertiesResponseSuccess = {
"object"?: string;
"has_more"?: boolean;
"data"?: Array<{
"id"?: string;
"key"?: string;
"type"?: string;
"fallback_value"?: Record<string, unknown>;
"created_at"?: string;
}>;
};
export type UpdateContactPropertyOptions = {
"fallback_value"?: Record<string, unknown>;
};
export type UpdateContactPropertyResponseSuccess = {
"id"?: string;
"object"?: string;
};
export type RemoveContactPropertyResponseSuccess = {
"id"?: string;
"object"?: string;
"deleted"?: boolean;
};
export type AddContactToSegmentResponseSuccess = {
"object"?: string;
"contact_id"?: string;
"segment_id"?: string;
};
export type ListContactSegmentsResponseSuccess = {
"object"?: string;
"has_more"?: boolean;
"data"?: Array<{
"id"?: string;
"name"?: string;
"created_at"?: string;
}>;
};
export type RemoveContactFromSegmentResponseSuccess = {
"object"?: string;
"contact_id"?: string;
"segment_id"?: string;
"deleted"?: boolean;
};
export type GetContactTopicsResponseSuccess = {
"object"?: string;
"has_more"?: boolean;
"data"?: Array<{
"id"?: string;
"name"?: string;
"description"?: string;
"subscription"?: "opt_in" | "opt_out";
}>;
};
export type UpdateContactTopicsOptions = {
"topics": Array<{
"id"?: string;
"subscription"?: "opt_in" | "opt_out";
}>;
};
export type UpdateContactTopicsResponseSuccess = {
"object"?: string;
"contact_id"?: string;
"topics"?: Array<{
"id"?: string;
"subscription"?: "opt_in" | "opt_out";
}>;
};
export type LogSummary = {
"id"?: string;
"created_at"?: string;
"endpoint"?: string;
"method"?: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "OPTIONS";
"response_status"?: number;
"user_agent"?: string;
};
export type Log = {
"object"?: string;
"id"?: string;
"created_at"?: string;
"endpoint"?: string;
"method"?: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "OPTIONS";
"response_status"?: number;
"user_agent"?: string;
"request_body"?: Record<string, unknown>;
"response_body"?: Record<string, unknown>;
};
export type ListLogsResponse = {
"object"?: string;
"has_more"?: boolean;
"data"?: Array<LogSummary>;
};
/** A step in an automation workflow. The `config` object varies based on the step `type`. */
export type AutomationStep = {
"key": string;
"type": "trigger" | "send_email" | "delay" | "wait_for_event" | "condition" | "contact_update" | "contact_delete" | "add_to_segment";
"config": Record<string, unknown>;
};
/** A step as returned when retrieving an automation. */
export type AutomationStepResponse = {
"key"?: string;
"type"?: "trigger" | "send_email" | "delay" | "wait_for_event" | "condition" | "contact_update" | "contact_delete" | "add_to_segment";
"config"?: Record<string, unknown>;
};
/** A connection between two steps in the automation graph. */
export type AutomationConnection = {
"from": string;
"to": string;
"type"?: "default" | "condition_met" | "condition_not_met" | "timeout" | "event_received";
};
export type CreateAutomationRequest = {
"name": string;
"status"?: "enabled" | "disabled";
"steps": Array<AutomationStep>;
"connections": Array<AutomationConnection>;
};
export type CreateAutomationResponse = {
"object"?: string;
"id"?: string;
};
export type Automation = {
"object"?: string;
"id"?: string;
"name"?: string;
"status"?: "enabled" | "disabled";
"created_at"?: string;
"updated_at"?: string;
"steps"?: Array<AutomationStepResponse>;
"connections"?: Array<AutomationConnection>;
};
export type AutomationListItem = {
"id"?: string;
"name"?: string;
"status"?: "enabled" | "disabled";
"created_at"?: string;
"updated_at"?: string;
};
export type ListAutomationsResponse = {
"object"?: string;
"has_more"?: boolean;
"data"?: Array<AutomationListItem>;
};
/** At least one of `name`, `status`, or `steps` and `connections` must be provided. When updating the workflow graph, both `steps` and `connections` must be provided together.
*/
export type PatchAutomationRequest = {
"name"?: string;
"status"?: "enabled" | "disabled";
"steps"?: Array<AutomationStep>;
"connections"?: Array<AutomationConnection>;
};
export type PatchAutomationResponse = {
"object"?: string;
"id"?: string;
};
export type DeleteAutomationResponse = {
"object"?: string;
"id"?: string;
"deleted"?: boolean;
};
export type StopAutomationResponse = {
"object"?: string;
"id"?: string;
"status"?: string;
};
/** A step execution within an automation run. */
export type AutomationRunStep = {
"key"?: string;
"type"?: "trigger" | "send_email" | "delay" | "wait_for_event" | "condition" | "contact_update" | "contact_delete" | "add_to_segment";
"status"?: string;
"started_at"?: string;
"completed_at"?: string;
"output"?: Record<string, unknown>;
"error"?: Record<string, unknown>;
"created_at"?: string;
};
export type AutomationRun = {
"object"?: string;
"id"?: string;
"status"?: "running" | "completed" | "failed" | "cancelled";
"started_at"?: string;
"completed_at"?: string;
"created_at"?: string;
"steps"?: Array<AutomationRunStep>;
};
export type AutomationRunListItem = {
"id"?: string;
"status"?: "running" | "completed" | "failed" | "cancelled";
"started_at"?: string;
"completed_at"?: string;
"created_at"?: string;
};
export type ListAutomationRunsResponse = {
"object"?: string;
"has_more"?: boolean;
"data"?: Array<AutomationRunListItem>;
};
export type Event = {
"object"?: string;
"id"?: string;
"name"?: string;
"schema"?: Record<string, unknown>;
"created_at"?: string;
"updated_at"?: string;
};
export type EventSummary = {
"id"?: string;
"name"?: string;
"schema"?: Record<string, unknown>;
"created_at"?: string;
"updated_at"?: string;
};
export type CreateEventRequest = {
"name": string;
"schema"?: Record<string, unknown>;
};
export type CreateEventResponse = {
"object"?: string;
"id"?: string;
};
export type ListEventsResponse = {
"object"?: string;
"has_more"?: boolean;
"data"?: Array<EventSummary>;
};
export type UpdateEventRequest = {
"schema": Record<string, unknown>;
};
export type UpdateEventResponse = {
"object"?: string;
"id"?: string;
};
export type RemoveEventResponse = {
"object"?: string;
"id"?: string;
"deleted"?: boolean;
};
export type SendEventRequest = {
"event": string;
"contact_id"?: string;
"email"?: string;
"payload"?: Record<string, Record<string, unknown>>;
};
export type SendEventResponse = {
"object"?: string;
"event"?: string;
};
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |