akb_publish
Create a public share URL for documents, files, or table queries without authentication. Returns a shareable link that can be optionally password-protected or set to expire.
Instructions
Create a public, no-auth share URL for a document, file, or table query. Document/file: pass the resource uri. Table query: pass query_sql plus vault (and query_vault_names if the query touches more than one). Returns the canonical publication dict — slug is the only identifier you need; share_url is always an absolute URL ready to paste.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uri | No | Resource URI to publish — required when resource_type is document or file. Omit for table_query. | |
| resource_type | No | Kind of resource. document/file → pass `uri`. table_query → pass `query_sql` + `vault`. | document |
| vault | No | Vault name. Required only for resource_type=table_query (doc/file vault is inferred from the URI). | |
| query_sql | No | SELECT/WITH SQL with :param placeholders. resource_type=table_query only. | |
| query_vault_names | No | Vaults the query reads from. Defaults to [vault]. resource_type=table_query only. | |
| query_params | No | Parameter declarations: {name: {type, default, required}}. resource_type=table_query only. | |
| password | No | Require this password to view the share. | |
| max_views | No | Auto-expire after N views. | |
| expires_in | No | Expiration window: '1h', '7d', '30d', or 'never' (default). | |
| title | No | Override the display title (defaults to the resource's own title). | |
| section_filter | No | Filter to a specific heading section. resource_type=document only. | |
| allow_embed | No | Allow the share to be embedded via iframe/oEmbed. |