Support tickets
Open, read, reply to and close FineProxy support tickets from your code or AI agent, and download attachments.
The tickets API gives your integration the same support channel as the dashboard: you can open a ticket when something breaks, follow the conversation and close it when it is resolved. Real people answer these tickets, so use the API for real issues only — not for tests or health checks.
Reading needs tickets:read; creating, replying and closing need tickets:write.
List your tickets
GET /api/v1/customer/tickets returns your tickets, newest first, paginated with offset and limit (default 50).
curl "https://fineproxy.org/account_new/api/v1/customer/tickets?limit=20" \
-H "Authorization: Bearer $FINEPROXY_API_KEY"
const response = await fetch('https://fineproxy.org/account_new/api/v1/customer/tickets?limit=20', {
headers: { Authorization: `Bearer ${process.env.FINEPROXY_API_KEY}` },
});
const { tickets, total } = await response.json();
for (const t of tickets) console.log(t.id, t.status, t.subject);
import os
import requests
response = requests.get(
"https://fineproxy.org/account_new/api/v1/customer/tickets",
params={"limit": 20},
headers={"Authorization": f"Bearer {os.environ['FINEPROXY_API_KEY']}"},
timeout=30,
)
response.raise_for_status()
for ticket in response.json()["tickets"]:
print(ticket["id"], ticket["status"], ticket["subject"])
{
"tickets": [
{
"id": "00000000-0000-0000-0000-000000000000",
"subject": "Proxies in DE return timeouts since 09:00 UTC",
"status": "open",
"service_id": "00000000-0000-0000-0000-000000000001",
"last_message_at": "2026-11-27T09:43:54.364556Z",
"created_at": "2026-11-27T09:43:54.364556Z",
"updated_at": "2026-11-27T09:43:54.371262Z"
}
],
"total": 1,
"offset": 0,
"limit": 20
}
status is one of open, in_progress, waiting, customer_replied and closed.
Reference: List tickets. MCP: list_tickets.
Open a ticket
POST /api/v1/customer/tickets with a subject (1–500 characters) and a message (1–10,000 characters). Link the ticket to the affected service with service_id — it saves support a round of questions.
curl -X POST https://fineproxy.org/account_new/api/v1/customer/tickets \
-H "Authorization: Bearer $FINEPROXY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"subject": "Proxies in DE return timeouts since 09:00 UTC",
"message": "Requests through 203.0.113.10:8080 time out since 09:00 UTC. x-request-id of a failing API call: 0123456789abcdef0123456789abcdef.",
"service_id": "00000000-0000-0000-0000-000000000001"
}'
const response = await fetch('https://fineproxy.org/account_new/api/v1/customer/tickets', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.FINEPROXY_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
subject: 'Proxies in DE return timeouts since 09:00 UTC',
message: 'Requests through 203.0.113.10:8080 time out since 09:00 UTC.',
service_id: process.env.SERVICE_ID,
}),
});
if (!response.ok) throw new Error(`Ticket failed ${response.status}: ${await response.text()}`);
const ticket = await response.json();
console.log(ticket.id, ticket.status);
response = requests.post(
"https://fineproxy.org/account_new/api/v1/customer/tickets",
headers={"Authorization": f"Bearer {os.environ['FINEPROXY_API_KEY']}"},
json={
"subject": "Proxies in DE return timeouts since 09:00 UTC",
"message": "Requests through 203.0.113.10:8080 time out since 09:00 UTC.",
"service_id": os.environ["SERVICE_ID"],
},
timeout=30,
)
response.raise_for_status()
ticket = response.json()
print(ticket["id"], ticket["status"])
The 201 response is the full ticket with its first message:
{
"id": "00000000-0000-0000-0000-000000000000",
"subject": "Proxies in DE return timeouts since 09:00 UTC",
"status": "open",
"service_id": "00000000-0000-0000-0000-000000000001",
"last_message_at": "2026-11-27T09:43:54.364556Z",
"created_at": "2026-11-27T09:43:54.364556Z",
"updated_at": "2026-11-27T09:43:54.371262Z",
"messages": [
{
"id": "00000000-0000-0000-0000-000000000002",
"ticket_id": "00000000-0000-0000-0000-000000000000",
"author_kind": "customer",
"message": "Requests through 203.0.113.10:8080 time out since 09:00 UTC.",
"created_at": "2026-11-27T09:43:54.364556Z",
"attachments": []
}
]
}
A good ticket says what you expected, what happened, since when, and includes the service_id, the proxy IP and port involved and the x-request-id header of a failing API response.
Attach files
attachments (up to 5) carries files inline as base64:
{
"subject": "Proxy handshake fails",
"message": "Log of the failing connection attached.",
"attachments": [
{ "filename": "curl-verbose.txt", "content_type": "text/plain", "data_base64": "KiAgIFRyeWluZyAyMDMuMC4xMTMuMTA6ODA4MC4uLgo=" }
]
}
The server checks that the declared content_type matches the file content.
Reference: Create ticket. MCP: create_ticket (subject, message, optional service_id).
Read a ticket and its replies
GET /api/v1/customer/tickets/{ticket_id} returns the ticket with messages[] in chronological order. Each message has author_kind (customer for your messages), message, created_at and attachments[] — attachment metadata with id, filename, content_type and size.
curl "https://fineproxy.org/account_new/api/v1/customer/tickets/$TICKET_ID" \
-H "Authorization: Bearer $FINEPROXY_API_KEY"
To know when support has answered, poll this endpoint at a calm interval (minutes, not seconds) and look at status and the newest message.
Reference: Get ticket. MCP: get_ticket.
Download an attachment
curl -o attachment.bin \
"https://fineproxy.org/account_new/api/v1/customer/tickets/$TICKET_ID/attachments/$ATTACHMENT_ID/download" \
-H "Authorization: Bearer $FINEPROXY_API_KEY"
Take both IDs from GET .../tickets/{ticket_id}. Only the ticket owner can download. Over MCP, get_ticket_attachment returns the content as base64; files larger than 5 MB are not inlined there — download them with this REST endpoint and the same API key.
Reference: Download ticket attachment.
Reply to a ticket
POST /api/v1/customer/tickets/{ticket_id}/reply with a message and optional attachments (up to 5, same format as above). The response is the updated ticket.
curl -X POST "https://fineproxy.org/account_new/api/v1/customer/tickets/$TICKET_ID/reply" \
-H "Authorization: Bearer $FINEPROXY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"message": "Still happening on 203.0.113.11 as well."}'
Closed tickets cannot receive replies. Reopen the ticket first (see below) or open a new one.
Reference: Reply ticket. MCP: reply_ticket.
Close or reopen a ticket
PATCH /api/v1/customer/tickets/{ticket_id}/status with {"status": "closed"} closes a ticket; {"status": "open"} reopens a closed one.
curl -X PATCH "https://fineproxy.org/account_new/api/v1/customer/tickets/$TICKET_ID/status" \
-H "Authorization: Bearer $FINEPROXY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"status": "closed"}'
The response is the ticket with status: "closed". Close tickets once your issue is solved so support knows no more work is needed.
Reference: Update ticket status. MCP: close_ticket — closing an already closed ticket is a no-op.
When an AI agent opens tickets
The MCP tools let an agent open tickets on your behalf. Keep a human in the loop: ask the agent to show you the subject and message before it calls create_ticket, and give exploratory agents a key without tickets:write. Some situations require support by design — for example, a cancellation inside the 3-day cooldown — and those are good reasons for a ticket.
Common pitfalls
- Opening tickets from automated tests or monitors. Each ticket reaches a person. Alert yourself instead and open a ticket once you have confirmed the problem.
- Replying to a closed ticket. It is rejected; reopen it with the status endpoint.
- Sending secrets. Never paste API keys or proxy passwords into tickets; support does not need them.