POST
/
v1
/
processors
/
automations
/
logs
/
{log_id}
/
rerun
from uiform import UiForm
from uiform.types.mime import MIMEData

client = UiForm()

client.processors.automations.logs.rerun(
    id="log_auto_xxxxxxxxxxxxxxxxxx"
)
{
    "webhook_url": "https://api.uiform.com/v1/integrations/google_sheets/webhook?spreadsheet_id=1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&worksheet_id=0&color_by_likelihood=false",
    "request_body": {
        "completion": {
            "id": "chatcmpl-XXXXXXXXXXXXXXXXXXXX",
            "choices": [
                {
                    "finish_reason": "stop",
                    "index": 0,
                    "logprobs": null,
                    "message": {
                        "content": "{\"first_name\": \"John\", \"last_name\": \"Doe\", \"linkedin\": \"https://www.linkedin.com/in/johndoe/\", \"email\": \"john.doe@example.com\", \"company\": \"Example Corp\"}",
                        "refusal": null,
                        "role": "assistant",
                        "annotations": null,
                        "audio": null,
                        "function_call": null,
                        "tool_calls": null,
                        "parsed": {
                            "first_name": "John",
                            "last_name": "Doe",
                            "linkedin": "https://www.linkedin.com/in/johndoe/",
                            "email": "john.doe@example.com",
                            "company": "Example Corp"
                        }
                    },
                    "field_locations": null,
                    "key_mapping": null
                }
            ],
            "created": 1700000000,
            "model": "gpt-4.1-mini-2025-04-14",
            "object": "chat.completion",
            "service_tier": null,
            "system_fingerprint": null,
            "usage": {
                "completion_tokens": 61,
                "prompt_tokens": 2946,
                "total_tokens": 3007,
                "completion_tokens_details": {
                    "accepted_prediction_tokens": 0,
                    "audio_tokens": 0,
                    "reasoning_tokens": 0,
                    "rejected_prediction_tokens": 0
                },
                "prompt_tokens_details": {
                    "audio_tokens": 0,
                    "cached_tokens": 2688
                }
            },
            "extraction_id": "extr_XXXXXXXXXXXXXXXXXXXX",
            "likelihoods": {},
            "schema_validation_error": null,
            "likelihoods_source": null,
            "request_at": "2025-01-01T12:00:00.000000Z",
            "first_token_at": "2025-01-01T12:00:03.000000Z",
            "last_token_at": "2025-01-01T12:00:04.000000Z"
        },
        "user": "user@example.com",
        "file_payload": {
            "filename": "Screenshot.png",
            "url": "data:image/png;base64,XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
            "metadata": {
                "ocr": null
            }
        },
        "sheets_update": {
            "spreadsheetId": "1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
            "updates": {
                "spreadsheetId": "1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                "updatedRange": "Sheet1!A1:E1",
                "updatedRows": 1,
                "updatedColumns": 5,
                "updatedCells": 5
            }
        },
        "color_by_likelihood": false
    },
    "response_headers": {
        "date": "Thu, 01 Jan 2025 12:00:00 GMT",
        "content-type": "application/json",
        "transfer-encoding": "chunked",
        "connection": "keep-alive",
        "x-cloud-trace-context": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX;o=1",
        "server": "cloudflare",
        "via": "1.1 google",
        "alt-svc": "h3=\":443\"; ma=86400",
        "cf-cache-status": "DYNAMIC",
        "nel": "{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}",
        "report-to": "{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://example.com/report/v4?s=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\"}]}",
        "content-encoding": "gzip",
        "cf-ray": "XXXXXXXXXXXXXXX-XXX"
    },
    "response_at": "2025-01-01T12:00:05.000000Z",
    "status_code": 200,
    "error": null,
    "duration_ms": 3000.000
}
from uiform import UiForm
from uiform.types.mime import MIMEData

client = UiForm()

client.processors.automations.logs.rerun(
    id="log_auto_xxxxxxxxxxxxxxxxxx"
)
{
    "webhook_url": "https://api.uiform.com/v1/integrations/google_sheets/webhook?spreadsheet_id=1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&worksheet_id=0&color_by_likelihood=false",
    "request_body": {
        "completion": {
            "id": "chatcmpl-XXXXXXXXXXXXXXXXXXXX",
            "choices": [
                {
                    "finish_reason": "stop",
                    "index": 0,
                    "logprobs": null,
                    "message": {
                        "content": "{\"first_name\": \"John\", \"last_name\": \"Doe\", \"linkedin\": \"https://www.linkedin.com/in/johndoe/\", \"email\": \"john.doe@example.com\", \"company\": \"Example Corp\"}",
                        "refusal": null,
                        "role": "assistant",
                        "annotations": null,
                        "audio": null,
                        "function_call": null,
                        "tool_calls": null,
                        "parsed": {
                            "first_name": "John",
                            "last_name": "Doe",
                            "linkedin": "https://www.linkedin.com/in/johndoe/",
                            "email": "john.doe@example.com",
                            "company": "Example Corp"
                        }
                    },
                    "field_locations": null,
                    "key_mapping": null
                }
            ],
            "created": 1700000000,
            "model": "gpt-4.1-mini-2025-04-14",
            "object": "chat.completion",
            "service_tier": null,
            "system_fingerprint": null,
            "usage": {
                "completion_tokens": 61,
                "prompt_tokens": 2946,
                "total_tokens": 3007,
                "completion_tokens_details": {
                    "accepted_prediction_tokens": 0,
                    "audio_tokens": 0,
                    "reasoning_tokens": 0,
                    "rejected_prediction_tokens": 0
                },
                "prompt_tokens_details": {
                    "audio_tokens": 0,
                    "cached_tokens": 2688
                }
            },
            "extraction_id": "extr_XXXXXXXXXXXXXXXXXXXX",
            "likelihoods": {},
            "schema_validation_error": null,
            "likelihoods_source": null,
            "request_at": "2025-01-01T12:00:00.000000Z",
            "first_token_at": "2025-01-01T12:00:03.000000Z",
            "last_token_at": "2025-01-01T12:00:04.000000Z"
        },
        "user": "user@example.com",
        "file_payload": {
            "filename": "Screenshot.png",
            "url": "data:image/png;base64,XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
            "metadata": {
                "ocr": null
            }
        },
        "sheets_update": {
            "spreadsheetId": "1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
            "updates": {
                "spreadsheetId": "1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                "updatedRange": "Sheet1!A1:E1",
                "updatedRows": 1,
                "updatedColumns": 5,
                "updatedCells": 5
            }
        },
        "color_by_likelihood": false
    },
    "response_headers": {
        "date": "Thu, 01 Jan 2025 12:00:00 GMT",
        "content-type": "application/json",
        "transfer-encoding": "chunked",
        "connection": "keep-alive",
        "x-cloud-trace-context": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX;o=1",
        "server": "cloudflare",
        "via": "1.1 google",
        "alt-svc": "h3=\":443\"; ma=86400",
        "cf-cache-status": "DYNAMIC",
        "nel": "{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}",
        "report-to": "{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://example.com/report/v4?s=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\"}]}",
        "content-encoding": "gzip",
        "cf-ray": "XXXXXXXXXXXXXXX-XXX"
    },
    "response_at": "2025-01-01T12:00:05.000000Z",
    "status_code": 200,
    "error": null,
    "duration_ms": 3000.000
}

Authorizations

Api-Key
string
header
required

Path Parameters

log_id
string
required

Response

200
application/json

Successful Response

The response is of type object.