API Developers Guide

Strings > List Phrases (Search)

GET: /tm/context/<context_uuid>/phrases
Request Params
ParametersDescription

secret_key

public_key

Response Params
ParametersDescription

Array

Array of relevant phrases:

Parameter Description
source_text text given by user to be saved in a specific context
uuid A unique UUID for this phrase, generated by TM
context The context that the phrase related to.
target Array of target texts per target language. see example below
remarks remarks given by user in phrase creation
flags null (not in use)
source_language slug name of phrase's source language. See Language Codes
phrase_key phrase key generated by TM or may be given by user

Request Example

curl --request GET "https://www.onehourtranslation.com/api/2/tm/context/c-3d2f0d91bbdd/phrases/english?secret_key=<secret_key>&public_key=<public_key>"

Response Example

{
 "status":
  {
   "code":0,
   "msg":"ok"
  },
 "results":
   [
    {
     "source_text":"test phrase",
     "uuid":"p-b66244a0d38f",
     "context":"c-3d2f0d91bbdd",
     "target":
      {
       "spanish":["frase de prueba"],
       "dutch":["test-zin"]
      },
     "remarks":"",
     "flags":null,
     "source_language":"english",
     "invalid":[],
     "phrase_key":"ab8f37d89b1154ba18c78a7e4b8eef2acdfec1eb"
    },
    {
     "source_text":"test phrase 2",
     "uuid":"p-f24012731caf",
     "context":"c-3d2f0d91bbdd",
     "target":[],
     "remarks":"",
     "flags":null,
     "source_language":"english",
     "invalid":[],
     "phrase_key":"6fd3c18461cf0a7d4c02cc0d2faf5b567fbe3075"
    }
   ],
 "errors":[]
}