DoubleX IA OSDocs

API reference › Resources

Creations

List and download the files agents created on their computers.

GET/api/artifacts#

Lists the files of the agents you can see, plus the ones shared with you, most recent first.

QueryDescription
agentIdOnly one agent's files.
curl "https://doublex.ai/api/artifacts?agentId=agt_8f3a2b1c9d0e" -H "Authorization: Bearer $DOUBLEX_API_KEY"
JSON
{
  "artifacts": [
    {
      "agentId": "agt_8f3a2b1c9d0e",
      "agentName": "CRM Analyst",
      "path": "relatorios/pedidos-outubro.md",
      "kind": "documento",
      "size": 4821,
      "modifiedAt": "2026-10-27T09:12:00.000Z",
      "share": { "scope": "agent" },
      "canEdit": true
    }
  ]
}

kind can be documento, planilha, apresentacao, dashboard, codigo or outro.

share.scope says who can see the file: agent (internal: whoever sees the agent), team (with teamId), organization or public (with url, the public link path). canEdit tells whether you can edit the agent, and therefore share and delete the file.

GET/api/artifacts/file#

Returns a file's content.

QueryDescription
agentIdRequired.
pathRequired. The path shown in the list.
downloadIf present, the response comes as an attachment (Content-Disposition: attachment).
curl -G https://doublex.ai/api/artifacts/file \
  --data-urlencode "agentId=agt_8f3a2b1c9d0e" \
  --data-urlencode "path=relatorios/pedidos-outubro.md" \
  -H "Authorization: Bearer $DOUBLEX_API_KEY" -o pedidos-outubro.md

The Content-Type follows the file extension (text/html, text/csv, application/json, text/markdown, image/svg+xml, .xlsx spreadsheets, application/pdf; everything else is sent as text). HTML pages are served in an isolated sandbox, with no network access. Text files can be up to 2 MB; .xlsx spreadsheets and PDFs, up to 10 MB.

GET/api/pdf#

Creates an A4 PDF from a .md document, an .html page or a .csv table in the agent's workspace, or from a live creation with its current data. It requires the same permission as viewing the file or the creation; each new PDF uses credits like the cloud browser, and the same content comes from the cache at no cost.

QueryDescription
agentId + pathA file from the list.
liveOr the id of a live creation (live_…).
curl
curl -G https://doublex.ai/api/pdf \
  --data-urlencode "agentId=agt_8f3a2b1c9d0e" \
  --data-urlencode "path=relatorios/pedidos-outubro.md" \
  -H "Authorization: Bearer $DOUBLEX_API_KEY" -o pedidos-outubro.pdf

Live creations with company data#

A live dashboard can read the company's own records, with no connector: deals and funnels (Customers), conversations (Support), projects, tasks, hours and indicators (Projects). Ask an agent or the Assistant ("build a dashboard of the funnel by stage this month") and it uses these sources straight from the platform, always up to date.

LayerDatasetWhat it brings
clientesnegociosOne deal per row: value and currency, funnel, stage, status (open, won, lost), owner, company, contact, next action and dates.
clientesetapasThe funnel: count and value per stage and per currency, empty stages included.
atendimentoconversasOne conversation per row: inbox, state, channel, assignee, time to first response and to resolution, who resolved it (AI or a person) and rating.
projetostarefasOne task per row: project, column, status, assignees, due date, overdue, estimate and logged hours.
projetosprojetosThe portfolio: progress, health, budget and budget use.
projetoshorasTime entries, or grouped by project, person, task, client, type, day, week or month.
projetosindicadoresClient indicators per period, with target and signal.

Common filters: periodo (hoje, semana, mes, mes_anterior, trimestre, ano, 30d, 12m…, in the viewer's time zone), de and ate (YYYY-MM-DD), the space (funil, caixa or projeto, by id or name), responsavel (eu = whoever is viewing), status and limite (up to 2,000 rows). A filter can follow a page filter, so people change the period or the funnel on the page itself.

Who sees what. Each source runs with the access of whoever opens the dashboard, exactly as on screen: only the layers, funnels, inboxes and projects that person can access and, where the company set "only mine", only their own records. Sale values and costs appear only for people the company allows to see them. So the same dashboard may show different numbers to different people. Someone outside the company (a file's public link, a visitor, a guest) doesn't get this data: the source comes back as not allowed (declined). The exception is the dashboard's Share (below): whoever shares it opens that dashboard's numbers, which run with that person's access.

Currency and language. Each value comes with its own currency (a deal in euros stays in euros) and the dashboard never adds different currencies together. When a row has no currency, the organization's currency applies (Settings › Organization); without one, the number shows with no symbol. Dates and numbers follow the viewer's language.

POST/api/live-artifacts/{id}/sources/{sourceId}#

Runs a source of a live creation with your access and returns its rows, as the dashboard does when it opens. Works for company-data sources and connector sources. You need to be able to see the creation.

FieldDescription
paramsValues for the page filters (optional).
refreshtrue skips the 60-second cache.
curl
curl -X POST https://doublex.ai/api/live-artifacts/live_3f9a1c2b7d4e/sources/funnel \
  -H "Authorization: Bearer $DOUBLEX_API_KEY" -H "Content-Type: application/json" \
  -d '{"params":{"periodo":"mes"}}'
JSON
{
  "status": "ok",
  "columns": ["funnel_id", "funnel", "stage_id", "stage", "stage_kind", "stage_position", "currency", "deals", "value"],
  "rows": [
    { "funnel_id": "spc_2b7d4e3f9a1c", "funnel": "Sales", "stage_id": "col_9a1c2b7d4e3f", "stage": "Proposal", "stage_kind": "open", "stage_position": 3, "currency": "USD", "deals": 4, "value": 18500 }
  ],
  "at": "2026-11-30T14:02:11.000Z",
  "cached": false
}

status is ok, declined (you can't access this data; message says why), connect or consent (connector sources) or error. Amounts come in currency units (not cents) and dates in ISO 8601.

PUT/api/live-artifacts/{id}/share#

Turns on, changes or turns off a live dashboard's link for people outside the company, view only and without a DoubleX account. It's the dashboard's Share button. Requires permission to edit the dashboard. GET on the same address returns the current link.

FieldDescription
accessRequired. off (nobody outside), emails (invited e-mails only) or link (anyone with the link).
emailsRequired with emails. The full list, up to 50 e-mails; anyone removed loses access right away.
notifytrue e-mails an invite to the people just added (the invite link is valid for 14 days and works once).
regeneratetrue changes the link: the old one stops working and everyone needs the new one. With emails, the invited people get the new one.
curl
curl -X PUT https://doublex.ai/api/live-artifacts/live_3f9a1c2b7d4e/share \
  -H "Authorization: Bearer $DOUBLEX_API_KEY" -H "Content-Type: application/json" \
  -d '{"access":"emails","emails":["[email protected]"],"notify":true}'
JSON
{
  "share": {
    "access": "emails",
    "emails": ["[email protected]"],
    "url": "/shared/dashboard/G1jPTVkwY6bU34R-1uFap8qQcZeVOZoVzt4ISvIQtCE",
    "by": { "id": "usr_07e74aa3e9ae", "name": "Ana Smith" },
    "at": "2026-12-02T15:10:00.000Z",
    "updatedAt": "2026-12-02T15:10:00.000Z"
  },
  "invites": { "sent": ["[email protected]"], "failed": [] }
}

With emails, whoever opens the link types their e-mail and gets an access link valid for 30 minutes; after that they stay signed in for 30 days in that browser. The page never says whether an e-mail is on the list.

What people outside see: the numbers run with the access of whoever turned the link on (by), including connections and company data, and refresh every time it opens. Only the sources saved in the dashboard run, and only filters with a rule on the source (a list of values or a format) can change from the page; the others stay as saved. Nobody outside edits, uses the AI, writes to the dashboard's database or sees where the data comes from. A new version of the dashboard keeps the link; the link stops working when it's turned off or changed, when the dashboard is deleted, or when the person who turned it on leaves the company or loses access to the dashboard. Sites are published with the Publish button, not here.

DELETE/api/artifacts/file#

Deletes a file from the agent's computer. Takes agentId and path in the query and requires edit permission on the agent.

Response: { "ok": true }. Deleting the file also turns off its public link.

PUT/api/artifacts/share#

Changes who can see a file. Requires edit permission on the agent.

FieldDescription
agentIdRequired.
pathRequired. The path shown in the list.
scopeRequired. agent (internal), team, organization or public.
teamIdRequired with team. You must be a member of the team.
curl
curl -X PUT https://doublex.ai/api/artifacts/share \
  -H "Authorization: Bearer $DOUBLEX_API_KEY" -H "Content-Type: application/json" \
  -d '{"agentId":"agt_8f3a2b1c9d0e","path":"dashboards/funil.html","scope":"public"}'
JSON
{ "share": { "scope": "public", "url": "/shared/Q39iOloCAPMHVs4giIb69TxY" } }

Team and organization open only the file, not the agent. With public, anyone with the link sees the file without signing in, always the latest version; the page and the raw content (/api/public/artifacts/<token>, with ?download to download) are not indexed by search engines. Switching from public to another scope turns the link off; publishing again creates a new link.