Skip to main content

Portfolio Endpoint Reference

Reference for 4 Portfolio endpoints of the Talonic API: parameters, request body, curl and Node.js examples, response and errors.

The Portfolio app (portfolio): one KPI table per portfolio company (an account) from its board decks, reports and models, every number traced to the document page it came from, and every disagreement between documents flagged. Tables are filtered to the documents the person behind the key may see. Routes answer 404 until the app is added to the workspace.

Every request needs an API key in the Authorization: Bearer header. Examples read the key from the TALONIC_API_KEY environment variable.

GET/v1/portfolio

Required scope: read

curl

curl -X GET 'https://api.talonic.com/v1/portfolio' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/portfolio", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — The companies.

{
  "companies": [
    {
      "account_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "name": "string",
      "documents": 1,
      "documents_read": 1,
      "conflicts": 1
    }
  ],
  "refreshing": true
}
  • 401 — Missing or invalid API key.
  • 403 — The API key does not have the required scope.
  • 404 — The requested resource was not found.
  • 429 — Daily rate limit exceeded.
GET/v1/portfolio/conflicts

Required scope: read

curl

curl -X GET 'https://api.talonic.com/v1/portfolio/conflicts' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/portfolio/conflicts", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — The findings.

{
  "conflicts": [
    {
      "kind": "self",
      "kpi": "string",
      "label": "string",
      "document": {
        "document_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "filename": "string",
        "document_date": "2026-01-15"
      },
      "periods": [
        {}
      ],
      "gap": 1.5,
      "why": "string",
      "verdict": "real",
      "reason": "string",
      "account_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "company": "string"
    }
  ]
}
  • 401 — Missing or invalid API key.
  • 403 — The API key does not have the required scope.
  • 404 — The requested resource was not found.
  • 429 — Daily rate limit exceeded.
GET/v1/portfolio/companies/{accountId}

Required scope: read

Path parameters

accountId*string (uuid)The company (account) id.

curl

curl -X GET 'https://api.talonic.com/v1/portfolio/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/portfolio/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — The company's table.

{
  "account_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "name": "string",
  "documents": 1,
  "documents_read": 1,
  "failed_reads": [
    {
      "document_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "filename": "string",
      "error": "string"
    }
  ],
  "table": {
    "periods": [
      "string"
    ],
    "rows": [
      {
        "kpi": "string",
        "label": "string",
        "cells": {}
      }
    ],
    "conflicts": [
      {
        "kind": "self",
        "kpi": "string",
        "label": "string",
        "document": {},
        "periods": [],
        "gap": 1.5,
        "why": "string",
        "verdict": "real",
        "reason": "string"
      }
    ],
    "dismissed": [
      {
        "kind": "self",
        "kpi": "string",
        "label": "string",
        "document": {},
        "periods": [],
        "gap": 1.5,
        "why": "string",
        "verdict": "real",
        "reason": "string"
      }
    ]
  }
}
  • 400 — The request is invalid.
  • 401 — Missing or invalid API key.
  • 403 — The API key does not have the required scope.
  • 404 — The requested resource was not found.
  • 429 — Daily rate limit exceeded.
POST/v1/portfolio/refresh

Required scope: write

curl

curl -X POST 'https://api.talonic.com/v1/portfolio/refresh' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/portfolio/refresh", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 201 — The refresh is queued.

{
  "queued": true
}
  • 401 — Missing or invalid API key.
  • 403 — The API key does not have the required scope.
  • 404 — The requested resource was not found.
  • 409 — The app is switched off in this workspace
  • 429 — Daily rate limit exceeded.
  • 503 — Refreshes are not available on this deployment.