Method
Parameters
Response
Always
"list"Whether there are more results available
Learn more about Mintlify
Enter your email to receive updates about new features and product releases.
Retrieve a paginated list of API keys.
func (s *ApiKeysSvcImpl) List() (ListApiKeysResponse, error)
func (s *ApiKeysSvcImpl) ListWithContext(ctx context.Context) (ListApiKeysResponse, error)
func (s *ApiKeysSvcImpl) ListWithOptions(ctx context.Context, options *ListOptions) (ListApiKeysResponse, error)
"list"client := resend.NewClient("re_123456789")
response, err := client.ApiKeys.List()
if err != nil {
panic(err)
}
for _, apiKey := range response.Data {
fmt.Printf("API Key: %s (%s)\n", apiKey.Name, apiKey.Id)
fmt.Printf(" Created: %s\n", apiKey.CreatedAt)
}
fmt.Println("Has More:", response.HasMore)