The Support API lets you integrate Data Mammoth support operations into your own tools and workflows. Create tickets programmatically, track their status, and access Knowledge Base content through standard API calls.
Base URL
https://api.datamammoth.com/v1/supportSupport Tickets
List Tickets
GET /v1/support/ticketsQuery Parameters:
| Parameter | Type | Description |
|---|---|---|
status | string | open, in_progress, awaiting_reply, resolved, closed |
department | string | technical, billing, sales, account |
priority | string | low, medium, high, critical |
page | integer | Page number |
curl -X GET "https://api.datamammoth.com/v1/support/tickets?status=open" \
-H "Authorization: Bearer dm_key_abc123def456"Create a Ticket
POST /v1/support/ticketsRequest Body:
{
"subject": "Server 203.0.113.10 high CPU usage",
"department": "technical",
"priority": "high",
"server_id": "srv_abc123",
"message": "CPU usage has been above 95% for the past 2 hours. I have checked running processes with htop and the top consumer is MySQL. No unusual traffic detected. Please advise on optimization options."
}Required fields: subject, department, message
Optional fields: priority, server_id, attachments
Get Ticket Details
GET /v1/support/tickets/{ticket_id}Returns the full ticket thread including all messages and metadata.
Reply to a Ticket
POST /v1/support/tickets/{ticket_id}/repliesRequest Body:
{
"message": "Thank you for the suggestion. I have increased the innodb_buffer_pool_size to 2GB and restarted MySQL. CPU usage has dropped to 40%. The issue appears to be resolved."
}Close a Ticket
POST /v1/support/tickets/{ticket_id}/closeKnowledge Base
List Categories
GET /v1/support/kb/categoriesList Articles in a Category
GET /v1/support/kb/categories/{category_slug}/articlesGet Article Content
GET /v1/support/kb/articles/{article_slug}Search the Knowledge Base
GET /v1/support/kb/search?q=ssh+key+setupResponse:
{
"data": [
{
"slug": "manage-ssh-keys",
"title": "Managing SSH Keys",
"category": "server-management",
"excerpt": "Learn how to generate, add, and manage SSH keys..."
}
]
}Use Cases
Automated Ticket Creation
Create tickets automatically when your monitoring system detects issues:
curl -X POST "https://api.datamammoth.com/v1/support/tickets" \
-H "Authorization: Bearer dm_key_abc123def456" \
-H "Content-Type: application/json" \
-d '{
"subject": "Auto-alert: Disk usage above 90% on srv_abc123",
"department": "technical",
"priority": "high",
"server_id": "srv_abc123",
"message": "Automated monitoring detected disk usage at 92% on server srv_abc123 (203.0.113.10). Immediate attention recommended."
}'Custom Support Dashboard
Build a custom interface that displays open tickets, their status, and allows team members to respond — all powered by the Support API.
Knowledge Base Integration
Embed Knowledge Base search and article content into your own help center or documentation portal.
What to Do Next
- Webhooks — Real-Time Event Notifications — Get notified on ticket updates.
- API Error Codes & Handling — Handle API errors.
- API Code Examples — PHP — Support API in PHP.
- How to Submit a Support Ticket — Manual ticket submission guide.