List a project's version branches
curl --request GET \
--url https://public-api.hyperlocalise.com/v1/projects/{projectId}/branches \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://public-api.hyperlocalise.com/v1/projects/{projectId}/branches', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://public-api.hyperlocalise.com/v1/projects/{projectId}/branches"
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/projects/{projectId}/branches"
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))
}{
"branches": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"projectId": "<string>",
"name": "<string>",
"title": "<string>",
"baseBranchId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"isDefault": true,
"isProtected": true,
"status": "active",
"lastSyncedAt": "2023-11-07T05:31:56Z",
"createdByUserId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"mergedAt": "2023-11-07T05:31:56Z",
"mergedIntoBranchId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"fileCount": 123,
"keyCount": 123
}
]
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}Projects
List a project's version branches
Requires projects:read. Native projects only. Returns every version branch, default first, including merged ones, with the number of files and strings on each.
GET
https://public-api.hyperlocalise.com
/
v1
/
projects
/
{projectId}
/
branches
List a project's version branches
curl --request GET \
--url https://public-api.hyperlocalise.com/v1/projects/{projectId}/branches \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://public-api.hyperlocalise.com/v1/projects/{projectId}/branches', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://public-api.hyperlocalise.com/v1/projects/{projectId}/branches"
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/projects/{projectId}/branches"
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))
}{
"branches": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"projectId": "<string>",
"name": "<string>",
"title": "<string>",
"baseBranchId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"isDefault": true,
"isProtected": true,
"status": "active",
"lastSyncedAt": "2023-11-07T05:31:56Z",
"createdByUserId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"mergedAt": "2023-11-07T05:31:56Z",
"mergedIntoBranchId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"fileCount": 123,
"keyCount": 123
}
]
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}Was this page helpful?

