Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Create a new API key for authentication.
func (s *ApiKeysSvcImpl) Create(params *CreateApiKeyRequest) (CreateApiKeyResponse, error) func (s *ApiKeysSvcImpl) CreateWithContext(ctx context.Context, params *CreateApiKeyRequest) (CreateApiKeyResponse, error)
client := resend.NewClient("re_123456789") params := &resend.CreateApiKeyRequest{ Name: "Production API Key", Permission: "full_access", } apiKey, err := client.ApiKeys.Create(params) if err != nil { panic(err) } fmt.Println("API Key ID:", apiKey.Id) fmt.Println("Token:", apiKey.Token)