View on GitHub

ModernMT Enterprise Edition

Neural Adaptive Machine Translation for professional translators

← Back to Home

API Get Memories

Quick example


curl -H "MMT-ApiKey:<my_api_key>" https://api.modernmt.eu/memories | python -mjson.tool

{
    "status": 200,
    "data": [
        {
            "id": 5,
            "key": "mk_f4932hg205vh7h20h05g72",
            "name": "BeautifulMemory",
            "description": "My most precious memories",
            "externalId": null,
            "creationDate": "2017-10-13T13:32:34+00:00"
        },
        {
            "id": 9,
            "key": "mk_890qjf8hf0qhf04hf7403f",
            "name": "EvenMoreBeautifulMemory",
            "description": "My even more precious memories",
            "externalId": null,
            "creationDate": "2017-11-13T13:33:01+00:00"
        }
    ]
}

Description

This method retrieves all the memories associated to the owner of the MMT-ApiKey header used in the HTTP Request.

If the MMT-ApiKey header is missing or invalid, this API returns an HTTP ERROR 401:

{
    "status":401,
    "error": {
        "type":"AuthException",
        "message":"Missing or invalid authentication header"
    }
}

Resource URL

https://api.modernmt.eu/memories

Request Fields

None.

Response Fields

This API returns an array containing multiple Memory objects. Each Memory object contains the following fields:

id The ModernMT Memory id for this Memory.

Example: 5
key The ServiceApi Memory key for this Memory.

Example: mk_f4932hg205vh7h20h05g72
externalId Private parameter for internal use only
name The name with which this user was linked to the memory.

Example: BeautifulMemory
description The description with which this user was linked to the memory.

Example: My most precious memories
creationDate A timestamp marking the instant that the Memory was created.
It refers to the creation of the actual Memory, and not to the moment when the User connected to it.

Example: 2017-10-13T13:32:34+00:00

← Back to Home