Find out whether a voice belongs to the right person. Enroll a person's voice once, then verify recordings or live phone callers against it, with an optional deepfake check on the same audio.

Is this the right person? Speaker verification (the Eidos model) saves a person's voice from enrollment recordings, then tells you whether new audio is the same person: match or no_match. Use it with the same API key as the other products:

Way You send You get Section
Recordings Enrollment recordings, then a recording to check match or no_match Quickstart
Live phone call The caller's audio, over a WebSocket A verification as soon as the voice clearly matches or clearly does not (often after 3 seconds of speech), or an enrollment from the call Live call streams
AI assistant Recordings, through MCP Enroll, verify, list and delete speakers by asking MCP tools

How it works

  1. Enroll. Send recordings of one person under a speaker_id you choose. The speaker is created with the first recording.
  2. Verify. Send a new recording with the same speaker_id. The new voice is compared with the enrolled one: match or no_match.
Step Recording length Speech needed
Enroll 15 to 60 seconds At least 10 seconds
Verify 3 to 60 seconds At least 2 seconds
  • Each enrollment recording should hold the clear speech of that one person.
  • A speaker can have up to 5 enrollment recordings. Enroll 2 or 3 from different sessions, such as different days or devices: verification is then more reliable.
  • A speaker_id is 1 to 64 letters, digits or the characters _ . : -. Use your own identifier, for example a customer number, and add a display_name for a readable label in the dashboard.

Quickstart

Create an API key in the dashboard (see Get started). Enroll a recording of 15 to 60 seconds:

cURL
curl https://platform.detectif.ai/v1/speakers/enroll \
  -H "Authorization: Bearer $DETECTIF_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -F "speaker_id=alice" \
  -F "file=@alice-1.wav"

Then verify a new recording of 3 to 60 seconds against it:

cURL
curl https://platform.detectif.ai/v1/speakers/verify \
  -H "Authorization: Bearer $DETECTIF_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -F "speaker_id=alice" \
  -F "file=@new-call.wav"

Read the result

Example verification response, shortened:

JSON
{
  "request_id": "req_8f14e45fceea167a5a36dedd",
  "operation_id": "op_6f1ed002ab5595859014ebf0951522d9",
  "object": "speaker.verification",
  "speaker_id": "alice",
  "result": {
    "decision": "match",
    "similarity": 0.7412,
    "duration_seconds": 4.1
  }
}
Field Meaning
result.decision match or no_match. Decide with this field.
result.similarity How alike the two voices are, from -1 to 1 (higher is more alike). It is not a percentage or a probability.
result.duration_seconds Length of the checked audio, in seconds.
operation_id Fetch the result again later, for 30 days.

Use the decision well

  • Verification rarely accepts the wrong person, so a genuine speaker recorded in different conditions is rejected more often. Enrolling recordings from different days or devices helps.
  • Phone-quality audio gives less reliable results than clear recordings.
  • A match is a signal, not proof. Use it with other checks, and have a person review decisions that matter.

Recording length

An enrollment recording shorter than 15 seconds, longer than 60 seconds or with less than 10 seconds of speech is refused with 422; so is a verification recording outside 3 to 60 seconds or with less than 2 seconds of speech. The error message says what is needed. A sixth enrollment recording is refused with 409 (too_many_samples).

Check for AI-generated speech at the same time

Send detect_deepfake=true with a verification and the same recording is also checked by deepfake detection. The key needs the deepfake:detect permission too.

The response then has a deepfake object with its verdict. The two checks are separate: if only the deepfake check fails, you still get the verification, with deepfake.error.

Live call streams

A live call stream checks a phone call while it happens. Add verify or enroll to its checks, with a speaker_id, and the same stream that checks the call for AI-generated speech also verifies the caller against an enrolled speaker (usually within 3 to 5 seconds of speech) or enrolls the caller when the call ends.

Example
wss://platform.detectif.ai/v1/stream?checks=deepfake,verify&speaker_id=customer-4711

Parameters, timing and messages: Verify or enroll the caller. Twilio, Plivo, Telnyx, Exotel, Vonage, FreeSWITCH, a relay and your own code: Live call streams.

Manage speakers

  • List speakers returns your speakers, newest first, with how many recordings each has. Page through long lists with limit and cursor.
  • Get a speaker returns one speaker by its speaker_id.
  • Delete a speaker deletes the speaker and its voice profile permanently, together with the recordings used to enroll it. Later verifications for that speaker_id return 404.
  • Get a result fetches an enrollment or a verification again by its operation_id, for 30 days.

Enrolled voice profiles are stored encrypted until you delete the speaker or your account; see Privacy.

API reference

Base URL: https://platform.detectif.ai (live stream: wss://platform.detectif.ai).

Method Path Reference
WS /v1/stream Live call stream
POST /v1/speakers/enroll Enroll a voice sample
POST /v1/speakers/verify Verify a speaker
GET /v1/speakers List speakers
GET /v1/speakers/{speaker_id} Get a speaker
DELETE /v1/speakers/{speaker_id} Delete a speaker
GET /v1/operations/{operation_id} Get a result. Shared with Aletheia, listed under Account.

Enroll a voice sample

POST /v1/speakers/enroll

Saves a voice sample for a speaker so that later recordings can be verified against it. The speaker is created on first use. Send a recording of 15-60 seconds with at least 10 seconds of clear speech from that one person. Up to 5 samples per speaker; 2-3 samples from different sessions make verification more reliable. Main failures: too short, too long or too little speech (422, the message says what is needed), the speaker already has 5 samples (409), not enough credits (402). Requires scope speakers:enroll.

Full URL: https://platform.detectif.ai/v1/speakers/enroll. Send your API key as Authorization: Bearer <your API key>.

Request

Headers:

Name Type Required Description
Authorization string yes Bearer <your API key>. Keys are created in the dashboard; see Authentication.
Idempotency-Key string or null no Optional (recommended) key that makes retries safe for 24 h: a retry with the same key and the same request returns the stored response without charging again. (1 to 128 characters)

Form fields (multipart/form-data). Upload the audio file in the file field (up to 100 MB); send the other fields as form fields:

Field Type Required Description
file file yes The audio file: WAV, MP3, FLAC, OGG/Opus, WebM, M4A/AAC or AIFF, at most 100 MB.
speaker_id string yes Your identifier for the speaker (1-64 characters: letters, digits, _ . : -). (1 to 64 characters; pattern ^[A-Za-z0-9_.:-]{1,64}$)
display_name string no Optional label for the speaker, shown in the dashboard. (at most 128 characters)

Response

200: The sample was saved.

Field Type Always there Description
request_id string yes
operation_id string yes
object string yes (always "speaker.enrollment")
speaker object yes
speaker.speaker_id string yes (pattern ^[A-Za-z0-9_.:-]{1,64}$)
speaker.display_name string or null yes
speaker.samples integer yes Active enrollment samples for the current speaker model (max 5).
speaker.created_at string yes
speaker.updated_at string yes
quality object yes
quality.speech_seconds number yes
quality.duration_seconds number yes
model object yes
model.name string yes Model family: aletheia (deepfake detection) or eidos (speaker verification).
model.version string yes Model version, for example 2026.10; it changes whenever the model is updated.
credits object yes
credits.charged integer yes Credits used by this request. A repeated request with the same Idempotency-Key uses none: it reports 0 here and what the original request used in original_charge.
credits.balance integer or null yes Your available credits after this request; null on the unlimited plan.
credits.original_charge integer or null no Only on repeated requests (charged is then 0): the credits the original request used.
credits.unlimited boolean or null no Present (true) only for accounts on the unlimited plan, where checks use no credits.
latency_ms number yes
idempotent_replay boolean yes

Example response:

JSON
{
  "request_id": "req_8f14e45fceea167a5a36dedd",
  "operation_id": "op_6f1ed002ab5595859014ebf0951522d9",
  "object": "speaker.enrollment",
  "speaker": {
    "speaker_id": "customer-4711",
    "display_name": "Ada Lovelace",
    "samples": 1,
    "created_at": "2026-10-13T09:30:00Z",
    "updated_at": "2026-10-13T09:30:00Z"
  },
  "quality": {
    "speech_seconds": 17.9,
    "duration_seconds": 19.2
  },
  "idempotent_replay": false
}

Errors

Status Meaning
400 The request is invalid, for example a missing or malformed field.
401 The API key is missing, invalid or revoked.
402 Not enough credits are available for this operation.
403 The key lacks the required scope, the email address is not verified, or the account is suspended.
408 The upload did not arrive in time (the whole file within 120 seconds, at least 64 KB per second).
409 Conflict, for example a request with the same Idempotency-Key is still running, or the speaker already has the maximum number of samples.
413 The upload is larger than 100 MB.
415 Not a supported audio format, or the request is not multipart/form-data.
422 The audio cannot be used (damaged, too short, too long, silent or too little speech; the message says what is needed), or the Idempotency-Key was already used for a different request.
429 Too many requests or too many operations at the same time. Wait for the number of seconds in Retry-After.
500 Something went wrong on our side. No credits were used.
502 The check failed on our side. No credits were used; retry later.
503 The service is busy, for example with many large uploads. Retry after the Retry-After seconds.
504 The check took too long. No credits were used; retry later.

Every error body has the shape described in Errors, with a stable error.code.

Example

cURL
curl "https://platform.detectif.ai/v1/speakers/enroll" \
  -H "Authorization: Bearer $DETECTIF_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -F "speaker_id=alice" \
  -F "file=@clip.wav"

Verify a speaker

POST /v1/speakers/verify

Checks whether a recording is the voice of an enrolled speaker. Send a recording of 3-60 seconds with at least 2 seconds of speech. The result has a decision (match or no_match) and a similarity from -1 to 1 (higher means more alike). Main failures: unknown speaker (404), too short or too little speech (422), not enough credits (402). Requires scope speakers:verify.

With detect_deepfake=true the same recording is also checked for AI-generated speech (needs scope deepfake:detect). The two checks are counted separately, and only completed checks use credits:

  • if the synthetic-speech check fails, you still get the verification, with deepfake.error;
  • if the verification fails but the synthetic-speech check completed, you get the verification's error together with partial (the synthetic-speech result);
  • if both fail, you get the error and no credits are used.

A retry with the same Idempotency-Key returns the same outcome again without running or counting the checks twice.

Full URL: https://platform.detectif.ai/v1/speakers/verify. Send your API key as Authorization: Bearer <your API key>.

Request

Headers:

Name Type Required Description
Authorization string yes Bearer <your API key>. Keys are created in the dashboard; see Authentication.
Idempotency-Key string or null no Optional (recommended) key that makes retries safe for 24 h: a retry with the same key and the same request returns the stored response without charging again. (1 to 128 characters)

Form fields (multipart/form-data). Upload the audio file in the file field (up to 100 MB); send the other fields as form fields:

Field Type Required Description
file file yes The audio file: WAV, MP3, FLAC, OGG/Opus, WebM, M4A/AAC or AIFF, at most 100 MB.
speaker_id string yes Your identifier for the speaker (1-64 characters: letters, digits, _ . : -). (1 to 64 characters; pattern ^[A-Za-z0-9_.:-]{1,64}$)
detect_deepfake boolean no Also check the same recording for AI-generated speech (needs scope deepfake:detect). (default false)

Response

200: The check completed.

Field Type Always there Description
request_id string yes
operation_id string yes
object string yes (always "speaker.verification")
speaker_id string yes
result object yes
result.decision string yes match or no_match. Decide with this field. (one of match, no_match)
result.similarity number yes How alike the two voices are, from -1 to 1 (higher is more alike). (-1 to 1)
result.similarity_semantics string yes A short reminder of what similarity means.
result.duration_seconds number yes Length of the checked audio, in seconds.
deepfake object or null yes null unless detect_deepfake=true; then either the synthetic-speech result or its error.
deepfake.(option 1 (EmbeddedDeepfake)) object no
deepfake.verdict string yes The decision: real or fake (AI-generated). Always one of these two. (not_sure stays in the list of values only so that older clients keep working; it is never returned.) (one of real, fake, not_sure)
deepfake.label string yes The same decision in the older wording: synthetic (fake) or genuine (real). (uncertain is never returned.) (one of synthetic, genuine, uncertain)
deepfake.is_synthetic boolean yes true only when the verdict is fake.
deepfake.score number yes How likely the recording is AI-generated, from 0 to 1. (0 to 1)
deepfake.score_semantics string yes A short reminder of what score means.
deepfake.duration_seconds number yes Length of the checked audio, in seconds.
deepfake.scored_seconds number or null no Seconds of audio the verdict is based on (all of the checked audio). At least 10 seconds of speech gives the most reliable verdicts.
deepfake.segments array of object yes Scores for consecutive, overlapping parts of the recording.
deepfake.segments.start number yes Start of this part of the recording, in seconds.
deepfake.segments.end number yes End of this part of the recording, in seconds.
deepfake.segments.score number yes How likely this part is synthetic (0 to 1). (0 to 1)
deepfake.segments.verdict string or null no Whether this part on its own sounds AI-generated: fake or real. The recording's verdict is the decision for the whole recording. Absent in results from before 29 October 2026. (one of real, fake)
deepfake.operation_id string yes
deepfake.credits_charged integer yes
deepfake.model object yes
deepfake.model.name string yes Model family: aletheia (deepfake detection) or eidos (speaker verification).
deepfake.model.version string yes Model version, for example 2026.10; it changes whenever the model is updated.
deepfake.(option 2 (EmbeddedDeepfakeError)) object no
deepfake.error object yes
deepfake.error.type string yes (one of invalid_request, authentication, permission, not_found, conflict, rate_limited, insufficient_credits, payload_too_large, unsupported_media, unprocessable_audio, overloaded, internal)
deepfake.error.code string yes Stable snake_case error code.
deepfake.error.message string yes Human-readable explanation. Do not parse.
deepfake.error.param string or null no The request field the error refers to, if any.
deepfake.operation_id string yes
deepfake.credits_charged integer no (default 0)
model object yes
model.name string yes Model family: aletheia (deepfake detection) or eidos (speaker verification).
model.version string yes Model version, for example 2026.10; it changes whenever the model is updated.
credits object yes
credits.charged integer yes Credits used by this request. A repeated request with the same Idempotency-Key uses none: it reports 0 here and what the original request used in original_charge.
credits.balance integer or null yes Your available credits after this request; null on the unlimited plan.
credits.original_charge integer or null no Only on repeated requests (charged is then 0): the credits the original request used.
credits.unlimited boolean or null no Present (true) only for accounts on the unlimited plan, where checks use no credits.
latency_ms number yes
idempotent_replay boolean yes

Example response:

JSON
{
  "request_id": "req_8f14e45fceea167a5a36dedd",
  "operation_id": "op_6f1ed002ab5595859014ebf0951522d9",
  "object": "speaker.verification",
  "speaker_id": "customer-4711",
  "result": {
    "decision": "match",
    "similarity": 0.7412,
    "similarity_semantics": "Higher means the two voices are more alike. Not a percentage.",
    "duration_seconds": 4.1
  },
  "idempotent_replay": false
}

Errors

Status Meaning
400 The request is invalid, for example a missing or malformed field.
401 The API key is missing, invalid or revoked.
402 Not enough credits are available for this operation.
403 The key lacks the required scope, the email address is not verified, or the account is suspended.
404 Not found. Also returned for resources that belong to another account.
408 The upload did not arrive in time (the whole file within 120 seconds, at least 64 KB per second).
409 Conflict, for example a request with the same Idempotency-Key is still running, or the speaker already has the maximum number of samples.
413 The upload is larger than 100 MB.
415 Not a supported audio format, or the request is not multipart/form-data.
422 The audio cannot be used (damaged, too short, too long, silent or too little speech; the message says what is needed), or the Idempotency-Key was already used for a different request.
429 Too many requests or too many operations at the same time. Wait for the number of seconds in Retry-After.
500 Something went wrong on our side. No credits were used.
502 The check failed on our side. No credits were used; retry later.
503 The service is busy, for example with many large uploads. Retry after the Retry-After seconds.
504 The check took too long. No credits were used; retry later.

Every error body has the shape described in Errors, with a stable error.code.

Example

cURL
curl "https://platform.detectif.ai/v1/speakers/verify" \
  -H "Authorization: Bearer $DETECTIF_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -F "speaker_id=alice" \
  -F "file=@clip.wav"

List speakers

GET /v1/speakers

Lists the speakers of your account, newest first, with how many voice samples each has. Use limit and cursor to page through long lists. Requires scope speakers:read.

Full URL: https://platform.detectif.ai/v1/speakers. Send your API key as Authorization: Bearer <your API key>.

Request

Headers:

Name Type Required Description
Authorization string yes Bearer <your API key>. Keys are created in the dashboard; see Authentication.

Query parameters:

Name Type Required Description
limit integer no How many speakers to return (1-100). (1 to 100; default 20)
cursor string or null no next_cursor from the previous page. (at most 256 characters)

Response

200: Success.

Field Type Always there Description
request_id string yes
object string yes (always "list")
data array of object yes
data.speaker_id string yes (pattern ^[A-Za-z0-9_.:-]{1,64}$)
data.display_name string or null yes
data.samples integer yes Active enrollment samples for the current speaker model (max 5).
data.created_at string yes
data.updated_at string yes
has_more boolean yes
next_cursor string or null yes

Example response:

JSON
{
  "request_id": "req_8f14e45fceea167a5a36dedd",
  "object": "list",
  "data": [
    {
      "speaker_id": "customer-4711",
      "display_name": "Ada Lovelace",
      "samples": 2,
      "created_at": "2026-10-13T09:30:00Z",
      "updated_at": "2026-10-13T09:41:12Z"
    }
  ],
  "has_more": false
}

Errors

Status Meaning
400 The request is invalid, for example a missing or malformed field.
401 The API key is missing, invalid or revoked.
403 The key lacks the required scope, the email address is not verified, or the account is suspended.
429 Too many requests or too many operations at the same time. Wait for the number of seconds in Retry-After.
500 Something went wrong on our side. No credits were used.

Every error body has the shape described in Errors, with a stable error.code.

Example

cURL
curl "https://platform.detectif.ai/v1/speakers" \
  -H "Authorization: Bearer $DETECTIF_API_KEY"

Get a speaker

GET /v1/speakers/{speaker_id}

Returns one speaker of your account and how many voice samples it has. An unknown speaker_id returns 404. Requires scope speakers:read.

Full URL: https://platform.detectif.ai/v1/speakers/{speaker_id}. Send your API key as Authorization: Bearer <your API key>.

Request

Headers:

Name Type Required Description
Authorization string yes Bearer <your API key>. Keys are created in the dashboard; see Authentication.

Path parameters:

Name Type Required Description
speaker_id string yes Your identifier for the speaker. (pattern ^[A-Za-z0-9_.:-]{1,64}$)

Response

200: Success.

Field Type Always there Description
speaker_id string yes (pattern ^[A-Za-z0-9_.:-]{1,64}$)
display_name string or null yes
samples integer yes Active enrollment samples for the current speaker model (max 5).
created_at string yes
updated_at string yes
request_id string yes
object string yes (always "speaker")

Example response:

JSON
{
  "request_id": "req_8f14e45fceea167a5a36dedd",
  "object": "speaker",
  "speaker_id": "customer-4711",
  "display_name": "Ada Lovelace",
  "samples": 2,
  "created_at": "2026-10-13T09:30:00Z",
  "updated_at": "2026-10-13T09:41:12Z"
}

Errors

Status Meaning
400 The request is invalid, for example a missing or malformed field.
401 The API key is missing, invalid or revoked.
403 The key lacks the required scope, the email address is not verified, or the account is suspended.
404 Not found. Also returned for resources that belong to another account.
429 Too many requests or too many operations at the same time. Wait for the number of seconds in Retry-After.
500 Something went wrong on our side. No credits were used.

Every error body has the shape described in Errors, with a stable error.code.

Example

cURL
curl "https://platform.detectif.ai/v1/speakers/alice" \
  -H "Authorization: Bearer $DETECTIF_API_KEY"

Delete a speaker

DELETE /v1/speakers/{speaker_id}

Deletes the speaker and all of its voice samples permanently. Later verifications for this speaker_id return 404. Requires scope speakers:delete.

Full URL: https://platform.detectif.ai/v1/speakers/{speaker_id}. Send your API key as Authorization: Bearer <your API key>.

Request

Headers:

Name Type Required Description
Authorization string yes Bearer <your API key>. Keys are created in the dashboard; see Authentication.

Path parameters:

Name Type Required Description
speaker_id string yes Your identifier for the speaker. (pattern ^[A-Za-z0-9_.:-]{1,64}$)

Response

200: The speaker and its voice samples were deleted.

Field Type Always there Description
request_id string yes
object string yes (always "speaker.deleted")
speaker_id string yes
deleted boolean yes (always true)

Example response:

JSON
{
  "request_id": "req_8f14e45fceea167a5a36dedd",
  "object": "speaker.deleted",
  "speaker_id": "customer-4711",
  "deleted": true
}

Errors

Status Meaning
400 The request is invalid, for example a missing or malformed field.
401 The API key is missing, invalid or revoked.
403 The key lacks the required scope, the email address is not verified, or the account is suspended.
404 Not found. Also returned for resources that belong to another account.
429 Too many requests or too many operations at the same time. Wait for the number of seconds in Retry-After.
500 Something went wrong on our side. No credits were used.

Every error body has the shape described in Errors, with a stable error.code.

Example

cURL
curl -X DELETE "https://platform.detectif.ai/v1/speakers/alice" \
  -H "Authorization: Bearer $DETECTIF_API_KEY"

Webhooks

Add an endpoint under Webhooks in the dashboard to receive these events (signing, retries and verification: see Webhooks):

Event When
speaker.enrolled An enrollment finished: from the API, MCP, the dashboard or a stream
speaker.verified A verification finished: from the API, MCP, the dashboard or a stream (with early)
stream.completed A stream ended, with every final result

MCP tools

Connect an AI assistant to the MCP server and ask, for example, "Enroll /path/alice-1.wav as speaker alice", "Is /path/new-call.wav Alice? Also check whether it is AI-generated" or "List my enrolled speakers". The assistant calls the tools for you.

Tool What it does Inputs
enroll_speaker Add one enrollment sample for a speaker (creates the speaker on first use) with Eidos. speaker_id, audio_base64, filename, display_name (optional), idempotency_key (optional)
verify_speaker Compare a recording (3-60 s, at least 2 s of speech) with an enrolled speaker using Eidos. speaker_id, audio_base64, filename, detect_deepfake (optional), idempotency_key (optional)
list_speakers List enrolled speakers in this account, newest first. limit (optional), cursor (optional)
delete_speaker Delete a speaker and its stored voice profile. speaker_id
get_operation Fetch a stored operation: status and, for 30 days, its result. Shared with Aletheia, listed under Account. operation_id