List project templates
curl --request GET \
--url https://public-api.hyperlocalise.com/v1/project-templates \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://public-api.hyperlocalise.com/v1/project-templates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://public-api.hyperlocalise.com/v1/project-templates"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://public-api.hyperlocalise.com/v1/project-templates"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"projectTemplates": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"sourceLocale": "<string>",
"targetLocales": [
"<string>"
],
"projectDescription": "<string>",
"translationContext": "<string>",
"teamId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"automaticallyGroupIdenticalStrings": true,
"sourceTextEditable": true,
"approvedTranslationsOnSourceChange": "stay_approved",
"memoryIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"glossaryIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
]
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}Project templates
List project templates
Requires project-templates:read, which every key with files:read or projects:read has.
GET
https://public-api.hyperlocalise.com
/
v1
/
project-templates
List project templates
curl --request GET \
--url https://public-api.hyperlocalise.com/v1/project-templates \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://public-api.hyperlocalise.com/v1/project-templates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://public-api.hyperlocalise.com/v1/project-templates"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://public-api.hyperlocalise.com/v1/project-templates"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"projectTemplates": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"sourceLocale": "<string>",
"targetLocales": [
"<string>"
],
"projectDescription": "<string>",
"translationContext": "<string>",
"teamId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"automaticallyGroupIdenticalStrings": true,
"sourceTextEditable": true,
"approvedTranslationsOnSourceChange": "stay_approved",
"memoryIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"glossaryIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
]
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}Was this page helpful?

