*This page
applies to **Apigee** and **Apigee hybrid**.*


*View [Apigee Edge](https://docs.apigee.com/api-platform/get-started/what-apigee-edge) documentation.*
![](https://fonts.gstatic.com/s/i/googlematerialicons/help/v13/gm_grey-24dp/1x/gm_help_gm_grey_24dp.png)

Apigee's policies augment your APIs to control
traffic, enhance performance, enforce security, and increase the utility of your APIs, without
requiring you to write code or modify backend services.

In addition, Apigee provides extension policies that let you implement custom logic in the
form of JavaScript, Python, Java, and XSLT stylesheets.

## Policy categories and types

A policy's *category* indicates the functional area (for example, security or mediation) for the policy.
Policies are shown sorted by category below.

The policy type refers to how the policy can be used in Apigee:

- **Standard policies** are suitable for internal development and lightweight API solutions. Standard policies can be used with any [environment type](https://docs.cloud.google.com/apigee/docs/api-platform/fundamentals/environments-overview.md.txt#environment-types). To see the list of standard policies, see [Standard policies by category](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/reference-overview-policy.md.txt#standard-policy-categories).
- **Extensible policies** provide more functionality than standard policies, including for traffic management, mediation, and security. The extensible policies also include policies to implement custom logic in the form of JavaScript, Python, Java, and XSLT stylesheets.   

  Extensible policies can be used with intermediate and comprehensive environment types only. Using an extensible policy automatically converts that proxy to an [Extensible proxy](https://docs.cloud.google.com/apigee/docs/api-platform/fundamentals/understanding-apis-and-api-proxies.md.txt#proxy-types), which could have cost and other implications. Check the [Pay-as-you-go entitlements](https://docs.cloud.google.com/apigee/docs/api-platform/reference/pay-as-you-go-updated-entitlements.md.txt) and [Subscription 2024](https://docs.cloud.google.com/apigee/docs/api-platform/reference/subscription-entitlements.md.txt#subscription-2024-entitlements) for information.   

  To see the list of extensible policies, see [Extensible policies by category](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/reference-overview-policy.md.txt#extensible-policy-categories).

For [Pay-as-you-go](https://docs.cloud.google.com/apigee/docs/api-platform/reference/pay-as-you-go-updated-overview.md.txt) users, the types of policies you can use in a proxy depend on the
[environment types](https://docs.cloud.google.com/apigee/docs/api-platform/reference/pay-as-you-go-environment-types.md.txt)
you plan to deploy that proxy to. See [Pay-as-you-go](https://docs.cloud.google.com/apigee/docs/api-platform/reference/pay-as-you-go-updated-overview.md.txt) for more information.

If there are two policies, one standard and one extensible, that would both perform the functions
you need, use the standard policy.

## Standard policies by category


Select category Extension policies Mediation policies Security policies Traffic management policies

Following are the categories for the standard policies:

| Category | Policy name | Description |
|---|---|---|
| ### Extension policies | - [AssertCondition policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/assert-condition-policy.md.txt) - [ExternalCallout policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/external-callout-policy.md.txt) | Let you define custom policy functionality, such as service callout and message data collection. |
| ### Mediation policies | - [CORS policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/cors-policy.md.txt) - [GraphQL policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/graphql-policy.md.txt) - [HTTPModifier policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/http-modifier-policy.md.txt) - [JSONtoXML policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/json-xml-policy.md.txt) - [OASValidation policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/oas-validation-policy.md.txt) - [PublishMessage policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/publish-message-policy.md.txt) - [RaiseFault policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/raise-fault-policy.md.txt) - [ReadPropertySet policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/read-property-set-policy.md.txt) - [SOAPMessageValidation policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/message-validation-policy.md.txt) - [XMLtoJSON policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/xml-json-policy.md.txt) | Let you perform message transformation, parsing, and validation, as well as raise faults and alerts. |
| ### Security policies | - [AccessControl policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/access-control-policy.md.txt) - [HMAC policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/hmac-policy.md.txt) - JWT policies: - [DecodeJWT policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/decode-jwt-policy.md.txt) - [VerifyJWT policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/verify-jwt-policy.md.txt) - [VerifyIAM policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/verify-iam-policy.md.txt) | Let you apply security-related policies. |
| ### Traffic management policies | - [SpikeArrest policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/spike-arrest-policy.md.txt) | Let you control quotas and mitigate the effects of API traffic spikes. |

## Extensible policies by category


Select category AI policies Extension policies Mediation policies Security policies Traffic management policies


Following are the extensible policies, by category. Proxies with extensible
policies can only be deployed to intermediate and comprehensive
environments. Extensible policies are indicated in the user interface with
this icon:
![extensible policy icon](https://docs.cloud.google.com/static/apigee/docs/api-platform/images/icon_policy_extensible.png)

| Category | Policy name | Description |
|---|---|---|
| ### AI policies | - [LLMTokenQuota policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/llm-token-quota-policy.md.txt) - [PromptTokenLimit policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/prompt-token-limit-policy.md.txt) - [SemanticCacheLookup policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/semantic-cache-lookup-policy.md.txt) - [SemanticCachePopulate policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/semantic-cache-populate-policy.md.txt) - [SanitizeUserPrompt policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/sanitize-user-prompt-policy.md.txt) - [SanitizeModelResponse policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/sanitize-llm-response-policy.md.txt) | Let you optimize and secure the performance of AI workloads and models. |
| ### Extension policies | - [DataCapture policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/data-capture-policy.md.txt) - [FlowCallout policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/flow-callout-policy.md.txt) - [IntegrationCallout policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/integration-callout-policy.md.txt) - [JavaCallout policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/java-callout-policy.md.txt) - [JavaScript policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/javascript-policy.md.txt) - [MessageLogging policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/message-logging-policy.md.txt) - [PythonScript policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/python-script-policy.md.txt) - [ServiceCallout policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/service-callout-policy.md.txt) - [SetIntegrationRequest policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/set-integration-request-policy.md.txt) - [TraceCapture policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/trace-capture-policy.md.txt) | Let you define custom policy functionality, such as service callout, message data collection, and calling Java, JavaScript, and Python scripts. |
| ### Mediation policies | - [AccessEntity policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/access-entity-policy.md.txt) - [AssignMessage policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/assign-message-policy.md.txt) - [ExtractVariables policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/extract-variables-policy.md.txt) - [KeyValueMapOperations policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/key-value-map-operations-policy.md.txt) - [MonetizationLimitsCheck policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/monetization-limits-check-policy.md.txt) - [ParseDialogflowRequest policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/parse-dialogflow-request-policy.md.txt) - [ParsePayload policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/parse-payload-policy.md.txt) - [SetDialogflowResponse policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/set-dialogflow-response-policy.md.txt) - [XSLTransform policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/xsl-transform-policy.md.txt) | Let you perform message transformation, parsing, and validation, as well as raise faults and alerts. |
| ### Security policies | - [BasicAuthentication policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/basic-authentication-policy.md.txt) - [JSONThreatProtection policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/json-threat-protection-policy.md.txt) - JWS policies: - [DecodeJWS policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/decode-jws-policy.md.txt) - [GenerateJWS policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/generate-jws-policy.md.txt) - [VerifyJWS policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/verify-jws-policy.md.txt) - JWT policies: - [GenerateJWT policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/generate-jwt-policy.md.txt) - OAuth v2 policies: - [DeleteOAuthv2Info policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/delete-oauth-v2-info.md.txt) - [GetOAuthv2Info policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/get-oauth-v2-info-policy.md.txt) - [OAuthv2 policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/oauthv2-policy.md.txt) - [RevokeOAuthv2 policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/revoke-oauth-v2-policy.md.txt) - [SetOAuth v2 Info policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/set-oauth-v2-info-policy.md.txt) - [RegularExpressionProtection policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/regular-expression-protection.md.txt) - [SAMLAssertion policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/saml-assertion-policy.md.txt) - [VerifyAPIKey policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/verify-api-key-policy.md.txt) - [XMLThreatProtection policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/xml-threat-protection-policy.md.txt) | Let you control access to your APIs with OAuth, API key validation, and other threat protection features. |
| ### Traffic management policies | - Caching policies: - [InvalidateCache policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/invalidate-cache-policy.md.txt) - [LookupCache policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/lookup-cache-policy.md.txt) - [PopulateCache policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/populate-cache-policy.md.txt) - [ResponseCache policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/response-cache-policy.md.txt) - [Quota policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/quota-policy.md.txt) - [ResetQuota policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/reset-quota-policy.md.txt) | Let you configure caching, control quotas, mitigate the effects of spikes, and perform other functions related to your API traffic. |