← For organisations

Business API

Türkçe: Türkçe sürüm

Lets you check image, video and audio files from your own systems and get the report as JSON. It runs the same analysis as a check on the website and returns the same report.

Privacy

The files you send are only analyzed and are not stored. The only things kept are the report itself and the file's SHA-256 hash. Reports do not contain location (GPS) data, AI prompts or the content of the file.

Authentication

Create an API key on the website under My account → API keys. The key is shown only once, when it is created; if you lose it, revoke it and create a new one. Add this header to every request:

Authorization: Bearer ak_…

If a key leaks, revoke it right away on the same page. In the examples below the key is in an environment variable:

export API_KEY="ak_…"
export SITE="https://example-domain.com"

Checking files

POST /api/v1/checks

Send the files in the files field; repeat the field for more than one file. The size of the request body must be stated in the Content-Length header: requests sent in chunks (Transfer-Encoding: chunked) are refused with 411 without their body being read. Requests whose body exceeds the limit also get 413 without being read. curl -F and common HTTP libraries add this header on their own when sending files.

curl -sS "$SITE/api/v1/checks" \
  -H "Authorization: Bearer $API_KEY" \
  -H "Accept-Language: en" \
  -F "files=@news-photo.jpg" \
  -F "files=@interview.mp4"

With the optional ?images=1 (POST /api/v1/checks?images=1) each result also carries the pictures in images, beside its report: for an image map (the image with its region map drawn), close_ups (close-ups of the three highest regions) and, with ?sharp=1, sharp (the image with its sharp region map drawn), for a video moments (its highest moments' frames with their maps: t, ai_likeness, jpeg). All are base64 JPEG; they are not stored, and GET /api/v1/checks/{id} returns no pictures. The price is the same; a video check may take up to half a minute longer.

With the optional ?sharp=1 each image also gets the paid sharp region map (one more credit or daily package check per image): the image is cut into 3 x 3 parts, each looked at on its own; the appearance signal's details.sharp gives grid (24), votes (576 region votes), parts (the nine parts' likeness, %), strong_parts and finding (at least 3 parts at 97% or above while the whole image is below 95%). The verdict does not change. When it cannot be drawn, details.sharp_error is true and the extra charge is given back; files that are not images are not charged for it.

The files are analyzed one after another; each video can take a minute or two because its frames are examined, so one request may hold at most 3 videos (more gives 400 too_many_videos) and a request with several videos may take a few minutes. Set your client's timeout accordingly. The response has one result for each file sent (in the same order):

{
  "results": [
    {
      "file_name": "news-photo.jpg",
      "id": "6f1c2a9e-4d3b-4c8e-9a51-0b7d2e3f4a56",
      "public_id": "QE4ij3i8QkRqj4AZ-h_ZMw",
      "report_url": "https://example-domain.com/r/QE4ij3i8QkRqj4AZ-h_ZMw",
      "report": {
        "schema_version": 1,
        "analyzer_version": "0.1.0",
        "analyzed_at": "2026-10-13T20:24:02.637914Z",
        "file": {
          "name": "news-photo.jpg",
          "mime": "image/jpeg",
          "kind": "image",
          "size_bytes": 74688,
          "sha256": "3984279f7a38d9331dca5e71333246faa6370fe543dc7da58eafa15b0d112c8e"
        },
        "verdict": {
          "level": "ai_detected",
          "headline_tr": "Yapay zekâ izi bulundu",
          "headline_en": "AI trace found",
          "summary_tr": "Dosyada imzalı İçerik Kimliği (C2PA) var: …",
          "summary_en": "The file has signed Content Credentials (C2PA): …"
        },
        "signals": [
          {
            "id": "c2pa",
            "name_tr": "İçerik Kimliği (C2PA)",
            "name_en": "Content Credentials (C2PA)",
            "status": "found",
            "indicates": "ai",
            "strength": "strong",
            "summary_tr": "Dosyada imzalı İçerik Kimliği (C2PA) var: …",
            "summary_en": "The file has signed Content Credentials (C2PA): …",
            "details": { "signer_organization": "…", "signature_intact": true }
          }
        ],
        "limitations_tr": ["İz bulunamaması, içeriğin insan yapımı olduğunu kanıtlamaz. …"],
        "limitations_en": ["Finding no traces does not prove that the content is human-made. …"],
        "external_checks": [
          {
            "name": "Content Credentials Verify",
            "url": "https://contentcredentials.org/verify",
            "note_tr": "…",
            "note_en": "…"
          }
        ]
      }
    },
    {
      "file_name": "interview.mp4",
      "error": {
        "code": "analyzer_unavailable",
        "message": "The analysis service cannot be reached right now. Please try again in a little while."
      }
    }
  ]
}

If the analysis of a file fails, only that file's result has an error, and no credit is taken for that file (or it is refunded); the other files are not affected. The HTTP status of the response is still 200 in this case.

If the account has no credits at all (a balance below 1), the request is refused with 402 without its body being read. Once the files have been read, if the credits do not cover every file that passed the pre-check, again no file is analyzed and the answer is 402. A credit is taken for each file separately.

If the account has a running daily check package, each file first uses one of that day's package checks, and credits only once they are used up. The checks above count today's remaining package checks together with the credits. When the day's package checks are used up and there are no credits, the answer is 402 with the code daily_limit_reached. The daily checks renew at midnight Istanbul time.

report_url is the report page on the website (in Turkish). The English page of the same report is at /en/r/{public_id}. Only members of the account (when logged in) can see this page; if the page's owner turns on "Anyone with the link can view", everyone can see it.

Listing recent checks

GET /api/v1/checks

Returns the account's 50 most recent checks, newest first. Report bodies are not included.

curl -sS "$SITE/api/v1/checks" -H "Authorization: Bearer $API_KEY"
{
  "checks": [
    {
      "id": "6f1c2a9e-4d3b-4c8e-9a51-0b7d2e3f4a56",
      "public_id": "QE4ij3i8QkRqj4AZ-h_ZMw",
      "report_url": "https://example-domain.com/r/QE4ij3i8QkRqj4AZ-h_ZMw",
      "created_at": "2026-10-13T20:24:02.912Z",
      "kind": "image",
      "file_name": "news-photo.jpg",
      "mime": "image/jpeg",
      "size_bytes": 74688,
      "sha256": "3984279f7a38d9331dca5e71333246faa6370fe543dc7da58eafa15b0d112c8e",
      "verdict": { "level": "ai_detected", "headline_tr": "Yapay zekâ izi bulundu", "headline_en": "AI trace found" },
      "is_public": false
    }
  ]
}

Checks made before English texts were added have no headline_en.

This list also includes checks made on the website with the same account (text checks included, kind: "text"). For text checks, neither the text itself nor its fingerprint or length is stored: sha256 is an empty string ("") and size_bytes is 0.

Getting a single report

GET /api/v1/checks/{public_id}

Returns the full report if the check belongs to the key's account; otherwise 404.

curl -sS "$SITE/api/v1/checks/QE4ij3i8QkRqj4AZ-h_ZMw" -H "Authorization: Bearer $API_KEY"
{
  "id": "6f1c2a9e-4d3b-4c8e-9a51-0b7d2e3f4a56",
  "public_id": "QE4ij3i8QkRqj4AZ-h_ZMw",
  "report_url": "https://example-domain.com/r/QE4ij3i8QkRqj4AZ-h_ZMw",
  "created_at": "2026-10-13T20:24:02.912Z",
  "report": { "…": "the same as the report in the POST response" }
}

Sharing a report

PATCH /api/v1/checks/{public_id}

Opens the report page to anyone with the link (true), or shows it to the account only again (false). The badge and the result card work only for shared reports.

curl -sS -X PATCH "$SITE/api/v1/checks/QE4ij3i8QkRqj4AZ-h_ZMw" \
  -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
  -d '{"is_public": true}'
{
  "id": "6f1c2a9e-4d3b-4c8e-9a51-0b7d2e3f4a56",
  "public_id": "QE4ij3i8QkRqj4AZ-h_ZMw",
  "report_url": "https://example-domain.com/r/QE4ij3i8QkRqj4AZ-h_ZMw",
  "is_public": true
}

A body other than {"is_public": true} or {"is_public": false} gives 400 invalid_request; a check of another account gives 404.

Reading the report

report.verdict.level gives the overall result. The service never says "human-made": the weakest result is "No traces found", and that does not prove that the content is human-made. The headline (headline_tr, headline_en) and the explanation (summary_tr, summary_en) come from the analysis service; have your program look at the level field, as new values may be added in the future.

Every text in the report comes in two languages: …_tr in Turkish, …_en in English (headline, summary, name, limitations, note, and label in the invisible-character categories). Reports stored before English texts were added have only the …_tr fields; when an …_en field is missing, use the Turkish one.

levelHeadlineMeaning
ai_detectedAI trace foundThere is strong evidence: an AI statement in Content Credentials that carry a valid signature of an organization on the trust list, in a file that has not changed since it was signed.
ai_indicatorsAI indicators foundThere are AI indicators, but none of them is conclusive on its own: unsigned file metadata (e.g. a tool name or an IPTC source type in the metadata), or an AI statement in Content Credentials whose signer is not on the trust list or whose file was changed after signing.
integrity_issueContent Credentials brokenThere are Content Credentials, but the file was changed after signing or the signature is invalid.
camera_indicatorsCamera information foundThere is camera information and no AI trace. Camera information can also be changed.
inconclusiveA trace was found but its source could not be verifiedThere is a trace, but on its own it does not show that the content was generated with AI: a link to Content Credentials on another server (not opened, for security reasons), unreadable Content Credentials, or a decoded open-source watermark (TrustMark, in images). Check the file yourself with the Content Credentials Verify tool. Text checks on the website always give this result too ("AI watermarks in text cannot be checked here"), because only Google, OpenAI and Anthropic can check text watermarks.
no_tracesNo traces foundNo traces were found. Many tools leave no traces; social networks may remove them.
ai_appearanceLooks AI-generatedNo trace in the file, but the appearance analysis (a model that looks at an image's pixels or a video's frames) finds the content very like AI images; the appearance signal's ai_likeness gives the likeness in percent (frames for a video). In our tests it wrongly flagged about 3 in 100 real photos; firm evidence is the traces in the file.
ai_likelyMost likely AI-generatedNo trace in the file, and the appearance analysis is in its measured high likelihood band: an image's likeness at 99% or above, or a video with at least 3 frames, and at least half of those examined, at 98% or above. In our measurement 1 to 2 in 100 real photos (depending on the file's size) and 2 of 293 real videos (a TV series promo and a series poster) reached it. It is still an estimate: strength stays weak; the signal's details.likelihood is high (medium below the band).

report.signals describes each check separately:

report.limitations_tr (limitations_en) lists the limits of the report, and report.external_checks lists free tools you can try the file with yourself. We do not send your file to these tools.

Long-text check

Beta: English texts get a Low, Medium or High band; Turkish texts get a Low or Medium band.

Shows page by page how much of a long text (a thesis, an article, a book) resembles text written by AI. A job can take a while, so it runs in the background: you send the text and get a job id and a report key, you ask how the job is doing, and when it is done you fetch the result with the same key.

Submitting a job

POST /api/v1/longtext

Send text in a JSON body or file in a multipart body. The request needs a Content-Length header. With ?dry_run=1 only the price is worked out: nothing is charged and no job is created.

curl -sS "$SITE/api/v1/longtext" \
  -H "Authorization: Bearer $API_KEY" -H "Content-Type: application/json" \
  -d '{"text": "A long text..."}'

Answer (202):

{
  "id": "6a1f0c3e-8b2d-4e5f-9a7b-1c2d3e4f5a6b",
  "key": "report-key-of-43-characters",
  "status": "queued",
  "position": 0,
  "eta_seconds": 12,
  "estimate": {
    "chars_total": 31000,
    "chars_scored": 25000,
    "words_scored": 3300,
    "credits": 3,
    "pages": 9,
    "excluded_words": { "reference": 420 },
    "languages": ["en"]
  },
  "charged": { "words": 3300, "credits": 0 }
}

The dry_run answer (200) has estimate and quote: words, credits, words_available, credits_spendable, gift_credits, enough.

A job's state

GET /api/v1/longtext/{id}

status is one of queued, running, done, failed, cancelled, lost. The answer also has position, eta_seconds, pages_done, pages_total, a text-free summary, failure, refunded, charged, created_at, report_expires_at and result_available. Jobs that are failed or lost have been refunded.

Fetching the result

GET /api/v1/longtext/{id}/result with the header X-Report-Key: <key>

Do not put the key in the address: a value there is ignored. The answer is the report as JSON: text (the scored text), summary (band and share), pages, paragraphs (UTF-16 offsets s, e; kind k; level l; page p), traces (chatbot traces) and top (the sentences most like AI).

Fetching the PDF

POST /api/v1/longtext/{id}/pdf with the header X-Report-Key: <key>; optionally ?lang=tr or ?lang=en

Fetching the PDF counts as a read: the report stays for the hour after the first read or PDF, so a download that breaks off can be fetched again (each PDF gets a new verification code; one PDF is drawn at a time, a second request meanwhile gets 409 pdf_in_progress). The verification code printed on it also comes in the X-Verification-Code header. Anyone can check on the /dogrula page that we made the PDF and that it has not been changed.

Deleting

DELETE /api/v1/longtext/{id}

Cancels a waiting job and refunds it, or deletes a done job's report at once. A job that is running cannot be cancelled (409).

Long-text errors

Errors have the same form as elsewhere, { "error": { "code", "message" } }:

StatusCodeMeaning
400invalidThe body is not valid
402insufficientNot enough package words or credits (quote comes too)
403bad_keyThe key is missing or does not open the report; nothing changes
404not_foundThere is no such job (another account's job looks the same)
409not_ready, not_cancellable, pdf_in_progressThe job has not finished; a running job cannot be cancelled; the report's PDF is being prepared
410goneThe report was deleted or has expired
411, 413length_required, too_largeNo Content-Length; the body is too large
422too_short, too_long, no_text, unsupported_type, encrypted_pdf, unreadableThe text cannot be checked
429rate_limited, too_many_jobsToo many requests (wait Retry-After seconds); too many open jobs
503queue_full, busy, unavailableTry again after Retry-After seconds; any charge has been refunded

Webhook notifications

Accounts with a package (a daily check package, or a long-text package with words left) can have each result sent to their own systems by itself when a check finishes. Add an integration on the website under My account → Connections → Integrations; only the account's owners can add one. The same page also adds Slack, Microsoft Teams or email notices; this section describes the webhook sent to your own system.

A notice is thin: it carries a summary of the result and links to the report. The file, the text or a long-text report itself is never sent. For the full report, call api_url with your own API key.

The request

Each notice is a POST to your address with a JSON body (Content-Type: application/json). Headers:

HeaderMeaning
AIYakala-EventThe event type, e.g. check.completed
AIYakala-DeliveryThe delivery id. It stays the same on retries; use it to drop duplicates.
AIYakala-Signaturet=<unix time>,v1=<signature> (see Verifying the signature)
User-AgentAIYakala-Webhooks/1.0 (+https://aiyakala.com)

The address must start with https:// and use port 443; no request is sent to an address whose name leads to a private network.

Events

Every body has the same outer fields: id (the event id), type, created_at (ISO 8601), account_id and data. You choose the events an integration receives when you add it; text.completed is off by default.

check.completed: an image, video or audio check finished (from the website, the API, Telegram or WhatsApp).

{
  "id": "evt_Vb7mQ2xR0kLp9aTz",
  "type": "check.completed",
  "created_at": "2026-11-11T10:00:00.000Z",
  "account_id": "6f1c2a9e-0b7d-4c1e-9a55-3d2f8e7b6a10",
  "data": {
    "check_id": "Qm9vWk1hZ2VJZDEyMzQ1Ng",
    "kind": "image",
    "file_name": "homework-3.jpg",
    "verdict_level": "ai_detected",
    "headline_tr": "Yapay zekâ izi bulundu",
    "headline_en": "AI traces found",
    "report_url": "https://aiyakala.com/en/r/Qm9vWk1hZ2VJZDEyMzQ1Ng",
    "api_url": "https://aiyakala.com/api/v1/checks/Qm9vWk1hZ2VJZDEyMzQ1Ng",
    "checked_at": "2026-11-11T09:59:58.412Z",
    "source": "api",
    "api_key_name": "School system"
  }
}

source: web, api, telegram or whatsapp. api_key_name is set only for checks sent through the API, otherwise null. headline_en can be null for old reports without English. Links follow the integration's language (English links start with /en).

text.completed: the website's free short text check finished. The same fields as check.completed, without file_name and api_key_name; kind is always text, source always web. The text itself is never sent.

{ "id": "evt_…", "type": "text.completed", "created_at": "…", "account_id": "…",
  "data": { "check_id": "…", "kind": "text", "verdict_level": "ai_indicators", "headline_tr": "…", "headline_en": "…",
            "report_url": "…", "api_url": "…", "checked_at": "…", "source": "web" } }

longtext.completed: a long-text check finished. The report's key is never sent; the report opens only with the link the user holds.

{ "id": "evt_…", "type": "longtext.completed", "created_at": "…", "account_id": "…",
  "data": { "job_id": "0b8e…", "band": "medium", "ai_share_display": 34, "pages": 9, "languages": ["tr"],
            "source": "api", "history_url": "https://aiyakala.com/en/gecmis",
            "api_url": "https://aiyakala.com/api/v1/longtext/0b8e…/result", "finished_at": "…" } }

band: low, medium, high or unscorable. ai_share_display is the share shown, or null. api_url is set only for jobs sent through the API (you fetch the result with your own report key), otherwise null.

longtext.failed: a long-text check could not be done and its charge was refunded. A user's own cancel sends no notice.

{ "id": "evt_…", "type": "longtext.failed", "created_at": "…", "account_id": "…",
  "data": { "job_id": "0b8e…", "reason": "lost", "refunded_credits": 3, "refunded_words": 0, "source": "web",
            "history_url": "https://aiyakala.com/en/gecmis" } }

reason: unscorable (the text could not be scored), analyzer_error, or lost (the analysis service restarted). If the service restarts before a finished job's report was ever opened, the job is counted as lost afterwards and refunded; the same job_id then gets longtext.failed after longtext.completed.

integration.test: the Send a test button on the page. data is a fixed sample; you do not need to choose this event.

Response and retries

Verifying the signature

Every webhook integration has a signing key; it is shown once when you add the integration and replaced with Renew the key (the old one stops working at once). v1 is the HMAC-SHA256 of t + "." + body with that key (lower-case hex). Verify the body exactly as received, before parsing it as JSON, and reject a notice whose time is more than 5 minutes old.

Node.js:

import { createHmac, timingSafeEqual } from "node:crypto";

// body: the raw request body (the text before JSON.parse)
export function verify(secret, body, header) {
  const parts = Object.fromEntries(header.split(",").map((p) => p.split("=")));
  const t = Number(parts.t);
  if (!Number.isInteger(t) || Math.abs(Date.now() / 1000 - t) > 300) return false;
  const expected = createHmac("sha256", secret).update(`${t}.${body}`).digest();
  const given = Buffer.from(parts.v1 ?? "", "hex");
  return given.length === expected.length && timingSafeEqual(given, expected);
}

Python:

import hashlib
import hmac
import time

def verify(secret: str, body: bytes, header: str) -> bool:
    """body: the raw request body (bytes, before json.loads)."""
    parts = dict(p.split("=", 1) for p in header.split(",") if "=" in p)
    try:
        t = int(parts["t"])
    except (KeyError, ValueError):
        return False
    if abs(time.time() - t) > 300:
        return False
    expected = hmac.new(secret.encode(), str(t).encode() + b"." + body, hashlib.sha256).hexdigest()
    return hmac.compare_digest(expected, parts.get("v1", ""))

Errors

Error responses always have this form:

{ "error": { "code": "insufficient_credits", "message": "Not enough credits: this check needs 2 credits, and your balance is 1." } }

message can be shown to users; have your program look at the code field. message is in Turkish; add the Accept-Language: en header to a request to get it in English (per-file errors too). The code values are the same in both languages.

HTTPcodeMeaning
400invalid_requestThe request is not multipart/form-data or could not be read.
400no_filesThere are no files in the files field.
400too_many_filesThe request has more than 20 files.
401unauthorizedThe API key is missing, wrong or revoked.
402insufficient_creditsThe account's credits (and today's remaining package checks) do not cover the files in this request. No file was analyzed.
402daily_limit_reachedToday's checks of the daily package are used up and there are no credits. They renew at midnight Istanbul time.
404not_foundThe key's account has no check with this ID.
411length_requiredThe request has no Content-Length header (e.g. it was sent in chunks). The body was not read.
413request_too_largeThe request body is larger than 101 MiB. Split the files across several requests. The body was not read.
429upload_in_progressAnother upload of this account is in progress. Try again after Retry-After seconds.
429server_busyThe server is busy. Try again after Retry-After seconds.
500internal_errorAn unexpected error. Try again.

Errors that affect a single file only (results[].error.code):

codeMeaning
empty_fileThe file is empty.
file_too_largeThe file is larger than 100 MB.
unsupported_typeThe file is not an image, video or audio file.
file_rejectedThe file could not be analyzed; it may be damaged.
insufficient_creditsThe account ran out of credits during the request.
daily_limit_reachedToday's package checks and the credits ran out during the request.
analyzer_unavailableThe analysis service could not be reached. Try again a little later.
internal_errorAn unexpected error.

For every error except internal_error, no credit is spent on that file.