Public Portfolio
curl --request GET \
--url https://api.truthlocks.com/v1/consumer/portfolio/{username}const options = {method: 'GET'};
fetch('https://api.truthlocks.com/v1/consumer/portfolio/{username}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/consumer/portfolio/{username}"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.truthlocks.com/v1/consumer/portfolio/{username}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"username": "<string>",
"display_name": "<string>",
"items": [
{}
]
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}Consumer (B2C)
Public Portfolio
Returns the public portfolio for a consumer by username. No authentication required.
GET
/
v1
/
consumer
/
portfolio
/
{username}
Public Portfolio
curl --request GET \
--url https://api.truthlocks.com/v1/consumer/portfolio/{username}const options = {method: 'GET'};
fetch('https://api.truthlocks.com/v1/consumer/portfolio/{username}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/consumer/portfolio/{username}"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.truthlocks.com/v1/consumer/portfolio/{username}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"username": "<string>",
"display_name": "<string>",
"items": [
{}
]
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}Retrieve a consumer’s public portfolio by username. Returns all protections with visibility set to ‘public’. No authentication required — this is a public endpoint for showcasing protected content.

