### Install Anythink CLI via .NET Global Tool Source: https://anythink.cloud/ Install the Anythink CLI cross-platform using the .NET global tool. ```bash dotnet tool install -g anythink ``` -------------------------------- ### Install Anythink CLI via Homebrew Source: https://anythink.cloud/ Install the Anythink CLI on macOS and Linux using Homebrew. ```bash brew install anythink ``` -------------------------------- ### Install Anythink Cloud SDK Source: https://anythink.cloud/ Install the Anythink Cloud SDK using npm. This command adds the SDK to your project, enabling faster frontend development. ```bash npm install @anythink-cloud/sdk ``` -------------------------------- ### Query Data with Natural Language in Claude Source: https://anythink.cloud/terms-of-service Demonstrates how to query data using natural language prompts in Claude. This example shows a request to list recent orders with specific details. ```text You: List the 5 most recent orders, show customer name and total Claude: Found 5 orders: #1038 Eve Davis £189.99 shipped #1039 Dave Brown £45.00 refunded #1040 Carol White £299.50 delivered #1041 Bob Smith £79.00 shipped #1042 Alice Johnson £149.99 pending ``` -------------------------------- ### Filter and Relations - Bash API Example Source: https://anythink.cloud/products/workflow_automation Filter case studies by industry and featured status. Demonstrates how related data, such as author and tags, is included in the response. ```bash # Filter by any field — automatically.\ # Relations are included in the response.\ \ GET /org/{orgId}/entities/case_studies/public/items\ ?filter[industry]=fintech\ &filter[featured]=true\ \ { \"items\": [{ \"id\": 7, \"title\": \"How Finco cut onboarding by 60%\", \"author\": { \"__data\": [{ \"name\": \"Chris Adams\" }] }, \"tags\": { \"__data\": [{ \"name\": \"fintech\" }] } }] } ``` -------------------------------- ### Order Fulfilment Workflow Example Source: https://anythink.cloud/products/workflow_automation This workflow automates order fulfillment by triggering on new paid orders. It includes API calls for payment processing and notifications, data updates, and script execution for commission calculation. ```text Trigger: EntityCreated on orders Steps: 1. Condition — status eq "paid" 2. CallAnApi — POST Stripe fulfillment 3. UpdateData — set orders.fulfilled = true 4. CallAnApi — POST Slack #new-orders 5. RunScript — calculate commission ``` -------------------------------- ### Scheduled Report Workflow Example Source: https://anythink.cloud/products/workflow_automation This workflow demonstrates automating scheduled tasks like daily reports or data cleanup. It uses a cron schedule to trigger data reading, processing via RunScript, and subsequent data distribution. ```text Run daily summaries, weekly digests, and monthly cleanup jobs on a cron schedule. Read data, process it in a RunScript, send it wherever it needs to go. ``` -------------------------------- ### Launch a Module Source: https://anythink.cloud/products/visual_database_designer This example shows how to quickly launch a new product module or capability by creating an entity and configuring it visually, making an API live immediately without additional infrastructure deployment. ```APIDOC ## POST /org/{orgId}/entities ### Description This endpoint allows for the creation of new entities (e.g., data models, dashboards) within the Anythink platform. Once created, these entities can be configured visually, and their associated APIs become immediately available. ### Method POST ### Endpoint `/org/{orgId}/entities` ### Parameters #### Path Parameters - **orgId** (string) - Required - The unique identifier for the organization. #### Query Parameters None #### Request Body - **name** (string) - Required - The name of the new entity (e.g., 'partner_portal_requests'). - **is_public** (boolean) - Optional - Determines if the entity is publicly accessible. Defaults to false if not specified. ### Request Example ```json { "name": "partner_portal_requests", "is_public": false } ``` ### Response #### Success Response (200) Upon successful creation, the API is live. Further configuration (fields, relations, rules) is done visually. The endpoint to access items of this entity would then be available. #### Response Example (Response details not explicitly provided in source, typically a success confirmation or the created entity details) ### Subsequent Actions: - Add fields, relations, and RLS rules visually. - The API for the new entity (e.g., `GET /org/{orgId}/entities/partner_portal_requests/items`) is live immediately. - The new module can be plugged into an existing application or stood up as a standalone service. ``` -------------------------------- ### Autocomplete Suggestions Source: https://anythink.cloud/products/powerful-search-engine Get instant search suggestions as the user types. This TypeScript example shows how to fetch up to 5 suggestions for a partial query. ```APIDOC ## Autocomplete Suggestions ### Description Get instant search suggestions as the user types. This TypeScript example shows how to fetch up to 5 suggestions for a partial query. ### Method (Assumed to be a client-side SDK method) ### Endpoint (Not applicable for SDK method) ### Parameters - **query** (string) - The partial search term. - **options** (object) - Optional configuration for the autocomplete request. - **fields** (array of strings) - Fields to search for suggestions (e.g., ['name', 'brand']). - **limit** (integer) - The maximum number of suggestions to return. ### Request Example (Conceptual SDK Usage) ```typescript // Instant suggestions as the user types const suggestions = await client.search .from('products') .autocomplete('wire', { fields: ['name', 'brand'], limit: 5 }) // Returns in < 10ms // ["Wireless Earbuds", "Wire Stand", ...] ``` ### Response Example (Conceptual) ```json ["Wireless Earbuds", "Wire Stand", "Wire Basket", "Wire Frame", "Wire Sculpture"] ``` ``` -------------------------------- ### Autocomplete Search Example Source: https://anythink.cloud/products/visual_database_designer Get instant search suggestions as a user types, with results returned in under 10ms. Searches across specified fields. ```typescript // Instant suggestions as the user types\ const suggestions = await client.search\ .from('products')\ .autocomplete('wire', {\ fields: ['name', 'brand'],\ limit: 5\ })\ \ // Returns in < 10ms\ // [\"Wireless Earbuds\", \"Wire Stand\", ...]" ``` -------------------------------- ### Launch a New Product Module Source: https://anythink.cloud/cookie-policy Quickly launch new product modules or APIs without infrastructure or deployment pipelines. This example shows creating an entity and making its API live immediately. ```bash # A new product module — live in minutes.\n# No infrastructure. No deployment pipeline.\n\n# 1. Create the entity (dashboard or API)\nPOST /org/{orgId}/entities\n{ \"name\": \"partner_portal_requests\", \"is_public\": false }\n\n# 2. Add fields, relations, RLS rules — visually\n\n# 3. API is live immediately\nGET /org/{orgId}/entities/partner_portal_requests/items\n\n# 4. Plug into your existing app or\n# stand it up as a standalone service.\n# One environment. No extra infrastructure. ``` -------------------------------- ### Launch a Module via API Source: https://anythink.cloud/for_me/for-enterprise This bash snippet illustrates how to quickly launch a new product module. It covers creating an entity via API, adding fields and rules visually, and making the API live immediately. ```bash # A new product module — live in minutes.\n# No infrastructure. No deployment pipeline.\n\n# 1. Create the entity (dashboard or API)\nPOST /org/{orgId}/entities\n{ \"name\": \"partner_portal_requests\", \"is_public\": false }\n\n# 2. Add fields, relations, RLS rules — visually\\n\\n# 3. API is live immediately\nGET /org/{orgId}/entities/partner_portal_requests/items\\n\\n# 4. Plug into your existing app or\n# stand it up as a standalone service.\n# One environment. No extra infrastructure. ``` -------------------------------- ### Autocomplete Suggestions Source: https://anythink.cloud/products/smart_file_manager Get instant search suggestions as the user types. This TypeScript example demonstrates how to fetch up to 5 suggestions for a partial query on 'name' and 'brand' fields. ```APIDOC ## Autocomplete Suggestions ### Description Get instant search suggestions as the user types. This TypeScript example demonstrates how to fetch up to 5 suggestions for a partial query on 'name' and 'brand' fields. ### Method (Client-side SDK method) ### Endpoint (Not directly applicable, SDK handles communication) ### Parameters - **query** (string) - The partial search term. - **options** (object) - Optional configuration for the autocomplete request. - **fields** (array of strings) - Fields to search for suggestions (e.g., ['name', 'brand']). - **limit** (integer) - The maximum number of suggestions to return. ### Request Example (TypeScript) ```typescript const suggestions = await client.search .from('products') .autocomplete('wire', { fields: ['name', 'brand'], limit: 5 }); // Returns in < 10ms // ["Wireless Earbuds", "Wire Stand", ...] ``` ### Response Example (Array of strings) ```json ["Wireless Earbuds", "Wire Stand", "Wireless Charger", "Wired Mouse", "Wireless Keyboard"] ``` ``` -------------------------------- ### Initialize Anythink Client Source: https://anythink.cloud/privacy-policy Set up the Anythink client with your API key and organization ID. Ensure your environment variables are correctly configured. ```typescript import { AnythinkClient } from '@anythink/sdk' const client = new AnythinkClient({ apiKey: process.env.ANYTHINK_API_KEY, orgId: 'your-org-id' }) // Define your entity shape once, reuse everywhere type Product = { id: number name: string price: number status: 'active' | 'draft' } ```