Create Dictionary Entry

Create a pronunciation dictionary entry in the current workspace. Dictionary entries teach the synthesis pipeline how to pronounce words that it would otherwise handle incorrectly — brand names, acronyms, technical terms, proper nouns, and foreign loanwords. Each entry is scoped to a single BCP-47 locale and is applied during workflow execution when that locale is the synthesis target. Three methods are supported via the `method` field: - `spelled` — provide a phonetic respelling in `pronunciation` (e.g. `"Poh-doh-nohs"`). `pronunciation` is required for this method. - `recorded` — attach a reference audio clip by supplying an `upload_id` from a completed `/uploads` staging upload with category `dictionary`. The audio is copied to permanent storage on create; the upload slot is consumed and cannot be reused for a different entry. - `ipa` — supply an IPA transcription in `ipa`. `pronunciation` is optional as a human-readable gloss alongside the IPA. Returns 409 if a `(word, language)` pair already exists in the workspace. Requires `editor` workspace role and the `dictionary:write` scope.

Authentication

AuthorizationBearer
Clerk JWT token
OR
AuthorizationBearer

Onepin live API key (op_live_...). Test and public keys are reserved in Phase 1.

Headers

X-Workspace-Idstring or nullOptional

Request

This endpoint expects an object.
wordstringRequired1-255 characters
The surface form of the word or phrase as it appears in a script.
methodenumRequired

Pronunciation method: spelled (phonetic respelling), recorded (reference audio clip), or ipa (IPA transcription).

languagestringRequiredformat: "^[a-zA-Z]{2,3}(-[a-zA-Z0-9]{2,4})?$"1-10 characters

BCP-47 locale this entry applies to (e.g. ko-kr). Case-insensitive; stored lowercase.

descriptionstring or nullOptional<=500 characters

Optional human-readable note about the entry (e.g. context, source).

pronunciationstring or nullOptional<=500 characters

Phonetic respelling. Required when method is spelled.

upload_idstring or nullOptionalformat: "uuid"

ID of a completed staging upload (category dictionary). Required when method is recorded; consumed on create.

ipastring or nullOptional<=500 characters

IPA transcription of the word. Supplied by the caller; automatic generation is a planned enhancement.

Response

Successful Response
dataobject
metaobject

Errors

422
Unprocessable Entity Error