#
API Reference
Complete reference for the DeployAlly REST API.
#
Base URL
| Environment |
URL |
| Production |
https://sys.deployally.com/api/v1 |
| Development |
https://dev.sys.deployally.com/api/v1 |
#
Authentication
The API uses API Key authentication via header:
Authorization: Bearer da_xxx
See Authentication for details on obtaining and managing API keys.
- Request: JSON (
Content-Type: application/json)
- Response: JSON
- Encoding: UTF-8
#
Endpoints
#
Templates
| Method |
Endpoint |
Description |
| GET |
/templates |
List templates |
| GET |
/templates/{id} |
Template details |
#
Definitions
| Method |
Endpoint |
Description |
| GET |
/definitions |
List definitions |
| POST |
/definitions |
Create definition |
| GET |
/definitions/{id} |
Details |
| PUT |
/definitions/{id} |
Update |
| DELETE |
/definitions/{id} |
Remove |
#
Instances
| Method |
Endpoint |
Description |
| GET |
/instances |
List instances |
| GET |
/instances/{id} |
Details |
| POST |
/instances/{id}/restart |
Restart |
| POST |
/instances/{id}/stop |
Stop |
| POST |
/instances/{id}/start |
Start |
#
Servers
| Method |
Endpoint |
Description |
| GET |
/servers |
List servers |
| POST |
/servers |
Register server |
| GET |
/servers/{id} |
Details |
| DELETE |
/servers/{id} |
Remove |
#
Deployments
| Method |
Endpoint |
Description |
| GET |
/deployments |
List deployments |
| POST |
/deployments |
Create deployment |
| GET |
/deployments/{id} |
Details |
#
Responses
#
Success
{
"success": true,
"data": { ... }
}
{
"success": true,
"data": [ ... ],
"pagination": {
"page": 1,
"per_page": 20,
"total": 100,
"total_pages": 5
}
}
#
Error
{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Field 'name' is required",
"details": { ... }
}
}
#
Error Codes
| Code |
HTTP |
Description |
UNAUTHORIZED |
401 |
Invalid or missing API key |
FORBIDDEN |
403 |
No permission for resource |
NOT_FOUND |
404 |
Resource not found |
VALIDATION_ERROR |
422 |
Invalid data |
RATE_LIMITED |
429 |
Too many requests |
SERVER_ERROR |
500 |
Internal error |
#
Rate Limits
| Plan |
Requests/min |
| Free |
60 |
| Pro |
300 |
| Enterprise |
1000 |
Response headers:
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 58
X-RateLimit-Reset: 1699900000
#
Examples
#
List Templates
curl -X GET "https://sys.deployally.com/api/v1/templates" \
-H "Authorization: Bearer da_xxx"
#
Create Definition
curl -X POST "https://sys.deployally.com/api/v1/definitions" \
-H "Authorization: Bearer da_xxx" \
-H "Content-Type: application/json" \
-d '{
"template_id": "mysql-8.4",
"name": "mysql_my_database",
"params": {
"database_name": "my_database",
"user_name": "my_user",
"user_password": "secure_password"
},
"profile": "development"
}'
#
Deploy
curl -X POST "https://sys.deployally.com/api/v1/deployments" \
-H "Authorization: Bearer da_xxx" \
-H "Content-Type: application/json" \
-d '{
"definition_id": "def_abc123",
"server_id": "srv_xyz789"
}'
#
SDKs
Official SDKs in development:
- Python (coming soon)
- Node.js (coming soon)
- Go (coming soon)
#
Next Steps
By
Borlot.com.br on 13/02/2026