---
title: "Retrieve the results of a queued Detoxify classification"
method: GET
path: "/detoxify/text/{job_id}"
tags: ["Detoxify"]
---

# Retrieve the results of a queued Detoxify classification

`GET /detoxify/text/{job_id}`

This endpoint returns the results of a previously queued classify job

## Path parameters

- `job_id` string, uuid4, required

## Response `200`

Successful Response

- union
  - AsyncResponseDetoxifyResponse
    - `status` 'done' | 'failed' | 'queued', required
    - `results` DetoxifyResponse
      - `toxicity` number, required
      - `severe_toxicity` number, required
      - `obscene` number, required
      - `threat` number, required
      - `insult` number, required
      - `identity_attack` number, required
      - `sexual_explicit` number, required
    - `msg` string, nullable
  - AsyncResponseErrorResponse
    - `status` 'done' | 'failed' | 'queued', required
    - `results` ErrorResponse
      - `is_error` boolean, required
      - `error_message` string, required
      - `job_id` string, nullable
      - `moderation_job_id` string, nullable
    - `msg` string, nullable

## Other responses

- `404` — Not found
- `422` — Validation Error

## Changes

- **2026-09-01** `e649db8f5cc8` — 2 breaking, 6 warning, 2 info
  - the `anyOf[subschema #1: AsyncResponse[DetoxifyResponse]]/status` response's property type changed from no type to `string` for status `200`
  - the `anyOf[subschema #2: AsyncResponse[ErrorResponse]]/status` response's property type changed from no type to `string` for status `200`
  - added the new `done` enum value to the `anyOf[subschema #1: AsyncResponse[DetoxifyResponse]]/status` response property for the response status `200`
  - added the new `done` enum value to the `anyOf[subschema #2: AsyncResponse[ErrorResponse]]/status` response property for the response status `200`
  - …6 more

[Change history](https://skmtc.dev/unitary/apis/unitary-content-classification-api/changes/detoxify/text/:job_id/get.md)

---

[API](https://skmtc.dev/unitary/apis/unitary-content-classification-api.md) · [All operations](https://skmtc.dev/unitary/apis/unitary-content-classification-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/unitary/unitary-content-classification-api/revisions/e649db8f5cc8/schema)
