# Hoko Hoko is a link attribution platform for creating branded short links, tracking clicks, and connecting leads and sales to the campaigns that produced them. ## Primary Machine-Readable Resources - Full LLM context: https://hoko.to/llms-full.txt - OpenAPI: https://api.hoko.to/openapi.json - MCP endpoint: https://mcp.hoko.to/ - API LLM context: https://api.hoko.to/llms.txt - API full context: https://api.hoko.to/llms-full.txt - Docs LLM context: https://docs.hoko.to/llms.txt - Help LLM context: https://help.hoko.to/llms.txt - Sitemap index: https://hoko.to/sitemap.xml ## API Endpoint Inventory | Method | Path | Scope | Purpose | | --- | --- | --- | --- | | GET | /links | linksRead | List links by id, externalId, tenantId, partnerId, and pagination parameters. | | POST | /links | linksWrite | Create one or more short links. | | PUT | /links | linksWrite | Create or update links; entries with id update, entries without id insert. | | DELETE | /links | linksWrite | Soft-delete one or more links by ID. | | GET | /collections | collectionsRead | List collections by id with pagination. | | POST/PUT/DELETE | /collections | collectionsWrite | Create, upsert, or soft-delete collections. | | GET | /tags | tagsRead | List tags by id with pagination. | | POST/PUT/DELETE | /tags | tagsWrite | Create, upsert, or delete tags. | | GET | /partners | partnersRead | List partners by id with pagination. | | POST/PUT/DELETE | /partners | partnersWrite | Create, upsert, or soft-delete partners. | | GET | /customers | customersRead | List customers by id or externalId with pagination. | | PUT/DELETE | /customers | customersWrite | Update existing customers by id or externalId, or soft-delete customers by id. | | GET | /analytics | analyticsRead | List click analytics by linkId, partnerId, startDate, endDate, and pagination parameters. | | POST | /track/lead | conversionsWrite | Record a lead conversion and upsert the customer. | | POST | /track/sale | conversionsWrite | Record a sale conversion and upsert the customer. | ## Documentation ### Getting Started - [Introduction](https://docs.hoko.to/introduction) Hoko is a modern link attribution platform that empowers you to create branded short links, track conversions end-to-end, and measure marketing performance with precision. - [API Keys](https://docs.hoko.to/api-keys) Create and manage API keys with granular permission scopes. Secure your integrations with the principle of least privilege. - [Authentication](https://docs.hoko.to/authentication) Secure Hoko requests with an authorized credential: an API key, human token, OAuth access token, or authenticated browser session. - [Rate Limits](https://docs.hoko.to/rate-limits) Understand rate limits, monitor your usage, and implement proper retry logic to ensure reliable API access. - [Errors](https://docs.hoko.to/errors) Understand error responses, status codes, and how to handle API errors gracefully in your applications. ### Developer tools - [Hoko CLI](https://docs.hoko.to/cli) Command syntax, authentication inputs, output, and exit codes for the Hoko CLI. ### Links - [Introduction](https://docs.hoko.to/links/introduction) The Links API is the foundation of Hoko, enabling you to create, manage, and track short links programmatically. - [(GET) Get links](https://docs.hoko.to/links/get) Retrieve links from your workspace with flexible filtering options. Filter by link ID, external ID, tenant ID, or partner ID. - [(POST) Create links](https://docs.hoko.to/links/post) Create one or more links in a single request. Each link requires a destination URL and collection ID. - [(PUT) Update/Upsert links](https://docs.hoko.to/links/put) Update existing links or create new ones with upsert operations. Perfect for synchronization scenarios. - [(DELETE) Delete links](https://docs.hoko.to/links/delete) Delete one or more links using soft delete. Historical analytics data is preserved. ### Collections - [Introduction](https://docs.hoko.to/collections/introduction) Organize your links with collections. Collections are essential organizational units that help you structure and manage your link library. - [(GET) Get collections](https://docs.hoko.to/collections/get) Retrieve collections from your workspace. Filter by collection ID or list all collections with pagination. - [(POST) Create collections](https://docs.hoko.to/collections/post) Create one or more collections to organize your links. Each collection requires a name. - [(PUT) Update/Upsert collections](https://docs.hoko.to/collections/put) Update existing collections or create new ones with upsert operations. - [(DELETE) Delete collections](https://docs.hoko.to/collections/delete) Delete one or more collections using soft delete. ### Developers - [Custom API clients](https://docs.hoko.to/custom-api) Connect any HTTPS client to Hoko's unversioned REST API. ### Tags - [Introduction](https://docs.hoko.to/tags/introduction) Create, read, update, and delete tags for categorizing and organizing your links. - [(GET) Get tags](https://docs.hoko.to/tags/get) Retrieve tags from your workspace. Filter by tag ID or list all tags with pagination. - [(POST) Create tags](https://docs.hoko.to/tags/post) Create one or more tags. Each tag requires a name, and color is optional. - [(PUT) Update/Upsert tags](https://docs.hoko.to/tags/put) Update existing tags or create new ones with upsert operations. - [(DELETE) Delete tags](https://docs.hoko.to/tags/delete) Permanently delete one or more tags (hard delete). ### Analytics - [Introduction](https://docs.hoko.to/analytics/introduction) Retrieve click analytics and performance data for your links. Gain insights into traffic patterns, user behavior, and campaign effectiveness. - [(GET) Get analytics](https://docs.hoko.to/analytics/get) Retrieve click analytics and performance data for your links. Filter by link, partner, or date range. ### Integrations - [Connected apps](https://docs.hoko.to/integrations/apps) Read the Apps catalog, connection states, and access rules for Hoko integrations. - [Automation recipes](https://docs.hoko.to/integrations/automation) Create Hoko links from customer-owned automation systems with durable mappings and safe reconciliation. - [Receive link.created webhooks](https://docs.hoko.to/integrations/link-created) Verify Hoko link.created deliveries and record durable, minimized receipts. - [Google Tag Manager attribution template](https://docs.hoko.to/integrations/google-tag-manager) Import Hoko's customer-owned browser attribution template with explicit consent. - [Power Automate](https://docs.hoko.to/integrations/power-platform) Import the private Hoko connector and create links from a Power Automate flow. - [Pipedream (archived)](https://docs.hoko.to/integrations/pipedream) Archived Hoko integration notes for Pipedream Workflows. - [Zapier](https://docs.hoko.to/integrations/zapier) Run the private Hoko link actions in Zapier with API-key authentication. - [Make](https://docs.hoko.to/integrations/make) Run Hoko's private link actions and link.created trigger in Make. - [n8n](https://docs.hoko.to/integrations/n8n) Use Hoko link actions in a private n8n community node. - [Commerce integrations](https://docs.hoko.to/integrations/commerce) Connect commerce providers to Hoko link attribution through the shared engine. - [Social and CMS integrations](https://docs.hoko.to/integrations/social-cms) Build reviewable social and CMS recipes around Hoko's shared engine. - [Reporting integrations](https://docs.hoko.to/integrations/reporting) Send Hoko link and conversion facts to reporting and campaign systems. - [OAuth provider connections](https://docs.hoko.to/integrations/oauth) Configure provider OAuth connections without bypassing the shared Hoko engine. - [Later and Hootsuite](https://docs.hoko.to/integrations/later-hootsuite) Review bounded Later reporting and Hootsuite scheduling contracts. ### Customers - [Introduction](https://docs.hoko.to/customers/introduction) Read, update, and delete customer records used for conversion attribution. - [(GET) Get customers](https://docs.hoko.to/customers/get) Retrieve customers by ID or external ID. Supports pagination and sorting. - [(PUT) Update customers](https://docs.hoko.to/customers/put) Update existing customers by ID or external ID. - [(DELETE) Delete customers](https://docs.hoko.to/customers/delete) Soft-delete existing customers by ID. ### Partners - [Introduction](https://docs.hoko.to/partners/introduction) Create, read, update, and delete partners for attribution tracking and commission management. - [(GET) Get partners](https://docs.hoko.to/partners/get) Retrieve partners by ID. Supports pagination and sorting. - [(POST) Create partners](https://docs.hoko.to/partners/post) Create one or more partners. Each partner requires a name. - [(PUT) Update/Upsert partners](https://docs.hoko.to/partners/put) Update existing partners or create new ones with upsert operations. - [(DELETE) Delete partners](https://docs.hoko.to/partners/delete) Delete one or more partners using soft delete. ### Conversion Tracking - [Introduction](https://docs.hoko.to/track/introduction) Track lead and sale conversion events to connect marketing touchpoints to business outcomes. Automatically create and update customer records with flexible attribution tracking. - [Browser attribution script (analytics.js)](https://docs.hoko.to/track/analytics-js) Persist the clickId from short-link redirects using analytics.js and send it to conversion endpoints. - [Embedded click tracking](https://docs.hoko.to/track/embedded-click) Track a Hoko short-link click from an owned page without redirecting the visitor. - [Track lead events](https://docs.hoko.to/track/lead) - [Track sale events](https://docs.hoko.to/track/sale) ### Webhooks - [Introduction](https://docs.hoko.to/webhooks/introduction) Receive signed workspace events securely in your backend, with a complete event catalog and delivery contract. - [Event catalog](https://docs.hoko.to/webhooks/event-catalog) Browse every workspace event available to Webhooks and Logs, with its scope, action, and exact event name. - [Workspace](https://docs.hoko.to/webhooks/workspace) Workspace lifecycle events and their signed payload contract. - [API key](https://docs.hoko.to/webhooks/api-key) API key lifecycle events and their signed payload contract. - [Link](https://docs.hoko.to/webhooks/link) Link lifecycle and configuration events with their signed payload contract. - [Tag](https://docs.hoko.to/webhooks/tag) Tag lifecycle events and their signed payload contract. - [Partner](https://docs.hoko.to/webhooks/partner) Partner lifecycle events and their signed payload contract. - [UTM template](https://docs.hoko.to/webhooks/utm-template) UTM template lifecycle events and their signed payload contract. - [Collection](https://docs.hoko.to/webhooks/collection) Collection lifecycle and default-state events with their signed payload contract. - [Member profile](https://docs.hoko.to/webhooks/member-profile) Member access and ownership events with their signed payload contract. - [Invitation](https://docs.hoko.to/webhooks/invitation) Invitation lifecycle events and their signed payload contract. - [Invoice](https://docs.hoko.to/webhooks/invoice) Invoice notification events and their signed payload contract. - [Subscription](https://docs.hoko.to/webhooks/subscription) Subscription lifecycle events and their signed payload contract. - [Webhook](https://docs.hoko.to/webhooks/webhook) Webhook endpoint lifecycle events and their signed payload contract. - [Customer](https://docs.hoko.to/webhooks/customer) Customer lifecycle events and their signed payload contract. - [Lead](https://docs.hoko.to/webhooks/lead) Lead events use the same thin, signed webhook payload as every other scope. - [Sale](https://docs.hoko.to/webhooks/sale) Sale events use the same thin, signed webhook payload as every other scope. ### Logs - [Introduction](https://docs.hoko.to/logs/introduction) Read the workspace activity ledger, understand every action and scope, and connect facts to webhook delivery. ## Help ### Help - [Hoko CLI](https://help.hoko.to/cli) Install the Hoko CLI, sign in with OAuth, use API keys in automation, and fix common terminal errors. - [App guides](https://help.hoko.to/apps) Browse Hoko app guides and open the Apps page when you are ready to connect a workspace account. - [Getting started](https://help.hoko.to/getting-started) Create a Hoko account, set up a workspace and collection, and publish your first tracked short link. - [Profile](https://help.hoko.to/profile) Manage your Hoko profile details, email, localization, and account settings from one place. - [Workspaces](https://help.hoko.to/workspaces) Create, switch, rename, transfer, and manage Hoko workspaces while understanding ownership limits. - [Collections](https://help.hoko.to/collections) Organize campaign links into Hoko collections and manage collection-level access and lifecycle. - [Links](https://help.hoko.to/links) Create and manage Hoko short links with slugs, UTM values, QR codes, previews, and eligible link controls. - [Tags](https://help.hoko.to/tags) Create and apply Hoko tags to keep links searchable, filterable, and consistent across campaigns. - [Partners](https://help.hoko.to/partners) Create partner records, associate partners with tracked links, and review partner campaign context. - [UTM templates](https://help.hoko.to/utm-templates) Save reusable Hoko UTM templates for consistent campaign source, medium, name, term, and content values. - [Analytics](https://help.hoko.to/analytics) Review Hoko clicks, recorded leads and sales, referrers, UTM values, devices, locations, tags, and CSV exports. - [Participants](https://help.hoko.to/participants) Invite participants and manage workspace and collection roles, removal, and team-seat limits. - [Access and permissions](https://help.hoko.to/access) Understand workspace and collection roles, feature permissions, and how to change member access. - [API keys](https://help.hoko.to/api-keys) Create scoped Hoko API keys, choose permissions, rotate credentials, and keep server integrations secure. - [Webhooks](https://help.hoko.to/webhooks) Set up signed workspace webhooks, understand manager access, verify receivers, and inspect delivery results. - [Logs](https://help.hoko.to/logs) Browse workspace activity, filter by resource and action, and understand log access, privacy, and delivery states. - [Billing](https://help.hoko.to/billing) Understand Hoko plans, subscription changes, billing status, usage limits, and account billing workflows. - [Storage](https://help.hoko.to/storage) Manage files stored in Hoko, understand upload limits, and troubleshoot storage access and cleanup. - [Security](https://help.hoko.to/security) Protect your Hoko account, API keys, workspace access, and sensitive link workflows with practical controls. ### AI and developer tools - [ChatGPT](https://help.hoko.to/apps/chatgpt) Use Hoko links with ChatGPT and follow this guide. - [Claude](https://help.hoko.to/apps/claude) Use Hoko links with Claude and follow this guide. - [Claude Code](https://help.hoko.to/apps/claude-code) Use Hoko links with Claude Code and follow this guide. - [Cursor](https://help.hoko.to/apps/cursor) Use Hoko links with Cursor and follow this guide. - [VS Code](https://help.hoko.to/apps/vscode) Use Hoko links with VS Code and follow this guide. - [GitHub Copilot](https://help.hoko.to/apps/copilot) Use Hoko links with GitHub Copilot and follow this guide. - [Gemini CLI](https://help.hoko.to/apps/gemini-cli) Use Hoko links with Gemini CLI and follow this guide. - [Windsurf](https://help.hoko.to/apps/windsurf) Use Hoko links with Windsurf and follow this guide. ### Automation - [Zapier](https://help.hoko.to/apps/zapier) Use Hoko links with Zapier and follow this guide. - [n8n](https://help.hoko.to/apps/n8n) Use Hoko links with n8n and follow this guide. - [Make](https://help.hoko.to/apps/make) Use Hoko links with Make and follow this guide. - [Custom MCP](https://help.hoko.to/apps/custom-mcp) Use Hoko links with Custom MCP and follow this guide. - [Custom API](https://help.hoko.to/apps/custom-api) Use Hoko links with Custom API and follow this guide. - [Power Automate](https://help.hoko.to/apps/power-automate) Use Hoko links with Power Automate and follow this guide. ### Commerce - [Shopify](https://help.hoko.to/apps/shopify) Use Hoko links with Shopify and follow this guide. - [Salla](https://help.hoko.to/apps/salla) Use Hoko links with Salla and follow this guide. - [Zid](https://help.hoko.to/apps/zid) Use Hoko links with Zid and follow this guide. - [WooCommerce](https://help.hoko.to/apps/woocommerce) Use Hoko links with WooCommerce and follow this guide. - [BigCommerce](https://help.hoko.to/apps/bigcommerce) Use Hoko links with BigCommerce and follow this guide. - [Adobe Commerce](https://help.hoko.to/apps/adobe-commerce) Use Hoko links with Adobe Commerce and follow this guide. ### Social publishing - [Buffer](https://help.hoko.to/apps/buffer) Use Hoko links with Buffer and follow this guide. - [Sprout Social](https://help.hoko.to/apps/sprout-social) Use Hoko links with Sprout Social and follow this guide. - [Publer](https://help.hoko.to/apps/publer) Use Hoko links with Publer and follow this guide. - [Metricool](https://help.hoko.to/apps/metricool) Use Hoko links with Metricool and follow this guide. - [SocialPilot](https://help.hoko.to/apps/socialpilot) Use Hoko links with SocialPilot and follow this guide. - [Typefully](https://help.hoko.to/apps/typefully) Use Hoko links with Typefully and follow this guide. - [Later](https://help.hoko.to/apps/later) Use Hoko links with Later and follow this guide. - [Hootsuite](https://help.hoko.to/apps/hootsuite) Use Hoko links with Hootsuite and follow this guide. ### CRM and marketing - [HubSpot](https://help.hoko.to/apps/hubspot) Use Hoko links with HubSpot and follow this guide. - [Salesforce](https://help.hoko.to/apps/salesforce) Use Hoko links with Salesforce and follow this guide. - [Klaviyo](https://help.hoko.to/apps/klaviyo) Use Hoko links with Klaviyo and follow this guide. - [Mailchimp](https://help.hoko.to/apps/mailchimp) Use Hoko links with Mailchimp and follow this guide. - [Customer.io](https://help.hoko.to/apps/customerio) Use Hoko links with Customer.io and follow this guide. - [Brevo](https://help.hoko.to/apps/brevo) Use Hoko links with Brevo and follow this guide. ### Content management - [WordPress](https://help.hoko.to/apps/wordpress) Use Hoko links with WordPress and follow this guide. - [Webflow](https://help.hoko.to/apps/webflow) Use Hoko links with Webflow and follow this guide. - [Ghost](https://help.hoko.to/apps/ghost) Use Hoko links with Ghost and follow this guide. ### Payments - [Stripe](https://help.hoko.to/apps/stripe) Use Hoko links with Stripe and follow this guide. ### Analytics - [Google Analytics 4](https://help.hoko.to/apps/ga4) Use Hoko links with Google Analytics 4 and follow this guide. - [Google Tag Manager](https://help.hoko.to/apps/google-tag-manager) Use Hoko links with Google Tag Manager and follow this guide. - [PostHog](https://help.hoko.to/apps/posthog) Use Hoko links with PostHog and follow this guide. - [Segment](https://help.hoko.to/apps/segment) Use Hoko links with Segment and follow this guide. ### Team workflow - [Slack](https://help.hoko.to/apps/slack) Use Hoko links with Slack and follow this guide. - [Microsoft Teams](https://help.hoko.to/apps/microsoft-teams) Use Hoko links with Microsoft Teams and follow this guide. - [Notion](https://help.hoko.to/apps/notion) Use Hoko links with Notion and follow this guide. - [Airtable](https://help.hoko.to/apps/airtable) Use Hoko links with Airtable and follow this guide. - [Google Sheets](https://help.hoko.to/apps/google-sheets) Use Hoko links with Google Sheets and follow this guide. ## Full API Documentation ### Introduction Hoko is a modern link attribution platform that empowers you to create branded short links, track conversions end-to-end, and measure marketing performance with precision. Canonical URL: https://docs.hoko.to/introduction Markdown URL: https://docs.hoko.to/introduction/README.md ## What is Hoko? Hoko is a comprehensive link attribution and conversion tracking platform designed for modern marketing teams. Whether you're running multi-channel campaigns, tracking affiliate performance, or measuring ROI, Hoko provides the tools you need to understand exactly how your marketing efforts drive results. Built with developers in mind, Hoko offers a REST API for automated link management, click analytics, and lead or sale tracking workflows. Conversion reporting requires the integration to send those events and remains subject to current plan and rollout availability. The public OpenAPI document is the detailed wire contract for Developer API schemas, status codes, and generated clients. The SST remains the high-level canonical product and API baseline. ## Resource identifiers Canonical API requests and responses use bare 26-character Crockford ULIDs. Documentation examples use typed placeholders such as ``; replace them with actual public IDs when making requests. Storage identifiers are not returned in public API payloads. ## Key Features Hoko combines powerful link management with advanced analytics and conversion tracking. Here's what makes it special: - Managed Short Links - Create memorable short URLs on hoko.to with readable custom slugs - Link Analytics - Review clicks, referrers, UTM values, device/browser context, and location context - Conversion Tracking - Connect clicks to leads and sales with flexible event tracking and customer attribution - REST API - Programmatic access through the documented endpoints for automation and integrations. Webhook management and activity logs are also available through the documented API with the required permissions. - Multi-Channel Attribution - Track performance across campaigns, partners, and channels with granular UTM parameter support - Partner Management - Organize and track affiliate partners with commission and performance analytics - Collections & Tags - Organize links efficiently with collections and tags for better campaign management - Customer Insights - Build comprehensive customer profiles by tracking their journey from click to conversion ## Use Cases Hoko is perfect for a wide range of marketing and attribution scenarios: - Marketing Campaigns - Track performance of email, social media, and paid advertising campaigns - Affiliate Programs - Manage partner links and track commission-based conversions - E-commerce Attribution - Connect marketing touchpoints to actual sales and revenue - Lead Generation - Track which channels and campaigns generate the highest-quality leads - Content Marketing - Measure the impact of blog posts, newsletters, and content shares - Multi-Tenant SaaS - Track links and conversions across different customer segments or tenants - API Integrations - Build custom integrations with CRM, marketing automation, and analytics tools ## Getting Started Ready to get started? Here's a quick overview of what you'll need: - Create a Hoko account and set up your workspace - Create your first collection to organize links - Generate an API key with appropriate scopes for your use case - Start creating links via the dashboard or API - Track conversions by integrating the conversion tracking endpoints > **Tip: Pro Tip** > Start with the Links section to understand how to create and manage short links, then explore Analytics to see how to track performance, and finally dive into Conversion Tracking to connect clicks to business outcomes. --- ### API Keys Create and manage API keys with granular permission scopes. Secure your integrations with the principle of least privilege. Canonical URL: https://docs.hoko.to/api-keys Markdown URL: https://docs.hoko.to/api-keys/README.md ## Overview API keys are one supported credential for Hoko API requests. You can also use a human token, an OAuth access token, or an authenticated browser session. Each API key is associated with your workspace and can be configured with specific permission scopes. This granular access control enables you to create different keys for different purposes—for example, a read-only key for analytics dashboards, or a write key for automated link creation scripts. ## Creating API Keys Create new API keys from your workspace dashboard under Settings > Integrations > API Keys. When creating a key, you'll need to: 1. Provide a descriptive name to help you identify the key's purpose 2. Select the appropriate permission scopes based on what operations the key needs to perform 3. Copy the key immediately after creation—it will only be displayed once for security reasons > **Warning: Important Security Notice** > API keys are displayed only once during creation. If you lose a key, you must revoke it and create a new one. Never share API keys publicly or commit them to version control. ## Permission Scopes Scopes define what operations an API key can perform. By granting only the minimum required permissions, you follow security best practices and limit potential damage if a key is compromised. Each scope is independent—you can combine multiple scopes to create keys with exactly the permissions you need. - linksRead - Read and list links (GET /links) - linksWrite - Create, update, and delete links (POST, PUT, DELETE /links) - collectionsRead - Read and list collections (GET /collections) - collectionsWrite - Create, update, and delete collections (POST, PUT, DELETE /collections) - tagsRead - Read and list tags (GET /tags) - tagsWrite - Create, update, and delete tags (POST, PUT, DELETE /tags) - analyticsRead - Access click analytics and performance data (GET /analytics) - conversionsWrite - Track lead and sale conversion events (POST /track/lead, POST /track/sale) - customersRead - Read customer data (GET /customers) - customersWrite - Update and delete customer data (PUT, DELETE /customers) - partnersRead - Read partner data (GET /partners) - partnersWrite - Create, update, and delete partners (POST, PUT, DELETE /partners) > **Tip: Best Practice** > Create separate API keys for different environments (development, staging, production) and different use cases (read-only monitoring, automated link creation, conversion tracking). This makes it easier to rotate keys and audit access. ## Using API Keys Use one credential on each request. The API validates the credential and checks the scopes required by the operation. **Header Format** ```text Authorization: Bearer ``` You can send an API key in the alternate header: ```text X-API-Key: ``` For a human token or OAuth access token, replace `` with the access token. First-party browser requests may use the authenticated session cookie. **curl Example** ```bash curl -X GET "https://api.hoko.to/links" \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" ``` ## Revoking API Keys You can revoke API keys at any time from your workspace settings. Revocation is immediate and permanent—revoked keys cannot be restored or reactivated. Revoke keys immediately if you suspect they've been compromised, or when they're no longer needed. This is a critical security practice, especially when keys are used in production environments. > **Error: Security Alert** > If an API key is exposed or compromised, revoke it immediately and create a new one. Monitor your API usage logs for any suspicious activity after key revocation. --- ### Authentication Secure Hoko requests with an authorized credential: an API key, human token, OAuth access token, or authenticated browser session. Canonical URL: https://docs.hoko.to/authentication Markdown URL: https://docs.hoko.to/authentication/README.md ## Overview Hoko authorizes requests through the credential available to the client. Supported authorized access includes an API key, human token, OAuth access token, or authenticated browser session. The client surface and operation determine which credential is appropriate. API and MCP clients send an access credential in the Authorization header. Browser requests use the authenticated session cookie. The CLI can use browser OAuth for a human account or an API key for automation. Human Tokens are limited to personal Apps connection reads and removal; they do not authorize workspace operations. See [API keys](https://docs.hoko.to/api-keys) for key creation and scope selection. ## Bearer Token Authentication Use an API key when a server-side integration, script, or automation job needs scoped workspace access. Include the key in each request using the Authorization header with the Bearer scheme. The API key should be placed immediately after "Bearer " (note the space). Both the full format `Bearer ` and just the API key itself are accepted for convenience. **Header Format** ```text Authorization: Bearer ``` **curl Example** ```bash curl -X GET "https://api.hoko.to/links" \ -H "Authorization: Bearer " ``` **JavaScript (fetch)** ```javascript fetch('https://api.hoko.to/links', { headers: { "Authorization": "Bearer ", "Content-Type": "application/json" } }) ``` **Python (requests)** ```python import requests headers = { 'Authorization': 'Bearer ', 'Content-Type': 'application/json' } response = requests.get('https://api.hoko.to/links', headers=headers) ``` > **Warning: Security Best Practice** > Never expose your API keys in client-side code, public repositories, or shared documents. Always store API keys securely using environment variables or secret management services. ## Authentication Errors When authentication fails, the API returns a 401 Unauthorized status code with a descriptive error message. The exact message identifies the credential or session problem; do not retry with a different credential until its intended client surface and operation are confirmed. - Missing credential - The request does not include an accepted credential or authenticated session. - Invalid credential - The supplied credential is malformed, revoked, expired, or not valid for the target workspace. **Error Response** ```json { "error": { "en": "Invalid API key", "ar": "مفتاح API غير صالح" } } ``` > **Info: Troubleshooting** > Check the client surface, credential source, workspace, operation, and required scopes. For an API key, verify that it is active and included in the Authorization header. For browser access, sign in again if the session has expired. --- ### Rate Limits Understand rate limits, monitor your usage, and implement proper retry logic to ensure reliable API access. Canonical URL: https://docs.hoko.to/rate-limits Markdown URL: https://docs.hoko.to/rate-limits/README.md ## Overview Rate limiting protects the API from abuse and ensures fair usage across all workspaces. All API requests are rate limited per workspace based on your subscription plan. Rate limits are applied using a sliding window algorithm per minute. This means requests are counted within a rolling 60-second window, providing smooth and predictable rate limiting behavior. Each plan tier has different rate limits to accommodate various usage patterns, from small projects to enterprise-scale operations. > **Info: Rate Limit Scope** > Rate limits are applied per workspace, not per API key. All API keys within the same workspace share the same rate limit pool. ## Rate Limit Headers Every authenticated API response after the workspace is identified includes rate limit information in HTTP headers, allowing you to monitor your usage and implement intelligent retry logic. Requests that fail before a valid API key resolves to a workspace may not include workspace-specific rate limit headers. Use these headers to build rate limit-aware applications that can proactively manage their API usage. - X-RateLimit-Limit - The maximum number of requests allowed per minute for your plan tier - X-RateLimit-Remaining - The number of requests remaining in the current window - X-RateLimit-Reset - Unix timestamp (in seconds) indicating when the current rate limit window resets **Response Headers** ```text // Example response headers X-RateLimit-Limit: 1000 X-RateLimit-Remaining: 987 X-RateLimit-Reset: 1704067200 ``` > **Tip: Implementation Tip** > Monitor the X-RateLimit-Remaining header and implement exponential backoff when it approaches zero. This prevents hitting rate limits and ensures smooth API usage. ## Handling Rate Limit Exceeded When you exceed your rate limit: - The API returns a 429 Too Many Requests status code. - The response includes detailed information to help you implement proper retry logic. - The retryAfter field indicates the number of seconds to wait before retrying. - Its value is calculated from when the current rate limit window resets. **429 Response** ```json { "error": { "en": "Rate limit exceeded", "ar": "تم تجاوز حد المعدل" }, "retryAfter": 45 } ``` > **Warning: Best Practice** > Always respect the retryAfter value and implement exponential backoff. Avoid aggressive retry loops that could further impact your rate limit. Consider implementing request queuing for high-volume scenarios. ## Best Practices To maximize API reliability and avoid rate limit issues, follow these best practices: - Monitor rate limit headers when present to track your usage - Implement exponential backoff when approaching rate limits - Use batch endpoints when available to reduce the number of requests - Cache responses when appropriate to minimize API calls - Consider upgrading your plan if you consistently approach rate limits - Implement request queuing for high-volume operations - Use webhooks for real-time updates instead of polling when possible --- ### Errors Understand error responses, status codes, and how to handle API errors gracefully in your applications. Canonical URL: https://docs.hoko.to/errors Markdown URL: https://docs.hoko.to/errors/README.md ## Overview The Hoko API uses standard HTTP status codes to indicate the result of API requests. All error responses follow a consistent, predictable format that makes error handling straightforward in your applications. Error messages are provided in both English and Arabic, allowing you to display user-friendly error messages regardless of your application's language preference. Understanding error responses helps you build robust integrations that gracefully handle edge cases and provide clear feedback to users. Successful responses use 2xx HTTP status codes and return the raw documented payload for the endpoint, such as an array of links or an object with `deletedIds`. Failure responses use non-2xx HTTP status codes and include an `error` object. Do not infer success or failure from the presence of `data` or `message` fields. Unknown object properties in request bodies are ignored by runtime validation. ## HTTP Status Codes The API uses standard HTTP status codes to communicate request outcomes. Familiarize yourself with these codes to implement proper error handling: - 400 Bad Request - The request is malformed, contains invalid parameters, or violates API constraints. Check your request format and parameters. - 401 Unauthorized - Authentication failed. The API key is missing, invalid, expired, or revoked. Verify your API key is correct and active. - 403 Forbidden - The API key is valid but lacks the required permission scopes for this operation. Check the missingScopes field in the response. - 404 Not Found - Returned for unknown endpoints. Resource validation errors are reported as 400 Bad Request. - 429 Too Many Requests - Rate limit exceeded. Wait for the retryAfter period before making additional requests. - 500 Internal Server Error - An unexpected server error occurred. These are rare; if you encounter this, contact support with request details. > **Info: Error Handling Strategy** > Implement comprehensive error handling that checks status codes and displays appropriate messages to users. For 4xx errors, the issue is typically with the request. For 5xx errors, retry with exponential backoff. ## Error Response Format All error responses follow a consistent structure. The error object contains bilingual messages, and additional fields provide context-specific information depending on the error type. **Error Format** ```json { "error": { "en": "Error message in English", "ar": "رسالة خطأ بالعربية" }, "missingScopes": ["linksWrite"], // Only for 403 errors "retryAfter": 45 // Only for 429 errors } ``` > **Tip: Error Message Selection** > Use the appropriate language field (en or ar) from the error object based on your application's language preference or user settings. ## Error Examples Here are examples of common error responses you might encounter: **400 Bad Request** ```json { "error": { "en": "Invalid request format", "ar": "تنسيق طلب غير صالح" } } ``` **401 Unauthorized** ```json { "error": { "en": "Invalid API key", "ar": "مفتاح API غير صالح" } } ``` **403 Forbidden** ```json { "error": { "en": "Missing required scopes", "ar": "الصلاحيات المطلوبة مفقودة" }, "missingScopes": ["linksWrite", "collectionsWrite"] } ``` **429 Too Many Requests** ```json { "error": { "en": "Rate limit exceeded", "ar": "تم تجاوز حد المعدل" }, "retryAfter": 45 } ``` --- ### Hoko CLI Command syntax, authentication inputs, output, and exit codes for the Hoko CLI. Canonical URL: https://docs.hoko.to/cli Markdown URL: https://docs.hoko.to/cli/README.md ## Install Use the [CLI Help guide](https://help.hoko.to/cli) for installation and first-run steps. This reference keeps the command and machine-readable contract. ## Authenticate Use the [CLI Help guide](https://help.hoko.to/cli) for browser sign-in and workspace selection. API-key and human-token environment usage is documented below for automation. ## Transport migration CLI 0.1.0 retires the old `/operations/` HTTP transport. `hoko operations list` and `hoko operations describe ` are local discovery commands; resource commands use the direct REST binding documented for each resource. Update scripts that post to `/operations/...` before upgrading. The CLI does not auto-update. ## Run commands Resource commands print JSON to stdout. Errors print JSON to stderr and return a non-zero exit code. ```bash hoko links list hoko links create --url https://example.com --collection-id hoko analytics list --take 50 hoko webhooks list ``` Resources include `links`, `collections`, `tags`, `partners`, `utm-templates`, `customers`, `analytics`, `events`, `journeys`, `webhooks`, `usage`, `keys`, `lead`, and `sale`. Use the generic operation command for named engine operations: ```bash hoko operations list hoko operations describe measurement.events.list ``` **Input, output, and environment** Commands accept JSON with `--body JSON`, `--body @file.json`, or `--body -` for stdin. JSON is written to stdout by default; `--output table` selects a human-readable table and `--json` forces JSON. Structured errors are written to stderr. Global deployment flags are `--api ` and `--issuer `. `HOKO_API_KEY` authenticates automation, `HOKO_AUTH_TOKEN` supplies a human token, `HOKO_API_URL` and `HOKO_AUTH_URL` select origins, and `HOKO_API_RESOURCE` selects the resource. Do not combine `HOKO_AUTH_TOKEN` with `HOKO_API_KEY` or stored OAuth credentials. ## Exit codes | Code | Meaning | | ---- | ---------------------------------------------------------------------- | | `0` | Success. | | `1` | Unexpected local failure. | | `2` | Invalid command, input, or request. | | `3` | Missing or invalid credentials, HTTP 401, or credential-store failure. | | `4` | Authorization denied (HTTP 403). | | `5` | Rate limit reached (HTTP 429). | | `6` | Network or connection failure. | | `7` | Server failure (HTTP 5xx) or invalid discovery response. | ## Use another deployment Pass both origins when you work against staging or local development: ```bash hoko --api https://api.staging.hoko.to --issuer https://auth.staging.hoko.to auth login ``` For local Portless development, use HTTP loopback origins: ```bash hoko --api http://api.hoko.localhost:1355 --issuer http://auth.hoko.localhost:1355 auth login ``` The values must be origins. Do not include a path, query string, fragment, username, or password. ## Related references - [API authentication](https://docs.hoko.to/authentication) - [API rate limits](https://docs.hoko.to/rate-limits) - [OpenAPI document](https://api.hoko.to/openapi.json) - [CLI machine-readable summary](https://cli.hoko.to/llms.txt) - [Full CLI command reference](https://cli.hoko.to/llms-full.txt) --- ### Introduction The Links API is the foundation of Hoko, enabling you to create, manage, and track short links programmatically. Canonical URL: https://docs.hoko.to/links/introduction Markdown URL: https://docs.hoko.to/links/introduction/README.md ## Overview Links are the core building blocks of Hoko. Every short link you create becomes a trackable touchpoint that connects your marketing efforts to business outcomes. The Links API provides full CRUD operations (Create, Read, Update, Delete) for managing your link library. Create branded short URLs, organize them with collections and existing tag IDs, attach UTM parameters for campaign tracking, and leverage partner attribution for affiliate programs. Each link automatically generates a unique short ID and branded short URL, making it easy to share and track across all your marketing channels. Links support rich metadata including titles, descriptions, images, and custom external IDs for seamless integration with your existing systems. - (GET) Retrieve links with flexible filtering by ID, external ID, tenant, or partner - (POST) Create one or more links with rich metadata, UTM parameters, and existing tag IDs - (PUT) Update existing links or create new ones with upsert operations - (DELETE) Soft delete links while preserving historical analytics data > **Tip: Getting Started** > Before creating links, ensure you have at least one collection in your workspace. Every link must belong to a collection for organization. Use externalId to maintain references to links in your own system for seamless synchronization. --- ### (GET) Get links Retrieve links from your workspace with flexible filtering options. Filter by link ID, external ID, tenant ID, or partner ID. Canonical URL: https://docs.hoko.to/links/get Markdown URL: https://docs.hoko.to/links/get/README.md ## Endpoint GET /links Retrieve links from your workspace with flexible filtering options. Filter by link ID, external ID, tenant ID, or partner ID to find exactly what you need. The endpoint supports efficient pagination and sorting, making it easy to browse large link libraries. Results are returned as an array of link objects, each containing complete link information including the generated short URL, QR code URL, collection ID, and assigned tag IDs. **Endpoint** ```text GET /links ``` ## Authentication Requires an authorized credential with permission for `linksRead`. API keys are one supported credential; eligible OAuth or authenticated sessions may also authorize this operation. ## Query Parameters All parameters are optional. Use them to filter and paginate results. | Parameter | Type | Required | Location | Description | | ---------- | ------------- | -------- | -------- | ------------------------------------------------------------------------------------------- | | id | string (ULID) | No | query | Filter by specific link ID. Returns a single link if found. | | externalId | string | No | query | Filter by external ID. Useful for syncing with external systems. | | tenantId | string | No | query | Filter by tenant ID for multi-tenant scenarios. | | partnerId | string (ULID) | No | query | Filter by partner ID to retrieve all links associated with a specific partner. | | take | number | No | query | Number of results to return (default: 50, min: 1, max: 5,000). | | skip | number | No | query | Number of results to skip for pagination (default: 0, min: 0). | | sort | string | No | query | Sort order by createdAt: "asc" for oldest first, "desc" for newest first (default: "desc"). | > **Warning: Request Limits** > The `take` parameter supports values from 1 to 5,000. Requests above 5,000 are rejected. ## Status Codes ### 200 Successfully retrieved links. **Request** ```bash curl -X GET "https://api.hoko.to/links?take=50&sort=desc" \ -H "Authorization: Bearer " ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/links?take=50&sort=desc', { method: 'GET', headers: { Authorization: 'Bearer ' } }); const links = await response.json(); ``` **Response** ```json [ { "id": "", "url": "https://example.com", "shortUrl": "https://hoko.to/abc123", "qrCode": "https://hoko.to/qrcode?text=https%3A%2F%2Fhoko.to%2Fabc123%3Fqr%3D1&size=512&errorCorrection=H&foreground=000000&background=FFFFFF&margin=1&format=svg", "title": "Example Link", "description": "An example link", "image": "https://example.com/image.jpg", "utm": null, "expiresAt": null, "expiredUrl": null, "password": null, "cloaked": false, "ios": null, "android": null, "geo": null, "collectionId": "", "tagIds": [""], "externalId": null, "tenantId": null, "partnerId": null, "createdAt": "2024-01-01T00:00:00Z" } ] ``` ### 400 Invalid query parameters. This includes invalid ULID filters or invalid `take`, `skip`, or `sort` values. **Response** ```json { "error": { "en": "Invalid request", "ar": "طلب غير صالح" } } ``` ### 401 Invalid or missing API key. **Request** ```bash curl -X GET "https://api.hoko.to/links" \ -H "Authorization: Bearer invalid_key" ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/links', { method: 'GET', headers: { Authorization: 'Bearer invalid_key' } }); ``` **Response** ```json { "error": { "en": "Invalid API key", "ar": "مفتاح API غير صالح" } } ``` ### 403 API key does not have the required linksRead scope. **Request** ```bash curl -X GET "https://api.hoko.to/links" \ -H "Authorization: Bearer " ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/links', { method: 'GET', headers: { Authorization: 'Bearer ' } }); ``` **Response** ```json { "error": { "en": "Missing required scopes", "ar": "الصلاحيات المطلوبة مفقودة" }, "missingScopes": ["linksRead"] } ``` ### 429 Rate limit exceeded. Check X-RateLimit-\* headers for details. **Request** ```bash curl -X GET "https://api.hoko.to/links" \ -H "Authorization: Bearer " ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/links', { method: 'GET', headers: { Authorization: 'Bearer ' } }); ``` **Response** ```json { "error": { "en": "Rate limit exceeded", "ar": "تم تجاوز حد المعدل" }, "retryAfter": 60 } ``` ### 500 Unexpected server error. **Response** ```json { "error": { "en": "Internal server error", "ar": "خطأ داخلي في الخادم" } } ``` ## Examples Here are practical examples of retrieving links: **Request** ```bash curl -X GET "https://api.hoko.to/links?take=50&sort=desc" \ -H "Authorization: Bearer " ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/links?take=50&sort=desc', { method: 'GET', headers: { Authorization: 'Bearer ' } }); const links = await response.json(); ``` **Response** ```json [ { "id": "", "url": "https://example.com", "shortUrl": "https://hoko.to/abc123", "qrCode": "https://hoko.to/qrcode?text=https%3A%2F%2Fhoko.to%2Fabc123%3Fqr%3D1&size=512&errorCorrection=H&foreground=000000&background=FFFFFF&margin=1&format=svg", "title": "Example Link", "description": "An example link", "image": "https://example.com/image.jpg", "utm": { "source": "google", "medium": "cpc", "campaign": "summer", "term": "keyword", "content": "ad_content" }, "expiresAt": null, "expiredUrl": null, "password": null, "cloaked": false, "ios": null, "android": null, "geo": null, "collectionId": "", "tagIds": [""], "externalId": "ext_123", "tenantId": "tenant_123", "partnerId": "", "createdAt": "2024-01-01T00:00:00Z" } ] ``` > **Info: Filtering Tips** > You can combine multiple filters (id, externalId, tenantId, partnerId) in a single request. When multiple filters are provided, results match any of the specified filters. Use pagination (take/skip) to efficiently browse large result sets. --- ### (POST) Create links Create one or more links in a single request. Each link requires a destination URL and collection ID. Canonical URL: https://docs.hoko.to/links/post Markdown URL: https://docs.hoko.to/links/post/README.md ## Endpoint POST /links Create one or more links in a single request. This endpoint accepts an array of link objects, allowing you to create multiple links efficiently in one API call. Each link requires a destination URL and a collection ID. A unique short ID is automatically generated for each link, producing a short URL and QR code URL under https://hoko.to. You can include rich metadata such as titles, descriptions, images, UTM parameters, tag IDs, and custom external IDs to organize and track your links effectively. **Endpoint** ```text POST /links ``` ## Authentication Requires an authorized credential with permission for `linksWrite`. API keys are one supported credential; eligible OAuth or authenticated sessions may also authorize this operation. ## Request Body The request body must be an array of link objects. Each object represents one link to create. You can create up to 10,000 links in a single request. However, the actual maximum may be lower based on your subscription plan limits and available resources. | Parameter | Type | Required | Location | Description | | ------------ | ------------- | -------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | url | string (URL) | Yes | body | The destination URL that the short link will redirect to. Must be a valid HTTPS URL. | | collectionId | string (ULID) | Yes | body | The ID of the collection (folder) to organize this link. The collection must exist in your workspace. | | tagIds | string[] | No | body | Existing tag IDs to assign to this link. Every tag must already exist in your workspace. | | title | string | No | body | A descriptive title for the link. Useful for organization and identification. | | description | string | No | body | Additional description or notes about the link. | | image | string (URL) | No | body | A preview image URL for the link. Must be a valid HTTPS URL. | | utm | object | No | body | UTM parameters for campaign tracking. Create requests accept string values for source, medium, campaign, term, content, and referral. | | expiresAt | string | No | body | ISO date-time when the link should expire. Requires a plan with link expiration. | | expiredUrl | string (URL) | No | body | Destination used after expiration. Requires a plan with link expiration. | | password | string | No | body | Password required before resolving the destination. Requires a plan with password protection. | | cloaked | boolean | No | body | Render the resolved destination in an iframe. The destination is preflighted and rejected with 400 if it currently blocks iframe rendering. Requires a plan with link cloaking. | | ios | string (URL) | No | body | Destination for iOS visitors. Requires a plan with device targeting. | | android | string (URL) | No | body | Destination for Android visitors. Requires a plan with device targeting. | | geo | object/null | No | body | Country-code destination map such as `{ "SA": "https://example.com/sa" }`; send null or omit for no geo targeting. Requires geo targeting when set. | | externalId | string | No | body | A custom external ID for syncing with external systems. Must be unique within your workspace. | | tenantId | string | No | body | A tenant identifier for multi-tenant scenarios. Useful for segmenting links by customer or organization. | | partnerId | string (ULID) | No | body | The ID of the partner associated with this link. Used for affiliate and partner attribution tracking. | > **Warning: Plan Limits** > The actual maximum number of links you can create per request may be lower than 10,000 based on your subscription plan limits and available resources. The system will enforce both the hard limit (10,000) and your plan-specific limits. ## Advanced Link Behavior Advanced fields are applied only when they are set on the link and your workspace plan supports the feature. All URL fields accepted by this endpoint must use `https:`. This includes `url`, `image`, `expiredUrl`, `ios`, `android`, and every URL value in `geo`. - `password`: Visitors must enter the password before Hoko resolves the final destination. A correct password stores a secure, HTTP-only cookie scoped to that short link, so the same visitor can continue without re-entering it. - `expiresAt`: Use an ISO date-time with timezone offset, such as `2026-12-31T23:59:00Z`. When the current server time is later than `expiresAt`, the link is expired. If `expiredUrl` is set, Hoko sends visitors there. If it is not set, Hoko shows an expired-link page. - `ios` and `android`: Device destinations are selected from the visitor's User-Agent. iOS and Android checks run before geo targeting. - `geo`: Map ISO 3166-1 alpha-2 country codes to destination URLs, for example `{ "SA": "https://example.com/sa" }`. Use uppercase country codes. Send `null` or omit the field for no geo targeting. Country detection is best-effort and uses trusted edge country headers when available, then IP lookup. - `cloaked`: Hoko renders the resolved destination in a full-page iframe. Create requests preflight the destination and return 400 if it currently blocks iframe rendering. Resolution order is: password gate, expiration, iOS/Android targeting, geo targeting, default `url`, then cloaking. Expired links do not run device or geo targeting. ## Status Codes ### 201 Links created successfully. **Request** ```bash curl -X POST "https://api.hoko.to/links" \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '[ { "url": "https://example.com", "collectionId": "", "tagIds": [""], "expiresAt": "2026-12-31T23:59:00Z", "expiredUrl": "https://example.com/expired", "password": "launch", "cloaked": true, "ios": "https://example.com/ios", "android": "https://example.com/android", "geo": { "SA": "https://example.com/sa" } } ]' ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/links', { method: 'POST', headers: { Authorization: 'Bearer ', 'Content-Type': 'application/json' }, body: JSON.stringify([ { url: 'https://example.com', collectionId: '', tagIds: [''], expiresAt: '2026-12-31T23:59:00Z', expiredUrl: 'https://example.com/expired', password: 'launch', cloaked: true, ios: 'https://example.com/ios', android: 'https://example.com/android', geo: { SA: 'https://example.com/sa' } } ]) }); const links = await response.json(); ``` **Response** ```json [ { "id": "", "url": "https://example.com", "shortUrl": "https://hoko.to/abc123", "qrCode": "https://hoko.to/qrcode?text=https%3A%2F%2Fhoko.to%2Fabc123%3Fqr%3D1&size=512&errorCorrection=H&foreground=000000&background=FFFFFF&margin=1&format=svg", "title": null, "description": null, "image": null, "utm": null, "expiresAt": "2026-12-31T23:59:00Z", "expiredUrl": "https://example.com/expired", "password": "launch", "cloaked": true, "ios": "https://example.com/ios", "android": "https://example.com/android", "geo": { "SA": "https://example.com/sa" }, "collectionId": "", "tagIds": [""], "externalId": null, "tenantId": null, "partnerId": null, "createdAt": "2024-01-01T00:00:00Z" } ] ``` ### 400 Invalid request body (missing required fields or invalid values). **Request** ```bash curl -X POST "https://api.hoko.to/links" \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '[ { "url": "invalid-url" } ]' ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/links', { method: 'POST', headers: { Authorization: 'Bearer ', 'Content-Type': 'application/json' }, body: JSON.stringify([ { url: 'invalid-url' } ]) }); ``` **Response** ```json { "error": { "en": "Invalid request", "ar": "طلب غير صالح" } } ``` ### 401 Invalid or missing API key. **Request** ```bash curl -X POST "https://api.hoko.to/links" \ -H "Authorization: Bearer invalid_key" ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/links', { method: 'POST', headers: { Authorization: 'Bearer invalid_key' } }); ``` **Response** ```json { "error": { "en": "Invalid API key", "ar": "مفتاح API غير صالح" } } ``` ### 403 API key does not have the required linksWrite scope. **Request** ```bash curl -X POST "https://api.hoko.to/links" \ -H "Authorization: Bearer " ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/links', { method: 'POST', headers: { Authorization: 'Bearer ' } }); ``` **Response** ```json { "error": { "en": "Missing required scopes", "ar": "الصلاحيات المطلوبة مفقودة" }, "missingScopes": ["linksWrite"] } ``` ### 429 Rate limit exceeded. Check X-RateLimit-\* headers for details. **Request** ```bash curl -X POST "https://api.hoko.to/links" \ -H "Authorization: Bearer " ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/links', { method: 'POST', headers: { Authorization: 'Bearer ' } }); ``` **Response** ```json { "error": { "en": "Rate limit exceeded", "ar": "تم تجاوز حد المعدل" }, "retryAfter": 60 } ``` ### 500 Unexpected server error. **Response** ```json { "error": { "en": "Internal server error", "ar": "خطأ داخلي في الخادم" } } ``` ## Examples **Request** ```bash curl -X POST "https://api.hoko.to/links" \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '[ { "url": "https://example.com", "title": "Example Link", "description": "An example link", "collectionId": "", "tagIds": [""], "utm": { "source": "google", "medium": "cpc", "campaign": "summer" } } ]' ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/links', { method: 'POST', headers: { Authorization: 'Bearer ', 'Content-Type': 'application/json' }, body: JSON.stringify([ { url: 'https://example.com', title: 'Example Link', description: 'An example link', collectionId: '', tagIds: [''], utm: { source: 'google', medium: 'cpc', campaign: 'summer' } } ]) }); const links = await response.json(); ``` **Response** ```json [ { "id": "", "url": "https://example.com", "shortUrl": "https://hoko.to/abc123", "qrCode": "https://hoko.to/qrcode?text=https%3A%2F%2Fhoko.to%2Fabc123%3Fqr%3D1&size=512&errorCorrection=H&foreground=000000&background=FFFFFF&margin=1&format=svg", "title": "Example Link", "description": "An example link", "image": null, "utm": null, "expiresAt": null, "expiredUrl": null, "password": null, "cloaked": false, "ios": null, "android": null, "geo": null, "collectionId": "", "tagIds": [""], "externalId": null, "tenantId": null, "partnerId": null, "createdAt": "2024-01-01T00:00:00Z" } ] ``` > **Warning: Important Constraints** > The collectionId must reference an existing collection in your workspace. Each tagIds value must reference an existing tag in your workspace. The externalId must be unique within your workspace if provided. Plan limits may restrict the number of links you can create per request and overall. --- ### (PUT) Update/Upsert links Update existing links or create new ones with upsert operations. Perfect for synchronization scenarios. Canonical URL: https://docs.hoko.to/links/put Markdown URL: https://docs.hoko.to/links/put/README.md ## Endpoint PUT /links The PUT endpoint implements an upsert operation, allowing you to update existing links or create new ones in a single request. This is particularly useful for synchronization scenarios where you want to ensure links exist with specific properties. If an id is provided in the request body, the endpoint updates the existing link with that ID. If the ID does not exist, the request fails. To create new links, omit the id field. Returns the updated or created links in the same order as the input array, making it easy to correlate requests with responses in bulk operations. **Endpoint** ```text PUT /links ``` ## Authentication Requires an authorized credential with permission for `linksWrite`. API keys are one supported credential; eligible OAuth or authenticated sessions may also authorize this operation. ## Request Body The request body must be an array of link objects. Include the id field to update an existing link, or omit it to create a new one. You can upsert up to 10,000 links in a single request. However, the actual maximum may be lower based on your subscription plan limits and available resources. | Parameter | Type | Required | Location | Description | | ------------ | ------------- | -------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | id | string (ULID) | Yes | body | Required when updating. Omit to create a new link. If provided, it must exist in your workspace or the request fails. | | url | string (URL) | No | body | HTTPS destination URL. Required when creating a new link (no id). Optional when updating. | | collectionId | string (ULID) | No | body | Collection ID. Required when creating a new link (no id). Optional when updating. | | tagIds | string[] | No | body | Existing tag IDs to assign. When updating, replaces tag assignments if provided. Send `[]` to clear all tags. | | title | string | No | body | Link title. Only changes when provided. | | description | string | No | body | Link description. Only changes when provided. | | image | string (URL) | No | body | HTTPS preview image URL. Only changes when provided. | | utm | object | No | body | UTM parameters object. Insert entries accept string values; update entries may send null for individual keys to clear them. | | expiresAt | string/null | No | body | ISO date-time when the link should expire. Send null to clear. Requires link expiration when setting a value. | | expiredUrl | string/null | No | body | HTTPS destination used after expiration. Send null to clear. Requires link expiration when setting a value. | | password | string/null | No | body | Password required before resolving the destination. Send null to clear. Requires password protection when set. | | cloaked | boolean/null | No | body | Render the resolved destination in an iframe. Send false/null to clear. When true, the destination is preflighted and rejected with 400 if it currently blocks iframe rendering. | | ios | string/null | No | body | HTTPS destination for iOS visitors. Send null to clear. Requires device targeting when setting a value. | | android | string/null | No | body | HTTPS destination for Android visitors. Send null to clear. Requires device targeting when setting a value. | | geo | object/null | No | body | Uppercase country-code HTTPS destination map. Send null to clear on updates or omit/null on inserts for no geo targeting. Requires geo targeting when setting destinations. | | externalId | string | No | body | External ID for syncing. Must be unique in workspace when provided. | | tenantId | string | No | body | Tenant identifier. Optional. | | partnerId | string (ULID) | No | body | Partner ID for attribution. Optional. | > **Warning: Plan Limits** > The actual maximum number of links you can upsert per request may be lower than 10,000 based on your subscription plan limits and available resources. The system will enforce both the hard limit (10,000) and your plan-specific limits. ## Advanced Link Behavior Advanced fields are applied only when they are set on the link and your workspace plan supports the feature. When updating, include at least one mutable field besides id; omitted fields are left unchanged. Send `null` to clear nullable fields only on entries that include `id`, and send `false` or `null` to disable `cloaked`. Entries without `id` use the same create validation as `POST /links`: nullable clears are not accepted except `geo: null` for no geo targeting. For tags, omit `tagIds` to keep existing assignments or send `[]` to clear them. All URL fields accepted by this endpoint must use `https:`. This includes `url`, `image`, `expiredUrl`, `ios`, `android`, and every URL value in `geo`. - `password`: Visitors must enter the password before Hoko resolves the final destination. A correct password stores a secure, HTTP-only cookie scoped to that short link, so the same visitor can continue without re-entering it. - `expiresAt`: Use an ISO date-time with timezone offset, such as `2026-12-31T23:59:00Z`. When the current server time is later than `expiresAt`, the link is expired. If `expiredUrl` is set, Hoko sends visitors there. If it is not set, Hoko shows an expired-link page. - `ios` and `android`: Device destinations are selected from the visitor's User-Agent. iOS and Android checks run before geo targeting. - `geo`: Map ISO 3166-1 alpha-2 country codes to destination URLs, for example `{ "SA": "https://example.com/sa" }`. Use uppercase country codes. Country detection is best-effort and uses trusted edge country headers when available, then IP lookup. - `cloaked`: Hoko renders the resolved destination in a full-page iframe. Create and update requests preflight the active destination and return 400 if it currently blocks iframe rendering. Resolution order is: password gate, expiration, iOS/Android targeting, geo targeting, default `url`, then cloaking. Expired links do not run device or geo targeting. ## Status Codes ### 200 Links updated or created successfully. **Request** ```bash curl -X PUT "https://api.hoko.to/links" \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '[ { "id": "", "url": "https://updated.com", "title": "Updated Link", "expiresAt": "2026-12-31T23:59:00Z", "expiredUrl": "https://updated.com/expired", "cloaked": true, "ios": "https://updated.com/ios", "android": "https://updated.com/android", "geo": { "US": "https://updated.com/us" }, "collectionId": "", "tagIds": [""] } ]' ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/links', { method: 'PUT', headers: { Authorization: 'Bearer ', 'Content-Type': 'application/json' }, body: JSON.stringify([ { id: '', url: 'https://updated.com', title: 'Updated Link', expiresAt: '2026-12-31T23:59:00Z', expiredUrl: 'https://updated.com/expired', cloaked: true, ios: 'https://updated.com/ios', android: 'https://updated.com/android', geo: { US: 'https://updated.com/us' }, collectionId: '', tagIds: [''] } ]) }); const links = await response.json(); ``` **Response** ```json [ { "id": "", "url": "https://updated.com", "shortUrl": "https://hoko.to/abc123", "qrCode": "https://hoko.to/qrcode?text=https%3A%2F%2Fhoko.to%2Fabc123%3Fqr%3D1&size=512&errorCorrection=H&foreground=000000&background=FFFFFF&margin=1&format=svg", "title": "Updated Link", "description": null, "image": null, "utm": null, "expiresAt": "2026-12-31T23:59:00Z", "expiredUrl": "https://updated.com/expired", "password": null, "cloaked": true, "ios": "https://updated.com/ios", "android": "https://updated.com/android", "geo": { "US": "https://updated.com/us" }, "collectionId": "", "tagIds": [""], "externalId": null, "tenantId": null, "partnerId": null, "createdAt": "2024-01-01T00:00:00Z" } ] ``` ### 400 Invalid request body (missing required fields or invalid values). **Request** ```bash curl -X PUT "https://api.hoko.to/links" \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '[ { "url": "invalid-url" } ]' ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/links', { method: 'PUT', headers: { Authorization: 'Bearer ', 'Content-Type': 'application/json' }, body: JSON.stringify([ { url: 'invalid-url' } ]) }); ``` **Response** ```json { "error": { "en": "Invalid request", "ar": "طلب غير صالح" } } ``` ### 401 Invalid or missing API key. **Request** ```bash curl -X PUT "https://api.hoko.to/links" \ -H "Authorization: Bearer invalid_key" ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/links', { method: 'PUT', headers: { Authorization: 'Bearer invalid_key' } }); ``` **Response** ```json { "error": { "en": "Invalid API key", "ar": "مفتاح API غير صالح" } } ``` ### 403 API key does not have the required linksWrite scope. **Request** ```bash curl -X PUT "https://api.hoko.to/links" \ -H "Authorization: Bearer " ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/links', { method: 'PUT', headers: { Authorization: 'Bearer ' } }); ``` **Response** ```json { "error": { "en": "Missing required scopes", "ar": "الصلاحيات المطلوبة مفقودة" }, "missingScopes": ["linksWrite"] } ``` ### 429 Rate limit exceeded. Check X-RateLimit-\* headers for details. **Request** ```bash curl -X PUT "https://api.hoko.to/links" \ -H "Authorization: Bearer " ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/links', { method: 'PUT', headers: { Authorization: 'Bearer ' } }); ``` **Response** ```json { "error": { "en": "Rate limit exceeded", "ar": "تم تجاوز حد المعدل" }, "retryAfter": 60 } ``` ### 500 Unexpected server error. **Response** ```json { "error": { "en": "Internal server error", "ar": "خطأ داخلي في الخادم" } } ``` ## Examples **Request** ```bash curl -X PUT "https://api.hoko.to/links" \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '[ { "id": "", "url": "https://updated.com", "title": "Updated Link", "collectionId": "", "tagIds": [""] } ]' ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/links', { method: 'PUT', headers: { Authorization: 'Bearer ', 'Content-Type': 'application/json' }, body: JSON.stringify([ { id: '', url: 'https://updated.com', title: 'Updated Link', collectionId: '', tagIds: [''] } ]) }); const links = await response.json(); ``` **Response** ```json [ { "id": "", "url": "https://updated.com", "shortUrl": "https://hoko.to/abc123", "qrCode": "https://hoko.to/qrcode?text=https%3A%2F%2Fhoko.to%2Fabc123%3Fqr%3D1&size=512&errorCorrection=H&foreground=000000&background=FFFFFF&margin=1&format=svg", "title": "Updated Link", "description": null, "image": null, "utm": null, "expiresAt": null, "expiredUrl": null, "password": null, "cloaked": false, "ios": null, "android": null, "geo": null, "collectionId": "", "tagIds": [""], "externalId": null, "tenantId": null, "partnerId": null, "createdAt": "2024-01-01T00:00:00Z" } ] ``` > **Info: Upsert Behavior** > When updating, include at least one mutable field besides id. Only the fields you include are changed and omitted fields keep their current values. To clear an optional field, send it explicitly as null on update entries. To replace tag assignments, send tagIds; to clear all tags, send tagIds as an empty array. When creating a new link (no id), url and collectionId are required and create validation matches POST. --- ### (DELETE) Delete links Delete one or more links using soft delete. Historical analytics data is preserved. Canonical URL: https://docs.hoko.to/links/delete Markdown URL: https://docs.hoko.to/links/delete/README.md ## Endpoint DELETE /links Delete one or more links using soft delete. Soft delete marks links as deleted without permanently removing them from the database, allowing for potential recovery and maintaining referential integrity. Accepts an array of link IDs to delete. All specified links must belong to your workspace. The endpoint returns the IDs of successfully deleted links. Deleted links are no longer accessible via the API and will not appear in GET requests, but historical analytics data associated with these links is preserved. **Endpoint** ```text DELETE /links ``` ## Authentication Requires an authorized credential with permission for `linksWrite`. API keys are one supported credential; eligible OAuth or authenticated sessions may also authorize this operation. ## Request Body The request body must be an array of link IDs (ULIDs) to delete. You can delete up to 10,000 links in a single request. However, the actual maximum may be lower based on your subscription plan limits and available resources. | Parameter | Type | Required | Location | Description | | --------- | ------------- | -------- | -------- | ---------------------------------------------------------------------------------------- | | body | array | Yes | body | Array of link IDs (ULIDs) to delete. All IDs must be valid and belong to your workspace. | > **Warning: Request Size** > You can delete up to 10,000 links in a single request. Requests above 10,000 IDs are rejected. ## Status Codes ### 200 Links deleted successfully. **Request** ```bash curl -X DELETE "https://api.hoko.to/links" \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '[ "" ]' ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/links', { method: 'DELETE', headers: { Authorization: 'Bearer ', 'Content-Type': 'application/json' }, body: JSON.stringify(['']) }); const result = await response.json(); ``` **Response** ```json { "deletedIds": [""] } ``` ### 400 Invalid request body (missing IDs, invalid ULIDs, or IDs not found in your workspace). **Request** ```bash curl -X DELETE "https://api.hoko.to/links" \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '[ "invalid-id" ]' ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/links', { method: 'DELETE', headers: { Authorization: 'Bearer ', 'Content-Type': 'application/json' }, body: JSON.stringify(['invalid-id']) }); ``` **Response** ```json { "error": { "en": "Invalid request", "ar": "طلب غير صالح" } } ``` ### 401 Invalid or missing API key. **Request** ```bash curl -X DELETE "https://api.hoko.to/links" \ -H "Authorization: Bearer invalid_key" ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/links', { method: 'DELETE', headers: { Authorization: 'Bearer invalid_key' } }); ``` **Response** ```json { "error": { "en": "Invalid API key", "ar": "مفتاح API غير صالح" } } ``` ### 403 API key does not have the required linksWrite scope. **Request** ```bash curl -X DELETE "https://api.hoko.to/links" \ -H "Authorization: Bearer " ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/links', { method: 'DELETE', headers: { Authorization: 'Bearer ' } }); ``` **Response** ```json { "error": { "en": "Missing required scopes", "ar": "الصلاحيات المطلوبة مفقودة" }, "missingScopes": ["linksWrite"] } ``` ### 429 Rate limit exceeded. Check X-RateLimit-\* headers for details. **Request** ```bash curl -X DELETE "https://api.hoko.to/links" \ -H "Authorization: Bearer " ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/links', { method: 'DELETE', headers: { Authorization: 'Bearer ' } }); ``` **Response** ```json { "error": { "en": "Rate limit exceeded", "ar": "تم تجاوز حد المعدل" }, "retryAfter": 60 } ``` ### 500 Unexpected server error. **Response** ```json { "error": { "en": "Internal server error", "ar": "خطأ داخلي في الخادم" } } ``` ## Examples **Request** ```bash curl -X DELETE "https://api.hoko.to/links" \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '[ "" ]' ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/links', { method: 'DELETE', headers: { Authorization: 'Bearer ', 'Content-Type': 'application/json' }, body: JSON.stringify(['']) }); const result = await response.json(); ``` **Response** ```json { "deletedIds": [""] } ``` > **Warning: Permanent Action** > Deleted links cannot be restored through the API. While the data is preserved for analytics purposes, the links themselves are no longer accessible. Ensure you have backups or exports before performing bulk deletions. --- ### Introduction Organize your links with collections. Collections are essential organizational units that help you structure and manage your link library. Canonical URL: https://docs.hoko.to/collections/introduction Markdown URL: https://docs.hoko.to/collections/introduction/README.md ## Overview Collections, provide a powerful way to organize and categorize your links. Think of collections as containers that help you group related links together—whether by campaign, project, client, or any other organizational structure that makes sense for your workflow. Every link must belong to a collection, making collections a fundamental organizational unit in Hoko. Use collections to create logical groupings that make it easier to find, manage, and analyze your links. The Collections API provides full CRUD operations for managing your organizational structure. Create collections before creating links, and use them to maintain a clean, organized link library. - (GET) Retrieve collections with pagination and filtering - (POST) Create one or more collections to organize your links - (PUT) Update existing collections or create new ones with upsert - (DELETE) Soft delete collections while preserving link relationships > **Tip: Organization Strategy** > Create collections before creating links. Plan your collection structure to match your workflow—consider organizing by campaign, product line, marketing channel, or client. You can always reorganize later, but a good initial structure saves time. --- ### (GET) Get collections Retrieve collections from your workspace. Filter by collection ID or list all collections with pagination. Canonical URL: https://docs.hoko.to/collections/get Markdown URL: https://docs.hoko.to/collections/get/README.md ## Endpoint GET /collections Retrieve collections from your workspace. Filter by collection ID to get specific collections, or omit the filter to retrieve all collections with pagination support. Use this endpoint to list your collections, verify collection existence before creating links, or build collection management interfaces. **Endpoint** ```text GET /collections ``` ## Authentication Requires an authorized credential with permission for `collectionsRead`. API keys are one supported credential; eligible OAuth or authenticated sessions may also authorize this operation. ## Query Parameters | Parameter | Type | Required | Location | Description | | --------- | ------------- | -------- | -------- | ------------------------------------------------------------------------------------------- | | id | string (ULID) | No | query | Filter by specific collection ID. Returns a single collection if found. | | take | number | No | query | Number of results to return (default: 50, min: 1, max: 5,000). | | skip | number | No | query | Number of results to skip for pagination (default: 0, min: 0). | | sort | string | No | query | Sort order by createdAt: "asc" for oldest first, "desc" for newest first (default: "desc"). | > **Warning: Request Limits** > The `take` parameter supports values from 1 to 5,000. Requests above 5,000 are rejected. ## Status Codes ### 200 Successfully retrieved collections. **Request** ```bash curl -X GET "https://api.hoko.to/collections?take=50&sort=desc" \ -H "Authorization: Bearer " ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/collections?take=50&sort=desc', { method: 'GET', headers: { Authorization: 'Bearer ' } }); ``` **Response** ```json [ { "id": "", "name": "Marketing Campaigns", "description": "All marketing links", "createdAt": "2024-01-01T00:00:00Z", "updatedAt": "2024-01-01T00:00:00Z" } ] ``` ### 400 Invalid query parameters. This includes invalid ULID filters or invalid `take`, `skip`, or `sort` values. **Response** ```json { "error": { "en": "Invalid request", "ar": "طلب غير صالح" } } ``` ### 401 Invalid or missing API key. **Request** ```bash curl -X GET "https://api.hoko.to/collections" \ -H "Authorization: Bearer invalid_key" ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/collections', { method: 'GET', headers: { Authorization: 'Bearer invalid_key' } }); ``` **Response** ```json { "error": { "en": "Invalid API key", "ar": "مفتاح API غير صالح" } } ``` ### 403 API key does not have the required collectionsRead scope. **Request** ```bash curl -X GET "https://api.hoko.to/collections" \ -H "Authorization: Bearer " ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/collections', { method: 'GET', headers: { Authorization: 'Bearer ' } }); ``` **Response** ```json { "error": { "en": "Missing required scopes", "ar": "الصلاحيات المطلوبة مفقودة" }, "missingScopes": ["collectionsRead"] } ``` ### 429 Rate limit exceeded. Check X-RateLimit-\* headers for details. **Request** ```bash curl -X GET "https://api.hoko.to/collections" \ -H "Authorization: Bearer " ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/collections', { method: 'GET', headers: { Authorization: 'Bearer ' } }); ``` **Response** ```json { "error": { "en": "Rate limit exceeded", "ar": "تم تجاوز حد المعدل" }, "retryAfter": 60 } ``` ### 500 Unexpected server error. **Response** ```json { "error": { "en": "Internal server error", "ar": "خطأ داخلي في الخادم" } } ``` ## Examples **Request** ```bash curl -X GET "https://api.hoko.to/collections?take=50&sort=desc" \ -H "Authorization: Bearer " ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/collections?take=50&sort=desc', { method: 'GET', headers: { Authorization: 'Bearer ' } }); const collections = await response.json(); ``` **Response** ```json [ { "id": "", "name": "Marketing Campaigns", "description": "All marketing links", "createdAt": "2024-01-01T00:00:00Z", "updatedAt": "2024-01-01T00:00:00Z" } ] ``` --- ### (POST) Create collections Create one or more collections to organize your links. Each collection requires a name. Canonical URL: https://docs.hoko.to/collections/post Markdown URL: https://docs.hoko.to/collections/post/README.md ## Endpoint POST /collections Create one or more collections to organize your links. Collections are essential organizational units—every link must belong to a collection. Each collection requires a name for identification. Optionally include a description to provide additional context about the collection's purpose or contents. You can create multiple collections in a single request by providing an array of collection objects, making it easy to set up your organizational structure quickly. **Endpoint** ```text POST /collections ``` ## Authentication Requires an authorized credential with permission for `collectionsWrite`. API keys are one supported credential; eligible OAuth or authenticated sessions may also authorize this operation. ## Request Body The request body must be an array of collection objects. Each object represents one collection to create. You can create up to 10,000 collections in a single request. However, the actual maximum may be lower based on your subscription plan limits and available resources. | Parameter | Type | Required | Location | Description | | ----------- | ------ | -------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | | name | string | Yes | body | The name of the collection. Used for identification and organization. Choose descriptive names that clearly indicate the collection's purpose. | | description | string | No | body | Optional description providing additional context about the collection. Useful for documentation and team collaboration. | > **Warning: Plan Limits** > The actual maximum number of collections you can create per request may be lower than 10,000 based on your subscription plan limits and available resources. The system will enforce both the hard limit (10,000) and your plan-specific limits. ## Status Codes ### 201 Collections created successfully. **Request** ```bash curl -X POST "https://api.hoko.to/collections" \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '[ { "name": "Marketing Campaigns" } ]' ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/collections', { method: 'POST', headers: { Authorization: 'Bearer ', 'Content-Type': 'application/json' }, body: JSON.stringify([ { name: 'Marketing Campaigns' } ]) }); ``` **Response** ```json [ { "id": "", "name": "Marketing Campaigns", "description": null, "createdAt": "2024-01-01T00:00:00Z", "updatedAt": "2024-01-01T00:00:00Z" } ] ``` ### 400 Invalid request body (missing required fields or invalid values). **Request** ```bash curl -X POST "https://api.hoko.to/collections" \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '[ {} ]' ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/collections', { method: 'POST', headers: { Authorization: 'Bearer ', 'Content-Type': 'application/json' }, body: JSON.stringify([{}]) }); ``` **Response** ```json { "error": { "en": "Invalid request", "ar": "طلب غير صالح" } } ``` ### 401 Invalid or missing API key. **Request** ```bash curl -X POST "https://api.hoko.to/collections" \ -H "Authorization: Bearer invalid_key" ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/collections', { method: 'POST', headers: { Authorization: 'Bearer invalid_key' } }); ``` **Response** ```json { "error": { "en": "Invalid API key", "ar": "مفتاح API غير صالح" } } ``` ### 403 API key does not have the required collectionsWrite scope. **Request** ```bash curl -X POST "https://api.hoko.to/collections" \ -H "Authorization: Bearer " ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/collections', { method: 'POST', headers: { Authorization: 'Bearer ' } }); ``` **Response** ```json { "error": { "en": "Missing required scopes", "ar": "الصلاحيات المطلوبة مفقودة" }, "missingScopes": ["collectionsWrite"] } ``` ### 429 Rate limit exceeded. Check X-RateLimit-\* headers for details. **Request** ```bash curl -X POST "https://api.hoko.to/collections" \ -H "Authorization: Bearer " ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/collections', { method: 'POST', headers: { Authorization: 'Bearer ' } }); ``` **Response** ```json { "error": { "en": "Rate limit exceeded", "ar": "تم تجاوز حد المعدل" }, "retryAfter": 60 } ``` ### 500 Unexpected server error. **Response** ```json { "error": { "en": "Internal server error", "ar": "خطأ داخلي في الخادم" } } ``` ## Examples **Request** ```bash curl -X POST "https://api.hoko.to/collections" \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '[ { "name": "Marketing Campaigns", "description": "All marketing campaign links" } ]' ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/collections', { method: 'POST', headers: { Authorization: 'Bearer ', 'Content-Type': 'application/json' }, body: JSON.stringify([ { name: 'Marketing Campaigns', description: 'All marketing campaign links' } ]) }); const collections = await response.json(); ``` **Response** ```json [ { "id": "", "name": "Marketing Campaigns", "description": "All marketing campaign links", "createdAt": "2024-01-01T00:00:00Z", "updatedAt": "2024-01-01T00:00:00Z" } ] ``` > **Info: Collection Requirements** > Every link must belong to a collection. Create collections before creating links, or ensure the collectionId you reference in link creation requests exists in your workspace. --- ### (PUT) Update/Upsert collections Update existing collections or create new ones with upsert operations. Canonical URL: https://docs.hoko.to/collections/put Markdown URL: https://docs.hoko.to/collections/put/README.md ## Endpoint PUT /collections Upsert (update or insert) one or more collections. If id is provided, the collection is updated. If the ID does not exist, the request fails. To create new collections, omit the id field. This endpoint is useful for synchronization scenarios where you want to ensure collections exist with specific properties. **Endpoint** ```text PUT /collections ``` ## Authentication Requires an authorized credential with permission for `collectionsWrite`. API keys are one supported credential; eligible OAuth or authenticated sessions may also authorize this operation. ## Request Body The request body must be an array of collection objects. Include the id field to update an existing collection, or omit it to create a new one. You can upsert up to 10,000 collections in a single request. However, the actual maximum may be lower based on your subscription plan limits and available resources. | Parameter | Type | Required | Location | Description | | ----------- | ------------- | -------- | -------- | --------------------------------------------------------------------------------------------------------------------------- | | id | string (ULID) | Yes | body | Required when updating. Omit to create a new collection. If provided, it must exist in your workspace or the request fails. | | name | string | No | body | The name of the collection. Required when creating a new collection (no id). Optional when updating. | | description | string/null | No | body | Optional description. PUT insert and update entries may send null for no description. Only changes when provided. | > **Info: Update Behavior** > When updating, include at least one mutable field besides id. Only the fields you include are changed. Omitted fields keep their current values. To clear a value, send it explicitly as null. PUT insert entries also accept `description: null`. > **Warning: Plan Limits** > The actual maximum number of collections you can upsert per request may be lower than 10,000 based on your subscription plan limits and available resources. The system will enforce both the hard limit (10,000) and your plan-specific limits. ## Status Codes ### 200 Collections updated or created successfully. **Request** ```bash curl -X PUT "https://api.hoko.to/collections" \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '[ { "id": "", "name": "Updated Name" } ]' ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/collections', { method: 'PUT', headers: { Authorization: 'Bearer ', 'Content-Type': 'application/json' }, body: JSON.stringify([ { id: '', name: 'Updated Name' } ]) }); ``` **Response** ```json [ { "id": "", "name": "Updated Name", "description": null, "createdAt": "2024-01-01T00:00:00Z", "updatedAt": "2024-01-01T00:00:00Z" } ] ``` ### 400 Invalid request body (missing required fields or invalid values). **Request** ```bash curl -X PUT "https://api.hoko.to/collections" \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '[ {} ]' ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/collections', { method: 'PUT', headers: { Authorization: 'Bearer ', 'Content-Type': 'application/json' }, body: JSON.stringify([{}]) }); ``` **Response** ```json { "error": { "en": "Invalid request", "ar": "طلب غير صالح" } } ``` ### 401 Invalid or missing API key. **Request** ```bash curl -X PUT "https://api.hoko.to/collections" \ -H "Authorization: Bearer invalid_key" ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/collections', { method: 'PUT', headers: { Authorization: 'Bearer invalid_key' } }); ``` **Response** ```json { "error": { "en": "Invalid API key", "ar": "مفتاح API غير صالح" } } ``` ### 403 API key does not have the required collectionsWrite scope. **Request** ```bash curl -X PUT "https://api.hoko.to/collections" \ -H "Authorization: Bearer " ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/collections', { method: 'PUT', headers: { Authorization: 'Bearer ' } }); ``` **Response** ```json { "error": { "en": "Missing required scopes", "ar": "الصلاحيات المطلوبة مفقودة" }, "missingScopes": ["collectionsWrite"] } ``` ### 429 Rate limit exceeded. Check X-RateLimit-\* headers for details. **Request** ```bash curl -X PUT "https://api.hoko.to/collections" \ -H "Authorization: Bearer " ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/collections', { method: 'PUT', headers: { Authorization: 'Bearer ' } }); ``` **Response** ```json { "error": { "en": "Rate limit exceeded", "ar": "تم تجاوز حد المعدل" }, "retryAfter": 60 } ``` ### 500 Unexpected server error. **Response** ```json { "error": { "en": "Internal server error", "ar": "خطأ داخلي في الخادم" } } ``` ## Examples **Request** ```bash curl -X PUT "https://api.hoko.to/collections" \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '[ { "id": "", "name": "Updated Name", "description": "Updated description" } ]' ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/collections', { method: 'PUT', headers: { Authorization: 'Bearer ', 'Content-Type': 'application/json' }, body: JSON.stringify([ { id: '', name: 'Updated Name', description: 'Updated description' } ]) }); const collections = await response.json(); ``` **Response** ```json [ { "id": "", "name": "Updated Name", "description": "Updated description", "createdAt": "2024-01-01T00:00:00Z", "updatedAt": "2024-01-01T00:00:00Z" } ] ``` --- ### (DELETE) Delete collections Delete one or more collections using soft delete. Canonical URL: https://docs.hoko.to/collections/delete Markdown URL: https://docs.hoko.to/collections/delete/README.md ## Endpoint DELETE /collections Delete one or more collections using soft delete. Soft delete marks collections as deleted without permanently removing them from the database. Accepts an array of collection IDs to delete. All specified collections must belong to your workspace. **Endpoint** ```text DELETE /collections ``` ## Authentication Requires an authorized credential with permission for `collectionsWrite`. API keys are one supported credential; eligible OAuth or authenticated sessions may also authorize this operation. ## Request Body The request body must be an array of collection IDs (ULIDs) to delete. You can delete up to 10,000 collections in a single request. Requests above 10,000 IDs are rejected. | Parameter | Type | Required | Location | Description | | --------- | ------------- | -------- | -------- | ---------------------------------------------------------------------------------------------- | | body | array | Yes | body | Array of collection IDs (ULIDs) to delete. All IDs must be valid and belong to your workspace. | > **Warning: Request Size** > Ensure the request body contains at least one valid collection ID. ## Status Codes ### 200 Collections deleted successfully. **Request** ```bash curl -X DELETE "https://api.hoko.to/collections" \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '[ "" ]' ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/collections', { method: 'DELETE', headers: { Authorization: 'Bearer ', 'Content-Type': 'application/json' }, body: JSON.stringify(['']) }); ``` **Response** ```json { "deletedIds": [""] } ``` ### 400 Invalid request body (missing IDs, invalid ULIDs, or IDs not found in your workspace). **Request** ```bash curl -X DELETE "https://api.hoko.to/collections" \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '[ "invalid-id" ]' ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/collections', { method: 'DELETE', headers: { Authorization: 'Bearer ', 'Content-Type': 'application/json' }, body: JSON.stringify(['invalid-id']) }); ``` **Response** ```json { "error": { "en": "Invalid request", "ar": "طلب غير صالح" } } ``` ### 401 Invalid or missing API key. **Request** ```bash curl -X DELETE "https://api.hoko.to/collections" \ -H "Authorization: Bearer invalid_key" ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/collections', { method: 'DELETE', headers: { Authorization: 'Bearer invalid_key' } }); ``` **Response** ```json { "error": { "en": "Invalid API key", "ar": "مفتاح API غير صالح" } } ``` ### 403 API key does not have the required collectionsWrite scope. **Request** ```bash curl -X DELETE "https://api.hoko.to/collections" \ -H "Authorization: Bearer " ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/collections', { method: 'DELETE', headers: { Authorization: 'Bearer ' } }); ``` **Response** ```json { "error": { "en": "Missing required scopes", "ar": "الصلاحيات المطلوبة مفقودة" }, "missingScopes": ["collectionsWrite"] } ``` ### 429 Rate limit exceeded. Check X-RateLimit-\* headers for details. **Request** ```bash curl -X DELETE "https://api.hoko.to/collections" \ -H "Authorization: Bearer " ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/collections', { method: 'DELETE', headers: { Authorization: 'Bearer ' } }); ``` **Response** ```json { "error": { "en": "Rate limit exceeded", "ar": "تم تجاوز حد المعدل" }, "retryAfter": 60 } ``` ### 500 Unexpected server error. **Response** ```json { "error": { "en": "Internal server error", "ar": "خطأ داخلي في الخادم" } } ``` ## Examples **Request** ```bash curl -X DELETE "https://api.hoko.to/collections" \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '[ "" ]' ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/collections', { method: 'DELETE', headers: { Authorization: 'Bearer ', 'Content-Type': 'application/json' }, body: JSON.stringify(['']) }); const result = await response.json(); ``` **Response** ```json { "deletedIds": [""] } ``` > **Warning: Important Note** > Deleted collections cannot be restored through the API. Links that belong to deleted collections will still exist but may need to be moved to active collections for proper organization. --- ### Custom API clients Connect any HTTPS client to Hoko's unversioned REST API. Canonical URL: https://docs.hoko.to/custom-api Markdown URL: https://docs.hoko.to/custom-api/README.md ## Connect a custom client Use any HTTPS client that can send JSON and request headers. The canonical API base is `https://api.hoko.to`. The API has no version prefix. Resource routes are the public HTTP contract and use the same shared engine as the dashboard, CLI, and MCP adapters. Create an API key in Hoko with only the scopes your job needs. Custom clients use manual API-key setup. Hoko does not provide a native SDK or OAuth connection for this path. ## Authenticate Send the key in `X-API-Key`: ```sh curl --request GET 'https://api.hoko.to/links' \ --header 'X-API-Key: ' \ --header 'Accept: application/json' ``` `Authorization: Bearer ` is also accepted. Do not send both headers. Treat the key as a secret, keep it outside source control, and rotate it when a job or person no longer needs access. ## Read and write links The feature route keeps the established response shapes: ```sh curl --request POST 'https://api.hoko.to/links' \ --header 'X-API-Key: ' \ --header 'Content-Type: application/json' \ --header 'X-Request-Id: custom-client-create-001' \ --data '[{"url":"https://example.com/campaign","collectionId":""}]' ``` The request body is an array for this existing bulkable route. The response is an array of created link records. `DELETE /links` also accepts an array of link IDs. Use the resource route for each HTTP request. Engine operation names remain metadata used by the CLI and MCP adapters; they are not public HTTP paths. ## Request IDs and responses Send a unique `X-Request-Id` for each request. Hoko carries it through the shared engine and logging path so support can correlate a request. Keep the value free of secrets or personal data. Successful responses use the route's existing JSON shape and a 2xx status. Errors include an `error` message and stable `code` where the route exposes one. A client must not treat a 2xx response as permission to retry a mutation unless the operation documents that behavior. ## Scopes and errors API-key scopes are checked at the resource boundary: | Response | Meaning | Client action | | -------- | ---------------------------------------------------- | ------------------------------------------------------------------- | | `400` | Malformed JSON or invalid operation input | Fix the request. Do not retry unchanged. | | `401` | Missing, invalid, or revoked credential | Replace or revoke the credential in the client. | | `403` | The key lacks the required scope or workspace access | Grant the narrow required scope or choose an allowed resource. | | `404` | Missing resource | Check the resource path or resource ID. | | `429` | The shared admission limit is exhausted | Wait for `Retry-After`, then retry a safe request. | | `5xx` | Hoko could not complete the request | Retry only a documented safe operation and preserve the request ID. | Invalid credentials do not reveal workspace data or rate counters. A revoked key fails on the next protected request. A key cannot regain access by changing the workspace header. ## Rate limits and retries Every root REST operation consumes one shared workspace admission. Responses include `X-RateLimit-Limit`, `X-RateLimit-Remaining`, and `X-RateLimit-Reset`. A `429` response includes `Retry-After` in seconds. Retry reads after the advertised delay. Treat link creation, updates, and deletes as non-idempotent unless the operation's contract explicitly adds durable idempotency. If a write times out after reaching Hoko, inspect the result before sending another write. ## Security checklist - Store `HOKO_API_KEY` in a secret manager or process environment. - Give the key the smallest required scopes. - Keep request and response logs free of API keys, cookies, and destinations. - Rotate or revoke the key when its owner or job changes. - Test against a disposable workspace before enabling a production job. --- ### Introduction Create, read, update, and delete tags for categorizing and organizing your links. Canonical URL: https://docs.hoko.to/tags/introduction Markdown URL: https://docs.hoko.to/tags/introduction/README.md ## Overview Tags help categorize and filter your links, providing a flexible labeling system that complements collections. While collections organize links into folders, tags allow you to apply multiple labels to a single link, enabling cross-cutting categorization. Use tags to mark links by campaign type, content category, target audience, priority level, or any other dimension that helps you organize and find your links. A single link can have multiple tags, making it easy to filter and search across different organizational axes. The Tags API provides full CRUD operations for managing your tag library. Create tags with custom names and colors, update them as your needs evolve, and delete tags that are no longer needed. - (GET) Retrieve tags with pagination and filtering - (POST) Create one or more tags with custom names and colors - (PUT) Update existing tags or create new ones with upsert - (DELETE) Permanently delete tags (hard delete) > **Tip: Tag Strategy** > Plan your tag structure to complement your collection organization. Use tags for cross-cutting concerns that span multiple collections, such as campaign types, content categories, or priority levels. Choose descriptive tag names and use colors to visually distinguish different tag categories. --- ### (GET) Get tags Retrieve tags from your workspace. Filter by tag ID or list all tags with pagination. Canonical URL: https://docs.hoko.to/tags/get Markdown URL: https://docs.hoko.to/tags/get/README.md ## Endpoint GET /tags Retrieve tags by id. Supports pagination with take, skip, and sorting by tag id. Use this endpoint to list your tags, verify tag existence, or build tag management interfaces. **Endpoint** ```text GET /tags ``` ## Authentication Requires an authorized credential with permission for `tagsRead`. API keys are one supported credential; eligible OAuth or authenticated sessions may also authorize this operation. ## Query Parameters | Parameter | Type | Required | Location | Description | | --------- | ------------- | -------- | -------- | ---------------------------------------------------------------------------------------- | | id | string (ULID) | No | query | Filter by specific tag ID. Returns a single tag if found. | | take | number | No | query | Number of results to return (default: 50, min: 1, max: 5,000). | | skip | number | No | query | Number of results to skip for pagination (default: 0, min: 0). | | sort | string | No | query | Sort order by tag id: "asc" for oldest first, "desc" for newest first (default: "desc"). | > **Warning: Request Limits** > The `take` parameter supports values from 1 to 5,000. Requests above 5,000 are rejected. ## Status Codes ### 200 Successfully retrieved tags. **Request** ```bash curl -X GET "https://api.hoko.to/tags?take=50&sort=desc" \ -H "Authorization: Bearer " ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/tags?take=50&sort=desc', { method: 'GET', headers: { Authorization: 'Bearer ' } }); const tags = await response.json(); ``` **Response** ```json [ { "id": "", "name": "Marketing", "color": "blue" } ] ``` ### 400 Invalid query parameters. This includes invalid ULID filters or invalid `take`, `skip`, or `sort` values. **Response** ```json { "error": { "en": "Invalid request", "ar": "طلب غير صالح" } } ``` ### 401 Invalid or missing API key. **Request** ```bash curl -X GET "https://api.hoko.to/tags" \ -H "Authorization: Bearer invalid_key" ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/tags', { method: 'GET', headers: { Authorization: 'Bearer invalid_key' } }); ``` **Response** ```json { "error": { "en": "Invalid API key", "ar": "مفتاح API غير صالح" } } ``` ### 403 API key does not have the required tagsRead scope. **Request** ```bash curl -X GET "https://api.hoko.to/tags" \ -H "Authorization: Bearer " ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/tags', { method: 'GET', headers: { Authorization: 'Bearer ' } }); ``` **Response** ```json { "error": { "en": "Missing required scopes", "ar": "الصلاحيات المطلوبة مفقودة" }, "missingScopes": ["tagsRead"] } ``` ### 429 Rate limit exceeded. Check X-RateLimit-\* headers for details. **Request** ```bash curl -X GET "https://api.hoko.to/tags" \ -H "Authorization: Bearer " ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/tags', { method: 'GET', headers: { Authorization: 'Bearer ' } }); ``` **Response** ```json { "error": { "en": "Rate limit exceeded", "ar": "تم تجاوز حد المعدل" }, "retryAfter": 60 } ``` ### 500 Unexpected server error. **Response** ```json { "error": { "en": "Internal server error", "ar": "خطأ داخلي في الخادم" } } ``` ## Examples **Request** ```bash curl -X GET "https://api.hoko.to/tags?take=50&sort=desc" \ -H "Authorization: Bearer " ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/tags?take=50&sort=desc', { method: 'GET', headers: { Authorization: 'Bearer ' } }); const tags = await response.json(); ``` **Response** ```json [ { "id": "", "name": "Marketing", "color": "blue" } ] ``` --- ### (POST) Create tags Create one or more tags. Each tag requires a name, and color is optional. Canonical URL: https://docs.hoko.to/tags/post Markdown URL: https://docs.hoko.to/tags/post/README.md ## Endpoint POST /tags Create one or more tags. Accepts an array of tag objects. Each tag requires a name. Color is optional (defaults to "slate"). **Endpoint** ```text POST /tags ``` ## Authentication Requires an authorized credential with permission for `tagsWrite`. API keys are one supported credential; eligible OAuth or authenticated sessions may also authorize this operation. ## Request Body The request body must be an array of tag objects. Each object represents one tag to create. You can create up to 10,000 tags in a single request. However, the actual maximum may be lower based on your subscription plan limits and available resources. | Parameter | Type | Required | Location | Description | | --------- | ------ | -------- | -------- | -------------------------------------------------------------------------------------- | | name | string | Yes | body | The name of the tag. Choose descriptive names that clearly indicate the tag's purpose. | | color | string | No | body | The color of the tag. Must be one of the available color values (default: "slate"). | > **Warning: Plan Limits** > The actual maximum number of tags you can create per request may be lower than 10,000 based on your subscription plan limits and available resources. The system will enforce both the hard limit (10,000) and your plan-specific limits. ## Status Codes ### 201 Tags created successfully. **Request** ```bash curl -X POST "https://api.hoko.to/tags" \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '[ { "name": "Marketing", "color": "blue" } ]' ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/tags', { method: 'POST', headers: { Authorization: 'Bearer ', 'Content-Type': 'application/json' }, body: JSON.stringify([ { name: 'Marketing', color: 'blue' } ]) }); const tags = await response.json(); ``` **Response** ```json [ { "id": "", "name": "Marketing", "color": "blue" } ] ``` ### 400 Invalid request body (missing required fields or invalid values). **Request** ```bash curl -X POST "https://api.hoko.to/tags" \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '[ { "name": "Marketing", "color": "invalid-color" } ]' ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/tags', { method: 'POST', headers: { Authorization: 'Bearer ', 'Content-Type': 'application/json' }, body: JSON.stringify([ { name: 'Marketing', color: 'invalid-color' } ]) }); ``` **Response** ```json { "error": { "en": "Invalid request", "ar": "طلب غير صالح" } } ``` ### 401 Invalid or missing API key. **Request** ```bash curl -X POST "https://api.hoko.to/tags" \ -H "Authorization: Bearer invalid_key" ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/tags', { method: 'POST', headers: { Authorization: 'Bearer invalid_key' } }); ``` **Response** ```json { "error": { "en": "Invalid API key", "ar": "مفتاح API غير صالح" } } ``` ### 403 API key does not have the required tagsWrite scope. **Request** ```bash curl -X POST "https://api.hoko.to/tags" \ -H "Authorization: Bearer " ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/tags', { method: 'POST', headers: { Authorization: 'Bearer ' } }); ``` **Response** ```json { "error": { "en": "Missing required scopes", "ar": "الصلاحيات المطلوبة مفقودة" }, "missingScopes": ["tagsWrite"] } ``` ### 429 Rate limit exceeded. Check X-RateLimit-\* headers for details. **Request** ```bash curl -X POST "https://api.hoko.to/tags" \ -H "Authorization: Bearer " ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/tags', { method: 'POST', headers: { Authorization: 'Bearer ' } }); ``` **Response** ```json { "error": { "en": "Rate limit exceeded", "ar": "تم تجاوز حد المعدل" }, "retryAfter": 60 } ``` ### 500 Unexpected server error. **Response** ```json { "error": { "en": "Internal server error", "ar": "خطأ داخلي في الخادم" } } ``` ## Examples ### Available Colors Type: color - slate - gray - zinc - neutral - stone - red - orange - amber - yellow - lime - green - emerald - teal - cyan - sky - blue - indigo - violet - purple - fuchsia - pink - rose **Request** ```bash curl -X POST "https://api.hoko.to/tags" \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '[ { "name": "Marketing", "color": "blue" } ]' ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/tags', { method: 'POST', headers: { Authorization: 'Bearer ', 'Content-Type': 'application/json' }, body: JSON.stringify([ { name: 'Marketing', color: 'blue' } ]) }); const tags = await response.json(); ``` **Response** ```json [ { "id": "", "name": "Marketing", "color": "blue" } ] ``` --- ### (PUT) Update/Upsert tags Update existing tags or create new ones with upsert operations. Canonical URL: https://docs.hoko.to/tags/put Markdown URL: https://docs.hoko.to/tags/put/README.md ## Endpoint PUT /tags Upsert (update or insert) one or more tags. If id is provided, the tag is updated. If the ID does not exist, the request fails. To create new tags, omit the id field. This endpoint is useful for synchronization scenarios where you want to ensure tags exist with specific properties. **Endpoint** ```text PUT /tags ``` ## Authentication Requires an authorized credential with permission for `tagsWrite`. API keys are one supported credential; eligible OAuth or authenticated sessions may also authorize this operation. ## Request Body The request body must be an array of tag objects. Include the id field to update an existing tag, or omit it to create a new one. You can upsert up to 10,000 tags in a single request. However, the actual maximum may be lower based on your subscription plan limits and available resources. | Parameter | Type | Required | Location | Description | | --------- | ------------- | -------- | -------- | -------------------------------------------------------------------------------------------------------------------- | | id | string (ULID) | Yes | body | Required when updating. Omit to create a new tag. If provided, it must exist in your workspace or the request fails. | | name | string | No | body | The name of the tag. Required when creating a new tag (no id). Optional when updating. | | color | string | No | body | The color of the tag. Optional. Defaults to \"slate\" when creating a new tag. | > **Info: Update Behavior** > When updating, include at least one mutable field besides id. Only the fields you include are changed. Omitted fields keep their current values. For new tags (no id), color defaults to \"slate\" if omitted. > **Warning: Plan Limits** > The actual maximum number of tags you can upsert per request may be lower than 10,000 based on your subscription plan limits and available resources. The system will enforce both the hard limit (10,000) and your plan-specific limits. ## Status Codes ### 200 Tags updated or created successfully. **Request** ```bash curl -X PUT "https://api.hoko.to/tags" \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '[ { "id": "", "name": "Updated Tag", "color": "green" } ]' ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/tags', { method: 'PUT', headers: { Authorization: 'Bearer ', 'Content-Type': 'application/json' }, body: JSON.stringify([ { id: '', name: 'Updated Tag', color: 'green' } ]) }); const tags = await response.json(); ``` **Response** ```json [ { "id": "", "name": "Updated Tag", "color": "green" } ] ``` ### 400 Invalid request body (missing required fields or invalid values). **Request** ```bash curl -X PUT "https://api.hoko.to/tags" \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '[ { "name": "Tag", "color": "invalid-color" } ]' ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/tags', { method: 'PUT', headers: { Authorization: 'Bearer ', 'Content-Type': 'application/json' }, body: JSON.stringify([ { name: 'Tag', color: 'invalid-color' } ]) }); ``` **Response** ```json { "error": { "en": "Invalid request", "ar": "طلب غير صالح" } } ``` ### 401 Invalid or missing API key. **Request** ```bash curl -X PUT "https://api.hoko.to/tags" \ -H "Authorization: Bearer invalid_key" ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/tags', { method: 'PUT', headers: { Authorization: 'Bearer invalid_key' } }); ``` **Response** ```json { "error": { "en": "Invalid API key", "ar": "مفتاح API غير صالح" } } ``` ### 403 API key does not have the required tagsWrite scope. **Request** ```bash curl -X PUT "https://api.hoko.to/tags" \ -H "Authorization: Bearer " ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/tags', { method: 'PUT', headers: { Authorization: 'Bearer ' } }); ``` **Response** ```json { "error": { "en": "Missing required scopes", "ar": "الصلاحيات المطلوبة مفقودة" }, "missingScopes": ["tagsWrite"] } ``` ### 429 Rate limit exceeded. Check X-RateLimit-\* headers for details. **Request** ```bash curl -X PUT "https://api.hoko.to/tags" \ -H "Authorization: Bearer " ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/tags', { method: 'PUT', headers: { Authorization: 'Bearer ' } }); ``` **Response** ```json { "error": { "en": "Rate limit exceeded", "ar": "تم تجاوز حد المعدل" }, "retryAfter": 60 } ``` ### 500 Unexpected server error. **Response** ```json { "error": { "en": "Internal server error", "ar": "خطأ داخلي في الخادم" } } ``` ## Examples ### Available Colors Type: color - slate - gray - zinc - neutral - stone - red - orange - amber - yellow - lime - green - emerald - teal - cyan - sky - blue - indigo - violet - purple - fuchsia - pink - rose **Request** ```bash curl -X PUT "https://api.hoko.to/tags" \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '[ { "id": "", "name": "Updated Tag", "color": "green" } ]' ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/tags', { method: 'PUT', headers: { Authorization: 'Bearer ', 'Content-Type': 'application/json' }, body: JSON.stringify([ { id: '', name: 'Updated Tag', color: 'green' } ]) }); const tags = await response.json(); ``` **Response** ```json [ { "id": "", "name": "Updated Tag", "color": "green" } ] ``` --- ### (DELETE) Delete tags Permanently delete one or more tags (hard delete). Canonical URL: https://docs.hoko.to/tags/delete Markdown URL: https://docs.hoko.to/tags/delete/README.md ## Endpoint DELETE /tags Delete one or more tags (hard delete). This permanently removes tags from your workspace. Accepts an array of tag IDs to delete. All specified tags must belong to your workspace. **Endpoint** ```text DELETE /tags ``` ## Authentication Requires an authorized credential with permission for `tagsWrite`. API keys are one supported credential; eligible OAuth or authenticated sessions may also authorize this operation. ## Request Body The request body must be an array of tag IDs (ULIDs) to delete. You can delete up to 10,000 tags in a single request. Requests above 10,000 IDs are rejected. | Parameter | Type | Required | Location | Description | | --------- | ------------- | -------- | -------- | --------------------------------------------------------------------------------------- | | body | array | Yes | body | Array of tag IDs (ULIDs) to delete. All IDs must be valid and belong to your workspace. | > **Warning: Request Size** > Ensure the request body contains at least one valid tag ID. ## Status Codes ### 200 Tags deleted successfully. **Request** ```bash curl -X DELETE "https://api.hoko.to/tags" \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '[ "" ]' ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/tags', { method: 'DELETE', headers: { Authorization: 'Bearer ', 'Content-Type': 'application/json' }, body: JSON.stringify(['']) }); const result = await response.json(); ``` **Response** ```json { "deletedIds": [""] } ``` ### 400 Invalid request body (missing IDs, invalid ULIDs, or IDs not found in your workspace). **Request** ```bash curl -X DELETE "https://api.hoko.to/tags" \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '[ "invalid-id" ]' ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/tags', { method: 'DELETE', headers: { Authorization: 'Bearer ', 'Content-Type': 'application/json' }, body: JSON.stringify(['invalid-id']) }); ``` **Response** ```json { "error": { "en": "Invalid request", "ar": "طلب غير صالح" } } ``` ### 401 Invalid or missing API key. **Request** ```bash curl -X DELETE "https://api.hoko.to/tags" \ -H "Authorization: Bearer invalid_key" ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/tags', { method: 'DELETE', headers: { Authorization: 'Bearer invalid_key' } }); ``` **Response** ```json { "error": { "en": "Invalid API key", "ar": "مفتاح API غير صالح" } } ``` ### 403 API key does not have the required tagsWrite scope. **Request** ```bash curl -X DELETE "https://api.hoko.to/tags" \ -H "Authorization: Bearer " ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/tags', { method: 'DELETE', headers: { Authorization: 'Bearer ' } }); ``` **Response** ```json { "error": { "en": "Missing required scopes", "ar": "الصلاحيات المطلوبة مفقودة" }, "missingScopes": ["tagsWrite"] } ``` ### 429 Rate limit exceeded. Check X-RateLimit-\* headers for details. **Request** ```bash curl -X DELETE "https://api.hoko.to/tags" \ -H "Authorization: Bearer " ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/tags', { method: 'DELETE', headers: { Authorization: 'Bearer ' } }); ``` **Response** ```json { "error": { "en": "Rate limit exceeded", "ar": "تم تجاوز حد المعدل" }, "retryAfter": 60 } ``` ### 500 Unexpected server error. **Response** ```json { "error": { "en": "Internal server error", "ar": "خطأ داخلي في الخادم" } } ``` ## Examples **Request** ```bash curl -X DELETE "https://api.hoko.to/tags" \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '[ "" ]' ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/tags', { method: 'DELETE', headers: { Authorization: 'Bearer ', 'Content-Type': 'application/json' }, body: JSON.stringify(['']) }); const result = await response.json(); ``` **Response** ```json { "deletedIds": [""] } ``` > **Warning: Permanent Action** > Deleted tags cannot be restored. This is a hard delete operation that permanently removes tags from your workspace. Links that had these tags will no longer have those tag associations. --- ### Introduction Retrieve click analytics and performance data for your links. Gain insights into traffic patterns, user behavior, and campaign effectiveness. Canonical URL: https://docs.hoko.to/analytics/introduction Markdown URL: https://docs.hoko.to/analytics/introduction/README.md ## Overview The Analytics API provides read-only access to comprehensive click data and analytics for your links. Track every click, understand your audience, and measure campaign performance with detailed insights. Every click on your short links is automatically tracked and enriched with metadata including device information, geographic location, browser details, referrer data, and UTM parameters. This data is immediately available through the Analytics API for real-time analysis and reporting. Use the Analytics API to build custom dashboards, generate reports, analyze traffic patterns, measure campaign ROI, and understand how users interact with your links across different channels and devices. - (GET) Retrieve click analytics with flexible filtering by link, partner, or date range - Detailed click data including device, location, browser, and UTM parameters - Support for pagination and sorting to efficiently process large datasets - Real-time analytics data available immediately after clicks occur > **Info: Data Availability** > Analytics data is available immediately after a click occurs. Use date range filters to analyze specific time periods, and combine with link or partner filters to drill down into specific segments of your traffic. --- ### (GET) Get analytics Retrieve click analytics and performance data for your links. Filter by link, partner, or date range. Canonical URL: https://docs.hoko.to/analytics/get Markdown URL: https://docs.hoko.to/analytics/get/README.md ## Endpoint GET /analytics Retrieve click analytics and performance data for your links. Filter by link, partner, or date range to analyze specific segments of your traffic. Supports flexible filtering and pagination, making it easy to extract insights from large datasets. Results include detailed click information including device, location, browser, and UTM parameters. **Endpoint** ```text GET /analytics ``` ## Authentication Requires an authorized credential with permission for `analyticsRead`. API keys are one supported credential; eligible OAuth or authenticated sessions may also authorize this operation. ## Query Parameters | Parameter | Type | Required | Location | Description | | --------- | --------------------- | -------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ | | linkId | string (ULID) | No | query | Filter analytics by specific link ID. Returns click data only for the specified link. | | partnerId | string (ULID) | No | query | Filter analytics by partner ID. Returns click data for all links associated with the specified partner. | | startDate | string (UTC ISO 8601) | No | query | Start date for the date range filter. Must be a UTC timestamp with trailing `Z` (e.g., "2024-01-01T00:00:00Z"). Offsets such as `+03:00` are rejected. | | endDate | string (UTC ISO 8601) | No | query | End date for the date range filter. Must be a UTC timestamp with trailing `Z` (e.g., "2024-01-31T23:59:59Z"). Offsets such as `+03:00` are rejected. | | take | number | No | query | Number of results to return (default: 50, min: 1, max: 5,000). Use pagination to retrieve large datasets efficiently. | | skip | number | No | query | Number of results to skip for pagination (default: 0, min: 0). Use with take to implement pagination. | | sort | string | No | query | Sort order by createdAt: "asc" for oldest clicks first, "desc" for newest clicks first (default: "desc"). | > **Warning: Request Limits** > The `take` parameter supports values from 1 to 5,000. Requests above 5,000 are rejected. > **Info: Retention Window** > Results are clamped to your workspace plan retention window and to the current server time. If `startDate` is earlier than the retention window, the effective start is moved forward. If `endDate` is in the future, the effective end is the current server time. ## Status Codes ### 200 Successfully retrieved analytics data. **Request** ```bash curl -X GET "https://api.hoko.to/analytics?linkId=&take=50" \ -H "Authorization: Bearer " ``` **Request** ```javascript const params = new URLSearchParams({ linkId: '', take: '50' }); const response = await fetch(`https://api.hoko.to/analytics?${params}`, { method: 'GET', headers: { Authorization: 'Bearer ' } }); const analytics = await response.json(); ``` **Response** ```json [ { "id": "", "linkId": "", "partnerId": null, "visitorId": null, "visitorSessionId": null, "referrer": null, "destination": null, "shortId": null, "utm": null, "externalId": null, "tenantId": null, "expired": false, "secured": false, "scanned": false, "geoTargeted": false, "iosTargeted": false, "androidTargeted": false, "origin": null, "pathname": null, "search": null, "browserLanguageCode": null, "browserLanguageRegion": null, "browserName": "Chrome", "browserVersion": null, "osName": null, "osVersion": null, "deviceVendor": null, "deviceModel": null, "deviceType": "desktop", "ipAddress": null, "continent": null, "country": "United States", "countryCode": null, "region": null, "city": null, "district": null, "zip": null, "latitude": null, "longitude": null, "mobile": false, "proxy": false, "hosting": false, "createdAt": "2024-01-01T00:00:00Z" } ] ``` ### 400 Invalid query parameters (e.g., malformed dates or ULIDs). **Request** ```bash curl -X GET "https://api.hoko.to/analytics?startDate=invalid-date" \ -H "Authorization: Bearer " ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/analytics?startDate=invalid-date', { method: 'GET', headers: { Authorization: 'Bearer ' } }); ``` **Response** ```json { "error": { "en": "Invalid request", "ar": "طلب غير صالح" } } ``` ### 401 Invalid or missing API key. **Request** ```bash curl -X GET "https://api.hoko.to/analytics" \ -H "Authorization: Bearer invalid_key" ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/analytics', { method: 'GET', headers: { Authorization: 'Bearer invalid_key' } }); ``` **Response** ```json { "error": { "en": "Invalid API key", "ar": "مفتاح API غير صالح" } } ``` ### 403 API key does not have the required analyticsRead scope. **Request** ```bash curl -X GET "https://api.hoko.to/analytics" \ -H "Authorization: Bearer " ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/analytics', { method: 'GET', headers: { Authorization: 'Bearer ' } }); ``` **Response** ```json { "error": { "en": "Missing required scopes", "ar": "الصلاحيات المطلوبة مفقودة" }, "missingScopes": ["analyticsRead"] } ``` ### 429 Rate limit exceeded. Check X-RateLimit-\* headers for details. **Request** ```bash curl -X GET "https://api.hoko.to/analytics" \ -H "Authorization: Bearer " ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/analytics', { method: 'GET', headers: { Authorization: 'Bearer ' } }); ``` **Response** ```json { "error": { "en": "Rate limit exceeded", "ar": "تم تجاوز حد المعدل" }, "retryAfter": 60 } ``` ### 500 Unexpected server error. **Response** ```json { "error": { "en": "Internal server error", "ar": "خطأ داخلي في الخادم" } } ``` ## Examples **Request** ```bash curl -X GET "https://api.hoko.to/analytics?linkId=&startDate=2024-01-01T00:00:00Z&endDate=2024-01-31T23:59:59Z&take=50" \ -H "Authorization: Bearer " ``` **Request** ```javascript const params = new URLSearchParams({ linkId: '', startDate: '2024-01-01T00:00:00Z', endDate: '2024-01-31T23:59:59Z', take: '50' }); const response = await fetch(`https://api.hoko.to/analytics?${params}`, { method: 'GET', headers: { Authorization: 'Bearer ' } }); const analytics = await response.json(); ``` **Response** ```json [ { "id": "", "linkId": "", "partnerId": "", "visitorId": "", "visitorSessionId": "session_123", "referrer": "https://google.com", "destination": "https://example.com", "shortId": "abc123", "utm": { "source": "google", "medium": "cpc", "campaign": "summer" }, "externalId": "ext_123", "tenantId": "tenant_123", "expired": false, "secured": false, "scanned": false, "geoTargeted": false, "iosTargeted": false, "androidTargeted": false, "origin": null, "pathname": null, "search": null, "browserLanguageCode": null, "browserLanguageRegion": null, "browserName": "Chrome", "browserVersion": "120.0", "osName": "Windows", "osVersion": "10", "deviceVendor": null, "deviceModel": null, "deviceType": "desktop", "ipAddress": null, "continent": null, "country": "United States", "countryCode": "US", "region": null, "city": "New York", "district": null, "zip": null, "latitude": null, "longitude": null, "mobile": false, "proxy": false, "hosting": false, "createdAt": "2024-01-01T00:00:00Z" } ] ``` --- ### Connected apps Read the Apps catalog, connection states, and access rules for Hoko integrations. Canonical URL: https://docs.hoko.to/integrations/apps Markdown URL: https://docs.hoko.to/integrations/apps/README.md ## Shared engine ChatGPT has a documented private OAuth setup for bounded native use. Public marketplace publication and host registration remain separate distribution gates. The dashboard, REST API, CLI, and MCP invoke the same named engine operations. Each interface provides authentication evidence. The engine applies authentication, authorization, usage, and rate-limit policy before it calls storage or database ports. Apps is a dashboard feature under Integrations. It does not create another API, another OAuth issuer, or another credential store. ## Connection direction ChatGPT is an inbound host. ChatGPT receives an Hoko OAuth grant and calls Hoko tools through MCP. Hoko does not call ChatGPT and does not receive a ChatGPT API key. An OpenAPI document describes the Hoko API contract. It does not connect an external provider account. Hoko does not list Slack, Notion, or another outbound provider as connected until that provider has a reviewed adapter, an authorization flow, and credential storage. ## Host setup cards The catalog contains setup guidance for these hosts: | Host | Setup mode | Authentication | | ----------------------------- | ----------------------------------------------------------------------------------------------- | -------------- | | ChatGPT | Manual private OAuth setup for bounded native use; public listing remains separate | OAuth | | Claude web and Claude Desktop | Manual private OAuth setup for bounded native use; public listing remains separate | OAuth | | Claude Code | Manual remote MCP setup | API key | | Cursor | Manual `mcp.json` setup | API key | | VS Code | Manual `mcp.json` setup | API key | | GitHub Copilot | Manual remote MCP setup | API key | | Gemini CLI | Manual settings.json or `gemini mcp add` setup for Standard, Enterprise, or paid API-key access | API key | | Windsurf | Manual setup. Hoko has not verified a host round trip | API key | | Zapier and n8n | Manual remote MCP setup | API key | | Make | Private custom app preview or manual REST setup. Make is not listed as a native MCP client | API key | | Custom MCP clients | Manual Streamable HTTP setup | API key | | Custom API clients | Manual REST setup | API key | These cards describe documented setup paths. They do not claim a native listing, one-click install, or Hoko verification. Use `https://mcp.hoko.to` as the canonical MCP endpoint. A manual MCP client that supports bearer headers can use this configuration after you create an API key in **Dashboard → Integrations → API Keys**: ```json { "mcpServers": { "hoko": { "url": "https://mcp.hoko.to", "headers": { "Authorization": "Bearer " } } } } ``` Keep the key in the host secret store. Use the host guide for the bounded private setup. Native account approval, public listing, and one-click distribution remain separate provider gates. Zapier, n8n, Make, and similar tools can call MCP or the REST API. Slack, Notion, and Linear can be automated through those tools and Hoko API calls; Hoko has no native outbound connectors for them. API-key and bearer access covers the operations allowed by that key's scopes. It does not provide human-only profile, personal Apps, API-key management, upload, or billing access. Use the Dashboard for those features. ## Outbound provider directory The catalog contains 47 entries: 13 clients and 34 business systems. The [Help app guides](https://help.hoko.to/apps) explain user setup. This reference records provider fields, supported contracts, and deployment requirements. Availability distinguishes manual recipes from configured provider connections and public distribution. A documented recipe does not imply a native account connection or marketplace listing. Provider approval and app registration remain separate requirements. A Hoko API key authenticates calls to Hoko. Provider credentials authenticate calls to the provider and remain in the customer-owned recipe or encrypted provider connection. They are not Hoko API keys. Use only the documented provider permissions; native OAuth, public registration, and incoming provider webhooks have their own requirements. Use the [automation recipes guide](https://docs.hoko.to/integrations/automation), the [link.created receiver guide](https://docs.hoko.to/integrations/link-created), and the [Google Tag Manager template guide](https://docs.hoko.to/integrations/google-tag-manager) for the first customer-owned implementation paths. Download the private [Power Automate connector](https://docs.hoko.to/integrations/power-platform). Pipedream Workflows is archived because the provider is retiring Workflows and String. Hoko has not implemented a Pipedream Connect adapter. The [private Zapier actions](https://docs.hoko.to/integrations/zapier) add create-link and exact external-ID lookup setup. The local preview has no verified Zapier import or public listing. Every guide also has a `README.md` route for agents, listed in [llms.txt](https://docs.hoko.to/llms.txt). The [private n8n node](https://docs.hoko.to/integrations/n8n) adds `Create Link` and exact external-ID lookup actions. The package targets n8n `2.42.x` with Node.js 24. This is a private, self-hosted package; n8n Cloud and community publication are not included. | App | Required fields | Minimum useful path | Readiness and limit | Provider documentation | | ------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | [Shopify](https://help.hoko.to/apps/shopify) | Shop domain, app install, offline token, scopes, product and variant IDs, webhook IDs | Connect a development store and create a product link | Connection. Protected customer data, app distribution, and checkout click identity remain gated | [Authentication](https://shopify.dev/docs/apps/build/authentication-authorization), [webhooks](https://shopify.dev/docs/apps/build/webhooks) | | [Salla](https://help.hoko.to/apps/salla) | Merchant and store IDs, app state, access and refresh token, scopes, product and order IDs | Connect a demo store and create a product link | Provider access. Partner app, Easy Mode, event security, and App Store review required | [Authorization](https://docs.salla.dev/421118m0), [webhooks](https://docs.salla.dev/421119m0) | | [Zid](https://help.hoko.to/apps/zid) | Store and merchant IDs, OAuth state, manager token, scopes, product and order IDs | Connect a development store and create a product link | Provider access. Partner approval, callback registration, activation, and event authentication required | [Authorization](https://docs.zid.sa/authorization), [webhooks](https://docs.zid.sa/webhooks) | | [WooCommerce](https://help.hoko.to/apps/woocommerce) | HTTPS store URL, consumer key and secret, product and order IDs, webhook IDs | Connect one merchant store and create a product link | Connection. Hosting, TLS, webhook secrets, and plugin distribution vary by store | [REST authentication](https://developer.woocommerce.com/docs/apis/rest-api/authentication), [webhooks](https://developer.woocommerce.com/docs/apis/rest-api/v3/webhooks/) | | [BigCommerce](https://help.hoko.to/apps/bigcommerce) | Store hash, OAuth state and token, scopes, product and order IDs, webhook IDs | Connect one OAuth store and create a product link | Connection. Callback verification and webhook authenticity need separate adapters | [Callbacks](https://docs.bigcommerce.com/developer/docs/integrations/apps/guide/handling-callbacks), [webhooks](https://docs.bigcommerce.com/developer/docs/integrations/webhooks/overview) | | [Adobe Commerce](https://help.hoko.to/apps/adobe-commerce) | Magento Open Source 2.4.8 store, merchant identity, OAuth 1.0a integration, product IDs | Install the Magento Open Source 2.4.8 product module and create one product link | Connection. The first adapter targets Magento Open Source only. Adobe Commerce SaaS is outside this path | [Authentication](https://developer.adobe.com/commerce/webapi/get-started/authentication/gs-authentication-oauth), [webhooks](https://developer.adobe.com/commerce/extensibility/app-management/installation/webhooks) | | [Buffer](https://help.hoko.to/apps/buffer) | Organization, channel profile, OAuth client, token, draft or post ID | Create a draft through the reviewed API path | Provider access. Current GraphQL access is preview and account eligibility applies | [API](https://developers.buffer.com/) | | [Sprout Social](https://help.hoko.to/apps/sprout-social) | Organization, profile, token or OAuth grant, draft ID | Create a draft for an eligible account | Provider access. Plan and API access must be confirmed; publishing is not assumed | [API](https://developers.sproutsocial.com/) | | [Publer](https://help.hoko.to/apps/publer) | Workspace, social account, token, draft or post ID | Create a reviewable draft | Provider access. Business entitlement and asynchronous job handling required | [API](https://publer.com/api) | | [Metricool](https://help.hoko.to/apps/metricool) | Account, brand ID, social profile, token, post ID | Create a reviewable post recipe | Provider access. Advanced or Custom plan and brand IDs required | [API](https://metricool.com/api/) | | [SocialPilot](https://help.hoko.to/apps/socialpilot) | Workspace, social profile, MCP connection, post ID | Compose Hoko MCP with the customer's SocialPilot MCP server | Recipe. This is a two-service composition, not a native Hoko connector | [MCP](https://www.socialpilot.co/integrations/mcp) | | [Typefully](https://help.hoko.to/apps/typefully) | Profile, OAuth or API credential, draft ID, publish state | Create a draft for review | Recipe. Publishing and reconciliation need provider proof | [API](https://typefully.com/developers) | | [Later](https://help.hoko.to/apps/later) | Workspace, social set, reporting token, report IDs | Resolve reporting contract before implementation | Contract review. Later Influence reporting and Later social publishing are separate products | [Developers](https://developers.later.com/) | | [Hootsuite](https://help.hoko.to/apps/hootsuite) | Organization, social account, OAuth state, token, post ID | Resolve current API and account access | Contract review. Current API and distribution contract remains unverified | [Developer portal](https://developer.hootsuite.com/) | | [Power Automate](https://help.hoko.to/apps/power-automate) | Environment, connector definition, API-key connection, flow ID | Import an actions-only OpenAPI projection | Recipe. Connector import needs OpenAPI 2.0 and has provider limits | [Custom connectors](https://learn.microsoft.com/en-us/connectors/custom-connectors), [OpenAPI import](https://learn.microsoft.com/en-us/connectors/custom-connectors/define-openapi-definition) | | [HubSpot](https://help.hoko.to/apps/hubspot) | Portal ID, private app token, scopes, contact and campaign IDs | Send a bounded campaign recipe | Recipe. Public app and webhook scope requirements remain gated | [Public apps](https://developers.hubspot.com/docs/guides/apps/public-apps/overview), [webhook scopes](https://developers.hubspot.com/changelog/announcement-scopes-will-be-required-for-apps-using-webhooks-or-crm-extensions) | | [Salesforce](https://help.hoko.to/apps/salesforce) | Org ID, External Client App, OAuth grant, scopes, campaign IDs | Send a bounded campaign recipe | Recipe. Public External Client App policy and inbound webhook work remain gated | [OAuth](https://developer.salesforce.com/docs/platform/api-rest/guide/intro-oauth-and-connected-apps.html) | | [Klaviyo](https://help.hoko.to/apps/klaviyo) | Account, provider API key, list and campaign IDs | Send a bounded campaign recipe | Recipe. Public OAuth allowlisting and inbound webhook contract remain gated | [Webhooks](https://developers.klaviyo.com/en/reference/webhooks_api_overview) | | [Mailchimp](https://help.hoko.to/apps/mailchimp) | Account, audience ID, provider API key, campaign ID | Send a bounded campaign recipe | Recipe. OAuth app registration and inbound event work remain gated | [Marketing API](https://mailchimp.com/developer/marketing/docs/), [OAuth apps](https://mailchimp.com/developer/marketing/build/start-developing/set-up-an-oauth-app) | | [Customer.io](https://help.hoko.to/apps/customerio) | Workspace, provider site or app key, campaign or journey ID, event ID | Send a measured event recipe | Recipe. Native connection and inbound webhook contract remain gated | [APIs](https://docs.customer.io/integrations/api/customerio-apis/), [webhooks](https://docs.customer.io/integrations/api/webhooks/) | | [Brevo](https://help.hoko.to/apps/brevo) | Account, provider API key, list and campaign IDs | Send a bounded campaign recipe | Recipe. Public OAuth distribution, recipient data, and inbound webhook work remain gated | [OAuth](https://developers.brevo.com/docs/oauth), [marketing webhooks](https://developers.brevo.com/docs/marketing-webhooks) | | [WordPress](https://help.hoko.to/apps/wordpress) | Site URL, application password or plugin token, post and link IDs | Add a link to one post through a reviewed plugin path | Recipe. Plugin install, capability checks, and post reconciliation required | [REST API](https://developer.wordpress.org/rest-api/), [authentication](https://developer.wordpress.org/rest-api/using-the-rest-api/authentication/) | | [Webflow](https://help.hoko.to/apps/webflow) | Site ID, site token or OAuth grant, collection and item IDs, webhook secret | Create or update one CMS item with a Hoko link | Recipe. Only API-created webhooks provide the required signed delivery contract | [API](https://developers.webflow.com/data/reference), [webhooks](https://developers.webflow.com/data/reference/webhooks) | | [Ghost](https://help.hoko.to/apps/ghost) | Site URL, Admin API key, post ID, supported post fields | Create or update one supported content record | Recipe. Ghost Content API is read-only; Admin fields require separate mapping | [Admin API](https://ghost.org/docs/admin-api/), [Content API](https://ghost.org/docs/content-api/) | | [Stripe](https://help.hoko.to/apps/stripe) | Merchant account, restricted test API key, payment metadata, payment and refund IDs | Map one payment through metadata and verify its refund adjustment | Connection. The first adapter is merchant-owned and test-mode only. Stripe Connect is outside this path | [Events](https://docs.stripe.com/api/events/types), [signatures](https://docs.stripe.com/webhooks/signatures) | | [GA4](https://help.hoko.to/apps/ga4) | Property ID, measurement ID, API secret, event ID, consent state | Export a measured click event | Recipe. Measurement Protocol supplements tagging and needs consent handling | [Measurement Protocol](https://developers.google.com/analytics/devguides/collection/protocol/ga4) | | [Google Tag Manager](https://help.hoko.to/apps/google-tag-manager) | Customer-imported fixed `https://hoko.to/analytics.js`, `explicitAnalyticsConsent: true`, CMP state | Add the reviewed browser tag recipe after the CMP gate | Recipe. No provider credential, embedded click, server key, or analytics event send. The ordinary script only persists an existing `hoko_id` from the query or cookie | [Sandboxed JavaScript API](https://developers.google.com/tag-platform/tag-manager/templates/api) | | [PostHog](https://help.hoko.to/apps/posthog) | Project, API key, event ID, consent state | Export a measured click event | Recipe. Requires the canonical `link.clicked` event contract | [API](https://posthog.com/docs/api) | | [Segment](https://help.hoko.to/apps/segment) | Workspace, source write key, event ID, consent state | Export a measured click event | Recipe. Requires the canonical event and consent contract | [HTTP API](https://segment.com/docs/connections/sources/catalog/libraries/server/http-api/) | | [Slack](https://help.hoko.to/apps/slack) | Workspace, OAuth grant, channel ID, message ID | Send a link or campaign notification | Recipe. Notification recipe only; no active native connection yet | [Authentication](https://api.slack.com/authentication) | | [Microsoft Teams](https://help.hoko.to/apps/microsoft-teams) | Tenant, workflow webhook, channel or chat target, event ID | Send a notification through a current Workflow | Recipe. Use Workflows; retired Office 365 Connectors are excluded | [Workflow webhook](https://learn.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/add-workflow-webhook) | | [Notion](https://help.hoko.to/apps/notion) | Workspace, integration token or OAuth grant, page and database IDs | Write a link or campaign report | Recipe. Page access must be explicitly granted by the workspace | [Authorization](https://developers.notion.com/guides/get-started/authorization) | | [Airtable](https://help.hoko.to/apps/airtable) | Workspace, base and table IDs, PAT, record ID | Write a link or campaign report | Recipe. Use scoped PATs and preserve base ownership boundaries | [Personal access tokens](https://support.airtable.com/docs/creating-personal-access-tokens) | | [Google Sheets](https://help.hoko.to/apps/google-sheets) | Spreadsheet and tab IDs, OAuth grant, range, row ID | Append a link or campaign report row | Recipe. Spreadsheet access and row reconciliation require proof | [Authorization](https://developers.google.com/sheets/api/guides/authorizing) | The catalog distinguishes manual recipes from native provider connections and public distribution. Use the documented account permissions and current availability. A private recipe does not imply a native connection or marketplace listing. ## Setup guides This section keeps host-specific transport and credential reference. Follow each Help guide for the connection steps. OAuth hosts use their registered client settings; API-key clients use a scoped key from **Dashboard → Integrations → API Keys**. ### ChatGPT [User guide](https://help.hoko.to/apps/chatgpt) ChatGPT acts as an OAuth client of Hoko's authorization server. Its MCP resource is `https://mcp.hoko.to`. The host supplies client registration, the callback, and PKCE parameters. Hoko validates the resource, workspace grant, operation scopes, token refresh, and revocation. Private connectors require an eligible ChatGPT account and a registered Hoko deployment. Registration and client authentication depend on that deployment; a public marketplace listing is a separate distribution step. Follow the Help guide for the browser connection flow. ### Claude [User guide](https://help.hoko.to/apps/claude) Claude web and Claude Desktop use the Hoko MCP resource and OAuth authorization server. Claude owns its client registration, callback, and PKCE parameters; Hoko binds approved scopes to the selected workspace. Client authentication follows the configured deployment. Private connector availability depends on the Claude account; public distribution is separate. Follow the Help guide for account linking. See [Anthropic custom connectors](https://support.anthropic.com/en/articles/11175166-about-custom-integrations-using-remote-mcp) for the host fields. ### Claude Code [User guide](https://help.hoko.to/apps/claude-code) Add a remote HTTP MCP server with the CLI. Claude Code sends the header to Hoko for each request. ```sh claude mcp add --transport http hoko https://mcp.hoko.to \ --header "Authorization: Bearer " ``` See [Claude Code MCP setup](https://docs.anthropic.com/en/docs/claude-code/mcp) for the command and OAuth behavior. ### Cursor [User guide](https://help.hoko.to/apps/cursor) Add this entry to the project `.cursor/mcp.json` file. Use the host's secret interpolation for the key. ```json { "mcpServers": { "hoko": { "url": "https://mcp.hoko.to", "headers": { "Authorization": "Bearer ${env:HOKO_API_KEY}" } } } } ``` See [Cursor MCP setup](https://cursor.com/docs/mcp) for the current configuration format. ### VS Code [User guide](https://help.hoko.to/apps/vscode) Add an HTTP server and a password input to `.vscode/mcp.json` or the workspace MCP settings. ```json { "servers": { "hoko": { "type": "http", "url": "https://mcp.hoko.to", "headers": { "Authorization": "Bearer ${input:hoko-api-key}" } } }, "inputs": [ { "type": "promptString", "id": "hoko-api-key", "description": "Hoko API key", "password": true } ] } ``` See [VS Code MCP configuration](https://code.visualstudio.com/docs/agents/reference/mcp-configuration) for HTTP, OAuth, and secret input fields. ### GitHub Copilot [User guide](https://help.hoko.to/apps/copilot) Add Hoko as a remote HTTP MCP server in Copilot Chat or Copilot CLI. In Copilot CLI, the equivalent command is: ```sh copilot mcp add --transport http \ --header "Authorization: Bearer " \ hoko https://mcp.hoko.to ``` Organization policy can disable remote MCP. Follow the host's current setup screen when the command is unavailable. See [GitHub Copilot CLI MCP setup](https://docs.github.com/en/copilot/how-tos/copilot-cli/customize-copilot/add-mcp-servers) for the command and header order. ### Gemini CLI [User guide](https://help.hoko.to/apps/gemini-cli) Gemini CLI remains a supported Hoko MCP host for Gemini Code Assist Standard or Enterprise users and paid Gemini or Gemini Enterprise Agent Platform API keys. Consumer/free, Google AI Pro, and Google AI Ultra Gemini CLI access stopped serving requests on 2026-06-18. Google directs those users to Antigravity CLI. Antigravity CLI is a separate client. Hoko has not verified its MCP transport, authentication, or feature parity, so this guide does not claim Antigravity support. Add an HTTP server to Gemini CLI settings. Replace the placeholder with your Hoko API key in your local settings file. Gemini documents environment expansion for server `env` values, not for HTTP header values. Keep the settings file private and do not commit it. ```json { "mcpServers": { "hoko": { "httpUrl": "https://mcp.hoko.to", "headers": { "Authorization": "Bearer " } } } } ``` See [Gemini CLI MCP setup](https://github.com/google-gemini/gemini-cli/blob/main/docs/cli/tutorials/mcp-setup.md) for the `httpUrl` and header fields. ### Windsurf [User guide](https://help.hoko.to/apps/windsurf) Add this server to Windsurf's MCP configuration. Windsurf uses `serverUrl` for a remote server. ```json { "mcpServers": { "hoko": { "serverUrl": "https://mcp.hoko.to", "headers": { "Authorization": "Bearer ${env:HOKO_API_KEY}" } } } } ``` See [Windsurf Cascade MCP configuration](https://docs.windsurf.com/windsurf/cascade/mcp) for the host fields and supported remote transports. ### Zapier [User guide](https://help.hoko.to/apps/zapier) Open the Zapier MCP Client connection form. Choose a remote Streamable HTTP server, enter `https://mcp.hoko.to`, choose bearer authentication, and store the API key in the connection secret field. See [Zapier's remote MCP Client guide](https://help.zapier.com/hc/en-us/articles/38777069364109-Connect-remote-MCP-servers-to-Zapier-using-MCP-Client) for the connection fields. ### n8n [User guide](https://help.hoko.to/apps/n8n) Use the [private n8n node guide](https://docs.hoko.to/integrations/n8n) for `Create Link` and exact `externalId` lookup. The node uses an API-key credential and calls `https://api.hoko.to`. This is a private, self-hosted package; n8n Cloud and community publication are not included. You can also use n8n's MCP Client or HTTP Request node. Set the URL to `https://mcp.hoko.to` for MCP, or call the REST operation routes with an `Authorization: Bearer ` header. Keep the key in n8n credentials. See [n8n's MCP Client documentation](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-langchain.mcpclient/) for the node and credential fields. ### Make [User guide](https://help.hoko.to/apps/make) Use the [private Make actions guide](https://docs.hoko.to/integrations/make) for `Create Link` and exact `externalId` lookup. For other operations, use Make's HTTP module with the unversioned Hoko route, add `Authorization: Bearer `, and store the key in a Make connection or secret variable. Make is documented here as a REST client, not as a native Hoko MCP host. See [Make's HTTP OAuth guide](https://help.make.com/connect-to-any-web-service-using-oauth-20) for the connection fields. ### Custom MCP client [User guide](https://help.hoko.to/apps/custom-mcp) Configure Streamable HTTP with the canonical endpoint and bearer header: ```json { "url": "https://mcp.hoko.to", "headers": { "Authorization": "Bearer " } } ``` ### Custom API client [User guide](https://help.hoko.to/apps/custom-api) Call the unversioned resource REST routes with the API key: ```sh curl https://api.hoko.to/integrations/apps \ -H "Authorization: Bearer " \ -H "Accept: application/json" ``` Use the same header for other Hoko operations. The OpenAPI document lists request and response schemas. See the dedicated [Custom API guide](https://docs.hoko.to/custom-api) for client setup and resource route examples. ## Catalog and connections The Apps catalog contains reviewed provider metadata, channel information, availability, and setup guidance. An unavailable card is not an active integration and does not create a database record. The connections API returns only grants that the signed-in human owns for the selected workspace. It includes the grant ID, verified client name, resource, scope labels, workspace, creation time, and effective status. It never returns access or refresh secrets. API keys cannot read or manage human OAuth grants. A workspace administrator cannot inspect another person's connections. A registered grant with no current catalog card remains visible to its owner. ## Connection states | State | Meaning | | ----------- | ---------------------------------------------------------------------------------------------- | | `pending` | The grant exists, but no credentials have been issued. | | `connected` | The grant is valid. A refreshable access token can remain connected after access-token expiry. | | `revoked` | Hoko invalidated the grant and its access and refresh credentials. | | `expired` | The grant or its credentials no longer pass authorization checks. | Token expiry alone does not delete an authorization grant. Membership and client validity also affect the effective state. ## OAuth host flow The external host starts authorization and creates its own state and PKCE verifier. Hoko authenticates the human, shows the workspace and requested scopes, and issues a grant only after explicit consent. The Apps dashboard can show setup instructions. It must not fabricate a callback URL, OAuth state, verifier, or connected account. Reconnecting starts a fresh consent flow. Changing workspaces requires a new grant. Protected MCP calls use the registered OAuth resource and scope metadata. A host that needs account linking receives the standard OAuth challenge. Credentials stay outside tool arguments. ## Disconnect Removing Hoko access from one connection revokes that grant and its access and refresh credentials. Other devices, API keys, and independent grants remain active. Removing Hoko access does not delete an external host's past conversations or uninstall its application. The dashboard action is **Remove Hoko access**. ## Direct resource routes Use these unversioned resource routes: ```http GET /integrations/apps GET /integrations/apps/connections DELETE /integrations/apps/connections/{grantId} ``` The engine operation names are part of the adapter and MCP contracts. The CLI reaches the same engine after browser login and workspace selection: ```bash hoko auth login hoko apps connections hoko apps disconnect --grant-id ``` Personal connection reads and removal require a Session Cookie or Human Token. API keys and delegated OAuth credentials cannot list or manage personal Apps grants. ## Direct API and rate limits Use [API authentication](https://docs.hoko.to/authentication) for API keys and human access tokens. Use [API rate limits](https://docs.hoko.to/rate-limits) to implement retry behavior. Respect `Retry-After` on `429` responses and check whether a write completed before retrying it. Use the [OpenAPI document](https://api.hoko.to/openapi.json) for request and response schemas. The API is unversioned and keeps the existing resource paths. ## Availability An app card reports the current setup path and its requirements. Manual setup, host registration, provider approval, callback deployment, tool review, and public listing are separate steps. Availability does not grant additional permissions. --- ### Automation recipes Create Hoko links from customer-owned automation systems with durable mappings and safe reconciliation. Canonical URL: https://docs.hoko.to/integrations/automation Markdown URL: https://docs.hoko.to/integrations/automation/README.md ## What this guide covers This guide describes the customer-owned automation recipe used by Zapier, Make, n8n, or Power Automate. The platform runs the workflow and calls Hoko's resource REST API. No dedicated Hoko job runner, queue, scheduler, or background service is required. Use the [automation example](https://github.com/Alja7dali/bou.nc/tree/master/examples/automation) to understand the mapping contract. Its Bun command and SQLite ledger are an optional standalone reference. Platform connectors use their platform's persistent state and secret store. The example never reads or writes Hoko tables and does not create a native provider connection or claim marketplace availability. If you choose the standalone reference, run it with these values: ```sh HOKO_API_URL=https://api.hoko.to \ HOKO_API_KEY=... \ HOKO_COLLECTION_ID=... \ HOKO_ACCOUNT_IDENTITY=... \ HOKO_FOREIGN_RECORD_ID=... \ HOKO_DESTINATION=https://example.com/landing \ bun examples/automation/src/recipe.ts ``` The standalone reference stores its SQLite ledger locally. Keep the API key outside source control and keep provider account identities stable across runs. ## Authenticate the Hoko call Create a scoped Hoko API key and store it in the automation platform's secret store. Send it as a bearer header to `https://api.hoko.to`. ```http Authorization: Bearer ``` Use the unversioned resource routes. Do not add an API prefix or gateway prefix: ```http GET https://api.hoko.to/usage GET https://api.hoko.to/links?externalId= POST https://api.hoko.to/links GET https://api.hoko.to/links?id= ``` The API key authenticates the caller and selects its workspace. Do not send a workspace hint header or ask an operator to copy a workspace ID. Call GET /usage before creating a local intent or writing a link. That preflight checks the required usageRead scope. Link reads require linksRead and link writes require linksWrite. Engine operation names such as usage.get and links.createFromApi remain internal metadata for the CLI and MCP adapters. A provider credential, such as a social or CRM API key, stays in that provider's customer-owned connection. For the request and response fields, use the [Custom API guide](https://docs.hoko.to/custom-api) and the [OpenAPI document](https://api.hoko.to/openapi.json). ## Keep one mapping per external record Store a durable intent before a non-idempotent create. Use this identity: ```text (workspaceId, provider, accountIdentity, foreignRecordId) ``` Store the payload fingerprint, request ID, status, and returned Hoko link ID. Pass this bounded, namespaced value as Hoko `externalId`. Verify the returned link against `workspaceId` and the exact namespaced `externalId` before marking the intent `created`. Use this format: ```text hoko:automation::: ``` Keep the value at or below 255 characters. The reference recipe appends a SHA-256 suffix when the encoded value is longer. The mapping belongs to the customer-owned recipe. It is not a Hoko idempotency key and it does not change Hoko's existing create operation. ## Reconcile before retrying The create operation does not promise request idempotency. If a timeout, transport error, or ambiguous response occurs, do not send another create request. Look up the exact `externalId` first. Return `operator-reconciliation-required` when the mapping is missing, the payload changed, or the previous write may have reached Hoko. Let an operator inspect the Hoko link and update the local ledger. Custom slugs are unsupported. The recipe may inspect GET /links?id=... to detect an existing conflict, then rejects the request. It never accepts a free slug, creates one, or chooses a replacement. It only uses POST /links for writes and never retries a write automatically. Use these outcomes: - `created`: Hoko returned a link and the workspace and external ID checks passed. - `already-mapped`: the durable mapping and exact Hoko lookup agree. - `operator-reconciliation-required`: the write result needs a human decision. - `conflict`: the mapping is ambiguous or the input is unsupported. - `denied`: the key is invalid or lacks the required scope. - `rate-limited`: Hoko returned `429`; respect `Retry-After` and inspect the mapping before any later attempt. ## Rate limits and safe logs Keep Hoko request IDs and rate-limit headers in structured, redacted diagnostics. Do not log API keys, provider credentials, customer secrets, full destination query strings, or raw webhook bodies. Bound each request to the automation platform's request budget. A pending local intent is evidence for reconciliation, not permission to create another link. Use a disposable local Hoko database for acceptance tests. Test the GET /usage preflight, account separation, namespaced ID length handling, a changed payload, a rejected custom slug, insufficient scope, revoked key, rate limit, timeout, and cleanup. Do not use staging or production records as fixtures. --- ### Receive link.created webhooks Verify Hoko link.created deliveries and record durable, minimized receipts. Canonical URL: https://docs.hoko.to/integrations/link-created Markdown URL: https://docs.hoko.to/integrations/link-created/README.md ## What this guide covers This guide covers a customer-owned HTTPS receiver for Hoko's `link.created` event. Use the [receiver example](https://github.com/Alja7dali/bou.nc/tree/master/examples/webhooks) as the reference source. The receiver calls no Hoko database and does not create a second webhook contract. The receiver must bind the configured endpoint and `workspaceId` to the event. A provider or automation platform may call the receiver only after it has been configured through the existing Hoko webhook flow. ## Configure the receiver Create the pending webhook in Hoko first. Select `link.created`, enter the receiver's public HTTPS URL, and copy the endpoint ID, workspace ID, and one-time signing secret into server-side environment variables. Then start the receiver and select **Verify webhook** in Hoko. Hoko sends the signed `endpoint.verification` challenge only after the endpoint exists. The reference server uses these variables: ```sh HOKO_ENDPOINT_ID= \ HOKO_WORKSPACE_ID= \ HOKO_WEBHOOK_SECRET=whsec_... \ HOKO_RECEIPTS_DB=./var/hoko-webhook-receipts.sqlite \ bun run src/main.ts ``` After verification succeeds, create one link in the same workspace. Inspect the redacted receipt, then use Hoko's explicit resend action to confirm that a repeated event returns a duplicate receipt. Do not create the link before endpoint verification. ## Verify the raw request Read the exact request bytes before parsing JSON. The sender supplies: ```http webhook-id: webhook-timestamp: webhook-signature: v1, ``` Compute HMAC-SHA256 over: ```text webhook-id + "." + webhook-timestamp + "." + exact_raw_body ``` Use the configured `whsec_` secret and compare equal-length signatures with a timing-safe comparison. Reject a missing header, malformed timestamp, invalid signature, or body larger than 64 KiB. Accept timestamps only within 300 seconds of the receiver clock. Verify the body `id` equals `webhook-id`, the body `type` is `link.created`, and `data.workspaceId` equals the configured workspace. Verify the endpoint ID before processing an endpoint challenge. ## Store a minimized receipt After signature, endpoint, workspace, and schema checks pass, write one durable receipt keyed by `(workspaceId, webhook-id)`. Store the event ID, raw-body SHA-256 digest, request ID, endpoint ID, event type, and received time. Keep the receipt small. Do not store the raw body, signature, secret, customer data, destination query, or full response. Keep a replay ledger for at least the 300-second timestamp window and retain the event ID for the lifetime of the receiver's operational history. A repeated event with the same digest returns `2xx` as a duplicate. The same event ID with a different digest returns a conflict for operator review. Return a `2xx` response quickly after the receipt is durable. The receipt proves that the receiver accepted the event. It does not prove that a later business action completed. ## Delivery states and resend Hoko sends one bounded request-time attempt and records `pending`, `failed`, or `unknown` outcomes when the attempt cannot finish with a final result. Hoko does not run an automatic background worker and does not promise exactly-once delivery. Treat `unknown` as possibly delivered. Deduplicate by `webhook-id` before applying any side effect. An operator may use the existing explicit resend action after inspecting the receipt. A resend has a new signature timestamp but keeps the event identity, so the receiver must remain idempotent. ## Local acceptance Use a disposable receiver and local Hoko database. Test valid and invalid signatures, a stale timestamp, a replay, a body-size rejection, a wrong workspace, a wrong endpoint, a malformed event, and concurrent duplicate delivery. Record only redacted receipts and request IDs. --- ### Google Tag Manager attribution template Import Hoko's customer-owned browser attribution template with explicit consent. Canonical URL: https://docs.hoko.to/integrations/google-tag-manager Markdown URL: https://docs.hoko.to/integrations/google-tag-manager/README.md ## What this guide covers This is a customer-imported Google Tag Manager custom template. It loads the fixed public script `https://hoko.to/analytics.js` after an explicit consent gate. It is a recipe, not a native Google OAuth connection or a template gallery listing. [Download the template](https://docs.hoko.to/integrations/google-tag-manager/template.tpl) or inspect the [template source](https://github.com/Alja7dali/bou.nc/tree/master/examples/google-tag-manager). Keep the file in the customer-owned container workflow. Hoko has not verified a provider container or published this template to a gallery. ## Configure consent Set the required template input to: ```text explicitAnalyticsConsent: true ``` Map that boolean to the site's consent management platform. The template fails closed for `false`, an unset value, or any non-boolean value. Do not treat an unset GTM consent type as explicit consent. The template requests only GTM's sandboxed script injection permission. It does not request a provider credential, cookie access, local-storage access, global reads, data-layer reads, or server network access. ## Load the fixed script The template injects exactly: ```text https://hoko.to/analytics.js ``` The ordinary script reads an existing `hoko_id` from the current query or cookie and persists that identifier. It does not create an embedded click, send analytics events, or expose a second click identifier. Keep the separate `/{shortId}/analytics.js` embedded-click capability out of this template. ## Import and preview Import the file into a customer-owned GTM container. Preview the tag with consent denied, consent unset, consent granted, and no existing `hoko_id`. Check that the fixed URL is the only script loaded and that repeated firing does not create another click. Publishing requires the customer's container approval and remains an external verification gate. Do not report the template as provider-verified until an authorized disposable GTM container records import, Preview, consent, repeat-fire, and cleanup evidence. See GTM's [sandboxed JavaScript API](https://developers.google.com/tag-platform/tag-manager/templates/api) and [template permissions](https://developers.google.com/tag-platform/tag-manager/templates/permissions) for the host contract. ## Remove the template Remove the template and its tags from the customer-owned container, then restore the previous container state. The Hoko public script and existing cookie behavior remain unchanged. --- ### Power Automate Import the private Hoko connector and create links from a Power Automate flow. Canonical URL: https://docs.hoko.to/integrations/power-platform Markdown URL: https://docs.hoko.to/integrations/power-platform/README.md ## Download the preview connector The connector runs in Power Automate, Power Apps, or Copilot Studio and calls Hoko's existing API. No dedicated Hoko job runner is required. Local REST checks pass; Microsoft import and workflow execution still need verification in an authorized disposable environment. This is an actions-only private preview, without marketplace listing. - [OpenAPI 2.0 definition](https://docs.hoko.to/integrations/power-platform/apiDefinition.swagger.json) - [Connection properties](https://docs.hoko.to/integrations/power-platform/apiProperties.json) - [Source and acceptance instructions](https://github.com/Alja7dali/bou.nc/tree/master/integrations/power-platform) Microsoft currently requires OpenAPI 2.0 and a definition smaller than 1 MB. This export is generated from Hoko's canonical contract; it introduces no new API version. See [Microsoft's connector FAQ](https://learn.microsoft.com/en-us/connectors/custom-connectors/faq). ## Create a connection 1. Create a custom connector from the definition in your Power Platform environment. 2. Import the connection properties if your tooling supports that file. 3. Create a connection with a Hoko API key that has `linksRead` and `linksWrite`. The secure connection sends `X-API-Key` to `https://api.hoko.to`. The key selects the Hoko workspace and permitted collections. There is no workspace override, session cookie, or human token field. Keep the key in the connection, outside flow payloads and logs. Use disposable local Hoko fixtures for tests. Staging, production, and Playground are not disposable databases. A cloud flow needs an explicitly authorized reachable fixture before it can run acceptance checks. ## Create one link and find it Use the create action with an array containing one item: ```json [ { "url": "https://example.com/product", "collectionId": "", "externalId": "hoko:automation:power-automate::" } ] ``` It calls `POST https://api.hoko.to/links`. The response is an array of links with `id`, `shortUrl`, and `externalId`. Use the lookup action with the exact same `externalId`; it calls `GET https://api.hoko.to/links?externalId=...`. Check that exactly one link matches and keep its Hoko ID in the flow's mapping store. The [automation guide](https://docs.hoko.to/integrations/automation) defines the bounded external ID and mapping contract. Full request fields remain in [Hoko's OpenAPI document](https://api.hoko.to/openapi.json). ## Receive link-created events The native connector remains actions-only. Microsoft's webhook trigger requires a registration response with a provider-managed `Location` cleanup value. Hoko's current `POST /webhooks` response returns the endpoint in JSON and does not return that header, so the OpenAPI export does not advertise an unverified native trigger. Use the customer-owned receiver bridge in `integrations/power-platform/src/power-platform-webhook.ts` when a flow needs events. Create and verify a Hoko webhook through the existing API, deploy the bridge at the callback URL, and forward only verified events to a Power Automate HTTP flow. The bridge checks raw bytes, signature, timestamp, event ID, event type, and workspace ID, then deduplicates replays. Hoko runs no worker. Microsoft import and flow receipt remain provider acceptance gates. Use `integrations/power-platform/power-automate-http-flow.template.json` for the flow shape. Require the 32-byte `x-hoko-relay-auth` secret and the per-event relay HMAC headers before mapping fields. The local loopback rehearsal accepts a verified event and rejects a forged body. ## Prevent duplicate writes Set the create action's retry policy to **None**. Use one serialized flow as the exclusive owner of each mapping. Persist a prepared intent, payload fingerprint, and request ID in a durable store before sending the create request. A connector definition alone does not supply that store or enforce serialization. After a timeout or uncertain response, use the external ID lookup. Do not send another create request automatically. Missing or multiple matches, changed input, or an unresolved prior intent require operator reconciliation. Keep the intent when execution fails; deleting it permits duplicate writes. Hoko still enforces scopes and rate limits through the shared engine. Preserve `X-Request-Id`, the `X-RateLimit-*` headers, and `Retry-After` for support and scheduling. Treat `401` and `403` as a connection or permission issue. Respect `429` and reconcile before any later write. ## Remove the preview Remove the test flow, connector, connection, and owned fixture records, then revoke its temporary Hoko key. Provider import, connection, create, lookup, denial cases, and cleanup must be recorded before this connector is called verified. --- ### Pipedream (archived) Archived Hoko integration notes for Pipedream Workflows. Canonical URL: https://docs.hoko.to/integrations/pipedream Markdown URL: https://docs.hoko.to/integrations/pipedream/README.md > **Archived integration.** Hoko no longer offers setup for Pipedream Workflows. Pipedream has closed new Workflows signups and subscriptions, and the product is scheduled to shut down on March 31, 2027. Existing Workflows remain subject to that shutdown. Pipedream Connect, MCP Servers, and API Proxy are separate products and are unaffected by this notice; Hoko has not implemented a Connect adapter. Do not use this page to create or import a Hoko workflow or source. The private action and signed event source remain only as historical local evidence; they are not a supported listing, hosted integration, or OAuth connection. For current Hoko integrations, use the [automation recipes](https://docs.hoko.to/integrations/automation), [REST API](https://docs.hoko.to/custom-api), or [MCP](https://docs.hoko.to/integrations/apps#custom-mcp) guides. --- ### Zapier Run the private Hoko link actions in Zapier with API-key authentication. Canonical URL: https://docs.hoko.to/integrations/zapier Markdown URL: https://docs.hoko.to/integrations/zapier/README.md ## Get the private app preview The Zapier app runs in Zapier and calls Hoko's unversioned resource REST API. It needs no dedicated Hoko job runner, queue, scheduler, or background service. - [Automation contract](https://docs.hoko.to/integrations/automation) - [Zapier Platform](https://docs.zapier.com/platform) - [Download the app bundle](https://docs.hoko.to/integrations/zapier/index.cjs) - [Download package metadata](https://docs.hoko.to/integrations/zapier/package.json) The package is a private preview. A Zapier import, connection, workflow run, and marketplace review remain external acceptance work. ## Configure the connection Create a Hoko API key with `linksRead`, `linksWrite`, `webhooksRead`, and `webhooksWrite`. Store it in Zapier's secret connection field. Use `https://api.hoko.to` as the Hoko origin. The API key selects one Hoko workspace. The connection test calls `GET /links?take=1`. The app does not expose a workspace ID field. Hoko binds each operation to the workspace selected by the key. ## Use the actions The private preview exposes two actions: | Action | Required values | Resource route | Engine metadata | | ----------- | ------------------------------------------- | -------------- | --------------- | | Create Link | Collection ID, Destination URL, External ID | `POST /links` | `links.createFromApi` | | Find Link | External ID | `GET /links?externalId=...` | `links.list` | Pass a stable source record ID as `External ID` to `Create Link`. The field is required. Use the same exact value in `Find Link`. Keep the value namespaced and at or below 255 characters. The create response contains the Hoko link ID, short URL, destination URL, collection ID, and external ID. The lookup reads a list, filters it to exact external ID matches, and returns one item to Zapier only when exactly one match exists. Zero matches return no item. Multiple matches fail for operator review. Successful action output also includes `requestId`. When Hoko sends valid rate headers, it includes `rateLimit` with `limit`, `remaining`, and `resetAt`. Errors include a safe `requestId`; rate-limited errors may include `Retry-After`. Malformed rate values are omitted. ## Signed event triggers (activation blocked) The private preview exposes REST hook triggers for `link.created` and `sale.created`. Enter the public Workspace ID from Hoko Settings, a pre-enrolled active relay endpoint ID, and its exact HTTPS relay URL. The API key must belong to that workspace. Keep the Hoko webhook signing secret in the private connection secret field; it is never returned in trigger output. The callback verifies the exact raw request body, `webhook-id`, timestamp, and HMAC before returning one item. It checks the event ID, event type, and workspace ID against the subscription. Zapier uses the stable event ID for retry deduplication. The delivery model is bounded and at-least-once. Hoko does not promise exactly-once delivery. The trigger output contains the shared envelope fields: event ID, event type, created time, event data ID, and workspace ID. The adapter does not add sale amounts or other private fields that are absent from the signed envelope. Subscribe and unsubscribe verify endpoint ownership, event selection, name, and URL binding before deleting the endpoint. Scope failures, revoked keys, rate limits, disabled endpoints, invalid signatures, stale timestamps, and binding mismatches return safe errors with request IDs. Activation has a callback contract gap. Zapier Platform Core 19.2.0 requires a REST hook `perform` function to return an item array and provides no raw HTTP response override. Hoko verification requires the exact `{"challenge":"..."}` JSON response, so the direct callback cannot activate an endpoint through `webhooks.verify`. Keep the preview private and actions-only until the customer-owned relay contract is pre-enrolled and wired to the subscription path. The relay must answer the challenge, preserve exact signed bytes and headers when forwarding to Zapier, durably deduplicate event IDs, and enforce bounded enrollment, revocation, and rate handling. It must not weaken HMAC verification or add an Hoko worker. ## Reconcile before retrying Link creation has no request idempotency guarantee. The caller must store the source account, foreign record ID, payload fingerprint, request ID, and returned Hoko link ID in durable workflow state. The action checks the exact external ID before creating, then verifies the returned link with the same lookup. If the create acknowledgement is lost, it performs one safe read by the exact external ID. It reports a created link only when exactly one result matches the external ID, destination, and collection. An empty or duplicated result, a malformed read, or a network error returns a halted outcome for operator reconciliation. The action never sends a second create. Zapier does not provide Hoko's mapping or serialization policy. Make the workflow the exclusive owner of each source mapping and disable automatic replay where the host allows it. The app sends one request ID per Hoko operation. It does not follow redirects, limits each request to 10 seconds and 1 MB, and preserves bounded rate metadata. Treat `401` as an invalid key, `403` as a missing scope, and `429` as a rate limit. Respect `Retry-After`. Keep request IDs and rate-limit headers in redacted logs. ## Keep the preview private The first app slice excludes analytics, API-key management, billing, profile uploads, destructive workspace actions, and public directory publication. Zapier's remote MCP Client remains a separate manual connection path. Use disposable local Hoko fixtures for acceptance. Do not use production, staging, or Playground as a test database. Record the provider import, connection test, create, exact lookup, denied scope, revoked key, rate-limit response, ambiguous write handling, and cleanup before calling the app verified. --- ### Make Run Hoko's private link actions and link.created trigger in Make. Canonical URL: https://docs.hoko.to/integrations/make Markdown URL: https://docs.hoko.to/integrations/make/README.md ## Use the private app The Hoko Make app runs inside Make and calls Hoko's unversioned resource REST API. It needs no dedicated Hoko job runner, queue, scheduler, or background service. The app is private. Make import, connection, scenario execution, and provider review remain external acceptance work. Download the repository editor bundle: [hoko.private-app.json](https://docs.hoko.to/integrations/make/hoko.private-app.json). The file is generated from Hoko's source and is not a native Make one-click import or export file. Map `base`, `connection`, and each module's parameters, communication, and output fields into the matching Make editor sections. Select the saved Hoko connection on every module. ## Configure the connection Create a Hoko API key in **Dashboard → Integrations → API Keys**. Store it in Make's secure connection field. Use `https://api.hoko.to` as the Hoko origin. The key selects one Hoko workspace. Do not add a workspace ID to a module. When you create each Make module, select the saved **Hoko API key** connection in the module's connection field. The bundle metadata does not bind a Make host connection automatically. Follow [Make's custom-app setup](https://www.make.com/en/how-to-guides/build-custom-app-in-make), step 6. The connection test and `Find Link` require `linksRead`. `Create Link` also requires `linksWrite`. ## Use the actions | Action | Required values | Resource route | Engine metadata | | ----------- | ------------------------------------------------------- | -------------- | --------------- | | Create Link | Destination URL, Collection ID, External ID, Request ID | `POST /links` | `links.createFromApi` | | Find Link | External ID, Request ID | `GET /links?externalId=...` | `links.list` | Pass a stable, namespaced source record identity as `External ID`. Keep it at or below 255 characters. Pass a required correlation `Request ID` at or below 128 characters. Use the exact same external ID for `Find Link`. `Create Link` sends one raw create request. It does not check for an existing mapping or read the result again. Surround the action with a durable prepared intent, an exact lookup, and readback in one serialized scenario owner. `Find Link` requests two matches and returns a wrapper with `matches`, `matchCount`, `requestId`, and `rateLimit`. The scenario handles zero, one, or two matches. Before creating a link, call `GET https://api.hoko.to/collections` with the same connection. Copy the returned collection ID into `Collection ID`. Resolve previously saved collection references through this lookup before writing a new mapping. ## Set the scenario controls Configure the Make scenario with these values: | Setting | Value | Purpose | | --------------------------- | ------- | ----------------------------------------------------- | | Process data in order | **On** | Gives each mapping one exclusive scenario owner. | | Store incomplete executions | **Off** | Prevents incomplete runs from being saved for replay. | | Commit after each module | **On** | Commits the prepared intent before the Hoko write. | Make normally commits at the end of a scenario. If a later module or timeout fails, that behavior can roll back the prepared intent. It does not undo a link that Hoko already created. Do not add a Retry error handler around `Create Link`. Automatic completion belongs to the Retry error handler; it is not a global scenario setting. For personal data, you may enable **Keep data confidential**. Make describes that option as a privacy recommendation. It does not guarantee that data is absent from provider logs. See [Make scenario settings](https://help.make.com/scenario-settings). Successful output includes the Hoko link identity, short URL, destination URL, collection ID, external ID, and request ID. Valid rate headers produce bounded `rateLimit` metadata with `limit`, `remaining`, and `resetAt`. ## Handle retries Link creation has no idempotency guarantee. Disable automatic retry for incomplete executions and do not add a retry error handler around `Create Link`. Do not retry after a timeout, malformed response, or lost acknowledgement. Look up the exact external ID before any later write. Keep a prepared intent, source account, foreign record ID, payload fingerprint, request ID, and returned Hoko link ID in Make scenario state. Treat `401` as an invalid or revoked key, `403` as a missing scope, and `429` as a rate limit. `Create Link` maps `429` and `5xx` responses to runtime errors, because Make's rate-limit error class can trigger automatic retries. Honor `Retry-After`. Keep request IDs and rate metadata in redacted logs. ## Watch Link Created Add **Hoko → Watch Link Created** as the first module in a Make scenario. Make creates a dedicated webhook. Hoko binds that endpoint to the API-key workspace and the `link.created` event. The customer-owned relay returns Hoko's verification challenge and deletes the owned endpoint when the Make webhook is detached. The trigger emits `id`, `type`, `created`, `data.id`, and `data.workspaceId`. Hoko sends no destination URL or API key in this event. Make custom-app IML receives a parsed body. It does not preserve the exact raw bytes required to verify Hoko's HMAC signature. Do not send production events directly to the Make URL. Place a customer-owned HTTPS receiver between Hoko and Make. That receiver must verify the raw-body signature, reject bodies over 64 KiB and timestamps outside 300 seconds, durably deduplicate `webhook-id`, and forward only verified JSON to Make. Hoko delivery remains bounded and does not guarantee exactly-once execution. ## Keep the app private This slice excludes analytics, API-key management, billing, profile uploads, destructive workspace actions, OAuth, MCP, and public Make distribution. Use disposable local Hoko fixtures for acceptance. Do not use production, staging, or Playground as a test database. Record the Make app revision, scenario export, successful read and write, denied scope, revoked key, rate limit, uncertain-write handling, secret redaction, and cleanup before calling the app verified. --- ### n8n Use Hoko link actions in a private n8n community node. Canonical URL: https://docs.hoko.to/integrations/n8n Markdown URL: https://docs.hoko.to/integrations/n8n/README.md ## Use the private node The Hoko n8n node calls Hoko's unversioned resource REST API and the shared engine. No dedicated Hoko job runner is needed. The preview targets n8n `2.42.x` with Node.js 24. Download the package at [`n8n-nodes-hoko.tgz`](https://docs.hoko.to/integrations/n8n/n8n-nodes-hoko.tgz). For a self-hosted n8n instance, copy the file to the instance and run: ```sh mkdir -p ~/.n8n/nodes cd ~/.n8n/nodes npm install /path/to/n8n-nodes-hoko.tgz ``` Restart n8n after installation. Enable community nodes if your deployment requires that setting. The disposable Hoko engine and native Create and Find workflow and credential proofs passed on n8n `2.42.6` with Node.js `24.19.0`. n8n Cloud installation and execution are not verified. This is not a community listing. ## Configure the credential Create a Hoko API key in **Dashboard → Integrations → API Keys**. Give it `linksRead` and `linksWrite` for `Create Link`. `Find Link` and the credential test need `linksRead`. Store the key in n8n's **Hoko API** credential. The node uses the fixed Hoko origin `https://api.hoko.to`. The key selects the workspace. Do not add a workspace ID or another origin to the node. ## Create and find links `Create Link` accepts a destination URL, collection ID, external ID, and a caller correlation ID. The URL must be HTTP or HTTPS, have no embedded credentials, and stay within 2,048 characters. Resolve the collection ID from `GET /collections`. The external ID stays within 255 characters. Correlation IDs use visible ASCII and stay within 128 characters. Before the first write, call `GET https://api.hoko.to/collections` with the same credential and copy the returned collection ID. Resolve saved collection references through this lookup before creating a new mapping. `Find Link` returns zero, one, or multiple exact external-ID matches. Use the same external ID for a later reconciliation lookup. ## Handle retries Disable **Retry On Fail** on `Create Link`. Link creation is not idempotent. Save the prepared intent before the Hoko write. If the response is uncertain, look up the exact external ID and stop for operator review. Do not retry blindly or replace a conflicting link. Treat `401` as an invalid or revoked key, `403` as a missing scope, and `429` as a rate limit. Respect `Retry-After`. Each HTTP dispatch receives a unique terminal Hoko `requestId`. `Create Link` can make a preflight, write, and readback dispatch. Successful output includes the verification-call `requestId`, the caller's `correlationId`, and that terminal call's validated rate-limit metadata. ## Keep the preview private This slice excludes analytics, API-key management, billing, profile uploads, destructive workspace actions, webhooks, event triggers, OAuth, and public n8n distribution. Existing n8n HTTP Request and MCP Client workflows remain usable. Use disposable PostgreSQL and a disposable self-hosted n8n instance for acceptance. Do not use production, staging, or Playground as a test database. Record the n8n version, package version, credential test, create, exact lookup, denied scope, revoked key, rate limit, uncertain-write handling, secret redaction, and cleanup before calling the node verified. See the [n8n package README](https://docs.hoko.to/integrations/n8n/README.md), [n8n community-node installation](https://docs.n8n.io/integrations/community-nodes/installation/manual-install/), and [n8n node development](https://docs.n8n.io/integrations/creating-nodes/). ## Upgrade or remove the node Keep the previous tarball and an n8n backup before an upgrade. Install the replacement tarball in the self-hosted n8n user directory and restart n8n. Run disposable Create and Find workflows before using the replacement with a real workspace. To roll back, reinstall the previous tarball and restart n8n. Remove temporary workflows and revoke their Hoko keys. Remove the package after no workflow uses it. --- ### Commerce integrations Connect commerce providers to Hoko link attribution through the shared engine. Canonical URL: https://docs.hoko.to/integrations/commerce Markdown URL: https://docs.hoko.to/integrations/commerce/README.md ## What this guide covers Commerce adapters connect a provider product or order to Hoko attribution. The adapter validates provider signatures and tenant ownership, then calls the shared commerce engine. It never writes directly to Hoko analytics tables. Supported planning families are Shopify, Salla, Zid, WooCommerce, BigCommerce, Adobe Commerce, and Stripe. A catalog entry or local adapter does not mean a provider account, app listing, or hosted connection is available. ## Required inputs - provider store or account identifier; - provider OAuth or API credential stored in the provider connection; - product, checkout, order, payment, and refund identifiers as applicable; - webhook signing secret and delivery identifier for event adapters; - Hoko workspace and scoped API access for customer-owned recipes. ## Safe implementation path 1. Choose the provider-specific contract and confirm its account requirements. 2. Install the provider adapter in a disposable account and disposable Hoko database. 3. Create one product link with an external identity. 4. Rehearse one paid event, one duplicate, one refund, and one rejected tenant. 5. Record provider receipts before enabling hosted or public distribution. See the provider package READMEs in [`integrations/`](https://github.com/alja7dali/labdotsa/tree/master/integrations), the [Apps catalog](./apps), and the [automation guide](./automation). --- ### Social and CMS integrations Build reviewable social and CMS recipes around Hoko's shared engine. Canonical URL: https://docs.hoko.to/integrations/social-cms Markdown URL: https://docs.hoko.to/integrations/social-cms/README.md ## Scope The social and CMS recipes cover WordPress, Typefully, Buffer, Publer, Metricool, SocialPilot, Sprout, Webflow, and Ghost. Local recipes produce a provider request and durable reconciliation state. They do not claim that a post was published until a provider receipt exists. ## Required inputs - provider account, workspace, site, or profile; - provider API key, OAuth grant, or customer-owned MCP connection; - Hoko API key with only the scopes used by the recipe; - provider record ID and an idempotency key; - draft or review mode where the provider does not support safe publishing. ## Boundary Provider credentials stay in the provider connection or customer-owned host. The shared Hoko engine handles authentication, authorization, usage, rate limits, link creation, and reconciliation. An uncertain provider write must be reconciled by external identity before retrying. See the [Apps catalog](./apps), [automation guide](./automation), and the social/CMS package README for provider-specific fields. --- ### Reporting integrations Send Hoko link and conversion facts to reporting and campaign systems. Canonical URL: https://docs.hoko.to/integrations/reporting Markdown URL: https://docs.hoko.to/integrations/reporting/README.md ## Providers The reporting recipes cover Slack, Microsoft Teams, Notion, Airtable, Google Sheets, GA4, PostHog, Segment, HubSpot, Salesforce, Klaviyo, Mailchimp, Customer.io, and Brevo. The shared engine normalizes facts and applies tenant, scope, usage, and rate-limit policy before a provider request is built. ## Required inputs - provider workspace, property, base, audience, or account ID; - provider token, OAuth grant, webhook, or ingestion key; - Hoko workspace and scoped API key; - event or campaign identity and a replay-safe external ID; - consent and retention settings for any customer or conversion data. Provider-shaped loopbacks and disposable database rehearsals prove request contracts only. Record a provider response in a disposable account before claiming delivery or campaign acceptance. See the [automation guide](./automation) and [Apps catalog](./apps). --- ### OAuth provider connections Configure provider OAuth connections without bypassing the shared Hoko engine. Canonical URL: https://docs.hoko.to/integrations/oauth Markdown URL: https://docs.hoko.to/integrations/oauth/README.md ## Connection boundary OAuth identifies and authorizes a provider connection. It does not replace Hoko authentication, authorization, usage, or rate limiting. After token exchange, the connection calls the same engine used by Dashboard, REST, CLI, and MCP. Keep client IDs, secrets, redirect URIs, encryption keys, and provider tokens server-side. Bind state, PKCE, workspace, and callback origin before exchanging an authorization code. Revoke and disconnect must prevent later refresh from reactivating a connection. Provider registration, redirect approval, account eligibility, and marketplace review are external gates. A local OAuth contract is not a provider receipt. See the [Apps catalog](./apps) and the provider package README. --- ### Later and Hootsuite Review bounded Later reporting and Hootsuite scheduling contracts. Canonical URL: https://docs.hoko.to/integrations/later-hootsuite Markdown URL: https://docs.hoko.to/integrations/later-hootsuite/README.md ## Current boundary Later Influence reporting and Hootsuite scheduled-message recipes have local contracts and loopback evidence. They remain gated on provider-approved credentials, account eligibility, callback configuration, and disposable provider fixtures. Later reporting does not imply Later social publishing. Hootsuite scheduling does not imply a native Hoko connector or public Apps listing. Keep each provider credential in the customer-owned connection and call Hoko through the shared engine. Before promotion, record account identity, scopes, callback, one successful read/write or scheduled-message receipt, replay behavior, cleanup, and owner. See the [Apps catalog](./apps) and the integration package README. --- ### Introduction Read, update, and delete customer records used for conversion attribution. Canonical URL: https://docs.hoko.to/customers/introduction Markdown URL: https://docs.hoko.to/customers/introduction/README.md ## Overview The Customers API provides access to customer data used for conversion attribution and customer management workflows. Direct customer writes can update or soft-delete existing customers, but this API does not create customers. When you track a lead or sale event using the conversion tracking endpoints (/track/lead or /track/sale), Hoko automatically creates or updates the customer record based on the customerExternalId. This ensures your customer data stays in sync with your conversion tracking activities. Use the Customers API to retrieve customer information, update existing customer profile fields, verify customer existence, build customer management interfaces, or integrate customer data with other systems. The API supports filtering by customer ID or external ID, making it easy to find specific customers. - (GET) Retrieve customers by ID or external ID with pagination support - (PUT) Update existing customers by ID or external ID - (DELETE) Soft-delete customers by ID - Automatic customer creation/updates through conversion tracking endpoints - Support for filtering and sorting to efficiently find specific customers > **Info: Customer Management** > Use `customersRead` for retrieval and `customersWrite` for direct updates or deletion. Customer creation remains part of conversion tracking through the `conversionsWrite` scope. --- ### (GET) Get customers Retrieve customers by ID or external ID. Supports pagination and sorting. Canonical URL: https://docs.hoko.to/customers/get Markdown URL: https://docs.hoko.to/customers/get/README.md ## Endpoint GET /customers Retrieve customers by id or externalId. Supports pagination with take, skip, and sorting by createdAt. Use this endpoint to list your customers, verify customer existence, or build customer management interfaces. **Endpoint** ```text GET /customers ``` ## Authentication Requires an authorized credential with permission for `customersRead`. API keys are one supported credential; eligible OAuth or authenticated sessions may also authorize this operation. ## Query Parameters | Parameter | Type | Required | Location | Description | | ---------- | ------------- | -------- | -------- | ------------------------------------------------------------------------------------------- | | id | string (ULID) | No | query | Filter by specific customer ID. Returns a single customer if found. | | externalId | string | No | query | Filter by external ID. Useful for syncing with external systems. | | take | number | No | query | Number of results to return (default: 50, min: 1, max: 5,000). | | skip | number | No | query | Number of results to skip for pagination (default: 0, min: 0). | | sort | string | No | query | Sort order by createdAt: "asc" for oldest first, "desc" for newest first (default: "desc"). | > **Warning: Request Limits** > The `take` parameter supports values from 1 to 5,000. Requests above 5,000 are rejected. ## Status Codes ### 200 Successfully retrieved customers. **Request** ```bash curl -X GET "https://api.hoko.to/customers?take=50&sort=desc" \ -H "Authorization: Bearer " ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/customers?take=50&sort=desc', { method: 'GET', headers: { Authorization: 'Bearer ' } }); const customers = await response.json(); ``` **Response** ```json [ { "id": "", "externalId": "customer_123", "name": "John Doe", "email": "john@example.com", "phone": "+1234567890", "avatar": "https://example.com/avatar.jpg", "createdAt": "2024-01-01T00:00:00Z", "updatedAt": "2024-01-01T00:00:00Z" } ] ``` ### 400 Invalid query parameters. This includes invalid ULID filters or invalid `take`, `skip`, or `sort` values. **Response** ```json { "error": { "en": "Invalid request", "ar": "طلب غير صالح" } } ``` ### 401 Invalid or missing API key. **Request** ```bash curl -X GET "https://api.hoko.to/customers" \ -H "Authorization: Bearer invalid_key" ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/customers', { method: 'GET', headers: { Authorization: 'Bearer invalid_key' } }); ``` **Response** ```json { "error": { "en": "Invalid API key", "ar": "مفتاح API غير صالح" } } ``` ### 403 API key does not have the required customersRead scope. **Request** ```bash curl -X GET "https://api.hoko.to/customers" \ -H "Authorization: Bearer " ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/customers', { method: 'GET', headers: { Authorization: 'Bearer ' } }); ``` **Response** ```json { "error": { "en": "Missing required scopes", "ar": "الصلاحيات المطلوبة مفقودة" }, "missingScopes": ["customersRead"] } ``` ### 429 Rate limit exceeded. Check X-RateLimit-\* headers for details. **Request** ```bash curl -X GET "https://api.hoko.to/customers" \ -H "Authorization: Bearer " ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/customers', { method: 'GET', headers: { Authorization: 'Bearer ' } }); ``` **Response** ```json { "error": { "en": "Rate limit exceeded", "ar": "تم تجاوز حد المعدل" }, "retryAfter": 60 } ``` ### 500 Unexpected server error. **Response** ```json { "error": { "en": "Internal server error", "ar": "خطأ داخلي في الخادم" } } ``` ## Examples **Request** ```bash curl -X GET "https://api.hoko.to/customers?take=50&sort=desc" \ -H "Authorization: Bearer " ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/customers?take=50&sort=desc', { method: 'GET', headers: { Authorization: 'Bearer ' } }); const customers = await response.json(); ``` **Response** ```json [ { "id": "", "externalId": "customer_123", "name": "John Doe", "email": "john@example.com", "phone": "+1234567890", "avatar": "https://example.com/avatar.jpg", "createdAt": "2024-01-01T00:00:00Z", "updatedAt": "2024-01-01T00:00:00Z" } ] ``` --- ### (PUT) Update customers Update existing customers by ID or external ID. Canonical URL: https://docs.hoko.to/customers/put Markdown URL: https://docs.hoko.to/customers/put/README.md ## Endpoint PUT /customers Update one or more existing customers in a single request. Entries with `id` update that customer. Entries without `id` use `externalId` to find an existing active customer. This endpoint does not create customers. **Endpoint** ```text PUT /customers ``` ## Authentication Requires an authorized credential with permission for `customersWrite`. API keys are one supported credential; eligible OAuth or authenticated sessions may also authorize this operation. ## Request Body The request body must be an array of customer objects. | Parameter | Type | Required | Location | Description | | ---------- | ------------- | -------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | | id | string (ULID) | No | body | Existing customer ID. When provided, the entry updates that customer. | | externalId | string | Yes without id | body | External customer identifier. Without `id`, this identifies the existing customer to update. With `id`, it can update the customer's external ID. | | name | string/null | No | body | Customer display name. Send null to clear. | | email | string/null | No | body | Customer email address. Send null to clear. | | phone | string/null | No | body | Customer phone number. Send null to clear. | | avatar | string/null | No | body | HTTPS avatar image URL. Send null to clear. | Entries with `id` must include at least one mutable field. Entries without `id` must include `externalId` for an existing customer and at least one customer field (`name`, `email`, `phone`, or `avatar`). ## Status Codes ### 200 Customers updated successfully. **Request** ```bash curl -X PUT "https://api.hoko.to/customers" \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '[ { "externalId": "customer_123", "name": "Jane Doe", "email": "jane@example.com", "avatar": "https://example.com/jane.png" } ]' ``` **Response** ```json [ { "id": "", "externalId": "customer_123", "name": "Jane Doe", "email": "jane@example.com", "phone": null, "avatar": "https://example.com/jane.png", "createdAt": "2024-01-01T00:00:00Z", "updatedAt": "2024-01-01T00:00:00Z" } ] ``` ### 400 Invalid JSON, invalid customer IDs, duplicate IDs or external IDs in the request, or a customer that does not belong to the workspace. ### 401 Invalid or missing API key. ### 403 API key does not have the required customersWrite scope. ### 429 Rate limit exceeded. Check X-RateLimit-\* headers for details. ### 500 Unexpected server error. --- ### (DELETE) Delete customers Soft-delete existing customers by ID. Canonical URL: https://docs.hoko.to/customers/delete Markdown URL: https://docs.hoko.to/customers/delete/README.md ## Endpoint DELETE /customers Soft-delete one or more customers by ULID. Deleted customers are excluded from `GET /customers` and future direct updates. **Endpoint** ```text DELETE /customers ``` ## Authentication Requires an authorized credential with permission for `customersWrite`. API keys are one supported credential; eligible OAuth or authenticated sessions may also authorize this operation. ## Request Body The request body must be an array of customer ULIDs. ```json ["", ""] ``` ## Status Codes ### 200 Customers deleted successfully. **Request** ```bash curl -X DELETE "https://api.hoko.to/customers" \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '[""]' ``` **Response** ```json { "deletedIds": [""] } ``` ### 400 Invalid JSON, invalid customer IDs, duplicate IDs in the request, or a customer that does not belong to the workspace. ### 401 Invalid or missing API key. ### 403 API key does not have the required customersWrite scope. ### 429 Rate limit exceeded. Check X-RateLimit-\* headers for details. ### 500 Unexpected server error. --- ### Introduction Create, read, update, and delete partners for attribution tracking and commission management. Canonical URL: https://docs.hoko.to/partners/introduction Markdown URL: https://docs.hoko.to/partners/introduction/README.md ## Overview Partners help track attribution and commission data for affiliate programs, referral systems, and partner marketing campaigns. Associate partners with links to automatically attribute clicks and conversions to the correct partner. Use partners to track which affiliates or referral sources are driving traffic and conversions, calculate commissions, and measure partner performance. Each partner can be associated with multiple links, enabling comprehensive attribution tracking across your marketing channels. The Partners API provides full CRUD operations for managing your partner database. Create partners, update their information, and track their performance through associated links and conversions. - (GET) Retrieve partners with pagination and filtering - (POST) Create one or more partners with contact information - (PUT) Update existing partners or create new ones with upsert - (DELETE) Soft delete partners while preserving attribution data > **Tip: Partner Attribution** > Associate partners with links using the partnerId field when creating or updating links. This enables automatic attribution of clicks and conversions to the correct partner, making it easy to track partner performance and calculate commissions. --- ### (GET) Get partners Retrieve partners by ID. Supports pagination and sorting. Canonical URL: https://docs.hoko.to/partners/get Markdown URL: https://docs.hoko.to/partners/get/README.md ## Endpoint GET /partners Retrieve partners by id. Supports pagination with take, skip, and sorting by createdAt. **Endpoint** ```text GET /partners ``` ## Authentication Requires an authorized credential with permission for `partnersRead`. API keys are one supported credential; eligible OAuth or authenticated sessions may also authorize this operation. ## Query Parameters | Parameter | Type | Required | Location | Description | | --------- | ------------- | -------- | -------- | ------------------------------------------------------------------------------------------- | | id | string (ULID) | No | query | Filter by specific partner ID. Returns a single partner if found. | | take | number | No | query | Number of results to return (default: 50, min: 1, max: 5,000). | | skip | number | No | query | Number of results to skip for pagination (default: 0, min: 0). | | sort | string | No | query | Sort order by createdAt: "asc" for oldest first, "desc" for newest first (default: "desc"). | > **Warning: Request Limits** > The `take` parameter supports values from 1 to 5,000. Requests above 5,000 are rejected. ## Status Codes ### 200 Successfully retrieved partners. **Request** ```bash curl -X GET "https://api.hoko.to/partners?take=50&sort=desc" \ -H "Authorization: Bearer " ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/partners?take=50&sort=desc', { method: 'GET', headers: { Authorization: 'Bearer ' } }); const partners = await response.json(); ``` **Response** ```json [ { "id": "", "name": "Partner Name", "email": "partner@example.com", "phone": "+1234567890", "createdAt": "2024-01-01T00:00:00Z", "updatedAt": "2024-01-01T00:00:00Z" } ] ``` ### 400 Invalid query parameters. This includes invalid ULID filters or invalid `take`, `skip`, or `sort` values. **Response** ```json { "error": { "en": "Invalid request", "ar": "طلب غير صالح" } } ``` ### 401 Invalid or missing API key. **Request** ```bash curl -X GET "https://api.hoko.to/partners" \ -H "Authorization: Bearer invalid_key" ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/partners', { method: 'GET', headers: { Authorization: 'Bearer invalid_key' } }); ``` **Response** ```json { "error": { "en": "Invalid API key", "ar": "مفتاح API غير صالح" } } ``` ### 403 API key does not have the required partnersRead scope. **Request** ```bash curl -X GET "https://api.hoko.to/partners" \ -H "Authorization: Bearer " ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/partners', { method: 'GET', headers: { Authorization: 'Bearer ' } }); ``` **Response** ```json { "error": { "en": "Missing required scopes", "ar": "الصلاحيات المطلوبة مفقودة" }, "missingScopes": ["partnersRead"] } ``` ### 429 Rate limit exceeded. Check X-RateLimit-\* headers for details. **Request** ```bash curl -X GET "https://api.hoko.to/partners" \ -H "Authorization: Bearer " ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/partners', { method: 'GET', headers: { Authorization: 'Bearer ' } }); ``` **Response** ```json { "error": { "en": "Rate limit exceeded", "ar": "تم تجاوز حد المعدل" }, "retryAfter": 60 } ``` ### 500 Unexpected server error. **Response** ```json { "error": { "en": "Internal server error", "ar": "خطأ داخلي في الخادم" } } ``` ## Examples **Request** ```bash curl -X GET "https://api.hoko.to/partners?take=50&sort=desc" \ -H "Authorization: Bearer " ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/partners?take=50&sort=desc', { method: 'GET', headers: { Authorization: 'Bearer ' } }); const partners = await response.json(); ``` **Response** ```json [ { "id": "", "name": "Partner Name", "email": "partner@example.com", "phone": "+1234567890", "createdAt": "2024-01-01T00:00:00Z", "updatedAt": "2024-01-01T00:00:00Z" } ] ``` --- ### (POST) Create partners Create one or more partners. Each partner requires a name. Canonical URL: https://docs.hoko.to/partners/post Markdown URL: https://docs.hoko.to/partners/post/README.md ## Endpoint POST /partners Create one or more partners. Accepts an array of partner objects. Each partner requires a name. Email and phone are optional. **Endpoint** ```text POST /partners ``` ## Authentication Requires an authorized credential with permission for `partnersWrite`. API keys are one supported credential; eligible OAuth or authenticated sessions may also authorize this operation. ## Request Body The request body must be an array of partner objects. Each object represents one partner to create. You can create up to 10,000 partners in a single request. Requests above 10,000 items are rejected. | Parameter | Type | Required | Location | Description | | --------- | -------------- | -------- | -------- | ----------------------------- | | name | string | Yes | body | The name of the partner. | | email | string (email) | No | body | Email address of the partner. | | phone | string | No | body | Phone number of the partner. | > **Warning: Request Size** > Ensure the request body contains at least one partner object. ## Status Codes ### 201 Partners created successfully. **Request** ```bash curl -X POST "https://api.hoko.to/partners" \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '[ { "name": "Partner Name", "email": "partner@example.com", "phone": "+1234567890" } ]' ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/partners', { method: 'POST', headers: { Authorization: 'Bearer ', 'Content-Type': 'application/json' }, body: JSON.stringify([ { name: 'Partner Name', email: 'partner@example.com', phone: '+1234567890' } ]) }); const partners = await response.json(); ``` **Response** ```json [ { "id": "", "name": "Partner Name", "email": "partner@example.com", "phone": "+1234567890", "createdAt": "2024-01-01T00:00:00Z", "updatedAt": "2024-01-01T00:00:00Z" } ] ``` ### 400 Invalid request body (missing required fields or invalid values). **Request** ```bash curl -X POST "https://api.hoko.to/partners" \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '[ {} ]' ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/partners', { method: 'POST', headers: { Authorization: 'Bearer ', 'Content-Type': 'application/json' }, body: JSON.stringify([{}]) }); ``` **Response** ```json { "error": { "en": "Invalid request", "ar": "طلب غير صالح" } } ``` ### 401 Invalid or missing API key. **Request** ```bash curl -X POST "https://api.hoko.to/partners" \ -H "Authorization: Bearer invalid_key" ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/partners', { method: 'POST', headers: { Authorization: 'Bearer invalid_key' } }); ``` **Response** ```json { "error": { "en": "Invalid API key", "ar": "مفتاح API غير صالح" } } ``` ### 403 API key does not have the required partnersWrite scope. **Request** ```bash curl -X POST "https://api.hoko.to/partners" \ -H "Authorization: Bearer " ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/partners', { method: 'POST', headers: { Authorization: 'Bearer ' } }); ``` **Response** ```json { "error": { "en": "Missing required scopes", "ar": "الصلاحيات المطلوبة مفقودة" }, "missingScopes": ["partnersWrite"] } ``` ### 429 Rate limit exceeded. Check X-RateLimit-\* headers for details. **Request** ```bash curl -X POST "https://api.hoko.to/partners" \ -H "Authorization: Bearer " ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/partners', { method: 'POST', headers: { Authorization: 'Bearer ' } }); ``` **Response** ```json { "error": { "en": "Rate limit exceeded", "ar": "تم تجاوز حد المعدل" }, "retryAfter": 60 } ``` ### 500 Unexpected server error. **Response** ```json { "error": { "en": "Internal server error", "ar": "خطأ داخلي في الخادم" } } ``` ## Examples **Request** ```bash curl -X POST "https://api.hoko.to/partners" \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '[ { "name": "Partner Name", "email": "partner@example.com", "phone": "+1234567890" } ]' ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/partners', { method: 'POST', headers: { Authorization: 'Bearer ', 'Content-Type': 'application/json' }, body: JSON.stringify([ { name: 'Partner Name', email: 'partner@example.com', phone: '+1234567890' } ]) }); const partners = await response.json(); ``` **Response** ```json [ { "id": "", "name": "Partner Name", "email": "partner@example.com", "phone": "+1234567890", "createdAt": "2024-01-01T00:00:00Z", "updatedAt": "2024-01-01T00:00:00Z" } ] ``` --- ### (PUT) Update/Upsert partners Update existing partners or create new ones with upsert operations. Canonical URL: https://docs.hoko.to/partners/put Markdown URL: https://docs.hoko.to/partners/put/README.md ## Endpoint PUT /partners Upsert (update or insert) one or more partners. If id is provided, the partner is updated. If the ID does not exist, the request fails. To create new partners, omit the id field. **Endpoint** ```text PUT /partners ``` ## Authentication Requires an authorized credential with permission for `partnersWrite`. API keys are one supported credential; eligible OAuth or authenticated sessions may also authorize this operation. ## Request Body The request body must be an array of partner objects. Include the id field to update an existing partner, or omit it to create a new one. You can upsert up to 10,000 partners in a single request. Requests above 10,000 items are rejected. | Parameter | Type | Required | Location | Description | | --------- | ------------------- | -------- | -------- | ------------------------------------------------------------------------------------------------------------------------ | | id | string (ULID) | Yes | body | Required when updating. Omit to create a new partner. If provided, it must exist in your workspace or the request fails. | | name | string | No | body | The name of the partner. Required when creating a new partner (no id). Optional when updating. | | email | string (email)/null | No | body | Email address of the partner. If email or phone is null, the same payload must include a non-null email or phone value. | | phone | string/null | No | body | Phone number of the partner. If email or phone is null, the same payload must include a non-null email or phone value. | > **Info: Update Behavior** > When updating, include at least one mutable field besides id. Only the fields you include are changed. Omitted fields keep their current values. Null contact fields are accepted only when the same insert or update payload also provides at least one non-null contact value. > **Warning: Request Size** > Ensure the request body contains at least one partner object. ## Status Codes ### 200 Partners updated or created successfully. **Request** ```bash curl -X PUT "https://api.hoko.to/partners" \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '[ { "id": "", "name": "Updated Partner", "email": "updated@example.com" } ]' ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/partners', { method: 'PUT', headers: { Authorization: 'Bearer ', 'Content-Type': 'application/json' }, body: JSON.stringify([ { id: '', name: 'Updated Partner', email: 'updated@example.com' } ]) }); const partners = await response.json(); ``` **Response** ```json [ { "id": "", "name": "Updated Partner", "email": "updated@example.com", "phone": null, "createdAt": "2024-01-01T00:00:00Z", "updatedAt": "2024-01-01T00:00:00Z" } ] ``` ### 400 Invalid request body (missing required fields or invalid values). **Request** ```bash curl -X PUT "https://api.hoko.to/partners" \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '[ {} ]' ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/partners', { method: 'PUT', headers: { Authorization: 'Bearer ', 'Content-Type': 'application/json' }, body: JSON.stringify([{}]) }); ``` **Response** ```json { "error": { "en": "Invalid request", "ar": "طلب غير صالح" } } ``` ### 401 Invalid or missing API key. **Request** ```bash curl -X PUT "https://api.hoko.to/partners" \ -H "Authorization: Bearer invalid_key" ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/partners', { method: 'PUT', headers: { Authorization: 'Bearer invalid_key' } }); ``` **Response** ```json { "error": { "en": "Invalid API key", "ar": "مفتاح API غير صالح" } } ``` ### 403 API key does not have the required partnersWrite scope. **Request** ```bash curl -X PUT "https://api.hoko.to/partners" \ -H "Authorization: Bearer " ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/partners', { method: 'PUT', headers: { Authorization: 'Bearer ' } }); ``` **Response** ```json { "error": { "en": "Missing required scopes", "ar": "الصلاحيات المطلوبة مفقودة" }, "missingScopes": ["partnersWrite"] } ``` ### 429 Rate limit exceeded. Check X-RateLimit-\* headers for details. **Request** ```bash curl -X PUT "https://api.hoko.to/partners" \ -H "Authorization: Bearer " ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/partners', { method: 'PUT', headers: { Authorization: 'Bearer ' } }); ``` **Response** ```json { "error": { "en": "Rate limit exceeded", "ar": "تم تجاوز حد المعدل" }, "retryAfter": 60 } ``` ### 500 Unexpected server error. **Response** ```json { "error": { "en": "Internal server error", "ar": "خطأ داخلي في الخادم" } } ``` ## Examples **Request** ```bash curl -X PUT "https://api.hoko.to/partners" \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '[ { "id": "", "name": "Updated Partner", "email": "updated@example.com" } ]' ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/partners', { method: 'PUT', headers: { Authorization: 'Bearer ', 'Content-Type': 'application/json' }, body: JSON.stringify([ { id: '', name: 'Updated Partner', email: 'updated@example.com' } ]) }); const partners = await response.json(); ``` **Response** ```json [ { "id": "", "name": "Updated Partner", "email": "updated@example.com", "phone": null, "createdAt": "2024-01-01T00:00:00Z", "updatedAt": "2024-01-01T00:00:00Z" } ] ``` --- ### (DELETE) Delete partners Delete one or more partners using soft delete. Canonical URL: https://docs.hoko.to/partners/delete Markdown URL: https://docs.hoko.to/partners/delete/README.md ## Endpoint DELETE /partners Delete one or more partners (soft delete). Accepts an array of partner IDs to delete. **Endpoint** ```text DELETE /partners ``` ## Authentication Requires an authorized credential with permission for `partnersWrite`. API keys are one supported credential; eligible OAuth or authenticated sessions may also authorize this operation. ## Request Body The request body must be an array of partner IDs (ULIDs) to delete. You can delete up to 10,000 partners in a single request. Requests above 10,000 IDs are rejected. | Parameter | Type | Required | Location | Description | | --------- | ------------- | -------- | -------- | ------------------------------------------------------------------------------------------- | | body | array | Yes | body | Array of partner IDs (ULIDs) to delete. All IDs must be valid and belong to your workspace. | > **Warning: Request Size** > Ensure the request body contains at least one valid partner ID. ## Status Codes ### 200 Partners deleted successfully. **Request** ```bash curl -X DELETE "https://api.hoko.to/partners" \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '[ "" ]' ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/partners', { method: 'DELETE', headers: { Authorization: 'Bearer ', 'Content-Type': 'application/json' }, body: JSON.stringify(['']) }); const result = await response.json(); ``` **Response** ```json { "deletedIds": [""] } ``` ### 400 Invalid request body (missing IDs, invalid ULIDs, or IDs not found in your workspace). **Request** ```bash curl -X DELETE "https://api.hoko.to/partners" \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '[ "invalid-id" ]' ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/partners', { method: 'DELETE', headers: { Authorization: 'Bearer ', 'Content-Type': 'application/json' }, body: JSON.stringify(['invalid-id']) }); ``` **Response** ```json { "error": { "en": "Invalid request", "ar": "طلب غير صالح" } } ``` ### 401 Invalid or missing API key. **Request** ```bash curl -X DELETE "https://api.hoko.to/partners" \ -H "Authorization: Bearer invalid_key" ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/partners', { method: 'DELETE', headers: { Authorization: 'Bearer invalid_key' } }); ``` **Response** ```json { "error": { "en": "Invalid API key", "ar": "مفتاح API غير صالح" } } ``` ### 403 API key does not have the required partnersWrite scope. **Request** ```bash curl -X DELETE "https://api.hoko.to/partners" \ -H "Authorization: Bearer " ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/partners', { method: 'DELETE', headers: { Authorization: 'Bearer ' } }); ``` **Response** ```json { "error": { "en": "Missing required scopes", "ar": "الصلاحيات المطلوبة مفقودة" }, "missingScopes": ["partnersWrite"] } ``` ### 429 Rate limit exceeded. Check X-RateLimit-\* headers for details. **Request** ```bash curl -X DELETE "https://api.hoko.to/partners" \ -H "Authorization: Bearer " ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/partners', { method: 'DELETE', headers: { Authorization: 'Bearer ' } }); ``` **Response** ```json { "error": { "en": "Rate limit exceeded", "ar": "تم تجاوز حد المعدل" }, "retryAfter": 60 } ``` ### 500 Unexpected server error. **Response** ```json { "error": { "en": "Internal server error", "ar": "خطأ داخلي في الخادم" } } ``` ## Examples **Request** ```bash curl -X DELETE "https://api.hoko.to/partners" \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '[ "" ]' ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/partners', { method: 'DELETE', headers: { Authorization: 'Bearer ', 'Content-Type': 'application/json' }, body: JSON.stringify(['']) }); const result = await response.json(); ``` **Response** ```json { "deletedIds": [""] } ``` --- ### Introduction Track lead and sale conversion events to connect marketing touchpoints to business outcomes. Automatically create and update customer records with flexible attribution tracking. Canonical URL: https://docs.hoko.to/track/introduction Markdown URL: https://docs.hoko.to/track/introduction/README.md ## Overview Conversion tracking is the bridge between your marketing efforts and business outcomes. Track when leads convert and sales happen, connecting every click to revenue and business value. Hoko provides embedded click tracking for owned pages, plus two conversion tracking endpoints: Track Lead for capturing lead events (form submissions, sign-ups, inquiries) and Track Sale for recording completed purchases or revenue-generating actions. Lead and sale endpoints automatically create or update customer records, ensuring your customer database stays synchronized with your conversion tracking activities. When you track a conversion event, Hoko automatically associates it with the click that led to the conversion, providing complete attribution from initial click to final conversion. This enables you to measure campaign ROI, understand customer journeys, and optimize your marketing spend based on actual business results. - Embedded click tracking - Record a click from an owned page without redirecting the visitor - (POST) Track Lead - Record lead conversion events and automatically create/update customer records - (POST) Track Sale - Record sale conversion events with revenue attribution and customer upsert - Automatic customer creation/updates based on customerExternalId - Flexible attribution linking conversions to clicks, links, and partners - Support for immediate and deferred tracking scenarios > **Tip: Getting Started** > Enable conversion tracking on your links, then send lead or sale events when conversions occur. Use customerExternalId to maintain references to customers in your own system, ensuring seamless synchronization between Hoko and your CRM or other systems. --- ### Browser attribution script (analytics.js) Persist the clickId from short-link redirects using analytics.js and send it to conversion endpoints. Canonical URL: https://docs.hoko.to/track/analytics-js Markdown URL: https://docs.hoko.to/track/analytics-js/README.md ## Overview The browser attribution script (`/analytics.js`) captures the `hoko_id` query parameter that Hoko appends to destination URLs and stores it as a cookie. This gives you a persistent clickId that you can send later when tracking leads or sales. > **Info: Outside the REST OpenAPI contract** > `/analytics.js` is a browser script endpoint, not an authenticated JSON REST endpoint. It is documented here for implementation guidance but is intentionally outside the OpenAPI REST contract. ## What it does - Reads `hoko_id` from the current page URL - Stores it in a cookie named `hoko_id` for 90 days - Replaces the existing `hoko_id` cookie when the current page URL contains a new `hoko_id` - Does not send any network requests > **Info: Lightweight by design** > The script only writes the cookie. It does not call any tracking endpoints automatically. ## Add the script Include the script on pages where users land after clicking a Hoko short link. ```html ``` ## Read the cookie and send events Read the `hoko_id` cookie and pass it as `clickId` to conversion tracking endpoints. ```javascript const clickId = document.cookie .split('; ') .find((row) => row.startsWith('hoko_id=')) ?.split('=')[1]; await fetch('https://api.hoko.to/track/lead', { method: 'POST', headers: { Authorization: 'Bearer ', 'Content-Type': 'application/json' }, body: JSON.stringify({ clickId: clickId ?? '', eventName: 'Sign up', customerExternalId: 'customer_123', customerName: 'John Doe' }) }); ``` ## When it runs The script runs when the browser loads it. It must execute on the same domain where you want the cookie to be stored. --- ### Embedded click tracking Track a Hoko short-link click from an owned page without redirecting the visitor. Canonical URL: https://docs.hoko.to/track/embedded-click Markdown URL: https://docs.hoko.to/track/embedded-click/README.md ## Overview Embedded click tracking lets you record a normal Hoko click when a visitor lands on a page you control, without sending that visitor through the short-link redirect first. Use this when you already know which short link, referral code, partner code, or campaign should receive attribution on the page. > **Info: Outside the REST OpenAPI contract** > `/{shortId}/analytics.js` is a browser script endpoint, not an authenticated JSON REST endpoint. It is documented here for implementation guidance but is intentionally outside the OpenAPI REST contract. ## How it works - Create a dedicated Hoko short link, such as `https://hoko.to/1234` - Add the embedded analytics script using that short ID - Hoko verifies that the page requesting the script uses the short-link destination hostname or one of its subdomains - Hoko returns JavaScript with a short-lived signed capture token - The script reads or creates a first-party visitor session ID on the page, persists it for 90 days, then sends a signed capture request back to the same script URL - Hoko records the click only after that signed capture request is verified - The script first stores any `hoko_id` already present on the page URL - If the page URL does not include `hoko_id`, Hoko stores the generated embedded click ID as `hoko_id` - Conversion endpoints can later use `hoko_id` as the `clickId` > **Info: Redirect attribution wins first** > The embedded script includes the same page URL behavior as `/analytics.js`, so a `?hoko_id=...` from a normal short-link redirect takes priority. When there is no `hoko_id` on the page URL, the embedded click ID does not overwrite an existing `hoko_id` cookie. ## Add the script ```html ``` The short ID in the path identifies the Hoko link to track. Query parameters on the script URL are captured with the click. You do not need to include `https://hoko.to/analytics.js` alongside this script. The embedded script also persists `hoko_id` from normal short-link redirects. ## Host verification Embedded click tracking only records a click when both the browser `Origin`/`Referer` URL and the current page URL sent by the signed capture request use the short-link destination hostname or a genuine subdomain of it. For example, a short link that points to `https://example.com/pricing` can be embedded on `https://example.com/...`, `https://www.example.com/...`, `https://shop.example.com/...`, or a deeper subdomain. If the configured destination is `https://shop.example.com/...`, `https://checkout.shop.example.com/...` is allowed, but the parent `https://example.com/...` and sibling `https://blog.example.com/...` are not. An expired link with an expiry destination uses that destination hostname as its boundary. If the browser does not send a usable `Referer` or `Origin` header, either page URL falls outside the applicable destination boundary, or a URL is invalid, Hoko returns a no-op script and does not create a click. This protects clients from unrelated websites embedding their script and inflating their analytics. ## Supported attribution parameters | Parameter | Type | Required | Location | Description | | ------------ | ------ | -------- | -------- | --------------------------------------------------------------- | | shortId | string | Yes | path | The Hoko short ID in `/{shortId}/analytics.js`. | | utm_source | string | No | query | UTM source to store on the click. | | utm_medium | string | No | query | UTM medium to store on the click. | | utm_campaign | string | No | query | UTM campaign to store on the click. | | utm_term | string | No | query | UTM term to store on the click. | | utm_content | string | No | query | UTM content to store on the click. | | ref | string | No | query | Referral value to store on the click. | | referral | string | No | query | Alternative referral parameter. Used when `ref` is not present. | ## What gets captured The signed capture request is captured using the same short-link click pipeline as a redirect click. Hoko records request-level attributes such as timestamp, IP-derived location, visitor session ID, user agent, browser, operating system, device, language, browser referrer, and the UTM/referral parameters in the script URL. For embedded clicks, Hoko stores the browser's full current page URL as the click destination. Before recording the click, the server validates that this URL uses the applicable destination hostname or one of its subdomains. ## Conversion attribution After the script runs, read the `hoko_id` cookie and pass it to conversion endpoints. ```javascript const clickId = document.cookie .split('; ') .find((row) => row.startsWith('hoko_id=')) ?.split('=')[1]; await fetch('https://api.hoko.to/track/lead', { method: 'POST', headers: { Authorization: 'Bearer ', 'Content-Type': 'application/json' }, body: JSON.stringify({ clickId: clickId ?? '', eventName: 'Sign up', customerExternalId: 'customer_123', customerName: 'John Doe' }) }); ``` ## Behavior notes - The response is not cached, because each script request creates a short-lived capture token. - The script does not redirect the visitor. - A `hoko_id` on the current page URL is stored the same way as `/analytics.js`, including replacing an older cookie value. - Without a page URL `hoko_id`, the embedded click ID does not overwrite an existing `hoko_id` cookie. - The script does not mark clicks as QR scans. Use the normal short-link redirect for QR tracking. - If JavaScript is blocked, the embedded click is not recorded and the `hoko_id` cookie is not stored. - Browser referrer policies may limit how much of the page URL Hoko receives. The embedded script stores `document.referrer` as the click referrer, and still needs either a `Referer` or `Origin` header for host verification. - Pass page-specific attribution in the script query string when needed. --- ### Track lead events Canonical URL: https://docs.hoko.to/track/lead Markdown URL: https://docs.hoko.to/track/lead/README.md ## Endpoint POST /track/lead Track a lead conversion event for a short link. This endpoint creates a lead event and upserts a customer record. **Endpoint** ```text POST /track/lead ``` ## Authentication Requires an authorized credential with permission for `conversionsWrite`. API keys are one supported credential; eligible OAuth or authenticated sessions may also authorize this operation. ## Request Body Accepts a single object (not an array). All fields are required unless marked optional. | Parameter | Type | Required | Location | Description | | ------------------ | -------------- | -------- | -------- | -------------------------------------------------------------------------------------- | | clickId | string | Yes | body | Click ID string to attribute the lead. Use an empty string ("") for deferred tracking. | | eventName | string | Yes | body | Lead event name (1-255 characters). | | customerExternalId | string | Yes | body | Customer external ID (1-100 characters). Used to upsert the customer. | | customerName | string | Yes | body | Customer name (max 100 characters). | | customerEmail | string (email) | No | body | Customer email, max 100 characters. Optional. Can be null to clear. | | customerAvatar | string (URL) | No | body | HTTPS customer avatar URL. Optional. Can be null to clear. | | metadata | object | No | body | Optional metadata object stored with the lead event. | > **Info: Deferred Tracking** > Send clickId as an empty string ("") to attribute the lead to the customer's most recent lead click. This fails if the customer has no previous leads. > **Info: Retries create lead events** > Every accepted POST creates a new lead event, including a retry. This includes caller retries. Repeated requests with the same customerExternalId reuse the active customer but create separate leads. No **Idempotency-Key** header is accepted, promised, or required. Retry only when another lead conversion is intended. > **Tip: Capture clickId in the browser** > If you don't already have a clickId, use the Browser attribution script to persist `hoko_id` and pass it to this endpoint. See [Browser attribution script](https://docs.hoko.to/track/analytics-js). ## Status Codes ### 201 Lead event tracked successfully. **Request** ```bash curl -X POST "https://api.hoko.to/track/lead" \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '{ "clickId": "", "eventName": "Sign up", "customerExternalId": "customer_123", "customerName": "John Doe", "customerEmail": "john@example.com" }' ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/track/lead', { method: 'POST', headers: { Authorization: 'Bearer ', 'Content-Type': 'application/json' }, body: JSON.stringify({ clickId: '', eventName: 'Sign up', customerExternalId: 'customer_123', customerName: 'John Doe', customerEmail: 'john@example.com' }) }); const result = await response.json(); ``` **Response** ```json { "click": { "id": "" }, "link": { "id": "", "url": "https://example.com", "shortUrl": "https://hoko.to/abc123", "qrCode": "https://hoko.to/qrcode?text=https%3A%2F%2Fhoko.to%2Fabc123%3Fqr%3D1&size=512&errorCorrection=H&foreground=000000&background=FFFFFF&margin=1&format=svg", "title": null, "description": null, "image": null, "utm": null, "expiresAt": null, "expiredUrl": null, "password": null, "cloaked": false, "ios": null, "android": null, "geo": null, "collectionId": "", "tagIds": [""], "externalId": "ext_789", "tenantId": "tenant_456", "partnerId": "", "createdAt": "2024-01-01T00:00:00Z" }, "lead": { "id": "", "eventName": "Sign up", "metadata": { "source": "website" } }, "customer": { "id": "", "name": "John Doe", "email": "john@example.com", "phone": null, "avatar": "https://example.com/avatar.jpg", "externalId": "customer_123" } } ``` ### 400 Invalid request body, missing required fields, unknown clickId, or failed deferred tracking. **Request** ```bash curl -X POST "https://api.hoko.to/track/lead" \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '{ "clickId": "invalid-click-id", "eventName": "Sign up", "customerExternalId": "customer_123", "customerName": "John Doe" }' ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/track/lead', { method: 'POST', headers: { Authorization: 'Bearer ', 'Content-Type': 'application/json' }, body: JSON.stringify({ clickId: 'invalid-click-id', eventName: 'Sign up', customerExternalId: 'customer_123', customerName: 'John Doe' }) }); ``` **Response** ```json { "error": { "en": "Click ID invalid-click-id not found or does not belong to your workspace", "ar": "معرف النقرة invalid-click-id غير موجود أو لا ينتمي إلى مساحة العمل الخاصة بك" } } ``` ### 401 Invalid or missing API key. **Request** ```bash curl -X POST "https://api.hoko.to/track/lead" \ -H "Authorization: Bearer invalid_key" ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/track/lead', { method: 'POST', headers: { Authorization: 'Bearer invalid_key' } }); ``` **Response** ```json { "error": { "en": "Invalid API key", "ar": "مفتاح API غير صالح" } } ``` ### 403 API key does not have the required conversionsWrite scope. **Request** ```bash curl -X POST "https://api.hoko.to/track/lead" \ -H "Authorization: Bearer " ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/track/lead', { method: 'POST', headers: { Authorization: 'Bearer ' } }); ``` **Response** ```json { "error": { "en": "Missing required scopes", "ar": "الصلاحيات المطلوبة مفقودة" }, "missingScopes": ["conversionsWrite"] } ``` ### 429 Rate limit exceeded. Check X-RateLimit-\* headers for details. **Request** ```bash curl -X POST "https://api.hoko.to/track/lead" \ -H "Authorization: Bearer " ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/track/lead', { method: 'POST', headers: { Authorization: 'Bearer ' } }); ``` **Response** ```json { "error": { "en": "Rate limit exceeded", "ar": "تم تجاوز حد المعدل" }, "retryAfter": 60 } ``` ### 500 Unexpected server error. **Response** ```json { "error": { "en": "Internal server error", "ar": "خطأ داخلي في الخادم" } } ``` --- ### Track sale events Canonical URL: https://docs.hoko.to/track/sale Markdown URL: https://docs.hoko.to/track/sale/README.md ## Endpoint POST /track/sale Track a sale conversion event for a short link. This endpoint creates a sale event and upserts a customer record. Every accepted POST creates a new sale, including a retry. This includes caller retries. Retrying the same request reuses the active customer but intentionally records another sale. No **Idempotency-Key** header is accepted, promised, or required. Retry only when another sale conversion is intended. **Endpoint** ```text POST /track/sale ``` ## Authentication Requires an authorized credential with permission for `conversionsWrite`. API keys are one supported credential; eligible OAuth or authenticated sessions may also authorize this operation. ## Request Body Accepts a single object (not an array). All fields are required unless marked optional. | Parameter | Type | Required | Location | Description | | ------------------ | -------------- | -------- | -------- | --------------------------------------------------------------------- | | customerExternalId | string | Yes | body | Customer external ID (1-100 characters). Used to upsert the customer. | | amount | integer | Yes | body | Sale amount (non-negative integer). | | currency | string | No | body | Currency code. Defaults to "usd". | | eventName | string | No | body | Sale event name. Defaults to "Purchase" (max 255 characters). | | metadata | object | No | body | Optional metadata object stored with the sale event. | | leadEventName | string | No | body | Lead event name to attribute this sale to a specific lead. | | clickId | string | No | body | Click ID string for direct sale attribution. | | customerName | string | Yes | body | Customer name (max 100 characters). | | customerEmail | string (email) | No | body | Customer email, max 100 characters. Optional. Can be null to clear. | | customerAvatar | string (URL) | No | body | HTTPS customer avatar URL. Optional. Can be null to clear. | > **Tip: Capture clickId in the browser** > If you want to attribute a sale directly to a click, use the Browser attribution script to persist `hoko_id` and pass it as clickId. See [Browser attribution script](https://docs.hoko.to/track/analytics-js). > **Info: Attribution Priority** > The sale is attributed in this order: leadEventName (if provided) → clickId (if provided) → most recent lead for the customer. If no lead exists and no clickId is provided, the request fails. ## Status Codes ### 201 Sale event tracked successfully. **Request** ```bash curl -X POST "https://api.hoko.to/track/sale" \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '{ "customerExternalId": "customer_123", "amount": 12900, "currency": "usd", "eventName": "Invoice paid", "customerName": "John Doe", "customerEmail": "john@example.com" }' ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/track/sale', { method: 'POST', headers: { Authorization: 'Bearer ', 'Content-Type': 'application/json' }, body: JSON.stringify({ customerExternalId: 'customer_123', amount: 12900, currency: 'usd', eventName: 'Invoice paid', customerName: 'John Doe', customerEmail: 'john@example.com' }) }); const result = await response.json(); ``` **Response** ```json { "click": { "id": "" }, "link": { "id": "", "url": "https://example.com", "shortUrl": "https://hoko.to/abc123", "qrCode": "https://hoko.to/qrcode?text=https%3A%2F%2Fhoko.to%2Fabc123%3Fqr%3D1&size=512&errorCorrection=H&foreground=000000&background=FFFFFF&margin=1&format=svg", "title": null, "description": null, "image": null, "utm": null, "expiresAt": null, "expiredUrl": null, "password": null, "cloaked": false, "ios": null, "android": null, "geo": null, "collectionId": "", "tagIds": [""], "externalId": "ext_789", "tenantId": "tenant_456", "partnerId": "", "createdAt": "2024-01-01T00:00:00Z" }, "customer": { "id": "", "name": "John Doe", "email": "john@example.com", "phone": null, "avatar": null, "externalId": "customer_123" }, "sale": { "id": "", "amount": 12900, "currency": "usd", "eventName": "Invoice paid", "metadata": { "invoiceId": "inv_123" } } } ``` ### 400 Invalid request body, negative amount, or missing attribution data. **Request** ```bash curl -X POST "https://api.hoko.to/track/sale" \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '{ "customerExternalId": "customer_123", "amount": -100, "customerName": "John Doe" }' ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/track/sale', { method: 'POST', headers: { Authorization: 'Bearer ', 'Content-Type': 'application/json' }, body: JSON.stringify({ customerExternalId: 'customer_123', amount: -100, customerName: 'John Doe' }) }); ``` **Response** ```json { "error": { "en": "Invalid request", "ar": "طلب غير صالح" } } ``` ### 401 Invalid or missing API key. **Request** ```bash curl -X POST "https://api.hoko.to/track/sale" \ -H "Authorization: Bearer invalid_key" ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/track/sale', { method: 'POST', headers: { Authorization: 'Bearer invalid_key' } }); ``` **Response** ```json { "error": { "en": "Invalid API key", "ar": "مفتاح API غير صالح" } } ``` ### 403 API key does not have the required conversionsWrite scope. **Request** ```bash curl -X POST "https://api.hoko.to/track/sale" \ -H "Authorization: Bearer " ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/track/sale', { method: 'POST', headers: { Authorization: 'Bearer ' } }); ``` **Response** ```json { "error": { "en": "Missing required scopes", "ar": "الصلاحيات المطلوبة مفقودة" }, "missingScopes": ["conversionsWrite"] } ``` ### 429 Rate limit exceeded. Check X-RateLimit-\* headers for details. **Request** ```bash curl -X POST "https://api.hoko.to/track/sale" \ -H "Authorization: Bearer " ``` **Request** ```javascript const response = await fetch('https://api.hoko.to/track/sale', { method: 'POST', headers: { Authorization: 'Bearer ' } }); ``` **Response** ```json { "error": { "en": "Rate limit exceeded", "ar": "تم تجاوز حد المعدل" }, "retryAfter": 60 } ``` ### 500 Unexpected server error. **Response** ```json { "error": { "en": "Internal server error", "ar": "خطأ داخلي في الخادم" } } ``` --- ### Introduction Receive signed workspace events securely in your backend, with a complete event catalog and delivery contract. Canonical URL: https://docs.hoko.to/webhooks/introduction Markdown URL: https://docs.hoko.to/webhooks/introduction/README.md ## What this page covers Webhooks are signed server-to-server notifications from Hoko. When a subscribed workspace action is committed, Hoko sends a best-effort HTTPS POST to each eligible webhook. Use webhooks to synchronize your system or start work in your backend; use [Logs](https://docs.hoko.to/logs/introduction) to inspect the workspace activity fact that caused the message. The two concepts are related but not interchangeable: - A **log** is Hoko's small, immutable activity fact: what happened, which record it affected, who performed it, and when. - A **webhook delivery** is one outbound attempt to one receiver. It may be absent, pending, **Unconfirmed**, succeeded, or failed without changing whether the original activity was committed. `Unconfirmed` is the dashboard label for the persisted `unknown` state. - A **payload** is the same thin message contract for every subscribed event, including `lead.created` and `sale.created`. The [Webhooks help guide](https://help.hoko.to/webhooks) covers the dashboard flow. This page is the technical reference for access, every selectable event, signatures, payloads, receiver behavior, and limits. ### Identifiers Public webhook payloads use bare 26-character ULIDs. Examples use typed placeholders such as `` and ``; actual payloads contain the corresponding public IDs. Storage identifiers are not part of the public contract. ## Access and plan limits Manage webhooks in Dashboard → Integrations → Webhooks when webhooks are enabled in the deployment. Access requires an active account with owner membership in every active collection of the workspace, with at least one active collection. Blocked or deleted memberships do not qualify. Webhooks are workspace-wide; choosing a collection does not scope a webhook to that collection. Use the dashboard for interactive management. Programmatic actions are available only where the operation registry and the key's workspace scopes allow them; this reference defines the signed delivery contract. | Plan | Active webhooks | Log history shown | Webhook delivery | | ---------- | --------------: | ----------------: | ---------------- | | Free | `0` | `7 days` | Not available | | Pro | `0` | `30 days` | Not available | | Business | `10` | `90 days` | Available | | Enterprise | `20` | `180 days` | Available | | Elite | `40` | `365 days` | Available | Business, Enterprise, and Elite allow five additional storage slots for pending and disabled replacement webhooks, so the total stored configurations are 15, 25, and 45. A downgrade preserves excess configurations but suspends delivery to webhooks above the new active allowance. An upgrade makes eligible active webhooks available again; missed activity is not replayed. The active webhook ceilings are Business 10, Enterprise 20, and Elite 40. ## Create and verify a webhook 1. Prepare a public HTTPS receiver. Localhost, private, link-local, loopback, ambiguous IP, and redirect destinations are rejected by SSRF controls. 2. In the dashboard, enter a name and receiver URL, choose one or more events from the catalog below, and decide how to set the signing secret. Paste an existing canonical `whsec_` secret, use the shuffle control to generate one, or leave the field blank for Hoko to generate one. 3. Create the webhook. It starts as `pending_verification`. Copy the signing secret immediately and store it in server-only secret storage; it cannot be reopened from the dashboard. 4. Implement signature verification and the exact `endpoint.verification` challenge response before selecting **Verify webhook**. 5. A successful verification changes the webhook to `active`. Only active, plan-eligible webhooks receive subscribed workspace events. 6. Send a test and inspect its delivery. A test is a real outbound request; handle `endpoint.test` without triggering customer-facing business effects. Owner actions are limited to 10 verification attempts per hour and 30 combined test-send and resend actions per hour. Rate-limited actions return `429` with `Retry-After`. ## Event catalog The shared event catalog lists every workspace event available to Webhooks and Logs. Use it to understand each scope and action, then copy the exact event name from the table. [Browse the event catalog](https://docs.hoko.to/webhooks/event-catalog) ## Payloads Every selectable workspace event follows one payload contract: the same four-field JSON shape and JSON Schema version, 1.0. The version is in the published schema URL, not in the message body. `lead.created` and `sale.created` use this same contract; they do not include conversion details or record snapshots. ```json { "id": "", "type": "utmTemplate.created", "created": "2026-09-23T10:30:00.000Z", "data": { "id": "", "workspaceId": "" } } ``` | Field | Meaning | | ------------------ | ---------------------------------------------------------------------------------------------------- | | `id` | Stable event ID. It matches the `webhook-id` request header and is the receiver’s deduplication key. | | `type` | Exact event name from the [event catalog](https://docs.hoko.to/webhooks/event-catalog). | | `created` | Time the event was recorded, in ISO 8601 UTC format. | | `data.id` | Public ID of the affected record. | | `data.workspaceId` | Public ID of the workspace that owns the event. | Every selectable event schema has the same required fields and no additional payload fields. Use the scope page for an event’s affected record and example. Fetch more information from the relevant API when available. Schema documents are published at `/schemas/webhooks//1.0.json`. ### Webhook test and verification messages `endpoint.test` uses the same top-level fields and `data` contains only the webhook `id` and `workspaceId`. `endpoint.verification` also uses the same top-level fields, with `challenge` and `expiresAt` added to `data` because the receiver must echo the challenge before the webhook can be activated. These are operational messages, not selectable workspace events. ```json { "id": "", "type": "endpoint.verification", "created": "2026-09-23T10:30:00.000Z", "data": { "id": "", "workspaceId": "", "challenge": "AAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8", "expiresAt": "2026-09-23T10:35:00.000Z" } } ``` ## Verify requests Download the tested [Node standard-library receiver example](/examples/webhooks/node-receiver.mjs). It reads `HOKO_WEBHOOK_SECRET` server-side and does not depend on a third-party package. Each request includes `content-type: application/json` and: | Header | Meaning | | ------------------- | ------------------------------------------------ | | `webhook-id` | Stable event ID and durable deduplication key | | `webhook-timestamp` | Unix timestamp in seconds | | `webhook-signature` | `v1,` followed by a base64 HMAC-SHA256 signature | Your receiver must: 1. Read the exact raw request bytes before parsing JSON. 2. Reject bodies over 64 KiB and timestamps outside ±300 seconds. 3. Compute HMAC-SHA256 over `webhook-id + "." + webhook-timestamp + "." + exactRawBody` using the canonical 32-byte `whsec_` key. 4. Compare equal-length signatures with `timingSafeEqual`. 5. Parse JSON only after verification and require its `id` to equal `webhook-id`. 6. For `endpoint.verification`, return exactly `{"challenge":""}` as JSON. 7. Atomically record a durable unique receipt keyed by `webhook-id` while persisting or queueing your work. 8. Return `2xx` quickly. A duplicate ID must also return `2xx` without repeating its side effect. An in-memory `Set` is not production deduplication. Use a database unique constraint or another durable atomic store. Verification must happen before any receipt, persistence, queue, or business side effect. Never parse and reserialize a body before verifying it; whitespace changes invalidate the signature. ## Delivery contract and limits Hoko writes the log and delivery row in the same transaction as the originating mutation, then awaits one best-effort outbound attempt from the committed request. Receiver failure does not roll back an accepted Hoko mutation. A rolled-back mutation sends no webhook. Delivery is immediate and request-bound, not a durable background queue. Business-plus workspaces can use webhooks, subject to their webhook allowance. Hoko supports fan-out to up to 40 active webhooks and keeps at most 1,000 delivery candidates in request memory. Large bulk operations can leave additional rows `pending` when the three-second receiver budget expires. Hoko makes one automatic attempt for each delivery, with no automatic retries or ordering guarantee. Owners can send an eligible delivery again from the log row's **More options** menu. The Webhooks dashboard side sheet displays the receiver URL and the 10 most recent attempts for the selected webhook. **See all deliveries** opens the dedicated per-webhook delivery history page from either the row's **More options** menu or the side sheet. That page uses paginated loading and supports sorting and filtering, so older attempts are loaded only when requested. Delivery states have these fixed meanings: - `pending`: the delivery row exists, but no attempt has started. - **Unconfirmed** (`unknown`): Hoko claimed the attempt but saved no terminal result. Hoko cannot prove whether the receiver received it, so this state is never reported as success or failure. - `succeeded`: Hoko recorded a successful sender result, not proof of downstream business completion. - `failed`: Hoko recorded a failure category such as timeout, DNS, TLS, network, unsafe destination, invalid challenge, or non-2xx response. The recorded categories are `success`, `unsafe_destination`, `dns_failure`, `invalid_message`, `oversized_request`, `timeout`, `tls_failure`, `network_failure`, `non_2xx`, `invalid_challenge`, `response_too_large`, and `pinning_unavailable`. Only `success` maps to `succeeded`; every other recorded category maps to `failed`. An Unconfirmed attempt has no category because Hoko saved no final result. Requests are limited to 64 KiB and three seconds of receiver time. Database work adds time to the originating request. There is no monthly webhook quota or overage billing; attempts are separate from tracked clicks and conversion usage. Hoko keeps delivery history for the workspace lifetime, including after a webhook is deleted. ### Resend a delivery Open **Logs**, find the event, and choose **More options → Resend** on a `pending`, `Unconfirmed`, or `failed` delivery. A pending delivery reuses attempt `1`. An Unconfirmed delivery can be resent after a five-minute cooldown. A failed delivery creates the next attempt number. Hoko records every result alongside the original result. A successful delivery cannot be resent from the dashboard. The resend uses the original event ID and a new signature timestamp. A targeted webhook test resends its original `endpoint.test` body. A log-backed broadcast keeps its original event type and body. Receivers must treat `webhook-id` as a durable idempotency key because an earlier attempt may have reached the receiver before Hoko recorded its result. Resending requires an active, plan-eligible webhook. ## Lifecycle, replacement, and troubleshooting The webhook moves through `pending_verification`, `active`, `disabled`, or `deleted`. Disabling stops new fan-out and cannot recall an already-sent request. To change the receiver URL, first disable the webhook and save the new URL. It returns to `pending_verification` while Hoko keeps the webhook ID, delivery history, and signing secret. Verify the new destination to activate it. To change the webhook name, subscribed events, or signing secret, create and verify a replacement, switch traffic, then disable and delete the old webhook. If both are active, the receiver may see the same event through both. Select **Delete webhook** when you no longer need the configuration. Deletion hides the webhook from management, preserves its name and delivery history, and erases signing material. It does not remove ordinary workspace log facts. Deleted webhooks cannot deliver or be resent. For a missing event, check the webhook is active, the event is selected, the action happened in this workspace, the plan still allows the webhook, and the delivery result. Old activity is not sent retroactively. For a failed delivery, fix the receiver and use **More options → Resend**. For an Unconfirmed delivery, assume the receiver may have applied the event, use the durable event-ID receipt to avoid duplicate processing, and resend only if needed. ## Security and data boundaries During local development, expose the receiver through a public HTTPS tunnel. Do not disable signature verification to make a tunnel work. Keep `HOKO_WEBHOOK_SECRET` and every `whsec_` signing secret in server-only secret storage. Never put a signing secret in browser code, a client bundle, `localStorage`, analytics, client logs, or a public repository. Payloads intentionally exclude record snapshots, customer name, email, phone, avatar, conversion metadata, API keys, signing secrets, destination credentials, full response bodies, raw IP addresses, exact location, visitor or session identifiers, the full referrer, destination query strings, and other database-row fields. Treat the included identifiers as sensitive business data. Do not log raw bodies, signature headers, secrets, URL query values, or challenge values. The canonical JSON and JavaScript examples are locale-neutral. Additional-language examples are not currently published. --- ### Event catalog Browse every workspace event available to Webhooks and Logs, with its scope, action, and exact event name. Canonical URL: https://docs.hoko.to/webhooks/event-catalog Markdown URL: https://docs.hoko.to/webhooks/event-catalog/README.md ## Overview This is the shared vocabulary for Webhooks and Logs. **Scope** identifies the record family, **Action** describes the change, and **Event name** is the exact value to select or compare in code. Every event uses the same thin payload contract; open its scope page for the expected record ID and payload example. Use the copy control on the Event name column to copy a value. Global `profile.*` activity is not part of this workspace catalog. [Webhooks introduction](https://docs.hoko.to/webhooks/introduction) · [Logs introduction](https://docs.hoko.to/logs/introduction) | Scope | Action | Event name | | -------------- | --------------------- | ------------------------------------- | | Workspace | created | `workspace.created` | | Workspace | name updated | `workspace.name.updated` | | Workspace | slug updated | `workspace.slug.updated` | | Workspace | image updated | `workspace.image.updated` | | API key | created | `apiKey.created` | | API key | updated | `apiKey.updated` | | API key | revoked | `apiKey.revoked` | | Link | created | `link.created` | | Link | clicked | `link.clicked` | | Link | destination updated | `link.destination.updated` | | Link | collection changed | `link.collection.changed` | | Link | tags changed | `link.tags.changed` | | Link | partner changed | `link.partner.changed` | | Link | UTM updated | `link.utm.updated` | | Link | preview updated | `link.preview.updated` | | Link | access updated | `link.access.updated` | | Link | targeting updated | `link.targeting.updated` | | Link | expiry updated | `link.expiry.updated` | | Link | QR settings updated | `link.qr.updated` | | Link | notes updated | `link.notes.updated` | | Link | external ID updated | `link.externalId.updated` | | Link | tenant ID updated | `link.tenantId.updated` | | Link | deleted | `link.deleted` | | Tag | created | `tag.created` | | Tag | updated | `tag.updated` | | Tag | deleted | `tag.deleted` | | Partner | created | `partner.created` | | Partner | updated | `partner.updated` | | Partner | deleted | `partner.deleted` | | UTM template | created | `utmTemplate.created` | | UTM template | updated | `utmTemplate.updated` | | UTM template | deleted | `utmTemplate.deleted` | | Collection | created | `collection.created` | | Collection | renamed | `collection.renamed` | | Collection | description updated | `collection.description.updated` | | Collection | deleted | `collection.deleted` | | Collection | default set | `collection.default.set` | | Collection | default cleared | `collection.default.cleared` | | Member profile | created | `memberProfile.created` | | Member profile | access updated | `memberProfile.access.updated` | | Member profile | removed | `memberProfile.removed` | | Member profile | left | `memberProfile.left` | | Member profile | ownership transferred | `memberProfile.ownership.transferred` | | Invitation | created | `invitation.created` | | Invitation | reissued | `invitation.reissued` | | Invitation | resent | `invitation.resent` | | Invitation | revoked | `invitation.revoked` | | Invitation | accepted | `invitation.accepted` | | Invoice | email sent | `invoice.email.sent` | | Subscription | created | `subscription.created` | | Subscription | plan changed | `subscription.plan.changed` | | Subscription | cancelled | `subscription.cancelled` | | Subscription | renewed | `subscription.renewed` | | Webhook | created | `webhook.created` | | Webhook | verified | `webhook.verified` | | Webhook | disabled | `webhook.disabled` | | Webhook | deleted | `webhook.deleted` | | Webhook | test requested | `webhook.test.requested` | | Customer | created | `customer.created` | | Customer | updated | `customer.updated` | | Customer | deleted | `customer.deleted` | | Lead | created | `lead.created` | | Sale | created | `sale.created` | --- ### Workspace Workspace lifecycle events and their signed payload contract. Canonical URL: https://docs.hoko.to/webhooks/workspace Markdown URL: https://docs.hoko.to/webhooks/workspace/README.md ## Scope overview This page lists every **Workspace** event available to workspace webhooks. Use the exact event name in your receiver; the same activity is also recorded in [Logs](https://docs.hoko.to/logs/introduction). Each row identifies the affected record. ## Event list | Action | Event name | Record ID | | ------------- | ------------------------- | ---------------- | | Created | `workspace.created` | `` | | Name updated | `workspace.name.updated` | `` | | Slug updated | `workspace.slug.updated` | `` | | Image updated | `workspace.image.updated` | `` | ## Event payload Every selectable event uses the same JSON Schema 1.0 payload. Only `type` and `data.id` vary by event. The payload identifies the event and affected record; it does not include a record snapshot. Fetch more detail through the relevant API when available. ```json { "id": "", "type": "workspace.created", "created": "2026-09-23T10:30:00.000Z", "data": { "id": "", "workspaceId": "" } } ``` ## Data fields | Field | Type | Meaning | | ------------------ | -------- | ------------------------------------------------------ | | `id` | `string` | Stable event ID; also sent in the `webhook-id` header. | | `type` | `string` | Exact event name from the catalog. | | `created` | `string` | Event time in ISO 8601 UTC format. | | `data.id` | `string` | Public ID of the affected record. | | `data.workspaceId` | `string` | Public ID of the workspace that owns the event. | ## Related docs - [Webhooks introduction](https://docs.hoko.to/webhooks/introduction) - [Event catalog](https://docs.hoko.to/webhooks/event-catalog) - [Logs](https://docs.hoko.to/logs/introduction) - [Node receiver example](/examples/webhooks/node-receiver.mjs) --- ### API key API key lifecycle events and their signed payload contract. Canonical URL: https://docs.hoko.to/webhooks/api-key Markdown URL: https://docs.hoko.to/webhooks/api-key/README.md ## Scope overview This page lists every **API key** event available to workspace webhooks. Use the exact event name in your receiver; the same activity is also recorded in [Logs](https://docs.hoko.to/logs/introduction). Each row identifies the affected record. ## Event list | Action | Event name | Record ID | | ------- | ---------------- | -------------- | | Created | `apiKey.created` | `` | | Updated | `apiKey.updated` | `` | | Revoked | `apiKey.revoked` | `` | ## Event payload Every selectable event uses the same JSON Schema 1.0 payload. Only `type` and `data.id` vary by event. The payload identifies the event and affected record; it does not include a record snapshot. Fetch more detail through the relevant API when available. ```json { "id": "", "type": "apiKey.created", "created": "2026-09-23T10:30:00.000Z", "data": { "id": "", "workspaceId": "" } } ``` ## Data fields | Field | Type | Meaning | | ------------------ | -------- | ------------------------------------------------------ | | `id` | `string` | Stable event ID; also sent in the `webhook-id` header. | | `type` | `string` | Exact event name from the catalog. | | `created` | `string` | Event time in ISO 8601 UTC format. | | `data.id` | `string` | Public ID of the affected record. | | `data.workspaceId` | `string` | Public ID of the workspace that owns the event. | ## Related docs - [Webhooks introduction](https://docs.hoko.to/webhooks/introduction) - [Event catalog](https://docs.hoko.to/webhooks/event-catalog) - [Logs](https://docs.hoko.to/logs/introduction) - [Node receiver example](/examples/webhooks/node-receiver.mjs) --- ### Link Link lifecycle and configuration events with their signed payload contract. Canonical URL: https://docs.hoko.to/webhooks/link Markdown URL: https://docs.hoko.to/webhooks/link/README.md ## Scope overview This page lists every **Link** event available to workspace webhooks. Use the exact event name in your receiver; the same activity is also recorded in [Logs](https://docs.hoko.to/logs/introduction). Each row identifies the affected record. ## Event list | Action | Event name | Record ID | | ------------------- | -------------------------- | ----------- | | Created | `link.created` | `` | | Clicked | `link.clicked` | `` | | Destination updated | `link.destination.updated` | `` | | Collection changed | `link.collection.changed` | `` | | Tags changed | `link.tags.changed` | `` | | Partner changed | `link.partner.changed` | `` | | UTM updated | `link.utm.updated` | `` | | Preview updated | `link.preview.updated` | `` | | Access updated | `link.access.updated` | `` | | Targeting updated | `link.targeting.updated` | `` | | Expiry updated | `link.expiry.updated` | `` | | QR settings updated | `link.qr.updated` | `` | | Notes updated | `link.notes.updated` | `` | | External ID updated | `link.externalId.updated` | `` | | Tenant ID updated | `link.tenantId.updated` | `` | | Deleted | `link.deleted` | `` | ## Event payload Lifecycle events use the shared JSON Schema 1.0 payload. A measured `link.clicked` event also includes `data.linkId` and `data.consent`; its `data.id` is the click event identity. The payload does not include a record snapshot or raw visitor data. ```json { "id": "", "type": "link.created", "created": "2026-09-23T10:30:00.000Z", "data": { "id": "", "workspaceId": "" } } ``` ## Data fields | Field | Type | Meaning | | ------------------ | ---------------- | --------------------------------------------------------- | | `id` | `string` | Stable event ID; also sent in the `webhook-id` header. | | `type` | `string` | Exact event name from the catalog. | | `created` | `string` | Event time in ISO 8601 UTC format. | | `data.id` | `string` | Public ID of the affected record. | | `data.workspaceId` | `string` | Public ID of the workspace that owns the event. | | `data.linkId` | `string` | Public ID of the link for `link.clicked`. | | `data.consent` | `string or null` | Explicit measurement consent, or `null` when unavailable. | ## Related docs - [Webhooks introduction](https://docs.hoko.to/webhooks/introduction) - [Event catalog](https://docs.hoko.to/webhooks/event-catalog) - [Logs](https://docs.hoko.to/logs/introduction) - [Node receiver example](/examples/webhooks/node-receiver.mjs) --- ### Tag Tag lifecycle events and their signed payload contract. Canonical URL: https://docs.hoko.to/webhooks/tag Markdown URL: https://docs.hoko.to/webhooks/tag/README.md ## Scope overview This page lists every **Tag** event available to workspace webhooks. Use the exact event name in your receiver; the same activity is also recorded in [Logs](https://docs.hoko.to/logs/introduction). Each row identifies the affected record. ## Event list | Action | Event name | Record ID | | ------- | ------------- | ---------- | | Created | `tag.created` | `` | | Updated | `tag.updated` | `` | | Deleted | `tag.deleted` | `` | ## Event payload Every selectable event uses the same JSON Schema 1.0 payload. Only `type` and `data.id` vary by event. The payload identifies the event and affected record; it does not include a record snapshot. Fetch more detail through the relevant API when available. ```json { "id": "", "type": "tag.created", "created": "2026-09-23T10:30:00.000Z", "data": { "id": "", "workspaceId": "" } } ``` ## Data fields | Field | Type | Meaning | | ------------------ | -------- | ------------------------------------------------------ | | `id` | `string` | Stable event ID; also sent in the `webhook-id` header. | | `type` | `string` | Exact event name from the catalog. | | `created` | `string` | Event time in ISO 8601 UTC format. | | `data.id` | `string` | Public ID of the affected record. | | `data.workspaceId` | `string` | Public ID of the workspace that owns the event. | ## Related docs - [Webhooks introduction](https://docs.hoko.to/webhooks/introduction) - [Event catalog](https://docs.hoko.to/webhooks/event-catalog) - [Logs](https://docs.hoko.to/logs/introduction) - [Node receiver example](/examples/webhooks/node-receiver.mjs) --- ### Partner Partner lifecycle events and their signed payload contract. Canonical URL: https://docs.hoko.to/webhooks/partner Markdown URL: https://docs.hoko.to/webhooks/partner/README.md ## Scope overview This page lists every **Partner** event available to workspace webhooks. Use the exact event name in your receiver; the same activity is also recorded in [Logs](https://docs.hoko.to/logs/introduction). Each row identifies the affected record. ## Event list | Action | Event name | Record ID | | ------- | ----------------- | -------------- | | Created | `partner.created` | `` | | Updated | `partner.updated` | `` | | Deleted | `partner.deleted` | `` | ## Event payload Every selectable event uses the same JSON Schema 1.0 payload. Only `type` and `data.id` vary by event. The payload identifies the event and affected record; it does not include a record snapshot. Fetch more detail through the relevant API when available. ```json { "id": "", "type": "partner.created", "created": "2026-09-23T10:30:00.000Z", "data": { "id": "", "workspaceId": "" } } ``` ## Data fields | Field | Type | Meaning | | ------------------ | -------- | ------------------------------------------------------ | | `id` | `string` | Stable event ID; also sent in the `webhook-id` header. | | `type` | `string` | Exact event name from the catalog. | | `created` | `string` | Event time in ISO 8601 UTC format. | | `data.id` | `string` | Public ID of the affected record. | | `data.workspaceId` | `string` | Public ID of the workspace that owns the event. | ## Related docs - [Webhooks introduction](https://docs.hoko.to/webhooks/introduction) - [Event catalog](https://docs.hoko.to/webhooks/event-catalog) - [Logs](https://docs.hoko.to/logs/introduction) - [Node receiver example](/examples/webhooks/node-receiver.mjs) --- ### UTM template UTM template lifecycle events and their signed payload contract. Canonical URL: https://docs.hoko.to/webhooks/utm-template Markdown URL: https://docs.hoko.to/webhooks/utm-template/README.md ## Scope overview This page lists every **UTM template** event available to workspace webhooks. Use the exact event name in your receiver; the same activity is also recorded in [Logs](https://docs.hoko.to/logs/introduction). Each row identifies the affected record. ## Event list | Action | Event name | Record ID | | ------- | --------------------- | ------------------- | | Created | `utmTemplate.created` | `` | | Updated | `utmTemplate.updated` | `` | | Deleted | `utmTemplate.deleted` | `` | ## Event payload Every selectable event uses the same JSON Schema 1.0 payload. Only `type` and `data.id` vary by event. The payload identifies the event and affected record; it does not include a record snapshot. Fetch more detail through the relevant API when available. ```json { "id": "", "type": "utmTemplate.created", "created": "2026-09-23T10:30:00.000Z", "data": { "id": "", "workspaceId": "" } } ``` ## Data fields | Field | Type | Meaning | | ------------------ | -------- | ------------------------------------------------------ | | `id` | `string` | Stable event ID; also sent in the `webhook-id` header. | | `type` | `string` | Exact event name from the catalog. | | `created` | `string` | Event time in ISO 8601 UTC format. | | `data.id` | `string` | Public ID of the affected record. | | `data.workspaceId` | `string` | Public ID of the workspace that owns the event. | ## Related docs - [Webhooks introduction](https://docs.hoko.to/webhooks/introduction) - [Event catalog](https://docs.hoko.to/webhooks/event-catalog) - [Logs](https://docs.hoko.to/logs/introduction) - [Node receiver example](/examples/webhooks/node-receiver.mjs) --- ### Collection Collection lifecycle and default-state events with their signed payload contract. Canonical URL: https://docs.hoko.to/webhooks/collection Markdown URL: https://docs.hoko.to/webhooks/collection/README.md ## Scope overview This page lists every **Collection** event available to workspace webhooks. Use the exact event name in your receiver; the same activity is also recorded in [Logs](https://docs.hoko.to/logs/introduction). Each row identifies the affected record. ## Event list | Action | Event name | Record ID | | ------------------- | -------------------------------- | ----------------- | | Created | `collection.created` | `` | | Renamed | `collection.renamed` | `` | | Description updated | `collection.description.updated` | `` | | Deleted | `collection.deleted` | `` | | Default set | `collection.default.set` | `` | | Default cleared | `collection.default.cleared` | `` | ## Event payload Every selectable event uses the same JSON Schema 1.0 payload. Only `type` and `data.id` vary by event. The payload identifies the event and affected record; it does not include a record snapshot. Fetch more detail through the relevant API when available. ```json { "id": "", "type": "collection.created", "created": "2026-09-23T10:30:00.000Z", "data": { "id": "", "workspaceId": "" } } ``` ## Data fields | Field | Type | Meaning | | ------------------ | -------- | ------------------------------------------------------ | | `id` | `string` | Stable event ID; also sent in the `webhook-id` header. | | `type` | `string` | Exact event name from the catalog. | | `created` | `string` | Event time in ISO 8601 UTC format. | | `data.id` | `string` | Public ID of the affected record. | | `data.workspaceId` | `string` | Public ID of the workspace that owns the event. | ## Related docs - [Webhooks introduction](https://docs.hoko.to/webhooks/introduction) - [Event catalog](https://docs.hoko.to/webhooks/event-catalog) - [Logs](https://docs.hoko.to/logs/introduction) - [Node receiver example](/examples/webhooks/node-receiver.mjs) --- ### Member profile Member access and ownership events with their signed payload contract. Canonical URL: https://docs.hoko.to/webhooks/member-profile Markdown URL: https://docs.hoko.to/webhooks/member-profile/README.md ## Scope overview This page lists every **Member profile** event available to workspace webhooks. Use the exact event name in your receiver; the same activity is also recorded in [Logs](https://docs.hoko.to/logs/introduction). Each row identifies the affected record. ## Event list | Action | Event name | Record ID | | --------------------- | ------------------------------------- | --------------------- | | Created | `memberProfile.created` | `` | | Access updated | `memberProfile.access.updated` | `` | | Removed | `memberProfile.removed` | `` | | Left | `memberProfile.left` | `` | | Ownership transferred | `memberProfile.ownership.transferred` | `` | ## Event payload Every selectable event uses the same JSON Schema 1.0 payload. Only `type` and `data.id` vary by event. The payload identifies the event and affected record; it does not include a record snapshot. Fetch more detail through the relevant API when available. ```json { "id": "", "type": "memberProfile.created", "created": "2026-09-23T10:30:00.000Z", "data": { "id": "", "workspaceId": "" } } ``` ## Data fields | Field | Type | Meaning | | ------------------ | -------- | ------------------------------------------------------ | | `id` | `string` | Stable event ID; also sent in the `webhook-id` header. | | `type` | `string` | Exact event name from the catalog. | | `created` | `string` | Event time in ISO 8601 UTC format. | | `data.id` | `string` | Public ID of the affected record. | | `data.workspaceId` | `string` | Public ID of the workspace that owns the event. | ## Related docs - [Webhooks introduction](https://docs.hoko.to/webhooks/introduction) - [Event catalog](https://docs.hoko.to/webhooks/event-catalog) - [Logs](https://docs.hoko.to/logs/introduction) - [Node receiver example](/examples/webhooks/node-receiver.mjs) --- ### Invitation Invitation lifecycle events and their signed payload contract. Canonical URL: https://docs.hoko.to/webhooks/invitation Markdown URL: https://docs.hoko.to/webhooks/invitation/README.md ## Scope overview This page lists every **Invitation** event available to workspace webhooks. Use the exact event name in your receiver; the same activity is also recorded in [Logs](https://docs.hoko.to/logs/introduction). Each row identifies the affected record. ## Event list | Action | Event name | Record ID | | -------- | --------------------- | ----------------- | | Created | `invitation.created` | `` | | Reissued | `invitation.reissued` | `` | | Resent | `invitation.resent` | `` | | Revoked | `invitation.revoked` | `` | | Accepted | `invitation.accepted` | `` | ## Event payload Every selectable event uses the same JSON Schema 1.0 payload. Only `type` and `data.id` vary by event. The payload identifies the event and affected record; it does not include a record snapshot. Fetch more detail through the relevant API when available. ```json { "id": "", "type": "invitation.created", "created": "2026-09-23T10:30:00.000Z", "data": { "id": "", "workspaceId": "" } } ``` ## Data fields | Field | Type | Meaning | | ------------------ | -------- | ------------------------------------------------------ | | `id` | `string` | Stable event ID; also sent in the `webhook-id` header. | | `type` | `string` | Exact event name from the catalog. | | `created` | `string` | Event time in ISO 8601 UTC format. | | `data.id` | `string` | Public ID of the affected record. | | `data.workspaceId` | `string` | Public ID of the workspace that owns the event. | ## Related docs - [Webhooks introduction](https://docs.hoko.to/webhooks/introduction) - [Event catalog](https://docs.hoko.to/webhooks/event-catalog) - [Logs](https://docs.hoko.to/logs/introduction) - [Node receiver example](/examples/webhooks/node-receiver.mjs) --- ### Invoice Invoice notification events and their signed payload contract. Canonical URL: https://docs.hoko.to/webhooks/invoice Markdown URL: https://docs.hoko.to/webhooks/invoice/README.md ## Scope overview This page lists every **Invoice** event available to workspace webhooks. Use the exact event name in your receiver; the same activity is also recorded in [Logs](https://docs.hoko.to/logs/introduction). Each row identifies the affected record. ## Event list | Action | Event name | Record ID | | ---------- | -------------------- | -------------- | | Email sent | `invoice.email.sent` | `` | ## Event payload Every selectable event uses the same JSON Schema 1.0 payload. Only `type` and `data.id` vary by event. The payload identifies the event and affected record; it does not include a record snapshot. Fetch more detail through the relevant API when available. ```json { "id": "", "type": "invoice.email.sent", "created": "2026-09-23T10:30:00.000Z", "data": { "id": "", "workspaceId": "" } } ``` ## Data fields | Field | Type | Meaning | | ------------------ | -------- | ------------------------------------------------------ | | `id` | `string` | Stable event ID; also sent in the `webhook-id` header. | | `type` | `string` | Exact event name from the catalog. | | `created` | `string` | Event time in ISO 8601 UTC format. | | `data.id` | `string` | Public ID of the affected record. | | `data.workspaceId` | `string` | Public ID of the workspace that owns the event. | ## Related docs - [Webhooks introduction](https://docs.hoko.to/webhooks/introduction) - [Event catalog](https://docs.hoko.to/webhooks/event-catalog) - [Logs](https://docs.hoko.to/logs/introduction) - [Node receiver example](/examples/webhooks/node-receiver.mjs) --- ### Subscription Subscription lifecycle events and their signed payload contract. Canonical URL: https://docs.hoko.to/webhooks/subscription Markdown URL: https://docs.hoko.to/webhooks/subscription/README.md ## Scope overview This page lists every **Subscription** event available to workspace webhooks. Use the exact event name in your receiver; the same activity is also recorded in [Logs](https://docs.hoko.to/logs/introduction). Each row identifies the affected record. ## Event list | Action | Event name | Record ID | | ------------ | --------------------------- | ------------------- | | Created | `subscription.created` | `` | | Plan changed | `subscription.plan.changed` | `` | | Cancelled | `subscription.cancelled` | `` | | Renewed | `subscription.renewed` | `` | ## Event payload Every selectable event uses the same JSON Schema 1.0 payload. Only `type` and `data.id` vary by event. The payload identifies the event and affected record; it does not include a record snapshot. Fetch more detail through the relevant API when available. ```json { "id": "", "type": "subscription.created", "created": "2026-09-23T10:30:00.000Z", "data": { "id": "", "workspaceId": "" } } ``` ## Data fields | Field | Type | Meaning | | ------------------ | -------- | ------------------------------------------------------ | | `id` | `string` | Stable event ID; also sent in the `webhook-id` header. | | `type` | `string` | Exact event name from the catalog. | | `created` | `string` | Event time in ISO 8601 UTC format. | | `data.id` | `string` | Public ID of the affected record. | | `data.workspaceId` | `string` | Public ID of the workspace that owns the event. | ## Related docs - [Webhooks introduction](https://docs.hoko.to/webhooks/introduction) - [Event catalog](https://docs.hoko.to/webhooks/event-catalog) - [Logs](https://docs.hoko.to/logs/introduction) - [Node receiver example](/examples/webhooks/node-receiver.mjs) --- ### Webhook Webhook endpoint lifecycle events and their signed payload contract. Canonical URL: https://docs.hoko.to/webhooks/webhook Markdown URL: https://docs.hoko.to/webhooks/webhook/README.md ## Scope overview This page lists every **Webhook** event available to workspace webhooks. Use the exact event name in your receiver; the same activity is also recorded in [Logs](https://docs.hoko.to/logs/introduction). Each row identifies the affected record. ## Event list | Action | Event name | Record ID | | -------------- | ------------------------ | -------------- | | Created | `webhook.created` | `` | | Verified | `webhook.verified` | `` | | Disabled | `webhook.disabled` | `` | | Deleted | `webhook.deleted` | `` | | Test requested | `webhook.test.requested` | `` | ## Event payload Every selectable event uses the same JSON Schema 1.0 payload. Only `type` and `data.id` vary by event. The payload identifies the event and affected record; it does not include a record snapshot. Fetch more detail through the relevant API when available. ```json { "id": "", "type": "webhook.created", "created": "2026-09-23T10:30:00.000Z", "data": { "id": "", "workspaceId": "" } } ``` ## Data fields | Field | Type | Meaning | | ------------------ | -------- | ------------------------------------------------------ | | `id` | `string` | Stable event ID; also sent in the `webhook-id` header. | | `type` | `string` | Exact event name from the catalog. | | `created` | `string` | Event time in ISO 8601 UTC format. | | `data.id` | `string` | Public ID of the affected record. | | `data.workspaceId` | `string` | Public ID of the workspace that owns the event. | ## Related docs - [Webhooks introduction](https://docs.hoko.to/webhooks/introduction) - [Event catalog](https://docs.hoko.to/webhooks/event-catalog) - [Logs](https://docs.hoko.to/logs/introduction) - [Node receiver example](/examples/webhooks/node-receiver.mjs) --- ### Customer Customer lifecycle events and their signed payload contract. Canonical URL: https://docs.hoko.to/webhooks/customer Markdown URL: https://docs.hoko.to/webhooks/customer/README.md ## Scope overview This page lists every **Customer** event available to workspace webhooks. Use the exact event name in your receiver; the same activity is also recorded in [Logs](https://docs.hoko.to/logs/introduction). Each row identifies the affected record. ## Event list | Action | Event name | Record ID | | ------- | ------------------ | --------------- | | Created | `customer.created` | `` | | Updated | `customer.updated` | `` | | Deleted | `customer.deleted` | `` | ## Event payload Every selectable event uses the same JSON Schema 1.0 payload. Only `type` and `data.id` vary by event. The payload identifies the event and affected record; it does not include a record snapshot. Fetch more detail through the relevant API when available. ```json { "id": "", "type": "customer.created", "created": "2026-09-23T10:30:00.000Z", "data": { "id": "", "workspaceId": "" } } ``` ## Data fields | Field | Type | Meaning | | ------------------ | -------- | ------------------------------------------------------ | | `id` | `string` | Stable event ID; also sent in the `webhook-id` header. | | `type` | `string` | Exact event name from the catalog. | | `created` | `string` | Event time in ISO 8601 UTC format. | | `data.id` | `string` | Public ID of the affected record. | | `data.workspaceId` | `string` | Public ID of the workspace that owns the event. | ## Related docs - [Webhooks introduction](https://docs.hoko.to/webhooks/introduction) - [Event catalog](https://docs.hoko.to/webhooks/event-catalog) - [Logs](https://docs.hoko.to/logs/introduction) - [Node receiver example](/examples/webhooks/node-receiver.mjs) --- ### Lead Lead events use the same thin, signed webhook payload as every other scope. Canonical URL: https://docs.hoko.to/webhooks/lead Markdown URL: https://docs.hoko.to/webhooks/lead/README.md ## Scope overview This page lists every **Lead** event available to workspace webhooks. Use the exact event name in your receiver; the same activity is also recorded in [Logs](https://docs.hoko.to/logs/introduction). Each row identifies the affected record. ## Event list | Action | Event name | Record ID | | ------- | -------------- | ----------- | | Created | `lead.created` | `` | ## Event payload Every selectable event uses the same JSON Schema 1.0 payload. Only `type` and `data.id` vary by event. The payload identifies the event and affected record; it does not include a record snapshot. Fetch more detail through the relevant API when available. ```json { "id": "", "type": "lead.created", "created": "2026-09-23T10:30:00.000Z", "data": { "id": "", "workspaceId": "" } } ``` ## Data fields | Field | Type | Meaning | | ------------------ | -------- | ------------------------------------------------------ | | `id` | `string` | Stable event ID; also sent in the `webhook-id` header. | | `type` | `string` | Exact event name from the catalog. | | `created` | `string` | Event time in ISO 8601 UTC format. | | `data.id` | `string` | Public ID of the affected record. | | `data.workspaceId` | `string` | Public ID of the workspace that owns the event. | ## Related docs - [Webhooks introduction](https://docs.hoko.to/webhooks/introduction) - [Event catalog](https://docs.hoko.to/webhooks/event-catalog) - [Logs](https://docs.hoko.to/logs/introduction) - [Node receiver example](/examples/webhooks/node-receiver.mjs) --- ### Sale Sale events use the same thin, signed webhook payload as every other scope. Canonical URL: https://docs.hoko.to/webhooks/sale Markdown URL: https://docs.hoko.to/webhooks/sale/README.md ## Scope overview This page lists every **Sale** event available to workspace webhooks. Use the exact event name in your receiver; the same activity is also recorded in [Logs](https://docs.hoko.to/logs/introduction). Each row identifies the affected record. ## Event list | Action | Event name | Record ID | | ------- | -------------- | ----------- | | Created | `sale.created` | `` | ## Event payload Every selectable event uses the same JSON Schema 1.0 payload. Only `type` and `data.id` vary by event. The payload identifies the event and affected record; it does not include a record snapshot. Fetch more detail through the relevant API when available. ```json { "id": "", "type": "sale.created", "created": "2026-09-23T10:30:00.000Z", "data": { "id": "", "workspaceId": "" } } ``` ## Data fields | Field | Type | Meaning | | ------------------ | -------- | ------------------------------------------------------ | | `id` | `string` | Stable event ID; also sent in the `webhook-id` header. | | `type` | `string` | Exact event name from the catalog. | | `created` | `string` | Event time in ISO 8601 UTC format. | | `data.id` | `string` | Public ID of the affected record. | | `data.workspaceId` | `string` | Public ID of the workspace that owns the event. | ## Related docs - [Webhooks introduction](https://docs.hoko.to/webhooks/introduction) - [Event catalog](https://docs.hoko.to/webhooks/event-catalog) - [Logs](https://docs.hoko.to/logs/introduction) - [Node receiver example](/examples/webhooks/node-receiver.mjs) --- ### Introduction Read the workspace activity ledger, understand every action and scope, and connect facts to webhook delivery. Canonical URL: https://docs.hoko.to/logs/introduction Markdown URL: https://docs.hoko.to/logs/introduction/README.md ## What logs are Logs are Hoko's workspace activity ledger. Each row is a compact fact: an action happened to a record, an actor caused it, and Hoko recorded it at a specific time. Logs are designed for audit, investigation, and connecting a business change to its optional webhook deliveries. Logs are not click analytics, request/access logs, a database backup, a before-and-after snapshot, or a copy of the changed record. They do not require a webhook. A committed action can appear in Logs without any delivery, and a receiver failure does not undo the logged action. Use [Webhooks](https://docs.hoko.to/webhooks/introduction) for outbound payloads and receiver verification. Use the [Logs help guide](https://help.hoko.to/logs) for the dashboard workflow. ### Identifiers Log exports use bare 26-character ULIDs. Examples use typed placeholders such as `` and ``; actual exports contain the corresponding public IDs. Storage identifiers are not part of the public contract, and the dashboard resolves records and actors into useful names wherever possible. ## Access, history, and scale Open Dashboard → Integrations → Logs when the feature is enabled in the deployment. The view requires an active account with owner membership in every active collection of the workspace, with at least one active collection. Blocked or deleted memberships do not qualify. Results are workspace-wide, not limited to the selected collection. The dashboard view and programmatic access follow the current operation registry and workspace scopes. See the relevant operation and scope definitions before choosing a client. | Plan | Activity history shown | Page size | Filtering | | ---------- | ---------------------: | --------: | ----------- | | Free | `7 days` | `50` rows | Server-side | | Pro | `30 days` | `50` rows | Server-side | | Business | `90 days` | `50` rows | Server-side | | Enterprise | `180 days` | `50` rows | Server-side | | Elite | `365 days` | `50` rows | Server-side | The history window is a viewable allowance, separate from analytics retention and webhook-delivery inspection. Downgrades hide older entries without deleting them; upgrades reveal additional history only if it is still retained. Recording supported activity continues regardless of the viewing allowance, and logs do not consume tracked-click or tracked-event quota. The API uses bounded cursor pagination rather than loading the full ledger. Results are newest first, with at most 50 facts per page. The older-results cursor is based on the last row's timestamp and ID, so loading another page does not require an offset scan or a total-count query. Filters are applied before the page is returned. ## Event catalog The event catalog is shared with Webhooks and is the source vocabulary for the Logs scope and action filters. [Browse the event catalog](https://docs.hoko.to/webhooks/event-catalog) ## Stored fields and presentation The persisted log fact contains exactly seven fields. The dashboard may resolve a link and actor for display, and may join retained webhook deliveries, but those enrichments do not change the log fact itself. | Field | Meaning | Dashboard presentation | | ------------- | --------------------------------------------------------------- | --------------------------------------------------------------------- | | `id` | Stable identity of the log fact | Used for selection, cursors, and exports | | `workspaceId` | Workspace boundary | Not shown as a repeated column | | `recordId` | Affected record ID, not a record snapshot | Resolved when Hoko has a known link; otherwise shown as an identifier | | `action` | Dotted scope/action value from the catalog | Presented as Action + Scope, with the raw value in detail | | `actorId` | Profile or API key that caused the action; null for system work | Resolved to name/avatar or API-key name when available | | `operationId` | Groups related facts from one operation, including bulk changes | Available in the detail view and export | | `occurredAt` | Time the fact occurred | Full timestamp by default; compact relative time on hover | There is no arbitrary payload column, raw form dump, password, signing secret, or before/after value. Logs cannot reconstruct or restore a deleted record. A failed transaction does not leave a successful-change log. ## Browse, filter, and inspect 1. Select the workspace you want to inspect, then open Integrations → Logs. 2. Start with the newest page. Use the resource filter to narrow by scope, then the action filter to choose one action within that scope. 3. Select a row to inspect its resolved record, actor, operation, and related webhook deliveries. 4. Use **Load older activity** to request the next cursor page. Use **Back to newest** when browsing older history. 5. Clear the filters when no matching activity appears. No results can mean the action was never recorded, falls outside the plan window, or is not available in this workspace view. The viewer presents the action in user language while preserving the exact dotted value in the detail sheet. For links, the record can resolve to its short ID and destination. For actors, Hoko resolves a profile name/avatar or an API-key name; a missing actor means the system performed the action. ## Webhook delivery relationship A log can exist without a delivery. When an eligible active subscription matches the action, Hoko associates a delivery row with the log. Every webhook event uses the same thin payload: event ID, type, creation time, affected record ID, and workspace ID. `lead.created` and `sale.created` do not carry extra conversion fields. See [Webhooks](https://docs.hoko.to/webhooks/introduction). | Delivery state | Meaning in Logs | What it does not mean | | --------------------------- | -------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------- | | `pending` | A delivery row exists, but no attempt has started | It is not a scheduled retry or guarantee of later delivery | | **Unconfirmed** (`unknown`) | An attempt was claimed without a recorded terminal result. The UI never treats it as success or failure. | Hoko cannot prove whether the receiver received it | | `succeeded` | Hoko recorded a successful sender result | The receiver completed its business work | | `failed` | Hoko recorded a failure category and bounded result details | The original workspace action failed | No delivery shown does not mean the action failed. There may have been no eligible subscription, publication may have been disabled, the action may not be deliverable, or the endpoint may have been deleted. For a `pending`, **Unconfirmed**, or `failed` delivery, choose **More options → Resend**. Pending reuses attempt `1`, Unconfirmed requires a five-minute cooldown, and failed creates the next attempt number. A successful delivery cannot be resent from the dashboard. ## Export, retention, and privacy With data export access (Business or above), select visible rows and choose **Download selected**. The button shows the number of selected rows. The JSON export is an array containing only those rows from the current page: ```json [ { "id": "", "occurredAt": "2026-08-25T10:11:12.000Z", "action": "link.created", "recordId": "", "actorId": "", "operationId": "" } ] ``` Downloads do not fetch hidden history, resolved display data, or delivery details. Treat IDs as sensitive business data. There are no edit, delete, or restore controls. Deleting an endpoint removes its delivery history, not ordinary log facts; deleting a workspace can remove its associated logs. Hoko keeps delivery history for the workspace lifetime unless its endpoint or workspace is deleted. ## Boundaries and troubleshooting Logs show facts actually recorded by enabled application flows. They are not a retroactive narrative of all existing records, a database backup, or a guarantee that every external or direct database change is captured. If access is denied, verify workspace-wide owner membership, the active collection requirement, and deployment availability; a plan upgrade does not bypass the owner or deployment checks. If a known action is missing, check the selected workspace, the action's history window, the active filters, and whether the originating mutation committed. If a webhook is missing while the log exists, troubleshoot the endpoint and its delivery state in [Webhooks](https://docs.hoko.to/webhooks/introduction); do not treat the absence of a delivery as evidence that the action failed. --- ## Full Help Documentation ### Hoko CLI Install the Hoko CLI, sign in with OAuth, use API keys in automation, and fix common terminal errors. Canonical URL: https://help.hoko.to/cli Markdown URL: https://help.hoko.to/cli/README.md # Hoko CLI Use Hoko from your terminal when you need repeatable link and workspace operations. ## Install Open [cli.hoko.to](https://cli.hoko.to). The installer detects macOS, Linux, or Windows and selects the matching CPU architecture. ```bash curl -fsSL https://cli.hoko.to/install.sh | bash ``` For PowerShell: ```powershell irm https://cli.hoko.to/install.ps1 | iex ``` The installer detects your platform, downloads a release archive, verifies its SHA-256 checksum, installs a bundled binary, and adds the user install directory to your shell profile. Bun is not required. Open a new terminal after installation. ## Upgrade to CLI 0.1.0 CLI 0.1.0 retires the old operations transport. Re-run the installer above for your device, then verify the upgrade: ```bash hoko --version ``` The CLI does not update itself automatically. If a custom script uses the old operations transport, follow the [transport migration](https://docs.hoko.to/cli#transport-migration) reference. ## Sign in or use an API key Run `hoko auth login` for a human account, then choose a workspace in the browser. The browser opens the Hoko OAuth consent page, then the CLI stores the credential in your operating system credential store. Use `HOKO_API_KEY` for CI and server jobs: ```bash HOKO_API_KEY=hk_... hoko links list ``` Run `hoko auth status` to see which credential is available. Run `hoko workspace select ` to switch workspace after login. ## Common commands ```bash hoko links list hoko links create --url https://example.com --collection-id hoko analytics list --take 50 hoko webhooks list ``` Commands return JSON by default. Use `--output table` for terminal inspection. Errors go to stderr. ## Exit codes | Code | Meaning | | ---- | ---------------------------------------------------------------------- | | `0` | Success. | | `1` | Unexpected local failure. | | `2` | Invalid command, input, or request. | | `3` | Missing or invalid credentials, HTTP 401, or credential-store failure. | | `4` | Authorization denied (HTTP 403). | | `5` | Rate limit reached (HTTP 429). | | `6` | Network or connection failure. | | `7` | Server failure (HTTP 5xx) or invalid discovery response. | ## Fix common errors ### No credential Run `hoko auth login` or set `HOKO_API_KEY` in the process environment. Do not paste a key into a shell history that another user can read. ### Wrong workspace Run `hoko workspace select `, then run the command again. ### Staging or local development Pass the API and OAuth origins together: ```bash hoko --api https://api.staging.hoko.to --issuer https://auth.staging.hoko.to auth login ``` For local Portless development, use HTTP loopback origins: ```bash hoko --api http://api.hoko.localhost:1355 --issuer http://auth.hoko.localhost:1355 auth login ``` ### Rate limit Wait for the `Retry-After` value, then retry a read. Check whether a write completed before retrying it so you do not create duplicate records. ## Read the full reference See the [CLI documentation](https://docs.hoko.to/cli) for install and command reference. The CLI host also provides [README.md](https://cli.hoko.to/README.md), a [short machine-readable guide](https://cli.hoko.to/llms.txt), and the [full machine-readable guide](https://cli.hoko.to/llms-full.txt). --- ### App guides Browse Hoko app guides and open the Apps page when you are ready to connect a workspace account. Canonical URL: https://help.hoko.to/apps Markdown URL: https://help.hoko.to/apps/README.md # App guides Connect Hoko to the tools your team already uses. Open **Dashboard → Integrations → Apps** to see setup options and linked accounts. ## ChatGPT and other hosts ChatGPT and Claude start account linking from the host. Hoko shows the requested access before you approve it. Claude Code, Cursor, VS Code, GitHub Copilot, Gemini CLI, Windsurf, Zapier, n8n, Make, and custom clients can use the shared MCP endpoint or the REST API with an API key. Use the host guide for the first setup. Host guides: [ChatGPT](https://help.hoko.to/apps/chatgpt) · [Claude](https://help.hoko.to/apps/claude) · [Claude Code](https://help.hoko.to/apps/claude-code) · [Cursor](https://help.hoko.to/apps/cursor) · [VS Code](https://help.hoko.to/apps/vscode) · [GitHub Copilot](https://help.hoko.to/apps/copilot) · [Gemini CLI](https://help.hoko.to/apps/gemini-cli) · [Windsurf](https://help.hoko.to/apps/windsurf) · [Zapier](https://help.hoko.to/apps/zapier) · [n8n](https://help.hoko.to/apps/n8n) · [Make](https://help.hoko.to/apps/make) · [Custom MCP](https://help.hoko.to/apps/custom-mcp) · [Custom API](https://help.hoko.to/apps/custom-api) Do not paste an API key into chat or commit it to a configuration file. ## Outbound provider directory Choose an app below for its user setup guide. The guide states the required account, the supported workflow, and how to disconnect it. **Commerce** [Shopify](https://help.hoko.to/apps/shopify) · [Salla](https://help.hoko.to/apps/salla) · [Zid](https://help.hoko.to/apps/zid) · [WooCommerce](https://help.hoko.to/apps/woocommerce) · [BigCommerce](https://help.hoko.to/apps/bigcommerce) · [Adobe Commerce](https://help.hoko.to/apps/adobe-commerce) **Publishing** [Buffer](https://help.hoko.to/apps/buffer) · [Sprout Social](https://help.hoko.to/apps/sprout-social) · [Publer](https://help.hoko.to/apps/publer) · [Metricool](https://help.hoko.to/apps/metricool) · [SocialPilot](https://help.hoko.to/apps/socialpilot) · [Typefully](https://help.hoko.to/apps/typefully) · [Later](https://help.hoko.to/apps/later) · [Hootsuite](https://help.hoko.to/apps/hootsuite) **Automation** [Power Automate](https://help.hoko.to/apps/power-automate) **CRM and messaging** [HubSpot](https://help.hoko.to/apps/hubspot) · [Salesforce](https://help.hoko.to/apps/salesforce) · [Klaviyo](https://help.hoko.to/apps/klaviyo) · [Mailchimp](https://help.hoko.to/apps/mailchimp) · [Customer.io](https://help.hoko.to/apps/customerio) · [Brevo](https://help.hoko.to/apps/brevo) · [Slack](https://help.hoko.to/apps/slack) · [Microsoft Teams](https://help.hoko.to/apps/microsoft-teams) **CMS and measurement** [WordPress](https://help.hoko.to/apps/wordpress) · [Webflow](https://help.hoko.to/apps/webflow) · [Ghost](https://help.hoko.to/apps/ghost) · [Stripe](https://help.hoko.to/apps/stripe) · [GA4](https://help.hoko.to/apps/ga4) · [Google Tag Manager](https://help.hoko.to/apps/google-tag-manager) · [PostHog](https://help.hoko.to/apps/posthog) · [Segment](https://help.hoko.to/apps/segment) · [Notion](https://help.hoko.to/apps/notion) · [Airtable](https://help.hoko.to/apps/airtable) · [Google Sheets](https://help.hoko.to/apps/google-sheets) ## Setup guides Follow the selected app guide for account linking, manual MCP configuration, or REST setup. Create any required API key in **Dashboard → Integrations → API Keys**. Pipedream Workflows is archived. ## Connection states - **Pending:** setup started but the required provider step is incomplete. - **Connected:** the grant or provider credential is available. - **Expired:** the provider credential needs refreshing. - **Revoked:** the provider or a workspace admin removed access. Open **Connections** to view linked accounts. Disconnecting removes the stored provider credential from Hoko; it does not delete data in the provider account. ## Disconnect an app 1. Open **Dashboard → Integrations → Apps**. 2. Open **Connections**, then select **Manage**. 3. Select **Remove Hoko access** and confirm. ## Before connecting Check the app guide for required permissions and fields. The technical reference covers credential eligibility and rate limits. [Open Apps](https://dash.hoko.to/integrations/apps) · [Technical reference](https://docs.hoko.to/integrations/apps) --- ### Getting started Create a Hoko account, set up a workspace and collection, and publish your first tracked short link. Canonical URL: https://help.hoko.to/getting-started Markdown URL: https://help.hoko.to/getting-started/README.md # Getting started ## Getting started overview This overview helps you reach your first tracked link quickly. ### What you will set up - Sign in to your account. - Use the default workspace or create a new one. - Create a collection for your first campaign. - Create a link and share it. - Open Analytics to confirm clicks. ### Recommended order 1. Review your profile name and avatar. 2. Rename the workspace if needed. 3. Create a collection for the project. 4. Create a link with a destination. 5. Check Analytics after sharing. > [!INFO] Access is collection-based. If you cannot see a collection, ask an owner for access. ## Create an account Create an account to access your dashboard and workspaces. ### Where to find it - Homepage → Sign up ### Steps 1. Open the sign up page. 2. Enter your email address. 3. Enter the one-time code sent to your email. 4. Complete account setup to reach the dashboard. ### Notes - Use an email address that you can access. Hoko sends sign-in codes to this address. - Your first workspace is created automatically on the first sign-in. > [!INFO] If you already have an account, use Sign in. ## Sign in Sign in to access your workspaces and collections. ### Where to find it - Homepage → Sign in ### Steps 1. Open the sign in page. 2. Enter your email address. 3. Enter the one-time code sent to your email. 4. Arrive at your dashboard. ### Notes - The last used workspace is selected automatically. - You can switch workspaces from the switcher later. > [!INFO] Request a new one-time code if the previous code expires. ## Sign out Sign out to end your current session. ### Where to find it - Account menu in the dashboard header ### Steps 1. Open the account menu. 2. Select Sign out. 3. Confirm when prompted. ### Notes - Signing out clears session cookies on this device. - You will need to sign in again to access the dashboard. > [!INFO] Signing out does not delete your data. ## First workspace created automatically If you sign in for the first time and you do not have any workspaces, Hoko creates one for you. ### What is created - A workspace named Default Workspace. - A default collection named Links. - You are assigned the owner role. ### What to do next 1. Rename the workspace to match your project. 2. Create additional collections as needed. 3. Update your profile and workspace images. > [!INFO] This happens only when no workspaces exist on your account. ## Workspace switching behavior Switching workspaces changes which collections and links you can access. ### How switching works - Use the workspace switcher in the dashboard header. - The selection is stored in cookies. - If the current collection is not available, the default collection is selected. ### What changes - Visible links and collections. - Analytics scope. - Default collection in forms. > [!INFO] If you lose access to a collection, another accessible collection is selected automatically. ## Role model explained Workspace and collection roles control different parts of your access. ### Roles - Owner: full workspace access, including billing and ownership transfer. - Workspace Admin: manage workspace operations and integrations, except billing and ownership. - Collection Admin: manage assigned collections and their member roles. - Editor: create and edit links in assigned collections. - Viewer: read assigned collection data. - No access: no collection role is assigned. ### Scope Collection roles are assigned separately for each collection. You can be a Viewer in one and an Editor in another. See [Access and permissions](https://help.hoko.to/access) for the full role matrix. > [!INFO] Owners and Workspace Admins can change workspace settings. Billing and ownership remain Owner-only. ## Troubleshooting Use these checks when the dashboard does not load or access is missing. ### Missing dashboard access - Sign in again to refresh your session. - Verify you are a member of a workspace. - Ask an owner to send a new invite. ### Workspace not found - Open the workspace switcher and choose another workspace. - Clear cookies and sign in again. - Contact a workspace owner to confirm membership. ### Session expired - Reload the page. - Sign in again if needed. --- ### Profile Manage your Hoko profile details, email, localization, and account settings from one place. Canonical URL: https://help.hoko.to/profile Markdown URL: https://help.hoko.to/profile/README.md # Profile ## Update profile name Update the name shown in menus, invites, and activity. ### Where to find it - Dashboard → Settings → Profile ### Steps 1. Open Profile settings. 2. Edit your profile name. 3. Save the changes. ### Notes - Profile names must be 3–32 characters. - Names must be unique. > [!INFO] Your email address does not change. ## Update profile avatar Upload a new avatar image for your profile. ### Where to find it - Dashboard → Settings → Profile ### Steps 1. Open Profile settings. 2. Choose a new image file. 3. Wait for the upload to finish. 4. Save the changes. ### Notes - PNG, JPG, or SVG files only. - Maximum size is 2 MB. - The image is stored as a hashed file name. > [!INFO] If no avatar is set, initials are shown instead. ## Profile image rules Profile images follow these rules to keep storage consistent. ### Rules - Allowed types: PNG, JPG, or SVG. - Maximum file size is 2 MB. - File name uses a SHA256 hash and is stored as hash.png. - Storage path is avatar/{profileId}/hash.png. - The database stores only hash.png. ### Tips - Use a square image for best results. - Keep the file size small for faster upload. > [!INFO] The server builds the full image URL and sends it to the client. ## Troubleshooting Use these fixes when profile updates fail. ### Failed to update profile name - Check the 3–32 character length. - Ensure the name is unique. - Try saving again. ### Failed to update profile avatar - Confirm the file type is PNG, JPG, or SVG. - Keep the file under 2 MB. - Retry the upload. ### Invalid image type - Choose a PNG, JPG, or SVG file. - Avoid unsupported formats like GIF. ### Image size exceeds limit - Compress or resize the image. - Upload again after reducing size. --- ### Workspaces Create, switch, rename, transfer, and manage Hoko workspaces while understanding ownership limits. Canonical URL: https://help.hoko.to/workspaces Markdown URL: https://help.hoko.to/workspaces/README.md # Workspaces ## Create a workspace Create a workspace to organize a new team or project. ### Where to find it - Workspace switcher in the dashboard header ### Steps 1. Open the workspace switcher. 2. Select Create a new workspace. 3. Enter a workspace name. 4. Confirm to create the workspace. ### Notes - A default collection named Links is created automatically. - You become the owner of the new workspace. - The new workspace becomes active right away. > [!WARNING] Creation is blocked if you reach the ownership limit. ## Workspace name rules Workspace names keep your switcher readable and organized. ### Rules - Name is required. - Maximum length is 32 characters. ### Examples - Marketing - Client A - Product Team ### Tips - Keep names short for easier switching. ## Workspace slug rules Workspace slugs appear in URLs and must be unique. ### Rules - Slug is required. - Length must be between 3 and 32 characters. - Slug must be unique across workspaces. ### Tips - Use lowercase letters, numbers, and hyphens for clarity. ## Update workspace name Update the workspace name to keep it recognizable in the switcher. ### Where to find it - Dashboard → Settings → Workspace ### Steps 1. Open Workspace settings. 2. Edit the workspace name. 3. Save the changes. ### Notes - Maximum length is 32 characters. ## Update workspace slug Update the workspace slug to change its URL identifier. ### Where to find it - Dashboard → Settings → Workspace ### Steps 1. Open Workspace settings. 2. Edit the workspace slug. 3. Save the changes. ### Notes - Slug length must be 3–32 characters. - Slug must be unique. ## Update workspace image Upload a new image to represent the workspace. ### Where to find it - Dashboard → Settings → Workspace ### Steps 1. Open Workspace settings. 2. Choose a new image file. 3. Wait for the upload to finish. 4. Save the changes. ### Notes - PNG, JPG, or SVG files only. - Maximum size is 2 MB. - The image is stored as a hashed file name. ## Workspace image rules Workspace images follow these rules to keep storage consistent. ### Rules - Allowed types: PNG, JPG, or SVG. - Maximum file size is 2 MB. - File name uses a SHA256 hash and is stored as hash.png. - Storage path is avatar/{workspaceId}/hash.png. - The database stores only hash.png. ### Tips - Use a square image for consistent avatars. - Keep the file size small for faster upload. ## Workspace ownership limits Workspaces have ownership limits to keep accounts manageable. ### Default limit - The default policy allows up to two owned workspaces per profile. ### What happens at the limit - Creating new workspaces is blocked. - You can still be invited to other workspaces. > [!INFO] Transfer ownership if you need to stay within the limit. ## Troubleshooting Use these fixes when workspace actions fail. ### Failed to create workspace - Check the workspace name length. - Confirm you have not reached the ownership limit. - Try again after refreshing. ### Workspace name rejected - Keep the name under 32 characters. - Avoid empty names. ### Workspace slug rejected - Use 3–32 characters. - Pick a unique slug. ### Failed to update workspace image - Use PNG, JPG, or SVG. - Keep the file under 2 MB. - Retry the upload. --- ### Collections Organize campaign links into Hoko collections and manage collection-level access and lifecycle. Canonical URL: https://help.hoko.to/collections Markdown URL: https://help.hoko.to/collections/README.md # Collections ## Collection concept A collection groups related links and controls access for each participant. ### Why it matters - Organize links by campaign, client, or product. - Control who can view or edit links. - Scope analytics to specific collections. ### How it connects - Every link belongs to one collection. - Participant roles are set per collection. > [!INFO] Collections keep access and analytics consistent across the workspace. ## Switch the current collection Use the collection name above the Links list to choose which collection you are working in. ### Steps 1. Open Dashboard → Links. 2. Select the current collection name in the page heading. 3. Search for and choose an accessible collection. ### Notes - The selected collection is stored in the Links URL, so refresh, browser history, and shared links keep the same context. - The current collection controls the Links heading, records, totals, and available actions. - Switching the current collection does not change the workspace default collection. > [!INFO] The workspace default is a fallback preference. The current collection is the collection selected for this Links view. ## Create a collection Create a collection to organize links in your workspace. ### Where to find it - Dashboard → Library → Collections - Dashboard → Links → current collection switcher ### Steps 1. Open Collections. 2. Select New collection. 3. Enter a collection name. 4. Create the collection. From the Links switcher, enter a new unique name and select **Create**. Hoko creates the collection and opens its empty Links view immediately. ### Notes - Names must be unique within the workspace. - Plan limits may apply. - If creation fails, the previous current collection remains active and the proposed name stays available for correction. - Creating from Library or a link form does not change the current Links collection unless that flow explicitly activates it. > [!INFO] Owners and Workspace Admins receive access to every active collection automatically. ### No collection access If you are an ordinary workspace member with no collection assignment, Collections shows an explicit no-access state. Ask the Owner or Workspace Admin to assign you a collection role. Owners and Workspace Admins see the normal empty or onboarding state when the workspace has no collections. ## Collection name rules Collection names keep your library organized. ### Rules - Name is required. - Maximum length is 32 characters. - Names must be unique in the workspace. ### Tips - Use descriptive names that match your campaigns. ## Rename a collection Rename a collection to keep labels consistent. ### Where to find it - Dashboard → Library → Collections ### Steps 1. Open Collections. 2. Select Rename on a collection card. 3. Enter the new name. 4. Save the changes. ### Notes - Names must remain unique within the workspace. - Links stay in the same collection. ## Set default collection Choose which collection is selected by default. ### Where to find it - Dashboard → Library → Collections ### Steps 1. Open Collections. 2. Click Default on the chosen collection. ### Notes - The default button is disabled for the current default collection. - The default is used when switching workspaces. > [!INFO] If the default collection is removed, another collection is selected automatically. ## Remove a collection Remove a collection and its access from the workspace. ### Where to find it - Dashboard → Library → Collections ### Steps 1. Open Collections. 2. Select Remove on the collection card. 3. Confirm the removal. ### Notes - Links in the collection are removed from active views. - Members lose access to that collection. - The last remaining collection cannot be removed. > [!WARNING] Removal affects links, invites, and analytics for that collection. ## Troubleshooting Use these fixes when collection actions fail. ### Failed to create collection - Confirm you have permission to create collections. - Check name length and uniqueness. - Verify plan limits. ### Duplicate collection name - Choose a different name. - Search for existing collections with the same name. ### Failed to rename collection - Ensure the new name is unique. - Keep the name under 32 characters. ### Failed to set default collection - Try selecting another collection. - Refresh the page and retry. ### Failed to remove collection - Make sure it is not the only collection. - Confirm you have delete permissions. --- ### Links Create and manage Hoko short links with slugs, UTM values, QR codes, previews, and eligible link controls. Canonical URL: https://help.hoko.to/links Markdown URL: https://help.hoko.to/links/README.md # Links ## Link concept A link is a short URL that redirects to a destination and tracks activity. ### Why it matters - Measure clicks, leads, and sales. - Organize links inside collections. ### How it connects - Each link belongs to one collection. - Links can include tags, partners, and UTM data. - The collection name above the list is the current Links collection; select it to switch or create and activate another collection. > [!INFO] Switching the current Links collection does not scope the existing all-collection Analytics view. ### No collection access If you are an ordinary workspace member with no collection assignment, Links shows an explicit no-access state instead of an empty link result. Ask the Owner or Workspace Admin to assign you a collection role before creating or viewing links. Owners and Workspace Admins see the normal empty or onboarding state when the workspace has no collections. ## Create a link Create a Hoko link in the dashboard, through the API, or with the CLI. ### Where to find it - Dashboard → Links ### Steps 1. Open **Links**. 2. Select **Create Link** to open the **New Link** dialog. 3. Enter the destination URL. 4. Choose a collection and optional settings. 5. Select **Create Link**. ### Notes - Destination URL and collection are required. - New-link drafts start with the current Links collection, but eligible users may choose another writable collection. - You can add tags, partners, or UTM data later. ### API Send an authorized `POST /links` request with an array of objects containing `url` and `collectionId`. See the [Create links API reference](https://docs.hoko.to/links/post) for credentials, fields, and examples. ### CLI Sign in, list the workspace's collections, and create the link: ```bash hoko auth login hoko collections list hoko links create --url https://example.com --collection-id ``` See the [CLI reference](https://docs.hoko.to/cli) for command options. ## Required link fields Links require a few fields before they can be created. ### Required fields - Destination URL - Collection ### Optional fields - Short ID - Tags - Partner - UTM parameters - Comments - QR code - Targeting - Expiry rules > [!INFO] If you leave the short ID empty, a random one is generated. ## Edit a link Edit link details without losing historical analytics. ### Where to find it - Dashboard → Links ### Steps 1. Open Links. 2. Select a link from the list. 3. Edit the fields you need. 4. Save the changes. ### Notes - Edits apply immediately. - Past analytics remain tied to the link. ## Remove a link Remove a link so it no longer appears in the workspace. ### Where to find it - Dashboard → Links ### Steps 1. Open Links. 2. Select the link to remove. 3. Confirm deletion. ### Notes - Removed links no longer appear in lists. - Historical analytics remain available. ## Link filters Filters narrow the links list to what you need. ### Available filters - Tags - Destinations - Sort order ### How filters combine Multiple filters are applied together inside the current collection. Clear filters to return to that collection's full list. ## Link search behavior Search scans key fields to help you find links fast. ### Search coverage - Link ID - Link name - Description - Short ID - Destination URL - Comments ### Search tips - Use partial keywords. - Search is case-insensitive. ## Link tags usage Tags help categorize links and improve filtering. ### When to use tags - Group links across collections. - Filter analytics by campaign or topic. ### How tags are applied Select tags when creating or editing a link. You can add or remove tags any time. > [!INFO] Tag changes apply immediately to filters and analytics views. ## Link partners usage Partners connect links to affiliates or collaborators. ### When to use partners - Track partner-driven traffic. - Attribute conversions to a partner. ### How partners are applied Select a partner when creating or editing a link. Partners are optional. ## Link UTM templates usage UTM templates fill tracking parameters quickly. ### When to use UTM templates - Reuse consistent UTM values across campaigns. - Reduce manual entry when creating links. ### How templates are applied Select a template in the link dialog to populate UTM fields. You can edit values after applying. ## Troubleshooting Use these fixes when link actions fail. ### Failed to create link - Check the destination URL. - Select an accessible collection. - Verify permissions. ### Invalid destination URL - Include the full URL with https://. - Avoid spaces or unsupported characters. ### Link not found - Clear filters and search again. - Verify you have access to the collection. ### Failed to update link - Check required fields. - Retry after refreshing the page. ### Failed to delete link - Confirm you have delete permission. - Try again after refreshing. ### Tag assignment failed - Check that the tag still exists. - Try removing and re-adding the tag. ### Partner assignment failed - Confirm the partner exists. - Retry after refreshing. --- ### Tags Create and apply Hoko tags to keep links searchable, filterable, and consistent across campaigns. Canonical URL: https://help.hoko.to/tags Markdown URL: https://help.hoko.to/tags/README.md # Tags ## Tag concept Tags label links so you can filter and analyze them easily. ### Why it matters - Filter links by campaign or theme. - Use tags to segment analytics. ### How it connects - Tags can be applied to any link. - Analytics filters can use tags. ## Create a tag Create tags to organize links and analytics. ### Where to find it - Dashboard → Library → Tags ### Steps 1. Open Tags. 2. Select New tag. 3. Enter a tag name and color. 4. Create the tag. ### Notes - Tag names must be unique. - If the name is empty, a short ID is generated. ## Update a tag Update tag names or colors to keep them consistent. ### Where to find it - Dashboard → Library → Tags ### Steps 1. Open Tags. 2. Select a tag. 3. Edit the name or color. 4. Save the changes. ### Notes - Names must stay unique. ## Remove a tag Remove a tag when you no longer need it. ### Where to find it - Dashboard → Library → Tags ### Steps 1. Open Tags. 2. Select Remove on the tag. 3. Confirm deletion. ### Notes - Removing a tag does not delete links. - Links will simply lose that tag. ## Tag color rules Tag colors help you recognize categories at a glance. ### Rules - Choose from the available color palette. - Use high-contrast colors for readability. ### Tips - Keep a consistent color scheme across similar tags. ## Troubleshooting Use these fixes when tag actions fail. ### Failed to create tag - Check tag name uniqueness. - Verify you have permission to create tags. ### Duplicate tag name - Use a different name. - Search existing tags first. ### Invalid tag color - Select a color from the provided palette. ### Failed to update tag - Ensure the new name is unique. - Retry after refreshing. ### Failed to remove tag - Confirm you have delete permission. - Try again after refreshing. --- ### Partners Create partner records, associate partners with tracked links, and review partner campaign context. Canonical URL: https://help.hoko.to/partners Markdown URL: https://help.hoko.to/partners/README.md # Partners ## Partner concept Partners represent affiliates or collaborators tied to links. ### Why it matters - Attribute traffic to partners. - Measure partner performance. ### How it connects - A link can reference one partner. - Partners are optional for links. ## Create a partner Create a partner to track affiliate or collaborator links. ### Where to find it - Dashboard → Partners ### Steps 1. Open Partners. 2. Select New partner. 3. Enter the partner name. 4. Save the partner. ### Notes - Partner name is required. - Email and phone are optional. ## Update a partner Update partner details to keep records accurate. ### Where to find it - Dashboard → Partners ### Steps 1. Open Partners. 2. Select a partner. 3. Edit details. 4. Save changes. ## Remove a partner Remove a partner when it is no longer needed. ### Where to find it - Dashboard → Partners ### Steps 1. Open Partners. 2. Select Remove on the partner. 3. Confirm deletion. ### Notes - Removing a partner does not delete links. - Links will lose the partner association. ## Troubleshooting Use these fixes when partner actions fail. ### Failed to create partner - Ensure the partner name is provided. - Retry after refreshing. ### Failed to update partner - Retry after refreshing. - Check required fields. ### Failed to remove partner - Confirm you have delete permission. - Try again after refreshing. --- ### UTM templates Save reusable Hoko UTM templates for consistent campaign source, medium, name, term, and content values. Canonical URL: https://help.hoko.to/utm-templates Markdown URL: https://help.hoko.to/utm-templates/README.md # UTM templates ## UTM template concept UTM templates store reusable tracking parameters for links. ### Why it matters - Keep campaign tracking consistent. - Reduce manual entry when creating links. ### How it connects - Templates can be applied in link dialogs. - Templates do not change existing links unless applied. ## Create a UTM template Create a template to reuse UTM parameters. ### Where to find it - Dashboard → Library → UTM Templates ### Steps 1. Open UTM Templates. 2. Select New template. 3. Enter template name and UTM fields. 4. Save the template. ### Notes - Template name is required and must be unique. - Provide at least one UTM field. - Only fill the UTM fields you need. ## Update a UTM template Update template values to keep tracking accurate. ### Where to find it - Dashboard → Library → UTM Templates ### Steps 1. Open UTM Templates. 2. Select a template. 3. Edit fields and save. ## Remove a UTM template Remove a template you no longer need. ### Where to find it - Dashboard → Library → UTM Templates ### Steps 1. Open UTM Templates. 2. Select Remove on the template. 3. Confirm deletion. ### Notes - Removing a template does not change existing links. ## Troubleshooting Use these fixes when template actions fail. ### Failed to create UTM template - Check that the name is unique. - Retry after refreshing. ### Duplicate template name - Choose a different template name. ### Failed to update UTM template - Retry after refreshing. - Check required fields. ### Failed to remove UTM template - Confirm you have delete permission. - Try again after refreshing. --- ### Analytics Review Hoko clicks, recorded leads and sales, referrers, UTM values, devices, locations, tags, and CSV exports. Canonical URL: https://help.hoko.to/analytics Markdown URL: https://help.hoko.to/analytics/README.md # Analytics ## Analytics overview Analytics show how your links perform over time. ### What you can see - Clicks - Leads - Sales - Top referrers - UTM breakdowns - Tag performance ### Data window By default analytics load the last 30 days and are limited by your plan event caps. > [!INFO] Analytics are scoped to collections you can access. ## Analytics scope by collection Analytics only include collections you have access to. ### Access rules - Viewer or higher access is required to see analytics. - Blocked or removed participants do not see analytics. - If you are an ordinary workspace member with no collection assignment, Analytics shows an explicit no-access state explaining that a collection role is required. Owners and Workspace Admins see the normal empty state when the workspace has no collections. ## Click analytics explained Click analytics record every visit to a link. ### Captured details - Destination - Referrer - UTM parameters - Device and browser - Location ### How to use - Spot top-performing campaigns. - Understand traffic sources. ## Lead analytics explained Lead analytics show conversions captured as leads. ### Lead events - Recorded when a lead is tracked. - Linked to a click and a link. ### How to use - Measure campaign quality. - Compare clicks to leads for conversion rate. ## Sale analytics explained Sale analytics track revenue events tied to links. ### Sale events - Recorded when a sale is tracked. - Includes amount and currency when provided. ### How to use - Measure ROI per campaign. - Compare revenue across collections. ## Filter behavior Analytics filters refine what data you see. ### Filter effects - Filters apply to charts and tables. - Multiple filters combine together. - Clear filters to reset the view. ## Export analytics data Export analytics to CSV for reporting. ### How export works - Exports reflect current filters. - Includes recent data from the analytics window. ### Tips - Apply filters before exporting. - Use a spreadsheet to build charts. ## Troubleshooting Use these fixes when analytics does not load or looks incomplete. ### Missing analytics data - Confirm you have activity in the last 30 days. - Check collection access. ### Access denied to analytics - Ask an owner to grant viewer access. - Switch to a collection you can access. - If you have no collection assignment, ask an owner or Workspace Admin to assign you a collection role. ### Export failed - Try exporting with fewer filters. - Reload the page and retry. ### Slow analytics load - Apply filters to reduce data volume. - Refresh and try again later. --- ### Participants Invite participants and manage workspace and collection roles, removal, and team-seat limits. Canonical URL: https://help.hoko.to/participants Markdown URL: https://help.hoko.to/participants/README.md # Participants Read [Access and permissions](https://help.hoko.to/access) for the complete workspace and collection permission matrix. ## Participant roles explained Participant roles control access per collection. ### Roles - Owner: full access, workspace management, billing, and ownership transfer. - Workspace Admin: manage workspace operations, integrations, and ordinary members. Cannot manage billing, ownership, or other Workspace Admins. - Collection Admin: manage members within assigned administrator collections. - Editor: create and edit links and content. - Viewer: read-only access. - No access: hidden from the member. ### Scope Roles are assigned per collection and can differ across collections. For Collection Admins, Participants access is available when they are a Collection Admin in any collection. Their assignment controls apply only to collections where they are an administrator and do not depend on the currently selected collection. Workspace-wide participant removal remains unavailable. ## Invite a participant Invite a participant and choose their collection roles. ### Where to find it - Dashboard → Settings → Participants ### Steps 1. Open Participants settings. 2. Enter the member email. 3. Assign roles for collections. 4. Send the invite. ### Notes - Invites are scoped to collections. - Members only see collections they are assigned to. ## Assign collection roles Assign different roles per collection for the same member. ### Where to find it - Dashboard → Settings → Participants ### Steps 1. Open Participants settings. 2. Select a member or invite form. 3. Choose a role for each collection. 4. Save the changes. ### Notes - Setting a role to none hides the collection for that member. ## Resend an invite Resend an invite if the email was missed. ### Where to find it - Dashboard → Settings → Participants ### Steps 1. Open Participants settings. 2. Find the pending invite. 3. Select Resend invite. ### Notes - Only pending invites can be resent. ## Revoke an invite Revoke an invite to stop it from being accepted. ### Where to find it - Dashboard → Settings → Participants ### Steps 1. Open Participants settings. 2. Find the pending invite. 3. Select Revoke invite. ### Notes - Revoked invites cannot be accepted. ## Update member roles Change a member role for one or more collections. ### Where to find it - Dashboard → Settings → Participants ### Steps 1. Open Participants settings. 2. Select the member. 3. Adjust roles per collection. 4. Save the changes. ### Notes - Keep at least one owner in the workspace. ## Remove a participant Remove a participant from the workspace. ### Where to find it - Dashboard → Settings → Participants ### Steps 1. Open Participants settings. 2. Select the member. 3. Choose Remove participant. 4. Confirm removal. > [!WARNING] You cannot remove the last remaining owner. Only the Owner and Workspace Admin can use this workspace-wide action. A Collection Admin must set the member's role to **None** for the assigned collection instead; Collection Admin cannot remove a person from the workspace. ## Transfer ownership Transfer ownership with the dedicated ownership transfer action. ### Where to find it - Dashboard → Settings → Participants ### Steps 1. Open Participants settings. 2. Select the member. 3. Choose Transfer ownership. 4. Select the target member. 5. Confirm the change. ### Notes - Keep at least one owner at all times. ## Troubleshooting Use these fixes when participant actions fail. ### Invite not delivered - Check the email address. - Ask the invitee to check spam. - Resend the invite. ### Invite already exists - Check pending invites. - Revoke and resend if needed. ### Role assignment failed - Ensure you are the Owner, Workspace Admin, or Collection Admin for the collection you are managing. - Retry after refreshing. ### Ownership transfer blocked - Use the dedicated ownership transfer action. - Confirm the target member has workspace membership. ### Failed to remove participant - Ensure you are not removing the last owner. - Retry after refreshing. --- ### Access and permissions Understand workspace and collection roles, feature permissions, and how to change member access. Canonical URL: https://help.hoko.to/access Markdown URL: https://help.hoko.to/access/README.md # Access and permissions Hoko uses two permission levels: workspace authority and collection access. Your effective access is the combination of both levels. ## How access works Your signed-in profile must belong to the active workspace. The workspace role controls workspace-wide features. Your collection role controls data inside each collection. Workspace owners and Workspace Admins receive access to every active collection. Ordinary members see only collections where they have an assigned role. Protected resources and changes are checked on the server. Hiding a button alone does not set a permission, and a direct URL cannot bypass a protected action. ## Access matrix The matrix shows effective access for each role. `All` means every active collection; `Assigned` means collections with that role; `Workspace` means the whole workspace; `Self` means your own account. `Read` means view only, `Manage` means the action is allowed, and `No` means it is blocked. `Business+` and `Plan permitting` also require the stated plan allowance. On a narrow screen, scroll each table sideways to see every role. ### Workspace and membership | Feature | Owner | Workspace Admin | Collection Admin | Editor | Viewer | No access | |---|---|---|---|---|---|---| | View workspace in switcher | Workspace | Workspace | Workspace | Workspace | Workspace | Workspace | | View workspace settings | Read | Read | No | No | No | No | | Update workspace name | Manage | Manage | No | No | No | No | | Update workspace slug | Manage | Manage | No | No | No | No | | Update workspace image | Manage | Manage | No | No | No | No | | View Participants | Workspace | Workspace | Assigned admin collections | No | No | No | | Invite across any collection | Manage | Manage | No | No | No | No | | View pending invitations | Workspace | Workspace | Assigned admin collections | No | No | No | | Resend an invitation | Manage | Manage | Assigned admin collections | No | No | No | | Revoke an invitation | Manage | Manage | Assigned admin collections | No | No | No | | Invite a Collection Admin | Manage | Manage | No | No | No | No | | Invite an Editor to an assigned collection | Manage | Manage | Manage | No | No | No | | Invite a Viewer to an assigned collection | Manage | Manage | Manage | No | No | No | | Promote Viewer to Editor | Manage | Manage | Manage | No | No | No | | Promote Editor to Collection Admin | Manage | Manage | No | No | No | No | | Demote Collection Admin to Editor | Manage | Manage | No | No | No | No | | Demote Editor to Viewer | Manage | Manage | Manage | No | No | No | | Remove a workspace member | Manage | Manage ordinary members | No | No | No | No | | Remove a member from an assigned collection | Manage | Manage | Manage | No | No | No | | Grant Workspace Admin | Manage | No | No | No | No | No | | Revoke Workspace Admin | Manage | No | No | No | No | No | | Transfer ownership | Manage | No | No | No | No | No | | Leave the workspace | Transfer first | Yes | Yes | Yes | Yes | Yes | ### Collections and links | Feature | Owner | Workspace Admin | Collection Admin | Editor | Viewer | No access | |---|---|---|---|---|---|---| | List collections | All | All | Assigned | Assigned | Assigned | No | | View collection details | All | All | Assigned | Assigned | Assigned | No | | Create a collection | Manage | Manage | No | No | No | No | | Rename a collection | Manage | Manage | Assigned | No | No | No | | Set the default collection | Manage | Manage | No | No | No | No | | Delete a collection | Manage | Manage | No | No | No | No | | View links | All | All | Assigned | Assigned | Assigned | No | | Create a link | All | All | Assigned | Assigned | No | No | | Edit link metadata | All | All | Assigned | Assigned | No | No | | Change link destination | All | All | Assigned | Assigned | No | No | | Change link preview | All | All | Assigned | Assigned | No | No | | Change link targeting | All | All | Assigned | Assigned | No | No | | Change link expiration | All | All | Assigned | Assigned | No | No | | Change link password protection | All | All | Assigned | Assigned | No | No | | Change link QR settings | All | All | Assigned | Assigned | No | No | | Move a link | All | All | Assigned source and destination | Assigned source and destination | No | No | | Delete a link | All | All | Assigned | Assigned | No | No | | View link analytics | All | All | Assigned | Assigned | Assigned | No | ### Shared libraries and reports | Feature | Owner | Workspace Admin | Collection Admin | Editor | Viewer | No access | |---|---|---|---|---|---|---| | View tags library | Read | Read | No | No | No | No | | See shared option names on Links page | All | All | Assigned | Assigned | Assigned | No | | Create a tag | Manage | Manage | No | No | No | No | | Update a tag | Manage | Manage | No | No | No | No | | Delete a tag | Manage | Manage | No | No | No | No | | Use existing tags on assigned links | All | All | Assigned | Assigned | No | No | | View UTM templates library | Read | Read | No | No | No | No | | Create a UTM template | Manage | Manage | No | No | No | No | | Update a UTM template | Manage | Manage | No | No | No | No | | Delete a UTM template | Manage | Manage | No | No | No | No | | View partners library | Read | Read | No | No | No | No | | Create a partner | Manage | Manage | No | No | No | No | | Update a partner | Manage | Manage | No | No | No | No | | Delete a partner | Manage | Manage | No | No | No | No | | View customers | All | All | Assigned | Assigned | Assigned | No | | View click analytics | All | All | Assigned | Assigned | Assigned | No | | View lead analytics | All | All | Assigned | Assigned | Assigned | No | | View sale analytics | All | All | Assigned | Assigned | Assigned | No | | View Events | All | All | Assigned | Assigned | Assigned | No | | View Journeys | All | All | Assigned | Assigned | Assigned | No | ### Integrations and billing | Feature | Owner | Workspace Admin | Collection Admin | Editor | Viewer | No access | |---|---|---|---|---|---|---| | View API key metadata | Read | Read | No | No | No | No | | Create an API key | Manage | Manage | No | No | No | No | | Rename an API key | Manage | Manage | No | No | No | No | | Change API key scopes | Manage | Manage | No | No | No | No | | Change API key allowed hostnames | Manage | Manage | No | No | No | No | | Revoke an API key | Manage | Manage | No | No | No | No | | View webhook endpoints | Read | Read | No | No | No | No | | Create a webhook endpoint | Business+ | Business+ | No | No | No | No | | Update a webhook destination | Manage | Manage | No | No | No | No | | Verify a webhook | Business+ | Business+ | No | No | No | No | | Enable a verified webhook | Business+ | Business+ | No | No | No | No | | Disable a webhook | Manage | Manage | No | No | No | No | | Delete a webhook | Manage | Manage | No | No | No | No | | Send a webhook test | Business+ | Business+ | No | No | No | No | | View webhook delivery history | Read | Read | No | No | No | No | | View delivery attempt details | Read | Read | No | No | No | No | | View webhook test attempts | Read | Read | No | No | No | No | | View activity logs | Read | Read | No | No | No | No | | Export visible logs | Plan permitting | Plan permitting | No | No | No | No | | Resend an eligible delivery | Business+ | Business+ | No | No | No | No | | View billing | Read | No | No | No | No | No | | Change the subscription | Manage | No | No | No | No | No | | Open the billing portal | Manage | No | No | No | No | No | | View invoice details | Read | No | No | No | No | No | | Send invoice email | Manage | No | No | No | No | No | | View subscription usage | Workspace | Workspace | Workspace | Workspace | Workspace | Workspace | ### Personal account | Feature | Owner | Workspace Admin | Collection Admin | Editor | Viewer | No access | |---|---|---|---|---|---|---| | View own profile | Self | Self | Self | Self | Self | Self | | Update own profile | Self | Self | Self | Self | Self | Self | | Change own language | Self | Self | Self | Self | Self | Self | | Change own appearance | Self | Self | Self | Self | Self | Self | The No access column describes collection access. An ordinary workspace member with no collection assignment can still see the workspace switcher and subscription usage, but Collections, Links, and Analytics show an explicit no-access state. Owners and Workspace Admins keep the normal empty or onboarding state when the workspace has no collections because they have workspace-wide collection access. Some protected pages return an access-restricted state when the member lacks workspace authority. ## Workspace roles ### Owner The Owner has full workspace access. The Owner can: - update workspace settings; - create, rename, set as default, and delete collections; - invite and remove workspace members; - assign collection roles; - create and manage API keys; - create and manage webhooks; - view logs and resend eligible webhook deliveries; - manage billing and subscription changes; - appoint or remove Workspace Admins; and - transfer workspace ownership. The Owner role cannot be removed through an ordinary member update. Use the dedicated ownership transfer action. ### Workspace Admin Workspace Admin is a workspace-wide operational role. A Workspace Admin can: - update workspace settings; - create, rename, set as default, and delete collections; - invite and remove ordinary workspace members; - assign collection roles below Workspace Admin authority; - create and manage API keys; - create and manage webhooks; - view logs and resend eligible webhook deliveries; and - work with all active collections. A Workspace Admin cannot manage billing, transfer ownership, appoint or remove another Workspace Admin, or change the Owner. ### Member Member is the base workspace role. A Member has no workspace-wide management rights. Their access comes from the collection roles assigned to them. ## Collection roles Collection roles can differ for each collection. ### Collection Admin Collection Admin can rename collections where they are Collection Admin. They can manage members for those collections and invite or update Editors and Viewers within that scope. They cannot create or delete collections, manage workspace settings, manage API keys or webhooks, view workspace logs, manage billing, or appoint Workspace Admins. ### Editor Editor can create, edit, move, and delete links in assigned collections. Editor can use shared tags, partners, and UTM options while editing assigned links. Editor cannot manage members, collections, API keys, webhooks, logs, or billing. ### Viewer Viewer can read assigned collection data, links, analytics, customers, and available reports. Viewer cannot create, edit, delete, or manage access. ### No access No access means that no collection role is assigned. The member can remain in the workspace but cannot read collection data or use collection features. ## Feature boundaries ### Workspace settings Only the Owner and Workspace Admin can open and update workspace settings. Only the Owner can transfer ownership or manage Workspace Admin roles. ### Collections The Owner and Workspace Admin can create, set the default, and delete collections. The Owner and Workspace Admin can rename any collection. Collection Admin can rename an assigned collection. Editor and Viewer cannot perform collection management operations. ### Members The Owner and Workspace Admin can manage workspace membership. Collection Admin can manage collection assignments within collections where they are an administrator. A Collection Admin cannot remove a person from the entire workspace. ### Shared libraries The Owner and Workspace Admin can manage tags, partners, and UTM templates. These libraries are workspace-wide. The Links page can show their option names to anyone with collection access, including Viewers, even when they cannot open the library management pages. Collection Admins and Editors can apply those options to links they can edit. ### Links and analytics Collection Admin and Editor can manage links in assigned collections. Viewer has read-only access. Owner and Workspace Admin have access across active collections. Analytics and customer views follow the same collection scope. A plan may limit a report, export, or analytics feature after the role check succeeds. ### API keys Only the Owner and Workspace Admin can view, create, update, and revoke workspace API keys. API key scopes control what an integration can do through the API. A key does not grant access to the dashboard, webhooks, logs, or billing. API keys belong to the workspace. Changing the creator's human role does not revoke a key. Revoke the key explicitly when its integration must stop. Treat every key as a password. Copy its secret when it is created, store it on the server, and revoke it when it is no longer needed. ### Webhooks and logs Only the Owner and Workspace Admin can manage workspace webhooks or open workspace logs. Webhooks require an eligible plan. Current product policy requires Business or above for webhook creation, verification, testing, and delivery. An Owner or Workspace Admin on an eligible plan can resend a `pending`, `failed`, or **Unconfirmed** delivery from the log row's **More options** menu when the endpoint is active. Hoko waits five minutes before allowing an Unconfirmed delivery to be resent. A pending delivery uses its existing first attempt. A failed delivery or an old Unconfirmed delivery adds a new attempt. Every resend keeps the original event ID. Delivery history remains available after an endpoint is disabled or deleted. A deleted endpoint cannot deliver or be resent. ### Billing Only the Owner can view billing controls, start checkout, change the subscription, open the billing portal, or manage invoices. A Workspace Admin can view operational workspace data but cannot change billing. ## Plan limits Role and plan checks both apply to protected features. A member with the required role can still see a plan restriction when the workspace plan does not include a feature. Plan restrictions do not grant access to a different role. Upgrading a plan does not grant access to workspace settings, integrations, logs, or billing. ## No-access states If you are an ordinary workspace member with no collection assignment, Hoko shows an explicit no-access state in Collections, Links, and Analytics and explains that a collection role is required. Owners and Workspace Admins see the normal empty or onboarding state when their workspace has no collections. If you are not a member of the workspace, Hoko does not reveal the workspace and returns a not-found response for protected resources. After a membership is removed or blocked, subsequent protected requests fail. Refresh the page and select another collection that you can access. ## Change access Open **Dashboard → Settings → Participants**. The Owner can update workspace roles. The Owner and Workspace Admin can update ordinary member collection roles. Collection Admin can update roles only within collections where they have Collection Admin access. Use the dedicated **Transfer ownership** action to move ownership. Do not try to transfer ownership by changing a collection role. ## Related help - [Participants](https://help.hoko.to/participants) explains invitations and collection assignments. - [Collections](https://help.hoko.to/collections) explains collection lifecycle. - [API keys](https://help.hoko.to/api-keys) explains scopes and key handling. - [Webhooks](https://help.hoko.to/webhooks) explains endpoint setup and delivery behavior. - [Logs](https://help.hoko.to/logs) explains activity history and delivery attempts. - [Billing](https://help.hoko.to/billing) explains subscription controls. --- ### API keys Create scoped Hoko API keys, choose permissions, rotate credentials, and keep server integrations secure. Canonical URL: https://help.hoko.to/api-keys Markdown URL: https://help.hoko.to/api-keys/README.md # API keys ## API key concept API keys allow programmatic access to your workspace data. ### Why it matters - Integrate with external tools. - Control access through scopes. ### How it connects - Each key has read and write scopes. - Keys are tied to the workspace. - Allowed hostnames can limit browser usage. > [!INFO] Treat API keys like passwords. For outbound notifications, see [Webhooks](https://help.hoko.to/webhooks). For recorded workspace activity, see [Logs](https://help.hoko.to/logs). These are separate workspace-manager dashboard features. Only the Owner and Workspace Admin can manage or view them. API key scopes do not grant dashboard access to either feature. ## Create an API key Create a key for integrations and automation. ### Where to find it - Dashboard → Integrations → API Keys ### Steps 1. Open API Keys. 2. Select New key. 3. Choose scopes. 4. Add allowed hostnames if needed. 5. Create and copy the key. ### Notes - You may only see the key value once. - Store it securely. ## API key scopes explained Scopes control what an API key can access. ### Scope types - Read: view data - Write: create or update data ### Best practice - Grant only the scopes you need. - Use separate keys per integration. ## Allowed hostnames configuration Limit browser usage by restricting where a key can be used. ### How it works - Hoko checks the Origin or Referer hostname when present. - Requests without those headers are not filtered by hostname. - Leave the list empty to allow any hostname. ### Examples - `example.com` - `api.example.com` - `*.example.com` ## Update API key settings Adjust the name, scopes, and allowed hostnames. ### Where to find it - Dashboard → Integrations → API Keys ### Steps 1. Open API Keys. 2. Select the key. 3. Update the fields. 4. Save changes. ## Revoke an API key Revoke a key to stop its access immediately. ### Where to find it - Dashboard → Integrations → API Keys ### Steps 1. Open API Keys. 2. Select the key. 3. Choose Revoke. 4. Confirm the action. > [!WARNING] Revoking a key will break integrations using it. ## Troubleshooting Use these fixes when API key actions fail. ### Failed to create API key - Check required scopes. - Retry after refreshing. ### Missing required scopes - Select at least one scope. ### Invalid API key - Verify you copied the full key. - Generate a new key if needed. - Check allowed hostnames when calling from a browser. ### Hostname blocked - Ensure the request Origin or Referer matches an allowed hostname. - Add the hostname to the allowlist and try again. ### API key revoked - Create a new key and update your integration. --- ### Webhooks Set up signed workspace webhooks, understand manager access, verify receivers, and inspect delivery results. Canonical URL: https://help.hoko.to/webhooks Markdown URL: https://help.hoko.to/webhooks/README.md # Webhooks ## What webhooks do Webhooks send signed HTTPS requests from Hoko to a server you control when a subscribed workspace action is recorded. Use them to notify your own integrations. [Logs](https://help.hoko.to/logs) show recorded activity even when no webhook is configured. ## Access and availability Open Dashboard → Integrations → Webhooks. The feature must be enabled in your deployment. Access requires an active account with the Owner or Workspace Admin role. The workspace must have an active collection. Blocked or removed memberships do not qualify. Webhooks cover the whole workspace, not just the selected collection. Business or above is required to create, verify, test, and receive webhooks. Use the dashboard for interactive webhook management. Programmatic actions are available only where the operation registry and the key's workspace scopes allow them; see the [webhook developer reference](https://docs.hoko.to/webhooks/introduction). Active webhook allowances per workspace are Business 10, Enterprise 20, and Elite 40. Free and Pro have no webhook allowance. Storage allows five additional replacement slots (15/25/45 total), including pending and disabled entries. Delete unused entries to free slots. After a downgrade, the oldest active webhooks within the new allowance remain eligible; excess configurations are preserved without delivery. On downgrade, sending is suspended but configuration and retained history remain accessible to the Owner and Workspace Admin. You can still disable or delete webhooks. Upgrading to an eligible plan allows active webhooks to receive new events again; disabled webhooks stay off until you verify and enable them. Missed events are not replayed, and already-sent requests cannot be recalled. ## Create and verify a webhook With data export access (Business or above), select visible webhooks and choose **Download selected**. The button shows the selection count. The JSON download includes their IDs, names, subscribed events, statuses, and creation/verification times. It excludes destinations, signing secrets, payloads, and delivery attempts. Search and filters limit which selected webhooks are included. 1. Prepare a public HTTPS receiver using the [developer guide](https://docs.hoko.to/webhooks/introduction) and its tested receiver example. 2. Select Create webhook, enter a webhook name and receiver URL, choose the events you need, and paste an existing `whsec_` signing secret or use the shuffle control to generate one. Leave the field blank and Hoko will generate one when you create the webhook. 3. Create the pending webhook. Copy its signing secret immediately and store it only in your receiver's server-side secret storage. It cannot be reopened. 4. Make the receiver verify the signature and return the exact challenge response for `endpoint.verification`, as described in the developer guide. 5. Select Verify webhook. Only a successfully verified, active webhook receives subscribed events. 6. Send a test and inspect its delivery result. A test is a real outbound request to your receiver; handle `endpoint.test` without triggering customer business actions. If you lose the secret, create a replacement webhook. Never paste secrets into support messages, browser code, analytics, or logs. ## Events and payloads Select events from the current resource/action catalog. Names use dots, with camelCase where a name needs multiple words: for example `link.destination.updated` and `apiKey.revoked`. Global `profile.*` activity is excluded from workspace subscriptions. Verification and test messages are operational messages, not subscription choices. Every subscribed workspace event uses the same thin payload: `id`, `type`, `created`, and `data` containing only the affected record `id` and `workspaceId`. This includes `lead.created` and `sale.created`; fetch record details through the relevant API when available. See the [payload contract](https://docs.hoko.to/webhooks/introduction). ## Delivery results and limits Delivery makes one immediate, best-effort attempt. Hoko does not retry automatically or guarantee ordering. A failed receiver does not undo an accepted change in Hoko. Bulk changes may exhaust the request's delivery budget and leave some deliveries pending. Immediate delivery supports the plan’s active webhook allowance, up to 40 webhooks. Owner and Workspace Admin actions allow 10 verification attempts per hour and 30 test sends per hour. Receiver requests are limited to 64 KiB with a three-second receiver budget; database work adds time. If rate limited, wait for the indicated retry interval. Delivery history is retained for the workspace lifetime, including after a webhook is deleted. Attempts do not consume tracked-event allowance; there is no monthly delivery quota or overage billing. Inspect results in Webhooks and related [Logs](https://help.hoko.to/logs). From a log row's **More options** menu, an Owner or Workspace Admin on an active Business or higher plan can resend a `pending`, `failed`, or **Unconfirmed** delivery. Hoko waits five minutes before allowing an Unconfirmed delivery to be resent. A pending delivery uses its existing first attempt; a failed or old Unconfirmed delivery adds a new attempt. Every send uses a new signature timestamp and keeps the original event ID. Unconfirmed means Hoko saved no terminal result, so the receiver may have received the earlier request. Your receiver must verify signatures and durably deduplicate event IDs before applying business effects. ### View delivery history The webhook side sheet shows the receiver URL and the 10 most recent delivery attempts. Choose **See all deliveries** from the webhook row's **More options** menu or from the side sheet to open the complete history for that webhook. The dedicated delivery page loads history in pages and lets you sort and filter the attempts without loading the entire history at once. ## Disable, replace, or delete a webhook Disabling stops new fan-out, but cannot recall a request already sent. To change the receiver URL, first disable the webhook, select **Change receiver URL**, save the new public HTTPS URL, and select **Verify webhook**. The webhook returns to pending verification while Hoko keeps its ID, delivery history, and signing secret. Hoko sends a fresh challenge to the new destination before activation. To re-enable a disabled webhook without changing its URL, select **Verify and enable**. To change the webhook name, subscribed events, or signing secret, create and verify a replacement, then disable the old webhook. If both are active, your receiver may receive the same event through both. Delete the old webhook only when you no longer need its configuration; deletion clears its destination and signing secret but keeps its delivery history. Select **Delete webhook** when you no longer need its configuration. Deletion hides the webhook from management, preserves its name and delivery history, and erases its signing material. The workspace activity log is separate; deleting a webhook does not erase ordinary log facts. Deleted webhooks cannot deliver or be resent. ## Troubleshooting - Missing tab or page: check the workspace, your Owner or Workspace Admin role, and whether the deployment has the feature enabled. An upgrade does not bypass these checks. If the page reports a plan suspension, Business or above is required for sending. - Verification fails: check the signing secret, exact raw request bytes, timestamp tolerance, and exact challenge response. - Destination rejected: use public HTTPS. Private/local addresses and redirects are not supported; never bypass receiver signature checks. - No event arrives: check the webhook is active, the event is selected, the action happened in this workspace, and the delivery result. Old activity is not sent retroactively. See [developer documentation](https://docs.hoko.to/webhooks/introduction) for signatures, schemas, and receiver security. --- ### Logs Browse workspace activity, filter by resource and action, and understand log access, privacy, and delivery states. Canonical URL: https://help.hoko.to/logs Markdown URL: https://help.hoko.to/logs/README.md # Logs ## What logs show Open Dashboard → Integrations → Logs to review recorded workspace activity: what happened, which record was affected, when it happened, and who performed the action. Logs are separate from click analytics and from your receiver's server logs. They do not require a configured webhook. ## Plan history windows Free shows 7 days, Pro 30 days, Business 90 days, Enterprise 180 days, and Elite 365 days. These are viewable activity-history windows, separate from analytics retention. Server-side filtering applies the window to every page and filter. Downgrades hide older entries without deleting them; upgrades reveal additional history only if it is still retained. Recording supported activity continues regardless of the viewing allowance. Logs do not consume tracked-click/event quota. ## Access and availability The feature must be enabled in your deployment. You need an active account with the Owner or Workspace Admin role. There must be at least one active collection; blocked or removed memberships do not count. Selecting a collection does not narrow the log to that collection: this is workspace-wide information. This view is available to workspace members with the required access. API clients can read only the log operations exposed by the current operation registry and their key scopes; see the [logs developer reference](https://docs.hoko.to/logs/introduction). ## Browse and filter 1. Select the workspace you want to inspect, then open Integrations → Logs. 2. Filter by resource, such as links or webhooks, and optionally by its associated action. Selecting a different resource resets the action filter. 3. Read the newest results first. Use the older-results control when another page is available; pages contain at most 50 entries. 4. Clear filters if no matching activity appears. No results can also mean no activity has been recorded yet. Action names use dots, for example `link.created`, `link.destination.updated`, or `webhook.disabled`. They describe recorded facts, not commands to execute. ## Fields and privacy Each log fact stores its own ID, workspace ID, affected record ID, action, actor ID, operation ID, and occurrence time. The actor identifies a human profile or API key; a null actor means a system action. An operation ID groups related changes, including bulk actions. Treat identifiers as sensitive business data. Logs do not store full records, before/after values, passwords, signing secrets, or arbitrary submitted form contents. They cannot reconstruct or restore a deleted record. Global account/profile activity is not exposed in this workspace view. ## Related webhook results Where present, entries show the associated webhook name, delivery state, and result category: - `pending`: no attempt has started. This is not a scheduled retry or a guarantee of future delivery. - **Unconfirmed** (`unknown`): an attempt was claimed, but no terminal result is recorded. The UI never treats it as success or failure, and Hoko cannot prove whether the receiver received it. - `succeeded`: the sender recorded a successful response, not proof that the receiver completed its business work. - `failed`: the sender recorded a failure. Inspect the category and fix the receiver. From a log row's **More options** menu, an Owner or Workspace Admin on an active Business or higher plan can resend a `pending`, **Unconfirmed**, or `failed` delivery. Hoko waits five minutes before allowing an Unconfirmed delivery to be resent. A pending delivery uses its existing first attempt; a failed or old Unconfirmed delivery adds a new attempt. Every send keeps the original event ID and uses a new signature timestamp. Your receiver must deduplicate the event ID because the earlier request may have reached it. If an endpoint is `disabled`, use **Verify and enable** on the Webhooks page to send a fresh challenge to its saved receiver with its saved signing secret. A successful challenge keeps the endpoint ID and delivery history, then changes the endpoint to `active`. Delivery stays off until the challenge succeeds. Deleting an endpoint clears its receiver and signing secret, so it cannot be re-enabled. No delivery shown does not mean the action failed. There may have been no eligible subscription or publication may have been disabled. A log can exist without any webhook delivery. Read [Webhooks](https://help.hoko.to/webhooks) for testing and troubleshooting. ## History limitations Logs show facts actually recorded by enabled application flows. They are not a retroactive history of all existing records, a database backup, or a guarantee that every external or direct database change is captured. A failed transaction does not leave a successful-change log. With data export access (Business or above), select visible rows and choose **Download selected**. The button shows the selection count. The JSON download contains log IDs, timestamps, actions, record IDs, actor IDs, and operation IDs from the current page only, not hidden history or delivery details. Treat downloaded identifiers as sensitive. Logs do not provide edit or delete controls. Use a delivery row's **More options** menu to resend an eligible webhook delivery. Delivery history is retained for the workspace lifetime, including after endpoint deletion. Deleted endpoints cannot deliver or be resent; workspace deletion can remove associated logs. If access is denied, check that you are the workspace Owner or Workspace Admin and that the deployment enables logs. Buying a different plan does not bypass those checks. See the [technical log reference](https://docs.hoko.to/logs/introduction). --- ### Billing Understand Hoko plans, subscription changes, billing status, usage limits, and account billing workflows. Canonical URL: https://help.hoko.to/billing Markdown URL: https://help.hoko.to/billing/README.md # Billing ## Current plan View your current plan and usage limits. ### Where to check - Dashboard → Settings → Subscription ### What you will see - Plan name - Usage counters - Billing status ## Usage limits explained Usage limits define how many resources you can use per cycle. ### Typical limits - Links - Events - Collections - Tags - Users ### Cycle reset Usage resets every billing cycle. You can track the cycle dates in the usage panel. ## Upgrade a plan Upgrade to increase limits and access more features. ### Where to find it - Dashboard → Settings → Subscription ### Steps 1. Open the Subscription page. 2. Choose a higher plan. 3. Complete checkout. ## Downgrade a plan Downgrade if you no longer need higher limits. ### Where to find it - Dashboard → Settings → Subscription ### Steps 1. Open the Subscription page. 2. Choose a lower plan. 3. Confirm the change. > [!WARNING] If your usage exceeds the new limits, some actions may be blocked. ## Troubleshooting Use these fixes when billing updates fail. ### Checkout failed - Verify payment details. - Try again with a different card. ### Plan not updated - Refresh the page. - Wait a few minutes and retry. ### Limits not refreshed - Sign out and sign in again. - Contact support if it persists. --- ### Storage Manage files stored in Hoko, understand upload limits, and troubleshoot storage access and cleanup. Canonical URL: https://help.hoko.to/storage Markdown URL: https://help.hoko.to/storage/README.md # Storage ## Image upload flow Images are uploaded in a secure flow that uses signed URLs. ### Upload steps 1. The client hashes the image with SHA256. 2. The server issues a signed upload URL. 3. The image is uploaded to the avatar bucket. 4. The server stores the hash file name in the database. ## Image hashing rules Hashing ensures consistent storage and naming. ### Hash requirements - SHA256 hash of the file contents. - File name is hash.png. - Bucket is avatar. ### Folder rules - Profile images use folder {profileId}. - Workspace images use folder {workspaceId}. ## Avatar URL behavior Image URLs are built on the server and sent to the client. ### How URLs are built - The database stores only hash.png. - The server builds /storage/avatar/{folderId}/hash.png. ### Fallbacks - If an image fails to load, initials are shown. - If no image is set, initials are used by default. ## Troubleshooting Use these fixes when image uploads fail. ### Failed to generate upload URL - Retry the upload. - Check that the file hash is valid. ### Storage resource not found - Confirm the bucket name is avatar. - Ensure the folder ID matches the profile or workspace ID. ### Upload rejected - Use PNG, JPG, or SVG. - Keep the file under 2 MB. ### Image not visible - Refresh the page. - Check that the image URL is reachable. --- ### Security Protect your Hoko account, API keys, workspace access, and sensitive link workflows with practical controls. Canonical URL: https://help.hoko.to/security Markdown URL: https://help.hoko.to/security/README.md # Security ## Session lifecycle Sessions keep you signed in across visits. ### Session behavior - Sessions are stored in cookies. - Tokens refresh automatically when possible. - Signing out clears the session. ## Cookie workspace selection Your active workspace and collection are stored in cookies. ### What is stored - currentWorkspaceId - currentCollectionId ### How it is used - Restores your last selection on next visit. - Falls back to default collection if needed. ## Access removal behavior When access changes, subsequent protected requests use your updated permissions. ### What happens - Collections you no longer access disappear after refresh. - The system selects another accessible collection when one exists. - If your workspace membership is removed, switch to another workspace you can access. ## Troubleshooting Use these fixes when security-related access issues occur. ### Session invalid - Sign in again. - Clear cookies if the issue persists. ### Access revoked - Contact a workspace owner to restore access. - Check your invite status. ### Workspace not accessible - Switch to another workspace. - Sign out and back in. --- ### ChatGPT Use Hoko links with ChatGPT and follow this guide. Canonical URL: https://help.hoko.to/apps/chatgpt Markdown URL: https://help.hoko.to/apps/chatgpt/README.md # Use Hoko with ChatGPT Connect ChatGPT through its private OAuth connector flow. ## Before you start You need an existing approved ChatGPT account and permission to add a private custom connector. The ChatGPT host must show an approved Hoko connector configuration or registration form. Hoko OAuth lets you choose a workspace in the browser. You do not copy a workspace ID. ## Connect ChatGPT 1. Open Hoko Apps and open the ChatGPT card. 2. In ChatGPT, add a custom remote MCP connector. 3. Enter https://mcp.hoko.to. 4. Keep the callback, PKCE, and client settings shown by the host. 5. Sign in to Hoko when the browser opens. 6. Choose the workspace to use. 7. Review the requested scopes and approve access. 8. Return to ChatGPT and run a read-only link listing. ## Verify the connection The connector should show Connected, and the listing should return links from the selected workspace. ## Fix common issues Use the callback supplied by ChatGPT. Do not guess one. If the connector cannot load, remove it and start again with the HTTPS MCP URL. Organization policies may block private connectors. ## Disconnect Disconnect Hoko in ChatGPT. Then open Connections in Hoko Apps and remove the grant. [Open Apps](https://dash.hoko.to/integrations/apps) · [Technical reference](https://docs.hoko.to/integrations/apps#chatgpt) · [All app guides](https://help.hoko.to/apps) --- ### Claude Use Hoko links with Claude and follow this guide. Canonical URL: https://help.hoko.to/apps/claude Markdown URL: https://help.hoko.to/apps/claude/README.md # Use Hoko with Claude Connect Claude through its private OAuth connector flow. ## Before you start You need an existing approved Claude account and permission to add a private custom connector. Your Claude organization may also need to approve custom connectors. The host must show an approved Hoko connector configuration or registration form. Hoko OAuth lets you choose a workspace in the browser. You do not copy a workspace ID. ## Connect Claude 1. Open Hoko Apps and open the Claude card. 2. In Claude, add a custom remote MCP connector. 3. Enter https://mcp.hoko.to. 4. Keep the callback, PKCE, and client settings shown by the host. 5. Sign in to Hoko when the browser opens. 6. Choose the workspace to use. 7. Review the requested scopes and approve access. 8. Return to Claude and run a read-only link listing. ## Verify the connection The connector should show Connected, and the listing should return links from the selected workspace. ## Fix common issues Use the callback supplied by Claude. Do not guess one. If the connector cannot load, remove it and start again with the HTTPS MCP URL. Organization policies may block private connectors. ## Disconnect Disconnect Hoko in Claude. Then open Connections in Hoko Apps and remove the grant. [Open Apps](https://dash.hoko.to/integrations/apps) · [Technical reference](https://docs.hoko.to/integrations/apps#claude) · [All app guides](https://help.hoko.to/apps) --- ### Claude Code Use Hoko links with Claude Code and follow this guide. Canonical URL: https://help.hoko.to/apps/claude-code Markdown URL: https://help.hoko.to/apps/claude-code/README.md # Use Hoko with Claude Code Connect Claude Code through its remote MCP server. ## Before you start Create a scoped API key in Dashboard > Integrations > API Keys. Keep it in the host's secret store and never commit it. ## Configure Claude Code Add the Hoko MCP server at https://mcp.hoko.to with Authorization Bearer ``. Reload the host after saving. ## Verify the connection Run a read-only links operation and confirm the selected workspace before any write. ## Fix common issues - A 401 means an invalid key. - A 403 means a missing scope. - A 429 requires waiting for Retry-After. - Check the host's current MCP settings when support varies by release. ## Disconnect Remove Hoko from Claude Code and revoke the key. ## Add it from the terminal Create the key in Dashboard > Integrations > API Keys, export it in your shell, then run: claude mcp add --transport http hoko https://mcp.hoko.to --header "Authorization: Bearer " Run claude mcp list to confirm the server. Do not put the expanded key in shell history or committed settings. [Open Apps](https://dash.hoko.to/integrations/apps) · [Technical reference](https://docs.hoko.to/integrations/apps#claude-code) · [All app guides](https://help.hoko.to/apps) --- ### Cursor Use Hoko links with Cursor and follow this guide. Canonical URL: https://help.hoko.to/apps/cursor Markdown URL: https://help.hoko.to/apps/cursor/README.md # Use Hoko with Cursor Connect Cursor through its remote MCP server. ## Before you start Create a scoped API key in Dashboard > Integrations > API Keys. Keep it in the host's secret store and never commit it. ## Configure Cursor Add the Hoko MCP server at https://mcp.hoko.to with Authorization Bearer ``. Reload the host after saving. ## Verify the connection Run a read-only links operation and confirm the selected workspace before any write. ## Fix common issues - A 401 means an invalid key. - A 403 means a missing scope. - A 429 requires waiting for Retry-After. - Check the host's current MCP settings when support varies by release. ## Disconnect Remove Hoko from Cursor and revoke the key. ## Add it from project settings Create .cursor/mcp.json and add this entry. Cursor reads the key from the environment-backed header: ```json { "mcpServers": { "hoko": { "url": "https://mcp.hoko.to", "headers": { "Authorization": "Bearer ${env:HOKO_API_KEY}" } } } } ``` Reload MCP and run a read-only links operation. [Open Apps](https://dash.hoko.to/integrations/apps) · [Technical reference](https://docs.hoko.to/integrations/apps#cursor) · [All app guides](https://help.hoko.to/apps) --- ### VS Code Use Hoko links with VS Code and follow this guide. Canonical URL: https://help.hoko.to/apps/vscode Markdown URL: https://help.hoko.to/apps/vscode/README.md # Use Hoko with VS Code Connect VS Code through its HTTP MCP server. ## Before you start Create a scoped API key in Dashboard > Integrations > API Keys. Keep it in the host's secret store and never commit it. ## Configure VS Code Add the Hoko MCP server at https://mcp.hoko.to with Authorization Bearer ``. Reload the host after saving. ## Verify the connection Run a read-only links operation and confirm the selected workspace before any write. ## Fix common issues - A 401 means an invalid key. - A 403 means a missing scope. - A 429 requires waiting for Retry-After. - Check the host's current MCP settings when support varies by release. ## Disconnect Remove Hoko from VS Code and revoke the key. ## Add it from the Command Palette Run MCP: Add Server, choose HTTP, enter https://mcp.hoko.to, and save the key in the password input. The equivalent .vscode/mcp.json entry is: ```json { "servers": { "hoko": { "type": "http", "url": "https://mcp.hoko.to", "headers": { "Authorization": "Bearer ${input:hoko-api-key}" } } }, "inputs": [{ "type": "promptString", "id": "hoko-api-key", "description": "Hoko API key", "password": true }] } ``` [Open Apps](https://dash.hoko.to/integrations/apps) · [Technical reference](https://docs.hoko.to/integrations/apps#vscode) · [All app guides](https://help.hoko.to/apps) --- ### GitHub Copilot Use Hoko links with GitHub Copilot and follow this guide. Canonical URL: https://help.hoko.to/apps/copilot Markdown URL: https://help.hoko.to/apps/copilot/README.md # Use Hoko with GitHub Copilot Connect GitHub Copilot through its remote MCP server. ## Before you start Create a scoped API key in Dashboard > Integrations > API Keys. Keep it in the host's secret store and never commit it. ## Configure GitHub Copilot Add the Hoko MCP server at https://mcp.hoko.to with Authorization Bearer ``. Reload the host after saving. ## Verify the connection Run a read-only links operation and confirm the selected workspace before any write. ## Fix common issues - A 401 means an invalid key. - A 403 means a missing scope. - A 429 requires waiting for Retry-After. - Check the host's current MCP settings when support varies by release. ## Disconnect Remove Hoko from GitHub Copilot and revoke the key. ## Add it from Copilot CLI Run copilot, then add the remote HTTP server: copilot mcp add --transport http --header "Authorization: Bearer " hoko https://mcp.hoko.to Run /mcp list to confirm the server. GitHub or organization policy may hide MCP. [Open Apps](https://dash.hoko.to/integrations/apps) · [Technical reference](https://docs.hoko.to/integrations/apps#copilot) · [All app guides](https://help.hoko.to/apps) --- ### Gemini CLI Use Hoko links with Gemini CLI and follow this guide. Canonical URL: https://help.hoko.to/apps/gemini-cli Markdown URL: https://help.hoko.to/apps/gemini-cli/README.md # Use Hoko with Gemini CLI Connect Gemini CLI to Hoko with a bearer API key. ## Before you start This path needs Gemini CLI access that permits remote MCP servers, such as Standard, Enterprise, or paid API-key access. Consumer and free access may not expose this feature. ## Configure the server Create a scoped key in Dashboard > Integrations > API Keys. Add https://mcp.hoko.to as a remote MCP server and set its secret-backed Authorization header to Bearer ``. Keep the key outside version control. ## Verify the connection Run a read-only links operation. Confirm the workspace before using a write operation. ## Fix common issues If remote MCP is unavailable, your Gemini access tier or organization policy may not allow it. - A 401 means an invalid key. - A 403 means a missing scope. - A 429 requires waiting for Retry-After. ## Disconnect Remove Hoko from Gemini CLI and revoke the key. ## Add it to Gemini settings Add this server to your user settings file, usually ~/.gemini/settings.json. Gemini documents the httpUrl and literal header fields: ```json { "mcpServers": { "hoko": { "httpUrl": "https://mcp.hoko.to", "headers": { "Authorization": "Bearer " } } } } ``` Keep the file private, then run gemini and inspect MCP status. [Open Apps](https://dash.hoko.to/integrations/apps) · [Technical reference](https://docs.hoko.to/integrations/apps#gemini-cli) · [All app guides](https://help.hoko.to/apps) --- ### Windsurf Use Hoko links with Windsurf and follow this guide. Canonical URL: https://help.hoko.to/apps/windsurf Markdown URL: https://help.hoko.to/apps/windsurf/README.md # Use Hoko with Windsurf Connect Windsurf through its manual remote MCP setup. ## Before you start Create a scoped API key in Dashboard > Integrations > API Keys. Keep it in the host's secret store and never commit it. ## Configure Windsurf Add the Hoko MCP server at https://mcp.hoko.to with Authorization Bearer ``. Reload the host after saving. ## Verify the connection Run a read-only links operation and confirm the selected workspace before any write. ## Fix common issues - A 401 means an invalid key. - A 403 means a missing scope. - A 429 requires waiting for Retry-After. - Check the host's current MCP settings when support varies by release. ## Disconnect Remove Hoko from Windsurf and revoke the key. ## Add it to Windsurf Open Windsurf MCP settings and add a remote server. Its documented fields are: ```json { "mcpServers": { "hoko": { "serverUrl": "https://mcp.hoko.to", "headers": { "Authorization": "Bearer ${env:HOKO_API_KEY}" } } } } ``` The usual file is ~/.codeium/windsurf/mcp_config.json. Hoko has not verified a Windsurf host round trip. [Open Apps](https://dash.hoko.to/integrations/apps) · [Technical reference](https://docs.hoko.to/integrations/apps#windsurf) · [All app guides](https://help.hoko.to/apps) --- ### Zapier Use Hoko links with Zapier and follow this guide. Canonical URL: https://help.hoko.to/apps/zapier Markdown URL: https://help.hoko.to/apps/zapier/README.md # Use Hoko with Zapier Use Zapier's MCP connection or its private app path. ## Before you start Create a key with the scopes your actions need. The private app and trigger path remain manual provider setup. They are not a public Zapier listing. ## Connect Zapier For MCP, add https://mcp.hoko.to and store the bearer key in Zapier's secure connection field. For REST, use https://api.hoko.to. Resolve a collection with GET /collections, create with POST /links, and find with GET /links?externalId=.... ## Verify the connection Read collections or links first. Save each external ID and reconcile an uncertain create once before any retry. ## Fix common issues - Treat 401 as an invalid key. - Treat 403 as a missing scope. - Treat 429 as a rate limit. - Honor Retry-After. Keep secrets out of Zap steps and logs. ## Disconnect Remove the connection or private app credential and revoke the Hoko key. ## Choose the path Use Zapier MCP when your account shows the MCP connection option. Use Zapier Interfaces or the private app editor for the reviewed private app path. Use the REST action URL https://api.hoko.to only in an HTTP step, with the bearer key in Zapier’s secure connection. The Hoko private app is not a public marketplace listing. [Open Apps](https://dash.hoko.to/integrations/apps) · [Technical reference](https://docs.hoko.to/integrations/apps#zapier) · [All app guides](https://help.hoko.to/apps) --- ### n8n Use Hoko links with n8n and follow this guide. Canonical URL: https://help.hoko.to/apps/n8n Markdown URL: https://help.hoko.to/apps/n8n/README.md # Use Hoko with n8n Connect n8n through MCP, REST, or the private Hoko node. ## Before you start The private node targets self-hosted n8n 2.42.x with Node.js 24. n8n Cloud is not verified. Create a key with linksRead and linksWrite as needed. ## Connect n8n Store the key in an n8n Hoko credential. For MCP, use https://mcp.hoko.to with a bearer header. For REST, use https://api.hoko.to, GET /collections, POST /links, and GET /links?externalId=.... ## Verify the connection Run a credential test or list links before creating anything. Keep Retry On Fail off for creates. Reconcile an uncertain create by external ID. ## Fix common issues - A 401 means the key is invalid or revoked. - A 403 means a scope is missing. - A 429 requires Retry-After. - Keep the key in n8n's encrypted store. ## Disconnect Disable workflows, remove the credential and node, and revoke the key. ## Choose the path Use the MCP Client node with https://mcp.hoko.to when you need the shared MCP tools. Use HTTP Request with https://api.hoko.to for direct REST. The private node is a self-hosted package path for n8n 2.42.x and Node.js 24. n8n Cloud is not verified. [Open Apps](https://dash.hoko.to/integrations/apps) · [Technical reference](https://docs.hoko.to/integrations/apps#n8n) · [All app guides](https://help.hoko.to/apps) --- ### Make Use Hoko links with Make and follow this guide. Canonical URL: https://help.hoko.to/apps/make Markdown URL: https://help.hoko.to/apps/make/README.md # Use Hoko with Make Use Make's HTTP module or its private Hoko app definition. ## Before you start Create a key with the scopes your modules need. Private app import and signed triggers need Make custom-app access. They are not a public marketplace listing. ## Connect Make For REST, use the HTTP module with https://api.hoko.to. Resolve a collection with GET /collections, create with POST /links, and find with GET /links?externalId=.... Send the key as a bearer header. Use https://mcp.hoko.to only if your Make account exposes an MCP client module. ## Verify the connection Run a collection read first. Save each external ID and reconcile an uncertain create before retrying. Use a customer-owned HTTPS relay for signed events because Make does not preserve Hoko's raw signed bytes. ## Fix common issues - Treat 401 as an invalid key. - Treat 403 as a missing scope. - Treat 429 as a rate limit. - Honor Retry-After. ## Disconnect Remove the connection, scenario, and webhook, then revoke the Hoko key. ## Build the first module In Make, create an HTTP Make a request module. Set the URL to https://api.hoko.to/collections, add Authorization as a bearer header, and run the read. Use the returned collection ID in a second POST https://api.hoko.to/links module. Save the external ID before any write. The private app definition and signed trigger require custom-app access. [Open Apps](https://dash.hoko.to/integrations/apps) · [Technical reference](https://docs.hoko.to/integrations/apps#make) · [All app guides](https://help.hoko.to/apps) --- ### Custom MCP Use Hoko links with Custom MCP and follow this guide. Canonical URL: https://help.hoko.to/apps/custom-mcp Markdown URL: https://help.hoko.to/apps/custom-mcp/README.md # Use Hoko with custom MCP client Connect custom MCP client through its Streamable HTTP. ## Before you start Create a scoped API key in Dashboard > Integrations > API Keys. Keep it in the host's secret store and never commit it. ## Configure the server In the client Add server form, choose Streamable HTTP, enter https://mcp.hoko.to, and add Authorization: Bearer ``. Run initialization and a read-only links tool. If the client supports only OAuth, use its own registration flow. [Open Apps](https://dash.hoko.to/integrations/apps) · [Technical reference](https://docs.hoko.to/integrations/apps#custom-mcp) · [All app guides](https://help.hoko.to/apps) --- ### Custom API Use Hoko links with Custom API and follow this guide. Canonical URL: https://help.hoko.to/apps/custom-api Markdown URL: https://help.hoko.to/apps/custom-api/README.md # Use Hoko with a custom API client Call Hoko's unversioned REST resources from your application. ## Before you start Create a scoped key in Dashboard > Integrations > API Keys. Keep it in your server secret store. Use https://api.hoko.to. ## Make your first request Send the bearer key and read collections with GET https://api.hoko.to/collections. Use a returned collection ID with POST /links. Find a link with GET /links?externalId=... and send a unique request ID. ## Verify the connection Start with a read. Confirm the workspace and scopes. Save an external ID before a write. If a response is uncertain, read that external ID once and stop if the result is empty or ambiguous. ## Fix common issues - Use 401 for an invalid key. - Use 403 for a missing scope. - Use 429 for a rate limit. - Honor Retry-After. Never retry an uncertain create blindly. ## Disconnect Remove the key from your secret store and revoke it in Hoko. See the custom API reference at https://docs.hoko.to/custom-api. [Open Apps](https://dash.hoko.to/integrations/apps) · [Technical reference](https://docs.hoko.to/integrations/apps#custom-api) · [All app guides](https://help.hoko.to/apps) --- ### Power Automate Use Hoko links with Power Automate and follow this guide. Canonical URL: https://help.hoko.to/apps/power-automate Markdown URL: https://help.hoko.to/apps/power-automate/README.md # Use Hoko with Power Automate Use a customer-owned Power Automate flow as a relay to Hoko’s REST API. The current recipe is actions-only and calls unversioned `POST /links` and `GET /links?externalId=...`; it does not require a job runner. 1. Create a workspace-scoped Hoko API key and keep it in Power Automate’s secure connection settings. 2. Import Hoko’s [OpenAPI definition](https://docs.hoko.to/integrations/power-platform/apiDefinition.swagger.json) as a custom connector and configure the secure `X-API-Key` connection. Never put the key in flow text. 3. Create a flow that calls `POST /links` with the destination and required parameters. 4. Store an `externalId` from your business record. If a call times out, call `GET /links?externalId=...` before retrying. 5. Run one controlled record and inspect the returned Hoko link. Keep the retry policy None while validating. The create body is an array, even for one link: ```json [ { "url": "https://example.com/product", "collectionId": "", "externalId": "product-42" } ] ``` Disable or delete the flow, remove the connector connection, and revoke the API key when finished. · [technical recipe](https://docs.hoko.to/integrations/power-platform) [Open Apps](https://dash.hoko.to/integrations/apps) · [Technical reference](https://docs.hoko.to/integrations/apps#power-automate) · [All app guides](https://help.hoko.to/apps) --- ### Shopify Use Hoko links with Shopify and follow this guide. Canonical URL: https://help.hoko.to/apps/shopify Markdown URL: https://help.hoko.to/apps/shopify/README.md # Use Hoko with Shopify The Apps page lists Shopify for a native product connection. You need a Shopify Partner app, an approved callback, and a store owner who can install it. ## Steps 1. In Dashboard, open Integrations → Apps and select Shopify. 2. If Connect is available, enter the shop domain and follow Shopify consent. If it is unavailable, [Create a Hoko link](https://help.hoko.to/links#create-a-link) using the product URL, and copy the Hoko short URL into your Shopify product or campaign. 3. Open the short URL once and confirm the click in Analytics. If Connect returns an error, check the exact callback, shop domain, and requested scopes. Use a draft product before publishing. Remove a connected grant from Integrations → Apps → Connections → Manage. Read the [technical guide](https://docs.hoko.to/integrations/commerce#shopify) for provider fields and API details. [Open Apps](https://dash.hoko.to/integrations/apps) · [Technical reference](https://docs.hoko.to/integrations/apps#shopify) · [All app guides](https://help.hoko.to/apps) --- ### Salla Use Hoko links with Salla and follow this guide. Canonical URL: https://help.hoko.to/apps/salla Markdown URL: https://help.hoko.to/apps/salla/README.md # Use Hoko with Salla Salla can connect a merchant store when the Salla app and callback have been approved. Otherwise, use a Hoko product link in the store campaign. ## Steps 1. Open Dashboard → Integrations → Apps → Salla. 2. For an available connection, follow the Salla consent page and choose the store. Keep client and webhook secrets in the provider connection. 3. If connection is not available, [Create a Hoko link](https://help.hoko.to/links#create-a-link) using the product URL, and paste the resulting short URL into a Salla campaign or product description. 4. Open the link and check Analytics for the click. Check store-owner consent, callback, and token status when connection fails. Remove access from Connections → Manage, then uninstall Hoko in Salla. Read the [technical guide](https://docs.hoko.to/integrations/commerce#salla) for provider fields and API details. [Open Apps](https://dash.hoko.to/integrations/apps) · [Technical reference](https://docs.hoko.to/integrations/apps#salla) · [All app guides](https://help.hoko.to/apps) --- ### Zid Use Hoko links with Zid and follow this guide. Canonical URL: https://help.hoko.to/apps/zid Markdown URL: https://help.hoko.to/apps/zid/README.md # Use Hoko with Zid Zid connection requires an approved partner app and store-owner consent. A manual Hoko link works without that approval. ## Steps 1. Open Dashboard → Integrations → Apps → Zid. 2. If setup is enabled, follow OAuth and select the store. Hoko handles the authorization and manager tokens. 3. Otherwise [Create a Hoko link](https://help.hoko.to/links#create-a-link) with the product page as the destination, then paste the short URL into the Zid product or campaign. 4. Open the URL and confirm the click in Analytics. Check the selected store and authorization when a lookup fails. Disconnect from Connections → Manage and revoke the app in Zid. Read the [technical guide](https://docs.hoko.to/integrations/commerce#zid) for provider fields and API details. [Open Apps](https://dash.hoko.to/integrations/apps) · [Technical reference](https://docs.hoko.to/integrations/apps#zid) · [All app guides](https://help.hoko.to/apps) --- ### WooCommerce Use Hoko links with WooCommerce and follow this guide. Canonical URL: https://help.hoko.to/apps/woocommerce Markdown URL: https://help.hoko.to/apps/woocommerce/README.md # Use Hoko with WooCommerce The Apps page accepts a WooCommerce store URL, consumer key, and consumer secret. Use the form only with credentials created by that store administrator. ## Steps 1. Open Dashboard → Integrations → Apps → WooCommerce. 2. Select Set up connection and enter Store URL, Consumer key, and Consumer secret. Submit the form. 3. When connected, open **Connections → Manage → Create product link**. Enter the store’s **Product ID**, choose a **Collection**, and create the link. 4. Open the link and confirm the click in Analytics. - A 401 means the store URL or REST-key permissions are wrong. - Use the store HTTPS URL and read/write keys. - A webhook error means the provider webhook secret or topic needs correction. - Disconnect in Connections → Manage, revoke the REST keys in WooCommerce, and remove test webhooks. Read the [technical guide](https://docs.hoko.to/integrations/commerce#woocommerce) for provider fields and API details. [Open Apps](https://dash.hoko.to/integrations/apps) · [Technical reference](https://docs.hoko.to/integrations/apps#woocommerce) · [All app guides](https://help.hoko.to/apps) --- ### BigCommerce Use Hoko links with BigCommerce and follow this guide. Canonical URL: https://help.hoko.to/apps/bigcommerce Markdown URL: https://help.hoko.to/apps/bigcommerce/README.md # Use Hoko with BigCommerce Use your store credentials when BigCommerce setup is enabled in Hoko. OAuth installation is also available only when your Hoko deployment has an approved BigCommerce app. ## Connect a store 1. Open **Dashboard → Integrations → Apps → BigCommerce**. 2. If credential setup is offered, enter **Store hash** and **Access token** supplied by the store administrator. If OAuth is offered, approve the displayed store access instead. 3. Open **Connections → Manage → Create product link**. Enter **Product ID**, choose a **Collection**, and create the link. 4. Open the short URL and confirm that it reaches the right product. Check the click in Analytics. If no connection option is available, create a link in **Links → Create** with the BigCommerce product page as its destination. Copy the short URL into your campaign or product content. ## Fix or disconnect Check the store hash, token permissions, and selected product after an error. Remove access from **Connections → Manage** when finished, then revoke the token or uninstall the app in BigCommerce. [Developer reference](https://docs.hoko.to/integrations/commerce#bigcommerce) [Open Apps](https://dash.hoko.to/integrations/apps) · [Technical reference](https://docs.hoko.to/integrations/apps#bigcommerce) · [All app guides](https://help.hoko.to/apps) --- ### Adobe Commerce Use Hoko links with Adobe Commerce and follow this guide. Canonical URL: https://help.hoko.to/apps/adobe-commerce Markdown URL: https://help.hoko.to/apps/adobe-commerce/README.md # Use Hoko with Adobe Commerce A store administrator must prepare an Adobe Commerce integration before entering its credentials in Hoko. Use the supported setup shown by your Hoko deployment. ## Connect a store 1. Open **Dashboard → Integrations → Apps → Adobe Commerce**. 2. If credential setup is available, enter **Base URL**, **Consumer key**, **Consumer secret**, **Access token**, and **Access token secret** from the store administrator. 3. Open **Connections → Manage → Create product link**. Enter **Product ID**, choose a **Collection**, and create the link. 4. Open the short URL and check the destination and Analytics. If setup is unavailable, use **Links → Create** to shorten the product page URL, then paste the result into a campaign or product content. This manual path does not need a store connection. ## Fix or disconnect Check the base URL, integration permissions, token pair, and system clock if a signed request fails. Remove access in **Connections → Manage** and revoke the store integration when you stop using it. Never share OAuth secrets in chat. [Developer reference](https://docs.hoko.to/integrations/commerce#adobe-commerce) [Open Apps](https://dash.hoko.to/integrations/apps) · [Technical reference](https://docs.hoko.to/integrations/apps#adobe-commerce) · [All app guides](https://help.hoko.to/apps) --- ### Buffer Use Hoko links with Buffer and follow this guide. Canonical URL: https://help.hoko.to/apps/buffer Markdown URL: https://help.hoko.to/apps/buffer/README.md # Use Hoko with Buffer Buffer is a customer-owned draft workflow. Hoko creates the link; Buffer stores the URL in a draft post. ## Steps 1. [Create a Hoko link](https://help.hoko.to/links#create-a-link). Enter the destination and save it. 2. Copy the short URL. In Buffer, choose the organization and channel, then paste the URL once into the post text or link field. Save as a draft. 3. Open the URL and confirm the click in Hoko Analytics before scheduling. - Keep the Buffer key in Buffer or your secret manager. - A 429 means wait for the provider retry window. - If Buffer reports an uncertain result, check the draft before creating another one. - Delete the draft in Buffer after review. - Read the [Buffer recipe](https://docs.hoko.to/integrations/social-cms#buffer). [Open Apps](https://dash.hoko.to/integrations/apps) · [Technical reference](https://docs.hoko.to/integrations/apps#buffer) · [All app guides](https://help.hoko.to/apps) --- ### Sprout Social Use Hoko links with Sprout Social and follow this guide. Canonical URL: https://help.hoko.to/apps/sprout-social Markdown URL: https://help.hoko.to/apps/sprout-social/README.md # Use Hoko with Sprout Social Sprout Social uses a customer-owned publishing workflow. Hoko supplies the link; Sprout holds the draft. ## Steps 1. [Create a Hoko link](https://help.hoko.to/links#create-a-link). Copy its short URL. 2. In Sprout Social, choose the approved group and profile, paste the URL once into a draft, and save it. 3. Open the link and confirm the click in Hoko Analytics. Publish only after reviewing the draft. - Publishing API access depends on the Sprout account. - A 401 means the grant or plan lacks access. - A 403 means the grant or plan lacks access. - A 429 means wait before retrying. - Do not create a second draft after an uncertain response. - Revoke the provider grant and remove the draft when finished. - Read the [Sprout recipe](https://docs.hoko.to/integrations/social-cms#sprout-social). [Open Apps](https://dash.hoko.to/integrations/apps) · [Technical reference](https://docs.hoko.to/integrations/apps#sprout-social) · [All app guides](https://help.hoko.to/apps) --- ### Publer Use Hoko links with Publer and follow this guide. Canonical URL: https://help.hoko.to/apps/publer Markdown URL: https://help.hoko.to/apps/publer/README.md # Use Hoko with Publer Publer is a customer-owned URL workflow. Hoko supplies a short URL and Publer saves the post or schedule. ## Steps 1. [Create a Hoko link](https://help.hoko.to/links#create-a-link). Save the destination link. 2. Copy the short URL. In Publer, choose the workspace, network, and account, then create a link post with the URL once. Use draft mode unless you have approved a schedule. 3. Open the URL and confirm the click in Analytics. Business API access may be required for automated recipes. Keep the bearer key private. If a job is accepted, wait for its result and check the post before retrying. Remove the draft or schedule in Publer after review. Read the [Publer recipe](https://docs.hoko.to/integrations/social-cms#publer). [Open Apps](https://dash.hoko.to/integrations/apps) · [Technical reference](https://docs.hoko.to/integrations/apps#publer) · [All app guides](https://help.hoko.to/apps) --- ### Metricool Use Hoko links with Metricool and follow this guide. Canonical URL: https://help.hoko.to/apps/metricool Markdown URL: https://help.hoko.to/apps/metricool/README.md # Use Hoko with Metricool Metricool is a customer-owned draft workflow. Hoko supplies the URL and Metricool stores a draft for the selected brand and network. ## Steps 1. [Create a Hoko link](https://help.hoko.to/links#create-a-link). Save it. 2. Copy the short URL. In Metricool, choose the brand and network, paste the URL into a draft, and save it. 3. Open the link and confirm the click in Analytics. - API access depends on the Metricool plan and connected network. - A 429 means wait and retry once allowed. - If the account or brand does not match, choose the mapped brand before creating the draft. - Delete the draft after review. - Read the [Metricool recipe](https://docs.hoko.to/integrations/social-cms#metricool). [Open Apps](https://dash.hoko.to/integrations/apps) · [Technical reference](https://docs.hoko.to/integrations/apps#metricool) · [All app guides](https://help.hoko.to/apps) --- ### SocialPilot Use Hoko links with SocialPilot and follow this guide. Canonical URL: https://help.hoko.to/apps/socialpilot Markdown URL: https://help.hoko.to/apps/socialpilot/README.md # Use Hoko with SocialPilot SocialPilot is a manual workflow while provider write access is being verified. Hoko does not claim a native SocialPilot connection. ## Steps 1. [Create a Hoko link](https://help.hoko.to/links#create-a-link). Save the destination link. 2. Copy the short URL and paste it into a SocialPilot draft for the selected account or group. 3. Open the URL and confirm the click in Hoko Analytics. Do not paste an access token into chat. If your account exposes an approved API or MCP connection, use only its documented draft action and read the draft back before publishing. Remove the draft and revoke the provider token after review. Read the [SocialPilot guide](https://docs.hoko.to/integrations/social-cms#socialpilot). [Open Apps](https://dash.hoko.to/integrations/apps) · [Technical reference](https://docs.hoko.to/integrations/apps#socialpilot) · [All app guides](https://help.hoko.to/apps) --- ### Typefully Use Hoko links with Typefully and follow this guide. Canonical URL: https://help.hoko.to/apps/typefully Markdown URL: https://help.hoko.to/apps/typefully/README.md # Use Hoko with Typefully Typefully supports a customer-owned draft workflow for X. Hoko creates the link; Typefully keeps the draft. ## Steps 1. [Create a Hoko link](https://help.hoko.to/links#create-a-link). Copy the short URL. 2. In Typefully, choose the social set, paste the URL once into the X draft, and save it. 3. Open the URL and confirm the click in Hoko Analytics. Public API access depends on the Typefully account. Keep the API key private. Check the social set and draft before retrying an uncertain response. Do not publish during setup. Delete the draft and revoke the key after review. Read the [Typefully recipe](https://docs.hoko.to/integrations/social-cms#typefully). [Open Apps](https://dash.hoko.to/integrations/apps) · [Technical reference](https://docs.hoko.to/integrations/apps#typefully) · [All app guides](https://help.hoko.to/apps) --- ### Later Use Hoko links with Later and follow this guide. Canonical URL: https://help.hoko.to/apps/later Markdown URL: https://help.hoko.to/apps/later/README.md # Use Hoko with Later Later’s documented path is read-only reporting for Later Influence. It does not connect Later Social publishing to Hoko. ## Steps 1. [Create a Hoko link](https://help.hoko.to/links#create-a-link) or choose an existing link. 2. In Later Influence, request the reporting access and account credentials required by Later’s team. 3. Map the Later campaign or post to the Hoko link and import a bounded date range. 4. Check the imported visits in Hoko Analytics. If reporting access is unavailable, use Hoko Analytics directly. Do not schedule or publish through this guide. Remove an imported report when your retention policy allows. Read the [Later reporting guide](https://docs.hoko.to/integrations/later-hootsuite#later). [Open Apps](https://dash.hoko.to/integrations/apps) · [Technical reference](https://docs.hoko.to/integrations/apps#later) · [All app guides](https://help.hoko.to/apps) --- ### Hootsuite Use Hoko links with Hootsuite and follow this guide. Canonical URL: https://help.hoko.to/apps/hootsuite Markdown URL: https://help.hoko.to/apps/hootsuite/README.md # Use Hoko with Hootsuite Hootsuite currently has a manual link workflow. A plan or trial does not by itself provide an Hoko connection or API access. ## Steps 1. [Create a Hoko link](https://help.hoko.to/links#create-a-link). Save it. 2. Copy the short URL and paste it into a Hootsuite draft for the selected organization and profile. 3. Open the URL and confirm the click in Hoko Analytics. If Hootsuite grants an approved API client later, follow its OAuth instructions and keep the grant private. Do not publish while validating the link. Delete the draft and revoke the grant after review. Read the [Hootsuite guide](https://docs.hoko.to/integrations/later-hootsuite#hootsuite). [Open Apps](https://dash.hoko.to/integrations/apps) · [Technical reference](https://docs.hoko.to/integrations/apps#hootsuite) · [All app guides](https://help.hoko.to/apps) --- ### HubSpot Use Hoko links with HubSpot and follow this guide. Canonical URL: https://help.hoko.to/apps/hubspot Markdown URL: https://help.hoko.to/apps/hubspot/README.md # Use Hoko with HubSpot Update one property on an existing HubSpot CRM record when a Hoko link or campaign changes. This is a customer-owned recipe today; Hoko does not create the portal, object, property, or record. 1. [Create a Hoko link](https://help.hoko.to/links#create-a-link). 2. In HubSpot choose the existing record and property. Copy the portal ID, object type (such as `contacts`), record ID, and property name. 3. Create a private app with only the CRM scope needed for that object. Keep its token in your provider secret store. 4. Configure the recipe with `portalId`, `objectType`, `recordId`, and `propertyName`, mapping the Hoko link or campaign value to that property. 5. Run it once and reopen the same record in HubSpot to verify the value. [Open Apps](https://dash.hoko.to/integrations/apps) · [Technical reference](https://docs.hoko.to/integrations/apps#hubspot) · [All app guides](https://help.hoko.to/apps) --- ### Salesforce Use Hoko links with Salesforce and follow this guide. Canonical URL: https://help.hoko.to/apps/salesforce Markdown URL: https://help.hoko.to/apps/salesforce/README.md # Use Hoko with Salesforce Write one Hoko value to one field on an existing Salesforce Campaign. This is a customer-owned recipe, not a native one-click connection. 1. [Create a Hoko link](https://help.hoko.to/links#create-a-link). 2. In Salesforce choose an existing Campaign and copy its record ID and field API name. 3. Create an External Client App or OAuth app with the narrowest write scope. Store the access token as a provider secret. 4. Configure `orgId`, `instanceUrl`, `apiVersion`, `recordId`, and `fieldName`. The instance must be allowed by your HTTPS policy. 5. Run one update and refresh that Campaign in Salesforce. Check the field before retrying a timed-out request. It does not search or create Campaigns. Revoke the app or OAuth grant and remove the secret when finished. [Salesforce REST API](https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/intro_what_is_rest_api.htm) [Open Apps](https://dash.hoko.to/integrations/apps) · [Technical reference](https://docs.hoko.to/integrations/apps#salesforce) · [All app guides](https://help.hoko.to/apps) --- ### Klaviyo Use Hoko links with Klaviyo and follow this guide. Canonical URL: https://help.hoko.to/apps/klaviyo Markdown URL: https://help.hoko.to/apps/klaviyo/README.md # Use Hoko with Klaviyo Send one event to a customer-selected Klaviyo profile. The event can represent a Hoko visit or conversion; Hoko does not search for profiles. 1. [Create a Hoko link](https://help.hoko.to/links#create-a-link) and choose the event name. 2. In Klaviyo copy the account ID and choose an existing profile. Record its profile ID or one supported identifier. 3. Create a private API key with `events:write` only. Store it securely and confirm consent for the event. 4. Configure `accountId`, `metricName`, one profile identifier, and `consent`. 5. Send one event and check the profile timeline. A 202 means Klaviyo accepted the submission, not that processing is complete. If you choose an identifier mode that creates or updates a profile, make that an explicit customer decision. Revoke the key and remove the recipe secret when finished. [Klaviyo Events API](https://developers.klaviyo.com/en/reference/post_event) [Open Apps](https://dash.hoko.to/integrations/apps) · [Technical reference](https://docs.hoko.to/integrations/apps#klaviyo) · [All app guides](https://help.hoko.to/apps) --- ### Mailchimp Use Hoko links with Mailchimp and follow this guide. Canonical URL: https://help.hoko.to/apps/mailchimp Markdown URL: https://help.hoko.to/apps/mailchimp/README.md # Use Hoko with Mailchimp Update content in one existing, unsent Mailchimp campaign. Hoko does not send, schedule, create, or search campaigns. 1. [Create a Hoko link](https://help.hoko.to/links#create-a-link). 2. Open the unsent campaign in Mailchimp and copy its campaign ID and data-center prefix from the API URL. 3. Create an API key or OAuth grant with the narrowest campaign-content permission and store it securely. 4. Configure `serverPrefix`, `campaignId`, and the HTML or content field to update. 5. Run the update and reopen the same campaign. Review the draft before a person sends or schedules it. After a timeout, inspect the campaign before retrying. Revoke the key or OAuth grant and remove the secret when finished. [Mailchimp Campaigns API](https://mailchimp.com/developer/marketing/api/campaigns/) [Open Apps](https://dash.hoko.to/integrations/apps) · [Technical reference](https://docs.hoko.to/integrations/apps#mailchimp) · [All app guides](https://help.hoko.to/apps) --- ### Customer.io Use Hoko links with Customer.io and follow this guide. Canonical URL: https://help.hoko.to/apps/customerio Markdown URL: https://help.hoko.to/apps/customerio/README.md # Use Hoko with Customer.io Send one consented event to an existing Customer.io customer through the Track API. This customer-owned recipe does not create profiles. 1. [Create a Hoko link](https://help.hoko.to/links#create-a-link) and choose the event name. 2. In Customer.io copy the site ID, choose an existing customer ID, and confirm the US or EU Track region. 3. Create a Track API key with required write access and store it as a provider secret. 4. Configure `siteId`, `customerId`, `eventName`, and `region`; include the Hoko link or conversion value. 5. Send one event and verify it in that customer’s activity timeline. It does not search, enrich, or create customers. Revoke the Track key and remove the secret when finished. [Customer.io Track API](https://docs.customer.io/integrations/api/) [Open Apps](https://dash.hoko.to/integrations/apps) · [Technical reference](https://docs.hoko.to/integrations/apps#customerio) · [All app guides](https://help.hoko.to/apps) --- ### Brevo Use Hoko links with Brevo and follow this guide. Canonical URL: https://help.hoko.to/apps/brevo Markdown URL: https://help.hoko.to/apps/brevo/README.md # Use Hoko with Brevo Update content in one existing, unsent Brevo email campaign. The customer reviews and sends or schedules it in Brevo. 1. [Create a Hoko link](https://help.hoko.to/links#create-a-link). 2. Open an existing unsent campaign in Brevo and copy its campaign ID. 3. Create an API key with the campaign-content access required and store it as a provider secret. 4. Configure `campaignId` and `contentHtml`, including the Hoko link where appropriate. 5. Run the update, reopen the campaign, and check the draft before sending. The recipe does not create, select, send, or schedule campaigns. If it times out, read the campaign before retrying. Revoke the key and remove the secret when finished. [Brevo API](https://developers.brevo.com/) [Open Apps](https://dash.hoko.to/integrations/apps) · [Technical reference](https://docs.hoko.to/integrations/apps#brevo) · [All app guides](https://help.hoko.to/apps) --- ### WordPress Use Hoko links with WordPress and follow this guide. Canonical URL: https://help.hoko.to/apps/wordpress Markdown URL: https://help.hoko.to/apps/wordpress/README.md # Use Hoko with WordPress The Hoko WordPress plugin adds a link to a post from the WordPress editor. It sends requests from the server, so the Hoko key stays out of browser code. ## Before you start - Get the private Hoko plugin package from your administrator and activate it. It is not listed in the WordPress plugin directory. - Have an editor account and a post you can edit. - Ask your Hoko administrator for a scoped API key and the target collection ID. ## Set up the link 1. Open **Settings → Hoko links** in WordPress. 2. Enter **Hoko collection ID** and the API key, then save the settings. Keep the key server-side. 3. Open a post and use the Hoko meta box to create or select the link. 4. Save the post. ## Verify the result Open the short URL in a private window. Confirm that it reaches the configured destination. The plugin stores the link ID and short URL in post metadata. A destination change asks for review and does not rewrite a published URL automatically. ## Troubleshoot - If the route returns `401`, check the key scope and workspace. - If the route returns `403`, check the key scope and workspace. - If the meta box is missing, confirm that the plugin is active and that your account can edit the post. - Refresh the post if its URL is stale. ## Clean up Remove the key from **Settings → Hoko links** before deactivating the plugin. Removing the plugin does not delete Hoko links or analytics. [Open Apps](https://dash.hoko.to/integrations/apps) · [Technical reference](https://docs.hoko.to/integrations/apps#wordpress) · [All app guides](https://help.hoko.to/apps) --- ### Webflow Use Hoko links with Webflow and follow this guide. Canonical URL: https://help.hoko.to/apps/webflow Markdown URL: https://help.hoko.to/apps/webflow/README.md # Use Hoko with Webflow Webflow is currently a manual CMS recipe. Hoko writes the exact short URL and link ID to two editable fields, then reads the same item back. ## Before you start - Use a Webflow site where you can edit CMS items. - Create editable `PlainText` fields named `hoko-short-url` and `hoko-link-id`. - Prepare a site token for a private pilot, or a registered OAuth grant with `authorized_user:read`, `sites:read`, `cms:read`, and `cms:write`. - Choose a collection and item that you can update. ## Set up the mapping 1. Save the item’s current `fieldData`, `isDraft`, and `isArchived` values. 2. Open the Webflow setup guide from **Dashboard → Integrations → Apps**. The current path uses a site token or registered OAuth grant; it is not a one-click marketplace connection. 3. Select the site, collection, and item. Keep the Webflow collection ID separate from the Hoko collection ID. 4. Run the staged update with `isDraft: true`. 5. Read the same item back and confirm both Hoko fields and the item ID. ## Verify the result Confirm that the live published version did not change. Publish the staged item only when your editorial process is ready. If you use a webhook, verify its timestamp and signature before accepting it. ## Troubleshoot and clean up - `403` usually means the token lacks CMS write access or the site is wrong. - A missing field means the field slug or collection is wrong. - Restore the saved item state and verify the final readback. [Open Apps](https://dash.hoko.to/integrations/apps) · [Technical reference](https://docs.hoko.to/integrations/apps#webflow) · [All app guides](https://help.hoko.to/apps) --- ### Ghost Use Hoko links with Ghost and follow this guide. Canonical URL: https://help.hoko.to/apps/ghost Markdown URL: https://help.hoko.to/apps/ghost/README.md # Use Hoko with Ghost Ghost is currently a manual content recipe. It uses a draft post and a customer-owned Admin API key for writes. A Content API key is read-only and cannot update a post. ## Before you start - Use a Ghost site where you can edit a draft. - Choose a draft post. - Create a custom integration under **Settings → Integrations** and keep its Admin key private. - Note the post’s current `updated_at` and the Ghost API version. ## Add the link 1. Open the Ghost setup guide from **Dashboard → Integrations → Apps**. The current path uses a custom integration key, not a one-click Ghost connection. 2. Read the draft and save its current revision. 3. Submit the content-card update with the exact Hoko URL, the current `updated_at`, and the pinned `Ghost-Version` header. 4. Read the draft again and confirm the link text and post revision. ## Verify and clean up Open the Hoko URL in a private window. Keep the post unpublished until you are ready to publish. Restore the draft if you need to undo the change. Revoke the custom integration when you no longer need it. ## Troubleshoot Use an Admin key for writes. Refresh `updated_at` after another editor changes the post. A version error means the request header does not match the supported contract. [Open Apps](https://dash.hoko.to/integrations/apps) · [Technical reference](https://docs.hoko.to/integrations/apps#ghost) · [All app guides](https://help.hoko.to/apps) --- ### Stripe Use Hoko links with Stripe and follow this guide. Canonical URL: https://help.hoko.to/apps/stripe Markdown URL: https://help.hoko.to/apps/stripe/README.md # Use Hoko with Stripe Stripe attribution currently supports a manual signed-webhook recipe in test mode. The Apps card opens this guide; it does not create a Stripe connection or accept provider credentials. Hoko accepts payment and refund events and attributes a payment only when the event contains valid Hoko click metadata and consent. Live-mode payments are not supported by this path. ## Before you start - Use your Stripe test account's test key and webhook signing secret. - Run a customer-owned HTTPS webhook runner that keeps those credentials private. - Keep the test configuration separate from your normal profile. - Use Stripe test cards. Do not use live mode. ## Send test events 1. Open the Stripe guide from **Dashboard → Integrations → Apps**. In your customer-owned HTTPS webhook runner, configure your Stripe test key and signing secret; do not enter them in Hoko's Apps page. 2. Configure the runner to verify Stripe's signature and forward the signed test events to the Hoko callback. 3. Create a test payment with `hoko_click_id`, `hoko_consent=granted`, and a recent `hoko_click_at`. 4. Create a partial test refund. 5. Inspect the payment and refund in Hoko. ## Verify the result Confirm `livemode=false`, the payment identity, exact money, and the click attribution. A payment without valid click metadata stays unattributed. This path does not provide Stripe Connect or live payment support. ## Troubleshoot and clean up A signature error means the raw body, secret, or timestamp is wrong. An account or mode mismatch means the connection does not match the event. Delete test customers and endpoints, then remove local credentials. [Open Apps](https://dash.hoko.to/integrations/apps) · [Technical reference](https://docs.hoko.to/integrations/apps#stripe) · [All app guides](https://help.hoko.to/apps) --- ### Google Analytics 4 Use Hoko links with Google Analytics 4 and follow this guide. Canonical URL: https://help.hoko.to/apps/ga4 Markdown URL: https://help.hoko.to/apps/ga4/README.md # Use Hoko with Google Analytics 4 Hoko provides a manual GA4 Measurement Protocol recipe for sending a consented `link.clicked` event. Configure the provider with your own credentials and run the recipe from your application or server. Hoko uses an existing identity and never creates one. There is no GA4 connection form in the Apps page. ## Before you start - Use a GA4 property and web stream that you can administer. - Have the stream’s Measurement ID and a Measurement Protocol API secret. - Choose exactly one existing `clientId` or `appInstanceId`. - Have the Hoko workspace and account identity used by your recipe. ## Send an event 1. Open the GA4 guide from **Dashboard → Integrations → Apps**. 2. Configure your GA4 Measurement Protocol client with the property credentials. 3. Select the identity type and pass the existing identity. Do not invent a value. 4. Set trusted `consent: granted`. 5. Send a `link.clicked` event from your recipe. 6. Inspect the property’s DebugView or event reports. ## Verify the result Use the GA4 DebugView or the property’s event reports. A click is a measurement event. It is not a lead or sale unless your own conversion flow records those events separately. ## Troubleshoot and clean up Check the Measurement ID, API secret, property region, and identity type. A missing or duplicated identity is rejected. Provider reports can lag. Remove the recipe credentials when you stop using the integration. [Open Apps](https://dash.hoko.to/integrations/apps) · [Technical reference](https://docs.hoko.to/integrations/apps#ga4) · [All app guides](https://help.hoko.to/apps) --- ### Google Tag Manager Use Hoko links with Google Tag Manager and follow this guide. Canonical URL: https://help.hoko.to/apps/google-tag-manager Markdown URL: https://help.hoko.to/apps/google-tag-manager/README.md # Use Hoko with Google Tag Manager The Hoko Tag Manager path is a consent-gated attribution script. It does not send analytics events or create a click on its own. ## Before you start - Use a web container where you can edit tags. - Have Preview permission and a test page. - Define granted, denied, and unset consent states in your consent manager. ## Configure Preview 1. Download the [Hoko attribution template](https://docs.hoko.to/integrations/google-tag-manager/template.tpl). 2. Open **Templates** in Tag Manager and import the downloaded template. 3. Inspect the template permissions. Keep `inject_script` bounded to the approved origin. 4. Create a tag and trigger for the page. Use Preview before you submit or publish changes. 5. Run Preview with each consent state. 6. With consent granted, verify that the fixed `https://hoko.to/analytics.js` script can preserve an existing `hoko_id` from the query or cookie. ## Verify and clean up Check repeated execution, an absent identity, denied consent, and an unset state. The script must not send analytics without explicit consent. Remove tags or templates that you no longer need. ## Troubleshoot If the script does not load, check the approved origin and template permissions. If a denied state sends data, remove the trigger and review the consent condition. Preview results do not prove a published container. See the [Tag Manager technical guide](https://docs.hoko.to/integrations/google-tag-manager) for template permissions and consent behavior. [Open Apps](https://dash.hoko.to/integrations/apps) · [Technical reference](https://docs.hoko.to/integrations/apps#google-tag-manager) · [All app guides](https://help.hoko.to/apps) --- ### PostHog Use Hoko links with PostHog and follow this guide. Canonical URL: https://help.hoko.to/apps/posthog Markdown URL: https://help.hoko.to/apps/posthog/README.md # Use Hoko with PostHog Hoko provides a manual PostHog recipe for capturing a consented `link.clicked` event. Configure PostHog with your own project credentials and run the recipe from your application or server. The project must have a public HTTPS host, and Hoko uses an existing `distinctId`. The Apps page does not create a PostHog connection. ## Before you start - Use a PostHog project with a public HTTPS host. - Have the project ingestion token. Do not use a personal or admin token. - Choose one existing, non-empty `distinctId`. - Have the Hoko workspace and account identity used by your recipe. ## Send an event 1. Open the PostHog guide from **Dashboard → Integrations → Apps**. 2. Configure your recipe with the public host, ingestion token, and existing `distinctId`. 3. Set trusted `consent: granted`. 4. Send a `link.clicked` event from your recipe. 5. Inspect the event in the project activity view. ## Verify the result Find the event in PostHog’s activity view. A click event is activity data. Record conversions separately in the provider flow that owns them. ## Troubleshoot and clean up An HTTP host or admin token is rejected. A blank or newly invented `distinctId` is rejected. Provider ingestion may take time to appear. Remove the recipe credentials when you stop using the integration. [Open Apps](https://dash.hoko.to/integrations/apps) · [Technical reference](https://docs.hoko.to/integrations/apps#posthog) · [All app guides](https://help.hoko.to/apps) --- ### Segment Use Hoko links with Segment and follow this guide. Canonical URL: https://help.hoko.to/apps/segment Markdown URL: https://help.hoko.to/apps/segment/README.md # Use Hoko with Segment Hoko provides a manual Segment recipe for sending a consented track event to an HTTP source. Configure Segment with your own source credentials and run the recipe from your application or server. The source uses either an existing `anonymousId` or an existing `userId`. The Apps page does not create a Segment connection. ## Before you start - Use a Segment workspace and HTTP source in the US or EU region. - Have the source write key. This is not a destination credential. - Choose exactly one existing `anonymousId` or `userId`. - Have the Hoko workspace and account identity used by your recipe. ## Send an event 1. Open the Segment guide from **Dashboard → Integrations → Apps**. 2. Configure your recipe with the source region and source write key. 3. Pass exactly one existing identity. 4. Set trusted `consent: granted`. 5. Send a `link.clicked` track event and inspect the source. ## Verify the result Use the Segment source debugger or source event view. A track event records activity. It does not mean that a lead or sale occurred. ## Troubleshoot and clean up Source and destination keys are different. A missing or duplicated identity is rejected. If the event is not visible, check the region, source, and provider delay. Remove the recipe credentials when you stop using the integration. [Open Apps](https://dash.hoko.to/integrations/apps) · [Technical reference](https://docs.hoko.to/integrations/apps#segment) · [All app guides](https://help.hoko.to/apps) --- ### Slack Use Hoko links with Slack and follow this guide. Canonical URL: https://help.hoko.to/apps/slack Markdown URL: https://help.hoko.to/apps/slack/README.md # Use Hoko with Slack Post one link-created notification to a channel selected by the customer. Hoko does not create apps, channels, or bot installations. 1. [Create a Hoko link](https://help.hoko.to/links#create-a-link). 2. In Slack choose a customer-owned app, add it to the channel, and copy an incoming webhook URL or the channel ID and bot token. 3. Keep the webhook or token in your provider secret store. 4. Configure `channelId` or `webhookUrl`, plus the Hoko `eventId` and workspace identity. 5. Trigger one notification and check the selected channel. With `chat.postMessage`, Slack should return `ok: true` and a message timestamp. If delivery times out, inspect the channel before posting again. Remove the app from the channel and revoke its token when finished. [Slack webhooks](https://api.slack.com/messaging/webhooks) · [chat.postMessage](https://api.slack.com/methods/chat.postMessage) [Open Apps](https://dash.hoko.to/integrations/apps) · [Technical reference](https://docs.hoko.to/integrations/apps#slack) · [All app guides](https://help.hoko.to/apps) --- ### Microsoft Teams Use Hoko links with Microsoft Teams and follow this guide. Canonical URL: https://help.hoko.to/apps/microsoft-teams Markdown URL: https://help.hoko.to/apps/microsoft-teams/README.md # Use Hoko with Microsoft Teams Send one Hoko link-created message through a current Teams Workflows webhook. This customer-owned workflow does not use Microsoft Graph or create a channel. 1. [Create a Hoko link](https://help.hoko.to/links#create-a-link). 2. In Teams create a Workflow that receives a webhook request and posts to the chosen team or channel. Use the current “Anyone” trigger and copy the generated URL. 3. Confirm the URL uses the Power Platform environment host ending in `environment.api.powerplatform.com`. Retired `webhook.office.com` and `logic.azure.com` URLs are unsupported. 4. Keep the URL private and configure `workflowsUrl`, `tenantId`, and `channelId`. 5. Trigger one link-created message and check the chosen Teams channel. No Graph scopes or job runner are required. Turn off or delete the Workflow and remove its secret when finished. [Teams Workflows](https://learn.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/add-incoming-webhook) [Open Apps](https://dash.hoko.to/integrations/apps) · [Technical reference](https://docs.hoko.to/integrations/apps#microsoft-teams) · [All app guides](https://help.hoko.to/apps) --- ### Notion Use Hoko links with Notion and follow this guide. Canonical URL: https://help.hoko.to/apps/notion Markdown URL: https://help.hoko.to/apps/notion/README.md # Use Hoko with Notion Create one page in an existing Notion data source. Hoko does not create the integration, data source, or page structure. 1. [Create a Hoko link](https://help.hoko.to/links#create-a-link). 2. Choose the existing data source and parent page in Notion. Share the data source with the integration and copy `dataSourceId` and `pageId`. 3. Use an internal integration token or OAuth grant with access to that data source; store it securely. 4. Configure a property mapping for `eventId`, `linkId`, and `workspaceId`. Those properties must already exist. 5. Create one page and open it in Notion to verify the title and properties. If a request times out, search the data source for the event ID before retrying. Remove the integration’s access and revoke its token when finished. [Notion API](https://developers.notion.com/reference/intro) [Open Apps](https://dash.hoko.to/integrations/apps) · [Technical reference](https://docs.hoko.to/integrations/apps#notion) · [All app guides](https://help.hoko.to/apps) --- ### Airtable Use Hoko links with Airtable and follow this guide. Canonical URL: https://help.hoko.to/apps/airtable Markdown URL: https://help.hoko.to/apps/airtable/README.md # Use Hoko with Airtable Append one record to an existing Airtable table. 1. [Create a Hoko link](https://help.hoko.to/links#create-a-link). 2. Open the existing base and table, copy `baseId` and `tableId`, and choose a key field for `eventId`, `linkId`, or `workspaceId`. 3. Create a Personal Access Token or OAuth grant with write access. Legacy API keys are not accepted; store the credential securely. 4. Configure `baseId`, `tableId`, and `keyField`. 5. Append one record and verify the key field and record ID in Airtable. If it times out, search the key field before retrying so you do not append a duplicate. Remove base access or revoke OAuth and delete the secret when finished. [Airtable Web API](https://airtable.com/developers/web/api/introduction) [Open Apps](https://dash.hoko.to/integrations/apps) · [Technical reference](https://docs.hoko.to/integrations/apps#airtable) · [All app guides](https://help.hoko.to/apps) --- ### Google Sheets Use Hoko links with Google Sheets and follow this guide. Canonical URL: https://help.hoko.to/apps/google-sheets Markdown URL: https://help.hoko.to/apps/google-sheets/README.md # Use Hoko with Google Sheets Append one row to an existing spreadsheet tab. 1. [Create a Hoko link](https://help.hoko.to/links#create-a-link). 2. Open the spreadsheet and tab, share it with the integration account, and copy `spreadsheetId` and the tab name. 3. Reserve a key column such as `eventId` and grant OAuth Sheets write access. Keep the token in a provider secret store. 4. Configure `spreadsheetId`, `tabName`, and `keyColumn`. 5. Append one row and refresh the tab. Verify the key before retrying a timed-out request. The recipe does not create spreadsheets or tabs. Remove spreadsheet access and revoke OAuth when finished. [Sheets append API](https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/append) [Open Apps](https://dash.hoko.to/integrations/apps) · [Technical reference](https://docs.hoko.to/integrations/apps#google-sheets) · [All app guides](https://help.hoko.to/apps) ---