Quickstart
Quickstart
Get started with Averment in minutes.
Currently, JavaScript is supported. TypeScript support is being finalized and will be available soon.
1. Set your API key
Create an API key from Averment Console and save it as an environment variable.

bash

2. Install the SDK

bash

3. Create a file
After installing the SDK, create a file example.mjs and paste the following code:

example.mjs

4. Run the code

bash

Example output:

Output

Next steps
You have made your first Averment API call. Next, learn some basic concepts.
Concepts
Learn the core concepts behind Averment, including decisions, signals, enforcement actions, and hybrid intelligence.