---
title: "Confirm a job"
method: POST
path: "/jobs/{job_id}/confirm"
tags: ["Jobs"]
---

# Confirm a job

`POST /jobs/{job_id}/confirm`

## Request

- Base URL: `https://api.togai.com`
- URL: `https://api.togai.com/jobs/{job_id}/confirm`
- Auth: HTTP bearer

Confirm a job

## Path parameters

- `job_id` string, required

## Response `200`

Response for get job status request

- GetJobResponse
  - `id` string, required
  - `type` 'PRICE_PLAN' | 'EVENT_CORRECTIONS' | 'BILL_RUN', required
  - `settledAt` string, date-time
  - `updatedAt` string, date-time, required
  - `status` 'SCHEDULED' | 'PENDING' | 'INITIALIZED' | 'WAITING_FOR_CONFIRMATION' | 'IN_PROGRESS' | 'COMPLETED' | 'FAILED' | 'CANCELLED', required
  - `totalJobEntries` integer, required
  - `pendingJobEntries` integer, required
  - `failedJobEntries` integer, required
  - `completedJobEntries` integer, required
  - `metadata` object

## Other responses

- `400`: Error response
- `401`: Error response
- `403`: Error response
- `404`: Error response
- `429`: Error response
- `default`: Error response

## Changes

- **2024-03-18** `3135bb8c67b3`: 12 warning, 1 info
  - removed the optional property `confirmedAt` from the response with the `200` status
  - added the new `BILL_RUN` enum value to the `type` response property for the response status `200`
  - added the new `CANCELLED` enum value to the `status` response property for the response status `200`
  - added the new `COMPLETED` enum value to the `status` response property for the response status `200`
  - …9 more
- **2024-03-11** `cc0b10fb537e`: 1 info
  - endpoint added
- **2023-09-02** `6b13f6f47735`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/togaihq/apis/togai-apis/changes/jobs/:job_id/confirm/post.md)

---

[API](https://skmtc.dev/togaihq/apis/togai-apis.md) - [All operations](https://skmtc.dev/togaihq/apis/togai-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/togaihq/apis/togai-apis/revisions/442f5d8f4aa0?raw)
