Skip to content

API Overview

Piora provides a complete REST API that lets you programmatically manage servers, applications, databases, and other resources. The API is ideal for automation workflows, third-party integrations, or building custom management tools.

https://app.piora.dev/api/v1

All API requests use JSON format:

Terminal window
curl -X GET https://app.piora.dev/api/v1/servers \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json"

API responses use JSON with the following structure:

{
"success": true,
"data": {
// Response data
},
"meta": {
"page": 1,
"per_page": 20,
"total": 45
}
}

Error response:

{
"success": false,
"error": {
"code": "RESOURCE_NOT_FOUND",
"message": "The specified server was not found"
}
}
MethodEndpointDescription
GET/serversList all servers
GET/servers/:idGet server details
POST/serversAdd a server
DELETE/servers/:idRemove a server
GET/servers/:id/statsGet server stats
MethodEndpointDescription
GET/applicationsList all applications
GET/applications/:idGet application details
POST/applicationsCreate an application
PATCH/applications/:idUpdate application settings
DELETE/applications/:idDelete an application
POST/applications/:id/deployTrigger deployment
POST/applications/:id/rollbackRollback deployment
MethodEndpointDescription
GET/databasesList all databases
POST/databasesCreate a database
DELETE/databases/:idDelete a database
MethodEndpointDescription
GET/applications/:id/domainsList application domains
POST/applications/:id/domainsAdd a domain
DELETE/applications/:id/domains/:domainIdRemove a domain

List endpoints support paginated queries:

Terminal window
GET /api/v1/applications?page=1&per_page=20
ParameterDescriptionDefault
pagePage number1
per_pageItems per page20

The API has the following rate limits:

LevelLimit
Per minute60 requests
Per hour1000 requests

When limits are exceeded, the API returns a 429 Too Many Requests status code.

  • Authentication — How to obtain and use API tokens
  • CLI — Command-line tool
  • Webhooks — Receive event notifications
  • SDK — Language SDKs