📋 List Custom Glossary

    This API retrieves a paginated list of custom glossary entries for a specific user.


    📋 Basic Information

    • Method: GET
    • Path: https://api.bluente.com/api/20250924/blu_translate/glossary/list
    • Authentication: Required — Authorization: Bearer $BLUENTE_API_KEY

    📝 Request Parameters (Query)

    Query String

    FieldTypeRequiredDescription
    next_tokenstringNoPagination token for next page; omit or empty to fetch the first page
    sizeintNoNumber of entries per page, default 20

    Request Body

    • None

    💡 Example

    curl -X GET "https://api.bluente.com/api/20250924/blu_translate/glossary/list?next_token=0&size=20" \
         -H "Authorization: Bearer $BLUENTE_API_KEY" \
         -H "Accept: application/json"

    or

    fetch("https://api.bluente.com/api/20250924/blu_translate/glossary/list?next_token=0&size=20", {
      method: "GET",
      headers: {
        "Authorization": "Bearer $BLUENTE_API_KEY"
      }
    })

    ✅ Success Response Example

    {
        "message": "success",
        "code": 0,
        "data": {
            "list": [
                {
                    "id": 3,
                    "user_id": "",
                    "organization_id": "",
                    "source_lang": "English",
                    "source_text": "Amount of Investment",
                    "target_lang": "Chinese",
                    "target_text": "投资产量",
                    "namespace": "Bluente Partner",
                    "app_id": 10000,
                    "updated_by": "",
                    "updated_at": "2024-02-16 13:18:25",
                    "created_at": "2024-01-09 10:59:38"
                },
                {
                    "id": 217,
                    "user_id": "",
                    "organization_id": "0cbc6611-f554-0bd0-809a-388dc95a615b",
                    "source_lang": "English",
                    "source_text": "worll",
                    "target_lang": "Tamil",
                    "target_text": "நன்றி",
                    "namespace": "Bluente Partner",
                    "app_id": 10000,
                    "updated_by": "",
                    "updated_at": "2024-06-04 08:25:57",
                    "created_at": "2024-06-04 08:25:57"
                }
            ],
            "next_token": "20"
        }
    }

    📊 Response Fields

    FieldTypeDescription
    messagestringResponse message, usually "success"
    codeintStatus code, 0 means success
    data.listarrayList of glossary entries
    list[].idintGlossary item ID
    list[].user_idstringUser ID who owns the entry
    list[].organization_idstringOrganization ID (may be empty)
    list[].source_langstringSource language of the entry
    list[].source_textstringSource term text
    list[].target_langstringTarget language of the entry
    list[].target_textstringTranslated term text
    list[].namespacestringNamespace (client or partner)
    list[].app_idintApplication ID
    list[].updated_bystringLast updated by (user)
    list[].updated_atstringLast update timestamp
    list[].created_atstringCreation timestamp
    data.next_tokenstringToken for fetching next page; empty means no more entries

    ❌ Error Response Example

    {
        "message": "unauthorized",
        "code": 401
    }

    📌 Notes

    • Use next_token to paginate through large glossaries.
    • The size parameter controls how many entries are returned per request.
    • Entries are scoped by user_id and optionally by namespace.