Skip to main content
GET
/
v2
/
memories
/
query
Query a Memory
curl --request GET \
  --url https://api.lilt.com/v2/memories/query \
  --header 'Authorization: Basic <encoded-value>'
[
  {
    "source": "The red bus.",
    "target": "Le bus rouge.",
    "score": 100,
    "metadata": {}
  }
]

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Query Parameters

id
integer
required

A unique Memory identifier.

query
string
required

A source query.

n
integer
default:10

Maximum number of results to return.

Response

A list of TranslationMemoryEntry objects.

source
string

The source string.

Example:

"The red bus."

target
string

The target string. Tags will be automatically placed according to the query string.

Example:

"Le bus rouge."

score
integer

The fuzzy match score.

Example:

100

metadata
object

Attributes describing the translation memory entry.