Skip to main content
The Artifacts API lets your systems produce and distribute deliverables in Tess without going through chat. A BI pipeline can generate the weekly leadership report, a CRM can publish a proposal for the sales team, and a monthly job can refresh the KPI dashboard, always at the same link and with version history. The API follows the same rules as the app: ownership, plan and role permissions, and the sharing restrictions set by the admin. Nothing the API does bypasses workspace governance. For an overview of the feature, see Artifacts.

Before you start

  • API key: send it as a Bearer token in the Authorization header. See Authentication.
  • Workspace: the x-workspace-id header is required on every call. Without it, the response is 403.
  • Permissions: actions depend on the feature being enabled and on the plan and role of the user who owns the key.

Concepts

  • Owner: the person who creates the Artifact. Only the owner changes, publishes and shares it. Others get 404 (they cannot tell the Artifact exists) or 403 ARTIFACT_EDIT_FORBIDDEN (they can read it but not change it).
  • Latest version (head_version): every edit or restore creates a new version. Edits always start from the latest one.
  • Shared version (shared_version): the version people with access see. It changes when you publish another version, on the first share (which publishes the latest version), when the shared version is deleted (it falls back to the newest earlier one), and when you unpublish (it becomes null). Edits never change it, so you can review before releasing.
  • Link (viewer_url): the Artifact’s address in Tess. It stays the same across versions and requires a Tess login, including for public access.

Integration flow

1

Pick a template (optional)

List Artifact Templates returns the global templates plus the workspace’s own; when the slug is the same, the workspace one wins. Without a choice, creation uses default, with the Tess visual identity.
2

Create the Artifact

Create Artifact takes the title and the body HTML, with optional CSS and JavaScript. The response returns universal_id, version 1 and viewer_url. The Artifact starts private.
3

Share with the right audience

Share Artifact grants access to people, teams, the workspace or anyone signed in to Tess. The first grant publishes the current version.
4

Update without changing the link

On the next cycle, use Edit Artifact with base_version to apply the changes. The new version does not reach people with access (only the owner and managers with Artifacts Manager see the latest version) until you call Publish Artifact Version.
5

Control the history

List Artifact Versions shows the latest and the shared version. To roll back, use Restore Artifact Version and publish the restored version.
For recurring material, store the universal_id and edit the same Artifact every cycle. The link sent to leadership never changes, and the history shows how the numbers evolved.

Sharing and governance

  • Granting access follows the user’s restrictions, set by the admin on the Members page. By default, organization, workspace and teams are allowed and public access is not.
  • People can only be added if they are active members of the workspace or the organization.
  • A share call is all or nothing: if one target is rejected, nothing is written and the response lists rejected_targets.
  • Unpublish Artifact removes every grant at once. When a manager unpublishes, the owner cannot publish again.
  • Permissions are checked on every view: anyone who leaves the workspace or loses a sharing level loses access immediately.
  • On the Enterprise plan, changes made through the API (create, edit, publish, share, delete) also appear in Audit Events, with entity_type set to artifact.

Errors

Artifact-specific errors return a stable code in error_code and an explanation in message. Validation, workspace, rate-limit, and content-deletion errors return only message (validation also includes errors). Example:
Each endpoint page lists its codes. For general API statuses, see Errors.

Limits

Content is static: the page script has no network access. To update numbers, edit the Artifact with the new data and publish the version.

Endpoints

List Artifacts

Your Artifacts in the workspace, paginated.

Create Artifact

Version 1 from a template.

Get Artifact

Latest version with its HTML.

Edit Artifact

Patch operations that create a new version.

Publish version

Sets the version people see.

Share Artifact

Grants and revokes access.