### PDF Content-Disposition header example Source: https://www.quetext.com/api-docs/quetext-plagiarism-api-v2.yaml Example of the Content-Disposition header returned when downloading an AI-detection report as a PDF. ```http 'attachment; filename="account-report-ai-2026-05-29.pdf"' ``` -------------------------------- ### Create Plagiarism Report Request Example Source: https://www.quetext.com/api-docs/quetext-plagiarism-api-v2.yaml Example JSON payload for submitting text to the plagiarism analysis endpoint. ```json { "text": "The quick brown fox jumps over the lazy dog. This sentence is a classic example used for typing practice because it contains every letter of the English alphabet. Plagiarism detection systems analyze text against billions of web pages to find matching or paraphrased content." } ``` -------------------------------- ### GET /v2/plan Source: https://www.quetext.com/api-docs Retrieves account plan and API balance information. ```APIDOC ## GET /v2/plan ### Description Returns the current account plan details and remaining API word balance. ### Method GET ### Endpoint /v2/plan ``` -------------------------------- ### GET /v2/reports Source: https://www.quetext.com/api-docs Lists all reports associated with the account. ```APIDOC ## GET /v2/reports ### Description Retrieves a list of all reports created by the account. ### Method GET ### Endpoint /v2/reports ``` -------------------------------- ### Create AI-detection report request sample Source: https://www.quetext.com/api-docs/quetext-plagiarism-api-v2.yaml Example JSON payload for initiating an AI-detection report. ```json { "text": "The quick brown fox jumps over the lazy dog. This sentence is a classic example used for typing practice because it contains every letter of the English alphabet. AI content detectors analyze writing patterns to estimate the probability that text was machine-generated." } ``` -------------------------------- ### GET /v2/ai-detect-report/{id}/pdf Source: https://www.quetext.com/api-docs Downloads an AI-detection report as a PDF file. ```APIDOC ## GET /v2/ai-detect-report/{id}/pdf ### Description Downloads the specified AI-detection report in PDF format. ### Method GET ### Endpoint /v2/ai-detect-report/{id}/pdf ### Parameters #### Path Parameters - **id** (string) - Required - The unique identifier of the report. ``` -------------------------------- ### GET /v2/plan Source: https://www.quetext.com/api-docs/quetext-plagiarism-api-v2.yaml Returns the calling account's plan tier and any per-plan quota fields. ```APIDOC ## GET /v2/plan ### Description Returns the calling account's plan tier and any per-plan quota fields. Use this to sanity-check your API key is wired to the right account. ### Method GET ### Endpoint /v2/plan ``` -------------------------------- ### GET /v2/report/{id}/pdf Source: https://www.quetext.com/api-docs/quetext-plagiarism-api-v2.yaml Download the report as a PDF. Re-downloads are free. ```APIDOC ## GET /v2/report/{id}/pdf ### Description Download the report as a PDF. Re-downloads are free (no wallet deduction — the credits were charged when the report was created). ### Method GET ### Endpoint /v2/report/{id}/pdf ### Parameters #### Path Parameters - **id** (string) - Required - The numeric ID of the report. ``` -------------------------------- ### GET /v2/ai-detect-report/{id} Source: https://www.quetext.com/api-docs Retrieves an AI-detection report by its unique identifier. ```APIDOC ## GET /v2/ai-detect-report/{id} ### Description Fetches the details of a specific AI-detection report. ### Method GET ### Endpoint /v2/ai-detect-report/{id} ### Parameters #### Path Parameters - **id** (string) - Required - The unique identifier of the report. ``` -------------------------------- ### GET /v2/report-progress/{id} Source: https://www.quetext.com/api-docs Checks the processing progress of a report. ```APIDOC ## GET /v2/report-progress/{id} ### Description Checks the current status and progress of a report generation. ### Method GET ### Endpoint /v2/report-progress/{id} ### Parameters #### Path Parameters - **id** (string) - Required - The unique identifier of the report. ``` -------------------------------- ### GET /v2/report/{id}/pdf Source: https://www.quetext.com/api-docs Downloads a plagiarism report as a PDF file. ```APIDOC ## GET /v2/report/{id}/pdf ### Description Downloads the specified plagiarism report in PDF format. ### Method GET ### Endpoint /v2/report/{id}/pdf ### Parameters #### Path Parameters - **id** (string) - Required - The unique identifier of the report. ``` -------------------------------- ### GET /v2/report-progress/{id} Source: https://www.quetext.com/api-docs/quetext-plagiarism-api-v2.yaml Poll this endpoint to know when analysis is finished. ```APIDOC ## GET /v2/report-progress/{id} ### Description Poll this endpoint after Create plagiarism report to know when analysis is finished. Returns the report's processing state. ### Method GET ### Endpoint /v2/report-progress/{id} ### Parameters #### Path Parameters - **id** (string) - Required - The numeric ID of the report. ``` -------------------------------- ### GET /v2/report/{id} Source: https://www.quetext.com/api-docs Retrieves a plagiarism report by its unique identifier. ```APIDOC ## GET /v2/report/{id} ### Description Fetches the details of a specific plagiarism report. ### Method GET ### Endpoint /v2/report/{id} ### Parameters #### Path Parameters - **id** (string) - Required - The unique identifier of the report. ``` -------------------------------- ### GET /v2/reports Source: https://www.quetext.com/api-docs/quetext-plagiarism-api-v2.yaml Lists plagiarism reports owned by the account associated with the API key. ```APIDOC ## GET /v2/reports ### Description List plagiarism reports owned by this API key's account, most recent first. ### Method GET ### Endpoint /v2/reports ``` -------------------------------- ### GET /v2/report/{id} Source: https://www.quetext.com/api-docs/quetext-plagiarism-api-v2.yaml Fetch a single report (matches, sources, score) by its numeric id. ```APIDOC ## GET /v2/report/{id} ### Description Fetch a single report (matches, sources, score) by its numeric id. ### Method GET ### Endpoint /v2/report/{id} ### Parameters #### Path Parameters - **id** (string) - Required - The numeric ID of the report. ``` -------------------------------- ### POST /v2/ai-detect-report-file Source: https://www.quetext.com/api-docs Creates an AI-detection report from an uploaded file. ```APIDOC ## POST /v2/ai-detect-report-file ### Description Creates an AI-detection report by uploading a file. ### Method POST ### Endpoint /v2/ai-detect-report-file ``` -------------------------------- ### POST /v2/ai-detect-report Source: https://www.quetext.com/api-docs Creates an AI-detection report for the provided text. ```APIDOC ## POST /v2/ai-detect-report ### Description Creates an AI-detection report for the provided text content. ### Method POST ### Endpoint /v2/ai-detect-report ``` -------------------------------- ### API Specification Format Source: https://www.quetext.com/api-docs The specification format used for the API documentation. ```text OAS 3.0 ``` -------------------------------- ### POST /v2/report Source: https://www.quetext.com/api-docs/quetext-plagiarism-api-v2.yaml Submit raw text for plagiarism analysis. Words are counted via the same tokenizer used by the dashboard, and charges are deducted from your API credits wallet upon a successful response. ```APIDOC ## POST /v2/report ### Description Submit text for plagiarism analysis. Words are counted via the same tokenizer used by the dashboard. ### Method POST ### Endpoint /v2/report ### Request Body - **text** (string) - Required - The text content to be analyzed for plagiarism. ### Request Example { "text": "The quick brown fox jumps over the lazy dog. This sentence is a classic example used for typing practice because it contains every letter of the English alphabet. Plagiarism detection systems analyze text against billions of web pages to find matching or paraphrased content." } ### Response #### Success Response (200) - **status** (boolean) - Indicates if the report was successfully queued. - **data** (object) - Contains the report details. ``` -------------------------------- ### POST /v2/report-file Source: https://www.quetext.com/api-docs Creates a new plagiarism report from an uploaded file. ```APIDOC ## POST /v2/report-file ### Description Creates a new plagiarism report by uploading a file. ### Method POST ### Endpoint /v2/report-file ``` -------------------------------- ### API Version Source: https://www.quetext.com/api-docs The current version of the Quetext Plagiarism API. ```text 2.0.0 ``` -------------------------------- ### POST /v2/report Source: https://www.quetext.com/api-docs Creates a new plagiarism report. ```APIDOC ## POST /v2/report ### Description Creates a new plagiarism report for the provided text content. ### Method POST ### Endpoint /v2/report ``` -------------------------------- ### Quetext API OpenAPI Specification Source: https://www.quetext.com/api-docs/quetext-plagiarism-api-v2.yaml The full OpenAPI 3.0.3 specification defining the Quetext Plagiarism API v2 structure, security, and endpoints. ```yaml openapi: 3.0.3 info: title: Quetext Plagiarism API (v2) version: "2.0.0" description: | Public-facing Quetext Plagiarism API. Authenticated with an `x-api-key` header. ## Authentication Set your API key in the `x-api-key` header. Create one at Account → API Keys → Create. ## Pricing **$0.10 per 1,000 words.** Each report-creating call (`/v2/report` for plagiarism, `/v2/ai-detect-report` for AI detection) deducts from your API credits wallet on success. If your balance is too low, the response is HTTP 402 and **nothing is charged**. ## Responses - **200** — Success. Body: `{ status: true, data: ... }` - **401** — Invalid/missing `x-api-key` header. - **402** — Insufficient wallet credits. Body includes `{ code:402, data: { balance_words, needed_words } }`. - **403** — Endpoint not enabled on your account. - **500** — Upstream error (response still returns HTTP 200 but body has `code:500`). contact: name: Quetext Support url: https://www.quetext.com/contact servers: - url: https://www.quetext.com/api description: Production - url: https://localhost:8800/api description: Local development security: - ApiKeyAuth: [] tags: - name: Reports description: Create, list, fetch, download, and delete plagiarism reports. - name: Account description: Plan and wallet balance. - name: Negative tests description: Example failure cases for integration tests. paths: /v2/report: post: tags: [Reports] summary: Create plagiarism report description: | Submit text for plagiarism analysis. Words are counted via the same tokenizer used by the dashboard. **Charges**: Deducted from your API credits wallet on a `status:true` response. If your balance is below the word count, the response is HTTP 402 and nothing is deducted. operationId: createReportV2 requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateReportRequest' examples: sample: summary: Sample text value: text: "The quick brown fox jumps over the lazy dog. This sentence is a classic example used for typing practice because it contains every letter of the English alphabet. Plagiarism detection systems analyze text against billions of web pages to find matching or paraphrased content." responses: '200': description: Report queued. content: application/json: schema: $ref: '#/components/schemas/CreateReportSuccess' '401': $ref: '#/components/responses/Unauthorized' '402': $ref: '#/components/responses/InsufficientBalance' '403': $ref: '#/components/responses/Forbidden' '500': $ref: '#/components/responses/ServerError' /v2/report-file: post: tags: [Reports] summary: Create plagiarism report from an uploaded file description: | Same as **Create plagiarism report**, but the input is an uploaded file instead of raw text. The file is converted to text server-side and then analysed. To check a file for AI-generated content instead, use **Create AI-detection report from an uploaded file** (`POST /v2/ai-detect-report-file`). **Upload format**: `multipart/form-data` with the file in the `file` field. Supported file types: plain-text (`.txt`), PDF (`.pdf`), and Microsoft Word (`.doc`, `.docx`). Maximum file size: **10 MB**. This endpoint always creates a plagiarism report. It does not accept AI-detection or combined plagiarism-and-AI options; use `POST /v2/ai-detect-report-file` for AI-generated-content checks. Optional form field `title` sets the report title. ``` -------------------------------- ### DELETE /v2/report/{id} Source: https://www.quetext.com/api-docs/quetext-plagiarism-api-v2.yaml Soft-delete a report by id. The report no longer appears in List reports afterwards. ```APIDOC ## DELETE /v2/report/{id} ### Description Soft-delete a report by id. The report no longer appears in List reports afterwards. ### Method DELETE ### Endpoint /v2/report/{id} ### Parameters #### Path Parameters - **id** (string) - Required - The numeric ID of the report. ``` -------------------------------- ### DELETE /v2/report/{id} Source: https://www.quetext.com/api-docs Deletes a specific plagiarism report. ```APIDOC ## DELETE /v2/report/{id} ### Description Deletes the report associated with the provided ID. ### Method DELETE ### Endpoint /v2/report/{id} ### Parameters #### Path Parameters - **id** (string) - Required - The unique identifier of the report. ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.