ATTIM
v1.0.0Put what you make with AI online at a link anyone can open, and change it later from any chat.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
publish_site Publish site
Publish files as a new site at <slug>.attim.link. Signed in, the site is permanent in the account; without an account it is temporary (ttlSeconds sets how long). To keep a temporary site, ask for the user's email and call claim_site.
| Parameter | Type | Description |
|---|---|---|
files * | array | |
passwordProtection | object | |
slug | string | |
ttlSeconds | integer | |
workspaceId | integer |
copy_site Copy site
Copy a live temporary site to a new link. Signed in, the copy is permanent in the account; without an account it is temporary, with its own claimToken.
| Parameter | Type | Description |
|---|---|---|
sourceSlug * | string | |
slug | string | |
ttlSeconds | integer | |
workspaceId | integer |
claim_site Claim site
Keep a temporary site so it no longer expires. Signed in, it moves into the account now. Otherwise pass the user's email: ATTIM emails them a link that keeps it and creates their free account. Without an email, the user is asked to connect ATTIM here.
| Parameter | Type | Description |
|---|---|---|
claimToken * | string | |
slug * | string | |
email | string | The user's own email, when no account is connected. |
workspaceId | integer |
update_site Update site
Replace every file of a site with a new version at the same link. A temporary site needs its claimToken. To change part of a site, use read_site and edit_site.
| Parameter | Type | Description |
|---|---|---|
files * | array | |
slug * | string | |
claimToken | string |
read_site Read site
Open a site published before, in this chat or another: its live versionId, files, and the text of its HTML, CSS and JS, in pages. list_sites lists the account's sites; a temporary site needs its claimToken. Call this before edit_site.
| Parameter | Type | Description |
|---|---|---|
slug * | string | Slug or link. |
claimToken | string | |
maxChars | integer | |
offset | integer | Where to go on in path, from a previous read. |
path | string | Read one file, such as index.html. |
search | string | Find this text instead of reading; returns each match with its offset. |
edit_site Edit site
Change a live site at the same link with targeted edits. Call read_site first and pass its versionId as baseVersionId. Put every requested change in this one call: only the last 10 versions are kept. replacements swap an exact oldText from read_site (found once unless replaceAll) for newText; writes add or overwrite whole files; deletes remove files. All apply together or not at all, as a new version named versionName. Keep {{ vars.* }} and {{ attim.links.* }} placeholders. A temporary site needs its claimToken.
| Parameter | Type | Description |
|---|---|---|
baseVersionId * | string | |
slug * | string | Slug or link. |
claimToken | string | |
deletes | array | |
replacements | array | |
versionName | string | Short, like "Added Q3 numbers". |
writes | array |
delete_site Delete site
Delete a site. A temporary site needs its claimToken.
| Parameter | Type | Description |
|---|---|---|
slug * | string | |
claimToken | string |
rename_site Rename site
Change a site's slug, on Hobby and Team plans. The old link redirects for a while.
| Parameter | Type | Description |
|---|---|---|
newSlug * | string | |
slug * | string |
update_site_details Update site details
Change the title and description ATTIM shows for a site in the dashboard and on profile project cards (not the page's own HTML), or whether search engines may list it. Omitted fields stay; null clears.
| Parameter | Type | Description |
|---|---|---|
slug * | string | |
description | ||
searchIndexing | boolean | |
title |
list_sites List sites
List the account's sites.
| Parameter | Type | Description |
|---|---|---|
workspaceId | integer |
list_versions List versions
List a site's last 10 versions, with their names and which one is live.
| Parameter | Type | Description |
|---|---|---|
slug * | string |
rename_version Rename version
Name a version, or pass null to clear its name.
| Parameter | Type | Description |
|---|---|---|
name * | ||
slug * | string | |
versionId * | string |
preview_version Preview version
Make a private one-use link to an earlier version. Open it within 60 seconds; it then lasts 15 minutes.
| Parameter | Type | Description |
|---|---|---|
slug * | string | |
versionId * | string |
download_version Download version
Get a resource link to a version's files as a ZIP; read it with resources/read.
| Parameter | Type | Description |
|---|---|---|
slug * | string | |
versionId * | string |
restore_version Restore version
Make an earlier version live again, as a new version. Pass the live versionId from list_versions as expectedCurrentVersionId.
| Parameter | Type | Description |
|---|---|---|
expectedCurrentVersionId * | string | |
slug * | string | |
versionId * | string |
set_variables Set variables
Set a site's public variables, shown where the site uses {{ vars.NAME }}. Anyone can read them.
| Parameter | Type | Description |
|---|---|---|
slug * | string | |
variables * |
set_password_protection Set password protection
Turn a site's password on or off, or change it. A temporary site can only change or remove a password it already has, with its claimToken.
| Parameter | Type | Description |
|---|---|---|
enabled * | boolean | |
slug * | string | |
accessDurationSeconds | integer | |
claimToken | string | |
password | string |
save_profile Save profile
Set up or change the user's ATTIM profile: one public link-in-bio page at <handle>.attim.link with their name, bio, avatar, social icons, up to 2 pinned links, other links, and their own sites under Projects. Call get_public_profile first. To set one up, ask for their name, a short bio, an optional https avatar URL, the links, and the handle they want (free on every plan). When changing, omitted fields stay; socials, theme, links, and projects replace what is stored, so pass link ids to keep click history. A new handle changes the address (Free: once a week; the old one redirects for 30 days).
| Parameter | Type | Description |
|---|---|---|
avatarUrl | https image URL; null removes it. | |
bio | string | |
expectedVersion | integer | version from get_public_profile. |
handle | string | Address: <handle>.attim.link. |
links | array | |
locale | string | |
name | string | Display name. Needed to set one up. |
projects | array | The user's own sites to show, in order. |
searchIndexing | boolean | Set up only: listed by search engines (default true). |
socials | array | Icons under the bio; email takes an email address. |
theme | object | A preset plus optional overrides. Colors are #rrggbb. |
get_public_profile Get public profile
Get the user's ATTIM profile: address, name, bio, socials, theme, links with their ids, projects (and which ones visitors cannot see), and version. profile is null when they have none.
list_links List links
List the links on a profile or link page with their ids, pinned first, and the position visitors see.
| Parameter | Type | Description |
|---|---|---|
slug * | string |
set_links Set links
Replace every link on a profile or link page; for a few changes use edit_links. Pass ids from list_links to keep click history; omitted links are deleted with their click counts. Order is section order; at most 2 pinned, 50 in all. Same-group links show under the group name; null removes it. trackingEnabled:false links are not counted.
| Parameter | Type | Description |
|---|---|---|
links * | array | |
slug * | string | |
expectedVersion | integer |
edit_links Edit links
Add, update, move, or remove single links on a profile or link page; others stay as they are. Changes apply in order, all or none. id is from list_links (not for add); position is 0-based among pinned links or within the group. Removing a link deletes its click counts; disabled:true hides it and keeps them.
| Parameter | Type | Description |
|---|---|---|
changes * | array | |
slug * | string | |
expectedVersion | integer |
get_link_stats Get link stats
Views and visitors (as in Insights), clicks per day, and each link's and project's clicks and click rate (clicks ÷ views) on a profile or link page. Free plans see 7 or 30 days.
| Parameter | Type | Description |
|---|---|---|
slug * | string | |
days | integer |
get_insights Get insights
How the account's sites are doing: page views and visitors from people, AI assistants and AI crawlers (by name) and other bots counted apart, and top sites, referrers, and countries. Hobby and Team plans.
| Parameter | Type | Description |
|---|---|---|
days | integer | |
slug | string | One site: its slug or link. |
workspaceId | integer |
get_profile Get profile
Get the connected account's id and email.