How to activate a Bearer Token for access to APIs

What is an API?

An API (Application Programming Interface) is a set of rules and protocols that allows different applications to communicate with each other in a structured way.

Put simply: an API acts as a bridge between two systems, allowing one to request information or execute actions on the other without manual intervention.

For example:

  • An application can use an API to automatically create a domain.
  • An external system can check the status of a service without directly accessing the panel.

In the case of SWPanel, its API allows managing domains, services, and resources programmatically, enabling automation and integration with other systems.


What is a Bearer Token?

A Bearer Token is a type of security credential used to authenticate API requests.

  • It works like a private access key
  • It identifies the user making the request
  • It is sent with each API request to authorize the action

Key concept:
Anyone who has access to a Bearer Token can use the API with the permissions associated with that token.

Therefore, it is essential to:

  • Not share it publicly
  • Store it securely
  • Revoke it if it is suspected to be compromised

How does the SWPanel API work and what is it for?

The SWPanel API allows performing the same actions you would normally do from the panel interface, but in an automated way.

This includes, for example:

  • Creating or deleting domains
  • Managing services
  • Automating repetitive tasks
  • Integrating SWPanel with external systems (CRM, ERP, custom applications, etc.)

It is designed to:

  • Reduce manual intervention
  • Improve operational efficiency
  • Enable integrations with other platforms

API Activation

SWPanel has several operating modes. API management is only available in Integrator mode, so you must activate it first.

Activate Integrator Mode

  1. Access the top menu of SWPanel

  2. Click on the "My SWPanel" tab

  3. Select "SWPanel Preferences" or directly "Change operating mode"

    Menú superior de SWPanel

  4. Go to the "Operation" tab

  5. Select "Integrator" mode

    Modo Integrador

  6. Save changes

  7. Return to the Dashboard

  8. Click your avatar to open the top menu

  9. Go to the "Integrator Mode" tab

  10. Click "Activate SWPanel APIs"

    Activar APIs

  11. Read the information shown and accept activation

    Activación del token

  12. Once APIs are activated, the Integrator Mode menu will show new options

  13. Access the Integrator Mode Dashboard

    Dashboard Integrador

  14. From the Dashboard you can view your Bearer Token, access API documentation, and manage its usage

    Vista del token


Bearer Token Management

SWPanel allows creating and managing multiple Bearer Tokens with different configurations.

This is especially useful for:

  • Development teams
  • Multiple integrations
  • Application-level access control

Why use multiple tokens?

  • Separate environments (production, development)
  • Limit permissions per application
  • Revoke access without affecting other systems

How to manage your Bearer Tokens

  1. Access the SWPanel top menu

  2. Go to "Integrator Mode"

  3. In "Manage SWPanel APIs", select "Manage Bearer Tokens"

    Gestión de APIs

  4. View the list of existing tokens

  5. Use available options to create, edit, or revoke tokens


Create a new Bearer Token

  1. Click "Create new Bearer Token"

    Crear token

  2. Fill in the required fields:

    • Descriptive name
    • Permissions
    • Security settings
  3. Save the configuration

    Configuración token

Recommendation:

  • Use descriptive names such as:
    • crm-production
    • script-backups
    • billing-integration

Security best practices

  1. Do not share your tokens in public code
  2. Use different tokens for each integration
  3. Revoke tokens that are no longer used
  4. Apply the principle of least privilege (only necessary permissions)

More Integrator Mode options

Integrator Mode offers additional tools for working with SWPanel APIs.

Refer to the full manual to explore all features in detail.


Additional documentation

If you wish, you can consult the technical documentation for each SWPanel API endpoint at the following link: Technical documentation

info_capture Note: The screenshots in this manual were taken from version 2026.001.0020 dated 27/04/2026. They may differ from the current version of SWPanel and should be considered as guidance only

Background

© 2026 DeepThink Software SLU. All rights reserved. The prices shown on the website do not include any applicable taxes.