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/apiReplace panel.example.com with the domain of your Easypanel installation.
Authentication
Most endpoints require a bearer token.
- Call the Log in endpoint with your email and password.
- Read the token from the response.
- Include it in the
Authorizationheader of subsequent requests:
Authorization: Bearer YOUR_API_TOKENKeep 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.