Create an API Key on Anchor

Create an API Key on Anchor

API keys are essential for interacting with Anchor's API services securely. Here's a step-by-step guide on how to set up API keys on Anchor:

  1. Log into Anchor Dashboard and click on Setting at the button left of the screen.
  2. Select Developers and click on API keys.
  3. Click Create API Key at the top right of the screen.
  4. Give your API key a Label for identification and select an expiration date.
  5. Add the permissions you would like your API keys to have and click Create API Key at the button right of the screen to create it.

Things to Note When Creating API Keys

Creating and managing API keys comes with responsibilities to ensure the security of your organization account and data. Here are some best practices to follow:

  1. Avoid Hardcoding API Keys: Never embed API keys directly in your application's source code. Instead, use environment variables or in configuration files outside of your application's source tree. This prevents accidental exposure of your keys in public repositories.
  2. Regularly Delete Unneeded Keys: API keys should be periodically reviewed. Delete any keys that are no longer in use or needed for your application. This minimizes the potential attack surface and ensures that only essential keys are active.
  3. Change API Keys Periodically: Rotate your API keys at regular intervals, even if they are still in use. Changing keys helps prevent potential vulnerabilities and adds an extra layer of security to your application.

    • Related Articles

    • Access Denied Troubleshooting Guide

      If you are encountering "Access Denied" error while using the Anchor API, it may be due to one or more of the following reasons: Possible Causes: Insufficient Permissions – The API key lacks the necessary permissions to create a counterparty. ...
    • How to Simulate Test Funds in the Sandbox

      To get test funds in sandbox, use the simulate transfer in the Anchor Dashboard. You can simulate incoming payment to get test funds in sandbox mode. Below are the specific steps to fund an account in sandbox In the Anchor Dashboard sandbox ...