EasypanelDocs

Getting Started

Authenticate and make your first API request.

The Easypanel API lets you manage your panel programmatically using the same operations available in the dashboard.

Base URL

API requests use your Easypanel URL followed by /api:

https://panel.example.com/api

Replace panel.example.com with the domain of your Easypanel installation.

Authentication

Most endpoints require a bearer token.

  1. Call the Log in endpoint with your email and password.
  2. Read the token from the response.
  3. Include it in the Authorization header of subsequent requests:
Authorization: Bearer YOUR_API_TOKEN

Keep the token private and never expose it in client-side code or commit it to source control.

Make your first request

Use the authenticated session endpoint to verify your connection:

curl --request GET \
  --url https://panel.example.com/api/getSession \
  --header "Authorization: Bearer YOUR_API_TOKEN"

A successful response returns the current authenticated session. You can now use the same authorization header with the other endpoints in this reference.