Account jobs
POST /api/v1/me/jobs queues a panel, SSL, backup, restore, or export job for the signed-in customer. Send a human reason (min 3 characters). Optional Idempotency-Key.
Allowed action values: database.create, database.drop, ftp.create, ftp.revoke, ssl.request, backup.run, restore.start, export.request, site.publish.
Create
Returns { jobId, duplicate, statusUrl, status: "queued" }. Customers cannot list the staff jobs index (system.list).
Markdown source
---
title: Account jobs
nav: Account jobs
group: Core resources
order: 50
---
# Account jobs
`POST /api/v1/me/jobs` queues a panel, SSL, backup, restore, or export job for the signed-in customer. Send a human reason (min 3 characters). Optional `Idempotency-Key`.
Allowed `action` values: `database.create`, `database.drop`, `ftp.create`, `ftp.revoke`, `ssl.request`, `backup.run`, `restore.start`, `export.request`, `site.publish`.
## Create
Returns `{ jobId, duplicate, statusUrl, status: "queued" }`. Customers cannot list the staff jobs index (`system.list`).
```curl
curl -X POST {{API}}/api/v1/me/jobs \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-b cookies.txt \
-d '{"action":"backup.run","reason":"Manual backup from docs sample","resourceCode":"example.com"}'
```
```node
await fetch(`${api}/api/v1/me/jobs`, {
method: "POST",
credentials: "include",
headers: {
"content-type": "application/json",
"idempotency-key": crypto.randomUUID(),
},
body: JSON.stringify({ action: "backup.run", reason: "Manual backup" }),
});
```
```python
# POST JSON { "action", "reason", "resourceCode"? } with session cookie
```