Aideify · My account · Developer APIs

Speaker & Authorship Attribution API

Identify Subject, Other contributors (human or AI), Context and Uncertain passages in a document. Original speaker labels stay separate from passage labels. Upload a file, confirm the speaker mapping once and export; optionally request suggestions for uncertain passages. Suggestions require human review; confirmed labels are protected on later passes.

Use the account tool for manual work, or call the shared API below. The same Aideify account owns your saved documents. No new account is needed.

The account tool accepts a dropped or selected file immediately, shows Upload → Process → Confirm → Saved progress, and presents a short assessment with identity choices. Confirming an identity applies its speaker mapping and saves clear passages as writing. Detailed role editing, assisted classification and accuracy review are under Advanced options. Identity guesses use explicit name or role evidence and always require confirmation; unreadable or unlabelled material is not silently attributed.

Authentication

Every product request uses Authorization: Bearer <customer key>. Existing records:write keys can upload, review, classify and delete; records:read keys can inspect and export. Manage keys through the API console. API activation remains the existing account process; this tool does not activate an account or charge credits automatically. The browser tool uses your ordinary Aideify account session and same-origin writes, so it does not ask you to enter an API key.

Base URL: https://aideify.com/api/v1/attribution. OpenAPI contract.

Upload and identify speakers

POST /jobs, multipart file and optional subjectName (up to 100 characters), with a UUID Idempotency-Key. Supported files are text-based PDF (at most 20 pages), DOCX, UTF-8 TXT and Markdown, up to 3 MiB. Document reading uses existing source readers with remote processing disabled and performs no rewriting. Unreadable or incomplete documents return an explicit error. The uploaded original remains privately downloadable.

The response is {job}. A job contains its id, revision, unchanged extracted text, candidate speakers, passages and review rounds. Candidate detection supports colon-labelled transcripts, common timestamp prefixes and questionnaire Q/A labels. Unrecognized material stays available for manual review; a candidate name is not a confirmed identity.

Each speaker has id, original name, label, kind (human, ai, unknown) and confirmed. Each passage has id, speaker, start, contentStart, end, label, origin, reviewed and an optional proposal. Offsets use UTF-16 code units in the unchanged extracted text. The label applies to text.slice(contentStart,end). The prefix start..contentStart is structural speaker/timestamp context, not subject-authored content. Blank separators remain in the original and labelled exports; the browser review focuses on text passages.

curl https://aideify.com/api/v1/attribution/jobs \
  -H "Authorization: Bearer $AIDEIFY_API_KEY" \
  -H 'Idempotency-Key: REPLACE-WITH-A-UUID' \
  -F 'file=@interview.txt' -F 'subjectName=Alex'

GET /jobs lists your documents. GET /jobs/{id} reads the current revision and labels. GET /jobs/{id}/original downloads the original through customer authorization; originals have no public download link.

Document assessment and clarification

Every upload/read/action job response includes assessment: version, method, documentType (essay, chat_history, interview_transcript, email_chain, questionnaire, unknown), format evidence, partyCount, contributor parties with original names and one example each (up to 250 characters), candidateIds, suggestedSubjectId, needsIdentity, description and clarification. Initial assessment uses structural rules, not a remote model call. Confidence expresses a heuristic strength, not calibrated accuracy. An essay may have one inferred Document author; this is a hypothesis requiring confirmation. Names/roles are candidates, never inferred real identities. Email senders are detected from explicit From/To/Subject headers; quoted replies remain uncertain. Complex exports can require manual correction.

Clients do not need to copy mapping rules. Submit an identity confirmation through the normal actions endpoint:

{"action":"identify","subjectSpeakerId":"speaker_0","expectedRevision":0}

This validates the candidate and applies the existing mapping and human-review protections. Confirmed Subject text is available from the Subject export; original bytes and offsets remain intact. For type correction use { "action":"describe", "documentType":"interview_transcript", "expectedRevision":1 }. This saves a user-confirmed format without rewriting text or asserting authorship. Both require a fresh UUID Idempotency-Key, current revision and write-scoped account key. Suggestions/identity guesses alone are not confirmation. Scope-specific uses of the evidence (for example style versus biographical evidence) belong to the consuming application, not the document classifier.

Confirm mappings and label a sample

Send POST /jobs/{id}/actions with JSON, the current expectedRevision and a new UUID Idempotency-Key. Use the actual speaker/passage IDs returned by the upload.

{
  "action": "map",
  "expectedRevision": 0,
  "mappings": [
    {"id":"speaker_0","label":"other_contributors","kind":"human"},
    {"id":"speaker_1","label":"subject","kind":"human"}
  ]
}

Mappings propagate through clear speaker-labelled passages. Possible quotations remain uncertain. Manually confirmed passage labels override the global mapping and are not overwritten by remapping or classification. A speaker's identity and human/AI type remain distinct from a passage's role: an interviewer's question may be labelled Context while its original speaker remains recorded.

A confirmed Subject speaker mapping is sufficient; no sample labels are required. For files without clear speakers, label one Subject passage to enable suggestions. Further corrections are optional:

{
  "action":"review",
  "expectedRevision":1,
  "edits":[
    {"id":"p_0","label":"other_contributors"},
    {"id":"p_1","label":"subject"}
  ]
}

A review action accepts up to 100 edits. Labels are exactly subject, other_contributors, context, uncertain. Original text is never changed.

For a mixed passage, use {action:"split",expectedRevision,passage,offset} with an absolute UTF-16 offset inside its content. The two pieces retain the original speaker and exact text ranges; their labels reset for review. This allows quoted or forwarded material to be separated from the surrounding writer's own words.

Request and review suggestions

{"action":"classify","expectedRevision":2,"mode":"remaining","allowRemote":true}

The explicit allowRemote:true confirms assisted processing of bounded text excerpts. A pass uses confirmed speaker mappings and up to 12 recent manual examples to propose labels for up to 30 unreviewed text passages. mode:"reconsider" reevaluates unreviewed suggestions using the latest corrected examples. Confirmed labels stay protected. Corrections are supplied as examples on later passes; they do not retrain a model.

A proposal includes candidate, label and confidence. Low-confidence candidates remain labelled Uncertain for review. Model confidence is not a human approval or an accuracy guarantee. No suggestion enters a Subject-only export until the user confirms it. There is no automatic generative fallback or rewriting.

After reviewing suggestions, use another review action to confirm or correct labels. Every successful mutation returns {job} with the new revision. A failed classifier pass preserves confirmed labels, returns an error and the updated job state when available. Read the document before another attempt.

Export and deletion

- GET /jobs/{id}/export?mode=all&format=json: labelled document, original text, speaker map and exact passage offsets.

- GET /jobs/{id}/export?mode=subject&format=json: reviewed Subject passages, source document ID, original offsets and structural-prefix context.

- GET /jobs/{id}/export?mode=subject&format=text: reviewed Subject text only.

- DELETE /jobs/{id}: remove the uploaded original, extracted text, annotations and content-bearing request state. Previously downloaded copies remain with their holders. Aggregate daily usage is retained so deletion cannot reset processing limits.

Limits and retries

Per account: 10 saved documents and 20 MiB original bytes; 10 assisted starts per UTC day, including failed or interrupted starts. Per document: 80,000 extracted characters, 1,200 initial lines, 1,600 passages after splits and 5,000 mutations. The API rate limit is 120 requests/minute; uploads are additionally limited to 8 per five minutes. Initial source reading and manual review take no completion credits. Assisted requests use bounded processing allowances with no automatic credit debit or payment.

Reusing an operation UUID with identical input returns current saved state without reexecuting the operation. Reuse with different input returns 409. Stale revisions and concurrent writes return 409. An interrupted operation is never automatically replayed; after the reservation expires, read the document and explicitly choose a new operation UUID. Validation errors return 422, unsupported/oversized sources 413 or 422, authentication errors 401/403, inaccessible documents 404 and processing limits 429. Errors are JSON with error and a request identifier where available.

Open the tool · API console · Developer APIs