Dictionary
Dictionary
@toothfairyai/sdk@latest…Accessed via client.dictionary.
Methods
| Method | HTTP | Endpoint |
|---|---|---|
get | GET | GET /dictionary/get/{id} |
list | GET | GET /dictionary/list |
get
async get(id: string)
Endpoint: GET /dictionary/get/{id} · API service
Response fields
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier for the dictionary entry |
owner | string | User ID who owns the dictionary entry |
sourceLanguage | string | Source language code |
targetLanguage | string | Target language code |
sourceText | string | Source text to translate |
targetText | string | Translated target text |
workspaceID | string | Unique workspace identifier (UUID v4) |
pos | string | Part of speech classification |
description | string | Dictionary entry description |
createdBy | string | User ID who created the entry |
updatedBy | string | User ID who last updated the entry |
createdAt | string | Timestamp when this resource was created |
updatedAt | string | Timestamp when this resource was last updated |
Example
const result = await client.dictionary.get('agent-id');
list
async list(limit?: number)
Endpoint: GET /dictionary/list · API service
Example
const result = await client.dictionary.list();