---
schema_version: "1"
id: 0f99392afd02fc877f2d8d3bbabaede7efa1816959d0011d77fdc8ae0cca6863
title: Validate Aura API (aura-api)
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/aura-platform/guides/aura/cli/cli-rules-aura-api.md
canonical_url: https://developer.salesforce.com/docs/platform/aura-platform/guide/cli-rules-aura-api.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 1697db07bc9e7fd3badf151cdb2f866451466d6cfee0d8f986b6061a1cc08ed5
products:
  - Lightning Aura Components Developer Guide
  - Platform Developer Content
---

# Validate Aura API (aura-api)

This rule verifies that use of the framework APIs is according to the published documentation. The use of undocumented or private features is disallowed.

When Lightning Locker is enabled, the framework prevents the use of unsupported API objects or calls. That means your Aura components code is allowed to use:

- Features built into JavaScript (“intrinsic” features)
- Published, supported features built into the Aura Components programming model.
- Published, supported features built into Lightning Locker _SecureObject_ objects

This rule deals with the supported, public framework APIs, for example, those available through the framework global `$A`.

Why is this rule called “Aura API”? Because the core of the Aura Components programming model is the open source Aura Framework. And this rule verifies permitted uses of that framework, rather than anything specific to Lightning Components.

## Rule Details

The following patterns are considered problematic:

```javascript
Aura.something(); // Use $A instead
$A.util.fake(); // fake is not available in $A.util
```

## Further Reading

For details of all of the methods available in the framework, including `$A`, see the [JavaScript API documentation](https://developer.salesforce.com/docs/platform/aura-platform/ref-jsapi/ref-jsapi-intro.md).

**See Also**

- [Validate Aura Component Public API (secure-component)](https://developer.salesforce.com/docs/platform/aura-platform/guide/cli-rules-secure-component.md)
- [Validate Secure Document Public API (secure-document)](https://developer.salesforce.com/docs/platform/aura-platform/guide/cli-rules-secure-document.md)
- [Validate Secure Window Public API (secure-window)](https://developer.salesforce.com/docs/platform/aura-platform/guide/cli-rules-secure-window.md)
