### Example API Response Structure (JavaScript) Source: https://help.undetectable.ai/en/article/humanization-api-v2-p28b2n This snippet demonstrates the typical JSON structure returned by the API for document analysis. It includes pagination status and a list of documents, each with details like ID, input text, AI-generated output, readability level, creation date, and purpose. This structure is useful for integrating the API into applications that process or display AI detection results. ```javascript { "pagination": false, "documents": [ { "id": "22e6ac97-c79d-4a09-989d-ea091ab6ecf2", "output": "One of the takeaways from the Scientific Method Tutorial is the importance placed on crafting a precise and testable hypothesis and grasping the difference between independent and dependent variables thoroughly. When setting up experiments accurately to explore relationships this clarity proves invaluable. On the side a significant hurdle in applying the scientific method lies in guarantee that all potential confounding variables are managed effectively. Even slight deviations, in conditions can influence outcomes significantly highlighting the need to carefully structure experiments to address these variables meticulously. Conducting research studies to verify dependability may require a significant investment of resources. ", "input": "Most Useful Part: The most useful part of the Scientific Method Tutorial is the emphasis on forming a clear and testable hypothesis and understanding the distinction between independent and dependent variables. This clarity helps in structuring experiments effectively to focus on specific relationships. Most Challenging Aspect: One of the more challenging aspects of the scientific method is ensuring that all potential confounding variables are controlled. Even minor variations in external factors can impact results, making it critical to design experiments that meticulously account for these variables. Additionally, replicating studies to ensure reliability can be resource-intensive.", "readability": "University", "createdDate": "2024-08-17T07:44:15.688000", "purpose": "General Writing" }, { "id": "aaada2c6-6c3c-40ec-930b-8dd97a2dfa93", "output": "Ranked as the AI detector according to Forbes magazine! Utilize our AI detector to inspect whether your text will be identified as AI generated material by algorithms.. Afterwards select 'humanize' to erase any traces of AI detection and guarantee that your text sails through all AI detectors, without a hitch.. Our AI text humanizer achieves this by refining your content to align with the standards of human created writing. ", "input": "Rated #1 Best AI Detector by Forbes! Use our AI detector to check if your text will be flagged as AI-written content. Then, click 'humanize' to remove AI detection and ensure your text will bypass all major AI detectors. Our AI text humanizer does this by enhancing your content to match the quality of human writing.", "readability": "High School", "createdDate": "2024-08-28T08:11:32.166000", "purpose": "Essay" }, { "id": "65b148fa-4396-49fe-9462-4f6a7ce520f8", "output": "Ranked as the number one AI detection tool according to Forbes! Utilize our AI detector to verify if your text is at risk of being identified as machine generated content by algorithms. Afterward simply select 'transform into human text' to eliminate any traces of AI detection and guarantee that your writing will go undetected, by all leading AI detectors. Our tool enhances your content to reflect the authenticity and quality of human authored writing. ", "input": "Rated #1 Best AI Detector by Forbes! Use our AI detector to check if your text will be flagged as AI-written content. Then, click 'humanize' to remove AI detection and ensure your text will bypass all major AI detectors. Our AI text humanizer does this by enhancing your content to match the quality of human writing.", "readability": "High School", "createdDate": "2024-08-28T08:11:29.928000", "purpose": "Essay" }, { "id": "5e1e4d7d-df9d-4756-81ad-63fc5e1e7a7d", "output": "Ranked as the AI detection tool according to Forbes magazine! Utilize our AI detector to assess whether your text might be identified as AI generated material by algorithms in use today. Tap on 'humanize’ to eliminate any AI flags and ensure that your content sails, through AI detectors seamlessly. Our AI text enhancer will refine your content to emulate the quality of human authored writing. ", "input": "Rated #1 Best AI Detector by Forbes! Use our AI detector to check if your text will be flagged as AI-written content. Then, click 'humanize' to remove AI detection and ensure your text will bypass all major AI detectors. Our AI text humanizer does this by enhancing your content to match the quality of human writing.", "readability": "High School", "createdDate": "2024-08-23T08:00:16.157000", "purpose": "Essay" } ] } ``` -------------------------------- ### GET /check-user-credits Source: https://help.undetectable.ai/en/article/humanization-api-v2-p28b2n Retrieves the current credit balance and details for the authenticated user. ```APIDOC ## GET /check-user-credits ### Description This endpoint accepts the user's API key via the header and returns credit details. ### Method GET ### Endpoint https://humanize.undetectable.ai/check-user-credits ### Response #### Success Response (200) - **baseCredits** (integer) - Total base credits. - **boostCredits** (integer) - Total boost credits. - **credits** (integer) - Total available credits. #### Response Example ```json { "baseCredits": 10000, "boostCredits": 1000, "credits": 11000 } ``` ``` -------------------------------- ### Example AI Detector Response (JavaScript) Source: https://help.undetectable.ai/en/article/humanization-api-v2-p28b2n This JavaScript object represents the response from the AI detector, showing the original input, the humanized output, readability score, creation date, and purpose. ```javascript { "id": "aaada2c6-6c3c-40ec-930b-8dd97a2dfa93", "output": "Ranked as the AI detector according to Forbes magazine! Utilize our AI detector to inspect whether your text will be identified as AI generated material by algorithms.. Afterwards select 'humanize' to erase any traces of AI detection and guarantee that your text sails through all AI detectors, without a hitch.. Our AI text humanizer achieves this by refining your content to align with the standards of human created writing. ", "input": "Rated #1 Best AI Detector by Forbes! Use our AI detector to check if your text will be flagged as AI-written content. Then, click 'humanize' to remove AI detection and ensure your text will bypass all major AI detectors. Our AI text humanizer does this by enhancing your content to match the quality of human writing.", "readability": "High School", "createdDate": "2024-08-28T08:11:32.166000", "purpose": "Essay" } ``` -------------------------------- ### Handle WebSocket Event Responses Source: https://help.undetectable.ai/en/article/humanization-api-v2-p28b2n Examples of JSON payloads received via WebSocket for document processing progress, completion, errors, and cancellation requests. These events allow clients to update UI states dynamically based on the server's processing status. ```json { "event_type": "document_chunk", "document_id": "9605dc9f-85e7-4a2a-9691-62a9ad264592", "model": "v11", "chunk": "The evolution of design education requires an interdisciplinary approach..." } ``` ```json { "event_type": "document_done", "document_id": "9605dc9f-85e7-4a2a-9691-62a9ad264592", "model": "v11", "chunk": "of tomorrow.\n" } ``` ```json { "event_type": "document_error", "document_id": "512da191-166926922-44cb-81c6-191ae3a807aa", "error_code": "REQUEST_TIMEOUT", "message": "Request timeout. Took 20 seconds." } ``` ```json { "event_type": "document_halt", "document_id": "512da191-166926922-44cb-81c6-191ae3a807aa" } ``` -------------------------------- ### POST /handover Source: https://help.undetectable.ai/en/article/humanization-api-v2-p28b2n Submits text for hand-over to the Undetectable UI for processing. ```APIDOC ## POST /handover ### Description This endpoint allows you to submit text for hand-over to the Undetectable UI. ### Method POST ### Endpoint https://humanize.undetectable.ai/handover ### Parameters #### Query Parameters - **content** (string) - Required - The text you want to humanize. Minimum 50 characters. ### Request Example ```json { "content": "YOUR TEXT GOES HERE. PLEASE MAKE SURE IT IS AT LEAST 50 CHARACTERS LONG." } ``` ### Response #### Success Response (200) - **content** (string) - The submitted text. - **id** (string) - The unique identifier for the handover document. #### Response Example ```json { "content": "YOUR TEXT GOES HERE. PLEASE MAKE SURE IT IS AT LEAST 50 CHARACTERS LONG.", "id": "68e4d7e3-5f04-416e-b0d1-9fcf059ea277" } ``` ``` -------------------------------- ### Writing Style Replication API Source: https://help.undetectable.ai/en/category/developer-api-uxho4l Replicates writing styles. Authentication is handled via API keys provided in the header. ```APIDOC ## Writing Style Replication API ### Description Replicate specific writing styles using this API. Authentication is performed using API keys sent in the request header. ### Method POST ### Endpoint /replicate/style ### Parameters #### Request Body - **text** (string) - Required - The text to analyze for style replication - **target_style_text** (string) - Required - The text representing the target writing style ### Headers - **x-api-key** (string) - Required - Your API key - **apikey** (string) - Required - Your API key (alternative) ### Request Example ```json { "text": "This is the original text.", "target_style_text": "This is an example of the target writing style." } ``` ### Response #### Success Response (200) - **replicated_text** (string) - The text with the replicated writing style #### Response Example ```json { "replicated_text": "This is the original text, written in the target style." } ``` ``` -------------------------------- ### Authenticate API Requests via HTTP Header Source: https://help.undetectable.ai/en/category/developer-api-uxho4l The Writing Style Replication API requires authentication via specific HTTP headers. Users must provide their API key using either the 'x-api-key' or 'apikey' header field. ```http POST /v1/replicate HTTP/1.1 Host: style.undetectable.ai x-api-key: YOUR_API_KEY_GOES_HERE Content-Type: application/json ``` -------------------------------- ### List Documents Request (cURL) Source: https://help.undetectable.ai/en/article/humanization-api-v2-p28b2n This cURL command shows how to make a POST request to the list endpoint to retrieve documents. It includes the API key and an optional offset parameter. ```curl curl --location 'https://humanize.undetectable.ai/list' \ --header 'apikey: YOUR API KEY GOES HERE' \ --header 'Content-Type: application/json' \ --data '{ \ // "offset": 20 <- optional }' ``` -------------------------------- ### WebSocket Streaming for Humanization Source: https://help.undetectable.ai/en/article/humanization-api-v2-p28b2n Demonstrates the lifecycle of a WebSocket connection for streaming humanization results, including connection, event listening, and document watching. ```javascript // Connect to WebSocket ws = new WebSocket("wss://humanize.undetectable.ai/ws/1722238709737x2194626580942121212"); // Listen for events ws.addEventListener("message", (event) => { console.log("Message from server ", event.data); }); // Send document_watch request ws.send(JSON.stringify({ "event_type": "document_watch", "api_key": "$API_KEY" })) ``` -------------------------------- ### Check User Credits Source: https://help.undetectable.ai/en/article/humanization-api-v2-p28b2n Retrieves the current credit balance for the authenticated user. Requires an API key provided in the request header. ```bash curl -X 'GET' \ 'https://humanize.undetectable.ai/check-user-credits' \ -H 'apikey: YOUR API KEY GOES HERE' \ -H 'accept: application/json' \ -H 'Content-Type: application/json' ``` -------------------------------- ### POST /token Source: https://help.undetectable.ai/en/article/humanization-api-v2-p28b2n Exchanges a long-lived API key for a short-lived token to be used in subsequent requests. ```APIDOC ## POST /token ### Description Exchanges your master API key for a short-lived token. This is recommended for client-side applications to avoid exposing your master key. ### Method POST ### Endpoint https://humanize.undetectable.ai/token ### Request Body - **apikey** (string) - Required - Your personal API key. ### Request Example { "apikey": "YOUR_API_KEY" } ### Response #### Success Response (200) - **token** (string) - The generated authentication token. - **token_type** (string) - The type of token. - **expires_at** (string) - ISO timestamp of expiration. - **status** (string) - Current status of the token. #### Response Example { "token": "e9f0b2a8f6c84a9c8c9f7a6b12345678", "token_type": "default", "expires_at": "2025-08-30T12:34:56.000000", "status": "Active" } ``` -------------------------------- ### POST /submit (Humanization) Source: https://help.undetectable.ai/en/article/humanization-api-v2-p28b2n Submits a document for the humanization process using a previously generated document ID. ```APIDOC ## POST /submit ### Description Submit a document for humanization using the ID generated from the WebSocket document_watch event. ### Method POST ### Endpoint https://humanize.undetectable.ai/submit ### Request Body - **content** (string) - Required - Text to humanize. - **readability** (string) - Optional - Target readability level. - **purpose** (string) - Optional - Context of the writing. - **strength** (string) - Optional - Humanization intensity. - **model** (string) - Optional - Model version. - **id** (string) - Required - The document ID from the WebSocket stream. ### Response #### Success Response (200) - **status** (string) - Confirmation message. - **id** (string) - The document ID. #### Response Example ```json { "status": "Document submitted successfully", "id": "68e4d7e3-5f04-416e-b0d1-9fcf059ea277" } ``` ``` -------------------------------- ### POST /submit Source: https://help.undetectable.ai/en/article/humanization-api-v2-p28b2n Submits a document for humanization processing. ```APIDOC ## POST /submit ### Description Submits text for humanization. Returns a document ID which should be polled to check for completion. ### Method POST ### Endpoint https://humanize.undetectable.ai/submit ### Request Body - **content** (string) - Required - Text to humanize (min 50 chars). - **readability** (string) - Required - One of: "High School", "University", "Doctorate", "Journalist", "Marketing". - **purpose** (string) - Required - One of: "General Writing", "Essay", "Article", etc. - **strength** (string) - Optional - "Quality", "Balanced", or "More Human". - **model** (string) - Optional - "v2", "v11", or "v11sr". ### Request Example { "content": "Your text here...", "readability": "High School", "purpose": "General Writing", "strength": "More Human", "model": "v11" } ### Response #### Success Response (200) - **status** (string) - Submission status. - **id** (string) - Unique document ID. #### Response Example { "status": "Document submitted successfully", "id": "68e4d7e3-5f04-416e-b0d1-9fcf059ea277" } ``` -------------------------------- ### Submit Document for Humanization via REST API Source: https://help.undetectable.ai/en/article/humanization-api-v2-p28b2n Submits text content to the Undetectable AI service for humanization. Requires an API key in the header and a minimum of 50 characters of text. ```bash curl --location 'https://humanize.undetectable.ai/submit' \ --header 'apikey: YOUR API KEY GOES HERE' \ --header 'Content-Type: application/json' \ --data '{ "content": "YOUR TEXT GOES HERE. PLEASE MAKE SURE IT IS AT LEAST 50 CHARACTERS LONG." }' ``` -------------------------------- ### List Documents API Source: https://help.undetectable.ai/en/article/humanization-api-v2-p28b2n This endpoint allows you to query all your documents. You can optionally specify an offset to retrieve older documents. ```APIDOC ## POST /list ### Description This endpoint allows you to query all your documents. ### Method POST ### Endpoint https://humanize.undetectable.ai/list ### Parameters #### Query Parameters - **offset** (integer) - Optional - By default the request returns 10 newest documents sorted by createdDate. ### Request Example ```curl curl --location 'https://humanize.undetectable.ai/list' \ --header 'apikey: YOUR API KEY GOES HERE' \ --header 'Content-Type: application/json' \ --data '{ // "offset": 20 <- optional }' ``` ### Response #### Success Response (200) - **id** (string) - The unique identifier of the document. - **output** (string) - The rehumanized content of the document. - **input** (string) - The original input content of the document. - **readability** (string) - The readability score of the document. - **createdDate** (string) - The date and time when the document was created. - **purpose** (string) - The intended purpose of the document. #### Response Example ```json { "id": "aaada2c6-6c3c-40ec-930b-8dd97a2dfa93", "output": "Ranked as the AI detector according to Forbes magazine! Utilize our AI detector to inspect whether your text will be identified as AI generated material by algorithms.. Afterwards select 'humanize' to erase any traces of AI detection and guarantee that your text sails through all AI detectors, without a hitch.. Our AI text humanizer achieves this by refining your content to align with the standards of human created writing. ", "input": "Rated #1 Best AI Detector by Forbes! Use our AI detector to check if your text will be flagged as AI-written content. Then, click 'humanize' to remove AI detection and ensure your text will bypass all major AI detectors. Our AI text humanizer does this by enhancing your content to match the quality of human writing.", "readability": "High School", "createdDate": "2024-08-28T08:11:32.166000", "purpose": "Essay" } ``` ``` -------------------------------- ### Humanization API v2 Source: https://help.undetectable.ai/en/category/developer-api-uxho4l Provides seamless API authentication for humanizing text effortlessly with guaranteed error-free integration. ```APIDOC ## Humanization API v2 ### Description Get seamless API authentication with Undetectable.AI. Humanize text effortlessly. Error-free integration guaranteed. Get your API key now! ### Method POST ### Endpoint /humanize ### Parameters #### Request Body - **key** (string) - Required - Your API key - **text** (string) - Required - The text to humanize ### Request Example ```json { "key": "YOUR API KEY GOES HERE", "text": "This is a sample text to be humanized." } ``` ### Response #### Success Response (200) - **humanized_text** (string) - The humanized version of the input text #### Response Example ```json { "humanized_text": "This is a sample text that has been humanized." } ``` ``` -------------------------------- ### Detector API Source: https://help.undetectable.ai/en/category/developer-api-uxho4l Allows users to detect AI-generated content. Provides a FastAPI link for browser-based testing and requires an API key for authentication. ```APIDOC ## Detector API ### Description Detect AI-generated content using the Detector API. You can test the API without code via the provided FastAPI link. Authentication is handled via API keys. ### Method POST ### Endpoint /detect ### Parameters #### Query Parameters - **key** (string) - Required - Your API key #### Request Body - **text** (string) - Required - The text to analyze for AI detection ### Request Example ```json { "key": "YOUR API KEY GOES HERE", "text": "This is a sample text to detect." } ``` ### Response #### Success Response (200) - **is_ai** (boolean) - Indicates if the text is detected as AI-generated - **confidence_score** (float) - The confidence score of the detection #### Response Example ```json { "is_ai": true, "confidence_score": 0.95 } ``` ``` -------------------------------- ### POST /document Source: https://help.undetectable.ai/en/article/humanization-api-v2-p28b2n Retrieves the status and content of a submitted document. ```APIDOC ## POST /document ### Description Retrieves the document object using the ID provided during submission. Poll this endpoint every 5-10 seconds to check if processing is complete. ### Method POST ### Endpoint https://humanize.undetectable.ai/document ### Request Body - **id** (string) - Required - The ID of the document. ### Request Example { "id": "68e4d7e3-5f04-416e-b0d1-9fcf059ea277" } ### Response #### Success Response (200) - **id** (string) - Document ID. - **status** (string) - Current processing status. ``` -------------------------------- ### Exchange API Key for Temporary Token Source: https://help.undetectable.ai/en/article/humanization-api-v2-p28b2n Exchanges a long-lived API key for a short-lived token to improve security in client-side applications. The returned token should be used in the 'apikey' header for subsequent requests. ```bash curl --location 'https://humanize.undetectable.ai/token' \ --header 'Content-Type: application/json' \ --data '{ "apikey": "YOUR API KEY GOES HERE" }' ``` -------------------------------- ### Submit Document for Humanization Source: https://help.undetectable.ai/en/article/humanization-api-v2-p28b2n Submits a text document for processing. Requires content (min 50 chars), readability level, and purpose. Returns a document ID used for tracking status. ```bash curl --location 'https://humanize.undetectable.ai/submit' \ --header 'apikey: YOUR API KEY GOES HERE' \ --header 'Content-Type: application/json' \ --data '{ "content": "YOUR TEXT GOES HERE. PLEASE MAKE SURE IT IS AT LEAST 50 CHARACTERS LONG.", "readability": "High School", "purpose": "General Writing", "strength": "More Human", "model": "v11" }' ``` -------------------------------- ### Rehumanize Document Request (cURL) Source: https://help.undetectable.ai/en/article/humanization-api-v2-p28b2n This cURL command demonstrates how to send a POST request to the rehumanize endpoint. It includes the API key and the document ID in the request body. ```curl curl --location 'https://humanize.undetectable.ai/rehumanize' \ --header 'apikey: YOUR API KEY GOES HERE' \ --header 'Content-Type: application/json' \ --data '{ \ "id": "DOCUMENT ID GOES HERE" }' ``` -------------------------------- ### Humanizer Proxy API Source: https://help.undetectable.ai/en/category/developer-api-uxho4l Enables testing of different Humanizers without changing endpoints. Accepts a JSON payload and processes text using the specified Humanizer. ```APIDOC ## Humanizer Proxy API ### Description The Humanizer Proxy allows users to test different Humanizers without needing to change endpoints. The API accepts a JSON payload and processes the text using the specified Humanizer. ### Method POST ### Endpoint /humanize ### Parameters #### Request Body - **key** (string) - Required - Your API key - **text** (string) - Required - The text to humanize - **humanizer_model** (string) - Optional - The specific humanizer model to use (e.g., 'model_a', 'model_b') ### Request Example ```json { "key": "YOUR API KEY GOES HERE", "text": "This is a sample text to humanize.", "humanizer_model": "model_a" } ``` ### Response #### Success Response (200) - **humanized_text** (string) - The humanized version of the input text #### Response Example ```json { "humanized_text": "This is a sample text that has been humanized using model_a." } ``` ``` -------------------------------- ### Image Detector API Source: https://help.undetectable.ai/en/category/developer-api-uxho4l Detects AI-generated images. Provides a FastAPI link for browser-based testing and requires an API key for authentication. ```APIDOC ## Image Detector API ### Description Detect AI-generated images using the Image Detector API. You can test the API without code via the provided FastAPI link. Authentication is handled via API keys. ### Method POST ### Endpoint /detect/image ### Parameters #### Query Parameters - **key** (string) - Required - Your API key #### Request Body - **image** (file) - Required - The image file to analyze ### Request Example ``` POST /detect/image?key=YOUR_API_KEY_GOES_HERE HTTP/1.1 Host: ai-image-detect.undetectable.ai Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW ------WebKitFormBoundary7MA4YWxkTrZu0gW Content-Disposition: form-data; name="image"; filename="image.jpg" Content-Type: image/jpeg [binary data of the image] ------WebKitFormBoundary7MA4YWxkTrZu0gW-- ``` ### Response #### Success Response (200) - **is_ai** (boolean) - Indicates if the image is detected as AI-generated - **confidence_score** (float) - The confidence score of the detection #### Response Example ```json { "is_ai": true, "confidence_score": 0.92 } ``` ``` -------------------------------- ### AI Audio Detector API Source: https://help.undetectable.ai/en/category/developer-api-uxho4l Detects AI-generated audio. Authentication is handled via API keys provided in the request body. ```APIDOC ## AI Audio Detector API ### Description Detect AI-generated audio content using the AI Audio Detector API. Authentication is handled via API keys included in the request body. ### Method POST ### Endpoint /detect/audio ### Parameters #### Request Body - **key** (string) - Required - Your API key - **audio** (file) - Required - The audio file to analyze ### Request Example ```json { "key": "YOUR API KEY GOES HERE" } ``` *(Audio file should be sent as multipart/form-data)* ### Response #### Success Response (200) - **is_ai** (boolean) - Indicates if the audio is detected as AI-generated - **confidence_score** (float) - The confidence score of the detection #### Response Example ```json { "is_ai": true, "confidence_score": 0.90 } ``` ``` -------------------------------- ### AI Essay Writer API Source: https://help.undetectable.ai/en/category/developer-api-uxho4l Generates AI-powered essays. Provides a FastAPI link for browser-based testing and requires an API key for authentication. ```APIDOC ## AI Essay Writer API ### Description Generate AI-powered essays with the AI Essay Writer API. You can test the API without code via the provided FastAPI link. Authentication is handled via API keys. ### Method POST ### Endpoint /write/essay ### Parameters #### Query Parameters - **key** (string) - Required - Your API key #### Request Body - **prompt** (string) - Required - The prompt for the essay - **length** (string) - Optional - The desired length of the essay (e.g., 'short', 'medium', 'long') ### Request Example ```json { "key": "YOUR API KEY GOES HERE", "prompt": "Write an essay about the impact of artificial intelligence on society.", "length": "medium" } ``` ### Response #### Success Response (200) - **essay** (string) - The generated essay #### Response Example ```json { "essay": "Artificial intelligence is rapidly transforming society..." } ``` ``` -------------------------------- ### AI Video Detector API Source: https://help.undetectable.ai/en/category/developer-api-uxho4l Detects AI-generated video content. Provides a FastAPI link for browser-based testing and requires an API key for authentication. ```APIDOC ## AI Video Detector API ### Description Detect AI-generated video content using the AI Video Detector API. You can explore and try the API with your browser via FastAPI docs. Authentication is handled via API keys. ### Method POST ### Endpoint /detect/video ### Parameters #### Query Parameters - **key** (string) - Required - Your API key #### Request Body - **video** (file) - Required - The video file to analyze ### Request Example ``` POST /detect/video?key=YOUR_API_KEY_GOES_HERE HTTP/1.1 Host: ai-video-detect.undetectable.ai Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW ------WebKitFormBoundary7MA4YWxkTrZu0gW Content-Disposition: form-data; name="video"; filename="video.mp4" Content-Type: video/mp4 [binary data of the video] ------WebKitFormBoundary7MA4YWxkTrZu0gW-- ``` ### Response #### Success Response (200) - **is_ai** (boolean) - Indicates if the video is detected as AI-generated - **confidence_score** (float) - The confidence score of the detection #### Response Example ```json { "is_ai": true, "confidence_score": 0.93 } ``` ``` -------------------------------- ### Retrieve Document Status Source: https://help.undetectable.ai/en/article/humanization-api-v2-p28b2n Queries the status and results of a previously submitted document using its unique ID. It is recommended to poll this endpoint every 5-10 seconds until processing is complete. ```bash curl --location 'https://humanize.undetectable.ai/document' \ --header 'apikey: YOUR API KEY GOES HERE' \ --header 'Content-Type: application/json' \ --data '{ "id": "DOCUMENT ID GOES HERE" }' ``` -------------------------------- ### Authenticate API Requests via Request Body Source: https://help.undetectable.ai/en/category/developer-api-uxho4l Most Undetectable.AI services require the API key to be included in the JSON request body. This pattern is used for text detection, image detection, and audio detection endpoints. ```json { "key": "YOUR_API_KEY_GOES_HERE", "text": "Sample text to process" } ``` -------------------------------- ### Rehumanize Document API Source: https://help.undetectable.ai/en/article/humanization-api-v2-p28b2n This endpoint allows you to rehumanize a document once. It takes a document ID and returns a success status with a new ID. ```APIDOC ## POST /rehumanize ### Description This endpoint allows you to rehumanize a document once. ### Method POST ### Endpoint https://humanize.undetectable.ai/rehumanize ### Parameters #### Query Parameters - **id** (string) - Required - The ID of the document object submitted for humanization. ### Request Example ```curl curl --location 'https://humanize.undetectable.ai/rehumanize' \ --header 'apikey: YOUR API KEY GOES HERE' \ --header 'Content-Type: application/json' \ --data '{ "id": "DOCUMENT ID GOES HERE" }' ``` ### Response #### Success Response (200) - **status** (string) - Indicates the success of the document submission. - **id** (string) - The new ID generated for the rehumanized document. #### Response Example ```json { "status": "Document submitted successfully", "id": "5e1e4d7d-df9d-4756-81ad-63fc5e1e7a7d" } ``` ``` -------------------------------- ### Rehumanize Document Response (JavaScript) Source: https://help.undetectable.ai/en/article/humanization-api-v2-p28b2n This JavaScript object represents a successful response from the rehumanize endpoint, confirming that the document has been submitted and providing its new ID. ```javascript { "status": "Document submitted successfully", "id": "5e1e4d7d-df9d-4756-81ad-63fc5e1e7a7d" } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.