Get a restoration
pinin_get_restorationRetrieve a photo restoration by ID to check status, credits charged, failure details, file expiry, and completed image URLs or share link. Wait the returned retry_after before checking.
Instructions
Read one restoration by id: status (pending, processing, completed, failed), mode, credits charged, the failure detail when it failed, when the files expire, and signed image URLs plus a share link once it completes. Call it after pinin_restore_photo, waiting at least the retry_after seconds the response carries; to follow several jobs, sweep pinin_list_restorations with updated_since instead of polling each id. Read-only and free. An unchanged pending job may answer from its weak ETag without a body.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>"
},
"name": "pinin_get_restoration"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Restoration id returned by pinin_restore_photo — the `id` field of the restoration document. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Restoration id. | |
| mode | No | Restoration mode the job was queued with. | |
| seed | No | Deterministic seed in force, or null. | |
| error | No | `{ code, message }` when the job failed, otherwise null. | |
| images | No | `{ original: { url, expires_in }, restored: { url, expires_in } }` once complete; null before that. | |
| object | No | Always `restoration`. | |
| status | No | `pending`, `processing`, `completed` or `failed`. | |
| credits | No | Credits charged by this job. | |
| metadata | No | Metadata supplied at creation. | |
| share_url | No | Public share link for the restored photo, or null. | |
| created_at | No | ISO 8601 creation instant. | |
| expires_at | No | ISO 8601 instant when files are deleted — download before this. | |
| updated_at | No | ISO 8601 instant of the last state change. | |
| completed_at | No | ISO 8601 completion instant, or null while running. | |
| order_number | No | Human-readable order reference. |