Glossary
Manage project glossary terms (from → to replacements) applied during transcription and via
POST /v1/transcriptions/…/glossary/apply. Authenticate with a project API key (glossary:* permissions) or a user session with X-Workspace-Id and X-Project-Id. Workspace API keys cannot access these routes.The Glossary entry object
- entryIdstring
- Stable entry identifier.
- workspaceIdstring
- Owning workspace.
- projectIdstring
- Project this entry belongs to.
- fromstring
- Source phrase (case-insensitive match).
- tostring
- Replacement text.
- sourcestring
- Origin of the entry:
user_editoradmin. - hitCountinteger
- Number of times this rule has been applied.
- createdBystring
- User id that created the entry.
- updatedBystring
- User id that last updated the entry.
- createdByUsernamestring, optional
- Username of the creator, for display.
- updatedByUsernamestring, optional
- Username of the last editor, for display.
- createdAttimestamp
- Creation time.
- updatedAttimestamp
- Last update time.
List glossary entries
GET
/v1/glossaryPaginated list of glossary entries for the active project. Supports filtering and sorting.
Requires permission
glossary:list
Query parameters
- pageinteger, optional
- Page number (default 1).
- limitinteger, optional
- Page size (default 20, max 100).
- fromstring, optional
- Filter by source phrase (case-insensitive substring match).
- tostring, optional
- Filter by replacement text (case-insensitive substring match).
- sourcesstring, optional
- Comma-separated source filter (user_edit, admin).
- sortstring, optional
- Sort field: from (default), to, hitCount, source, updatedAt, createdAt.
- sortDirstring, optional
- asc or desc. Default asc.
Retrieve a glossary entry
GET
/v1/glossary/{entryId}Returns a single glossary entry by its entryId.
Requires permission
glossary:list
Parameters
- entryIdstring
- Glossary entry identifier (gls_…).
Create a glossary entry
POST
/v1/glossaryAdds a new from → to rule. If a learned rule (
source: user_edit) already uses the same term, this replaces it and marks the entry admin. A duplicate of another hand-written rule returns 422.Requires permission
glossary:create
Parameters
- fromstring
- Source phrase. 3–200 characters after trimming, and must differ from to (case-insensitive).
- tostring
- Replacement text. Non-empty, up to 200 characters after trimming.
Update a glossary entry
PATCH
/v1/glossary/{entryId}Updates the from and/or to text.
Requires permission
glossary:update
Parameters
- entryIdstring
- Glossary entry identifier (gls_…).
- fromstring, optional
- New source phrase. Same constraints as create.
- tostring, optional
- New replacement text. Same constraints as create.
Delete a glossary entry
DELETE
/v1/glossary/{entryId}Permanently removes a glossary entry.
Requires permission
glossary:delete
Parameters
- entryIdstring
- Glossary entry identifier (gls_…).