Category

How to Generate and Manage API Keys in BoldDesk

Updated:

This guide explains how to generate an API key directly from the BoldDesk agent interface. API keys are used to authenticate requests to the BoldDesk API and are managed entirely within your BoldDesk account.



Check out this video tutorial for more details.

API Key Location in the BoldDesk Agent Interface

Navigation path: Agent Profile > View profile & Settings > API Keys

API Key.png

  • Ensure the “Manage API Keys” permission is enabled in your profile. If this permission is not granted, attempting to create an API key after entering the Identification Name will result in an “Access Denied” error.
  • BoldDesk does not support pausing a specific API configuration for a set period. As a workaround, you can revoke or disable the associated API key to temporarily stop access. While the API key is inactive, requests made through that configuration will fail and return an Unauthorized Access Denied error. Re-enable or regenerate the API key when access needs to be restored.

Generating an API Key in BoldDesk

Follow these steps exactly as shown in the BoldDesk UI.

  1. Open Personal Settings
    • Sign in to your BoldDesk agent account.

    • Click your profile avatar.

    • Select View profile & Settings.

      View profile & settings.png

  2. Go to the API Keys Tab
    • In Personal Settings, open the API Keys tab.

    • Click Create API Key.

      Create API Key.png

  3. Enter an Identification Name
    • In the Create API Key dialog:

      • Enter an Identification Name.
    • Click Create.

      Enter an Identification Name.png

  4. Copy and Secure the API Token
    • Copy the generated API Key Token immediately.

    • Store it securely.

      Copy API Token.png

Using the BoldDesk API Key

When making API requests to BoldDesk:

  • Pass the API key token in the HTTP request header.
  • Authentication is handled natively by the BoldDesk API.

For endpoint usage, explore further instructions about Developer API.

Managing Existing API Keys in BoldDesk

From Personal Settings > API Keys, agents can manage all previously created API keys using the built‑in API key table.

Available API Key Controls
Within the API Keys tab, BoldDesk displays the following columns:

  • Name – The Identification Name assigned during creation

  • Created Date – Timestamp showing when the API key was generated

  • Status – Current state of the key (for example, Enabled)

  • Action – Management options for each API key

    Existing API Keys.png

Supported Actions
Agents can perform the following actions directly from the Action column:

  • Disable
    Temporarily deactivates the API key without deleting it. Disabled keys cannot be used for API authentication.

    Disable.png

  • Revoke
    Permanently invalidates the API key. Revoked keys cannot be restored and must be recreated if needed again.

    Revoke.png

BoldDesk does not provide a centralized page to view all API keys and their owners. API keys are managed at the individual user level and can only be viewed by the user who created them under Profile Settings > API Key. Administrators do not have access to a centralized view of API keys generated across the organization.

How to Resolve the “Access Denied” Error in the BoldDesk API

An “Access Denied” error (HTTP 401 or 403) indicates that BoldDesk rejected the API request due to authentication or permission issues. Use the checks below to identify and resolve the problem.

  1. Verify the API Key Header
    Ensure the API request includes the required header:

    • Header name: x-api-key
    • Value: Your active BoldDesk API key token
    • The header name must match exactly (case‑sensitive).

    Missing or incorrectly named headers will result in a 401 error.

  2. Confirm the API Key Is Active
    In Personal Settings > API Keys:

    • Verify the API key Status is Enabled
    • Ensure the key has not been revoked
    • Confirm the key belongs to an active agent account

    Disabled or revoked keys are immediately rejected by the BoldDesk API.

  3. Check Agent Role Permissions
    API access is limited by the agent’s role permissions. From Admin Settings > Roles & Permission:
    Confirm the agent’s role has access to the module you are calling, such as:

    • Tickets
    • Contacts
    • Knowledge Base

    If the role does not include the required module, BoldDesk returns a 403 error even with a valid API key.

  4. Validate the BoldDesk Domain in the Request URL
    Ensure the request URL uses your correct BoldDesk domain: https://{your-domain}.bolddesk.com

API key generation is restricted in trial accounts. If the API Keys tab displays a message that API key generation is not available for your account, upgrade to a paid plan or contact BoldDesk Support.

Permission to Generate API Keys

Agents must have Manage API Keys permission enabled in the profile under Roles and Permissions.

Role and Permission.png

Frequently Asked Questions

  1. Can an agent view an API key token again after closing the creation dialog?
    No. BoldDesk does not allow API tokens to be viewed again. If the token is lost, the agent must create a new API key.

  2. Can an agent edit an API key after creation (name or token)?
    No. The Identification Name and token cannot be edited. To change details, revoke the API key and create a new one.

  3. Can administrators create or manage API keys from Admin Settings?
    No. API keys are created and managed at the agent level under Personal Settings → API Keys. Admin Settings do not provide API key creation.

  4. Does BoldDesk support API key expiration dates?
    No. BoldDesk API keys do not expire automatically. Use Disable (temporary) or Revoke (permanent) to stop access.

  5. Can an agent generate API keys from the Help Center or end-user portals?
    No. API keys can only be generated from the agent interface, not from the Help Center or end-user portals.

  6. What happens if an API key is disabled?
    Disabled API keys cannot authenticate API requests. Requests using the disabled key fail and return Unauthorized Access Denied.

  7. What happens if an API key is revoked?
    Revocation permanently invalidates the API key. The revoked API key cannot be restored and must be recreated.

  8. Why can a valid API key still return HTTP 403?
    HTTP 403 typically indicates the agent role lacks permission for the module required by the endpoint (for example, Tickets, Contacts, or Knowledge Base).

Related Articles

  1. BoldDesk REST API Overview for Developers
  2. BoldDesk API Authentication Guide: Secure Access Made Simple
  3. How to Use Swagger UI to Test the BoldDesk REST API
Was this article useful?
Like
Dislike
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied
Access denied
Access denied

No articles or sections found
No articles or sections found