> For the complete documentation index, see [llms.txt](https://docs.fastn.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fastn.ai/connectors/catalog/data-database/knack.md). Agents can also search and read this documentation through its [MCP server](https://docs.fastn.ai/~gitbook/mcp).

# Knack

Knack is a no-code platform for online databases and business apps. Create, read, update and delete records, and read objects and app schema.

![Knack logo](https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-38b7aa35fab40cd171eb8d34079300b429d01e4f%2Fknack.png?alt=media)

|                    |                                                                                 |
| ------------------ | ------------------------------------------------------------------------------- |
| **Category**       | [Data and databases](https://docs.fastn.ai/connectors/catalog/data-database.md) |
| **Website**        | [knack.com](https://knack.com)                                                  |
| **Authentication** | Application ID and API key                                                      |
| **Slug**           | `knack`                                                                         |
| **On fastn.ai**    | [Embed Knack in your product](https://fastn.ai/integrations/knack)              |

## Setup

Your customers enter their application id and api key for Knack when they connect. Nothing else needs setting up.

## Connect in Fastn

Your customers connect Knack from your widget. To connect an account yourself:

1. Go to **Build → Integrations → Connectors** and search for **Knack**.
2. Select **Connect** on the Knack card.

   <figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-586dd03cdc0c6904263f58928d7a531eae2f85df%2Fconnect-search.png?alt=media" alt="The Connectors page in Fastn with ServiceNow typed in the search box and the ServiceNow card showing a Connect button"><figcaption><p>Search for the connector, then select Connect on its card. ServiceNow is shown here.</p></figcaption></figure>
3. Fill in the fields the form asks for, using the values from [Setup](#setup) above. Then select **Connect**.

   <figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-51fb88ef328c525b5b11f8d7094bab11efc333b8%2Fconnect-credentials.png?alt=media" alt="The Connect ServiceNow dialog with an optional account name and the Instance, Username and Password fields, and Cancel and Connect buttons"><figcaption><p>A connect form that asks for credentials. Each connector asks for its own fields.</p></figcaption></figure>
4. Check that the connection appears under **Operate → Connections** with the status `Active`. Your workflows can now use Knack's actions.

For more detail, see [Connect an app](https://docs.fastn.ai/build/integrations/connectors/connect-an-app.md).

## Actions

<table><thead><tr><th width="240">Action</th><th width="260">Slug</th><th>What it does</th></tr></thead><tbody><tr><td>Create Record</td><td><code>createRecord</code></td><td>Creates a record in a Knack object. Knack objects are defined per application, so the field values are supplied as a JSON object keyed by field key, for example {"field_23":"Acme Ltd"}. Use List Object Fields to discover the field keys and types for the object.</td></tr><tr><td>Create User Session</td><td><code>createUserSession</code></td><td>Authenticates an app user with their email and password and returns a user token. Pass that token to the view-based record actions to read or write through views on pages protected by a login.</td></tr><tr><td>Create View Record</td><td><code>createViewRecord</code></td><td>Creates a record through a form view, so the view's record rules, submit rules and connected-record defaults are applied. Field values are supplied as a JSON object keyed by Knack field key.</td></tr><tr><td>Delete Record</td><td><code>deleteRecord</code></td><td>Permanently deletes a record from a Knack object by its record ID. This cannot be undone.</td></tr><tr><td>Delete View Record</td><td><code>deleteViewRecord</code></td><td>Permanently deletes a record through a view that has a delete action, applying that view's permissions. This cannot be undone.</td></tr><tr><td>Download Asset</td><td><code>downloadAsset</code></td><td>Downloads a file or image asset attached to a record. The asset ID and file name come from the file or image field's raw value on the record.</td></tr><tr><td>Get Account</td><td><code>getAccount</code></td><td>Retrieves the Knack account that owns the connected application, including its plan, billing status, product entitlements and the applications it contains.</td></tr><tr><td>Get Application Schema</td><td><code>getApplicationSchema</code></td><td>Retrieves the complete schema of the connected Knack application, including every object, field, scene and view together with account, design and settings metadata. Use it to discover scene and view keys for the view-based record actions.</td></tr><tr><td>Get Object</td><td><code>getObject</code></td><td>Retrieves the full definition of a single Knack object, including its inflections, identifier field, connections and every field it contains.</td></tr><tr><td>Get Record</td><td><code>getRecord</code></td><td>Retrieves a single record from a Knack object by its record ID, returning every field value on the record.</td></tr></tbody></table>

<details>

<summary>View 7 more actions</summary>

<table><thead><tr><th width="240">Action</th><th width="260">Slug</th><th>What it does</th></tr></thead><tbody><tr><td>Get View Record</td><td><code>getViewRecord</code></td><td>Retrieves a single record through a view on a page, returning only the fields that view exposes. Views on pages protected by a login require a user token.</td></tr><tr><td>List Object Fields</td><td><code>listObjectFields</code></td><td>Lists every field defined on a Knack object, returning each field's key, label, type and whether it is required. Use the field keys when building record payloads.</td></tr><tr><td>List Objects</td><td><code>listObjects</code></td><td>Lists every object (table) defined in the connected Knack application, returning each object's name and key. Use the returned object key to address records with the object-based record actions.</td></tr><tr><td>List Records</td><td><code>listRecords</code></td><td>Retrieves records from a Knack object with optional filtering, sorting, pagination and value formatting. Records are returned with both raw and HTML-formatted field values.</td></tr><tr><td>List View Records</td><td><code>listViewRecords</code></td><td>Retrieves the records a specific view on a page returns, honouring that view's own source, filters and record rules. Views on pages protected by a login require a user token, which Create User Session returns.</td></tr><tr><td>Update Record</td><td><code>updateRecord</code></td><td>Updates an existing record in a Knack object. Only the field keys present in the supplied JSON object are changed; every other field on the record is left untouched.</td></tr><tr><td>Update View Record</td><td><code>updateViewRecord</code></td><td>Updates a record through a form or inline-edit view, so the view's record and submit rules are applied. Only the field keys present in the supplied JSON object are changed.</td></tr></tbody></table>

</details>

## Events

Start a workflow when one of these happens, with an [app event trigger](https://docs.fastn.ai/build/integrations/triggers.md).

<table><thead><tr><th width="240">Event</th><th width="260">Id</th><th>When it fires</th></tr></thead><tbody><tr><td>Record Created</td><td><code>record.created</code></td><td>Fires when a record is created in a Knack object. Knack has no public webhook-registration API, so this is registered by hand in the Knack Builder: open Flows, click Create Flow, choose the trigger Record Created and pick the object, add the step Send Webhook (under HTTP / Outgoing Webhook), paste the Fastn trigger URL as the destination, set the method to POST, and in the payload builder add two literal fields alongside your record fields - event set to record.created and applicationId set to your Knack Application ID - then save and turn the Flow on. Both literal fields are required: Fastn routes on event and matches the connection on applicationId, and the Flow payload is composed by the builder so Knack sends neither by itself.</td></tr><tr><td>Record Deleted</td><td><code>record.deleted</code></td><td>Fires when a record is deleted from a Knack object. Knack has no public webhook-registration API, so this is registered by hand in the Knack Builder: open Flows, click Create Flow, choose the trigger Record Deleted and pick the object, add the step Send Webhook (under HTTP / Outgoing Webhook), paste the Fastn trigger URL as the destination, set the method to POST, and in the payload builder add two literal fields alongside your record fields - event set to record.deleted and applicationId set to your Knack Application ID - then save and turn the Flow on. Both literal fields are required: Fastn routes on event and matches the connection on applicationId, and the Flow payload is composed by the builder so Knack sends neither by itself.</td></tr><tr><td>Record Updated</td><td><code>record.updated</code></td><td>Fires when a record is updated in a Knack object. Knack has no public webhook-registration API, so this is registered by hand in the Knack Builder: open Flows, click Create Flow, choose the trigger Record Updated and pick the object, add the step Send Webhook (under HTTP / Outgoing Webhook), paste the Fastn trigger URL as the destination, set the method to POST, and in the payload builder add two literal fields alongside your record fields - event set to record.updated and applicationId set to your Knack Application ID - then save and turn the Flow on. Both literal fields are required: Fastn routes on event and matches the connection on applicationId, and the Flow payload is composed by the builder so Knack sends neither by itself.</td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.fastn.ai/connectors/catalog/data-database/knack.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
