Documentation Index
Fetch the complete documentation index at: https://mintlify.com/resend/resend-go/llms.txt
Use this file to discover all available pages before exploring further.
Method
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)
Parameters
Pagination options (only available in ListWithOptions)Maximum number of API keys to return
Cursor for forward pagination
Cursor for backward pagination
Response
Whether there are more results available
Array of API key objectsThe unique identifier of the API key
ISO 8601 timestamp of when the API key was created
Example
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)