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.
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)
ListWithOptions
"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)