# Quota ## View secret usage `client.SecretsStore.Quota.Get(ctx, query) (*QuotaGetResponse, error)` **get** `/accounts/{account_id}/secrets_store/quota` Lists the number of secrets used in the account. ### Parameters - `query QuotaGetParams` - `AccountID param.Field[string]` Account Identifier ### Returns - `type QuotaGetResponse struct{…}` - `Secrets QuotaGetResponseSecrets` - `Quota float64` The number of secrets the account is entitlted to use - `Usage float64` The number of secrets the account is currently using ### Example ```go package main import ( "context" "fmt" "github.com/cloudflare/cloudflare-go" "github.com/cloudflare/cloudflare-go/option" "github.com/cloudflare/cloudflare-go/secrets_store" ) func main() { client := cloudflare.NewClient( option.WithAPIKey("144c9defac04969c7bfad8efaa8ea194"), option.WithAPIEmail("user@example.com"), ) quota, err := client.SecretsStore.Quota.Get(context.TODO(), secrets_store.QuotaGetParams{ AccountID: cloudflare.F("985e105f4ecef8ad9ca31a8372d0c353"), }) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", quota.Secrets) } ``` #### Response ```json { "errors": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "messages": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "success": true, "result": { "secrets": { "quota": 10, "usage": 10 } }, "result_info": { "count": 1, "page": 1, "per_page": 20, "total_count": 2000 } } ```