EdgeGrid Code Examples
Check out our out-of-the-box Akamai EdgeGrid authentication code examples on GitHub.
Akamai offers a rich library of approximately 100 different APIs that allow you to manage your Akamai solutions. Whether it’s making configuration changes or retrieving the latest security events, the ability to execute these requests is easier to start with than you might think.
EdgeGrid is Akamai's API authentication method. In order to make requests with Akamai APIs, you’ll need to properly authenticate your requests, whether they are made directly to an API endpoint or through any of the tools that wrap the API requests.
Create your API client.
Go to Control Center
Make sure you have the correct permissions, and if not, contact your Akamai account team
Navigate to Identity & Access > New API Client for Me
Select which roles, which contracts, and which groups you are adding for this API client
Decide which tool you’ll use to make requests.
HTTPie - allows you to make HTTPS requests
Postman - a visual UI for making API requests
Akamai CLI - a command-line interface which allows for easy execution of tasks
Akamai Terraform Provider - utilize Akamai-as-Code with Terraform
Select your permissions, either read-only or read-write, and click Submit.
Copy your base URL.
Click on the New Credential button and copy or download your Access Token, Client Token, and Client Secret.
These tokens need to be stored securely and we recommend you store these in a password manager
Enter these keys in your tool of choice or inject the keys in any programming language of your choosing.
Send your request!
Learn more about the Akamai EdgeGrid Authentication Method.
The Akamai Developer Program features tailored content to connect you to the latest tools, exclusive beta releases, upcoming events, and so much more that helps you get the most out of Akamai.