Retrieve a portfolio
curl --request GET \
--url https://api.noonum.ai/v1/portfolios/{portfolioId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.noonum.ai/v1/portfolios/{portfolioId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.noonum.ai/v1/portfolios/{portfolioId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.noonum.ai/v1/portfolios/{portfolioId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user_id": "<string>",
"name": "<string>",
"public": true,
"created_at": "Sat, 05 Apr 2025 17:43:37 GMT",
"updated_at": "Mon, 07 Apr 2025 18:39:41 GMT",
"holdings": [
{
"weight": 0.5,
"created_at": "Sat, 05 Apr 2025 17:43:37 GMT",
"updated_at": "Mon, 07 Apr 2025 18:39:41 GMT",
"symbol": "<string>",
"exchange": "<string>",
"market": "<string>",
"name": "<string>",
"raw_payload": {},
"security_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"org_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"market_cap": 123,
"sector": "<string>",
"industry": "<string>"
}
],
"tags": [
"<string>"
],
"source": "<string>",
"metadata": {}
}{
"error": "<string>"
}{
"error": "<string>"
}Portfolios
Retrieve a portfolio
Returns a portfolio when it is public or owned by the authenticated user. Authentication is required even for public portfolios. For portfolios the caller does not own, the user_id field is null.
GET
/
portfolios
/
{portfolioId}
Retrieve a portfolio
curl --request GET \
--url https://api.noonum.ai/v1/portfolios/{portfolioId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.noonum.ai/v1/portfolios/{portfolioId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.noonum.ai/v1/portfolios/{portfolioId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.noonum.ai/v1/portfolios/{portfolioId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user_id": "<string>",
"name": "<string>",
"public": true,
"created_at": "Sat, 05 Apr 2025 17:43:37 GMT",
"updated_at": "Mon, 07 Apr 2025 18:39:41 GMT",
"holdings": [
{
"weight": 0.5,
"created_at": "Sat, 05 Apr 2025 17:43:37 GMT",
"updated_at": "Mon, 07 Apr 2025 18:39:41 GMT",
"symbol": "<string>",
"exchange": "<string>",
"market": "<string>",
"name": "<string>",
"raw_payload": {},
"security_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"org_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"market_cap": 123,
"sector": "<string>",
"industry": "<string>"
}
],
"tags": [
"<string>"
],
"source": "<string>",
"metadata": {}
}{
"error": "<string>"
}{
"error": "<string>"
}Authorizations
Enter 'Bearer' followed by a space and then your JWT or API Key.
Example: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
or Bearer YOUR_API_KEY_HERE
Path Parameters
UUID of the portfolio
Response
The portfolio and its holdings.
Owner identifier, null when the caller is not the owner.
Timestamp of when the portfolio was created, as an RFC 7231 HTTP date.
Example:
"Sat, 05 Apr 2025 17:43:37 GMT"
Timestamp of when the portfolio was last updated, as an RFC 7231 HTTP date.
Example:
"Mon, 07 Apr 2025 18:39:41 GMT"
Show child attributes
Show child attributes
Was this page helpful?