Skip to main content
Tape API

Quickstart

Retrieve your first record with a personal access token and a single API request.

Before you begin​

You need a Tape account and one record you can view. No account yet? Sign up for Tape.

The API sends and receives JSON over HTTPS. Send every request to https://api.tapeapp.com.

Tape keeps data as records in database apps. Each record has fields, such as a name or a status. Apps live in workspaces, and workspaces in your organization.

New to APIs?

Follow the Tape API guide, first steps in the Tape Community. It walks you through three requests in Postman, without writing code.

Step 1: Create a personal access token​

  1. Select your profile picture, then select Preferences.
  2. In the settings window, select Developer (under Features).
  3. Under Personal access tokens (PATs), select New token.
  4. Name the token, for example "Quickstart".
  5. Under Content access, clear All, then select the workspace that holds your record.
  6. Under Capabilities, clear All, then select Read records. A capability is one thing the token may do.
  7. Select Create token and copy the token.
New personal access token dialog named Quickstart with one workspace and the capability Read records
Copy the token now

Tape shows the token only once. Store it like a password.

Save the token as an environment variable:

export TAPE_TOKEN="tape_pat_..."
Lost your token?

Revoke it under Developer and create a new one.

Step 2: Retrieve a record​

Make a GET request to /v1/record/{record_id}. Send the token as a bearer token in the Authorization header.

Use the ID of a record you can view: open the record in Tape, select •••, then select Developer and copy the Record ID. In the examples, replace 123456 with your record ID.

Retrieve a record
curl https://api.tapeapp.com/v1/record/123456 \
-H "Authorization: Bearer $TAPE_TOKEN"

The API returns the record as JSON. Your response has the ID, title and fields of your record. This example shows a contact record:

Response
{
"record_id": 1,
"app_id": 1,
"title": "Clara Weber",
"created_on": "2022-03-01 12:00:00",
"fields": [
{
"field_id": 1,
"external_id": "full_name",
"label": "Full Name",
"type": "text",
"field_type": "single_text",
"values": [
{
"value": "Clara Weber"
}
]
}
]
}

Key fields

  • record_id: the ID of the record.
  • app_id: the ID of the record's database app. You need it to create records there.
  • title: the record title, as shown in Tape.
  • fields: the fields of the record, one entry per field.
  • field_id and external_id: the field's ID and its slug, a readable ID such as full_name. Use either to write values.
  • values: the field values. Their shape depends on the field type.
Getting an error?

400 or 401 error

Check that TAPE_TOKEN holds the whole token, prefix included. See Authentication errors.

403 error

Your token is missing the capability Read records. Create a new token that has it.

404 error

Check the record ID, then check that your token's content access includes the record's workspace.

Build on your first request​

Pick your next task. Each page has a complete request and response.

TaskPageCapabilities the token needs
Create a recordCreate a recordEdit records, plus Read records to read it back
Receive a webhookWorking with webhooksManage webhooks and Read records
Run an automationRun an automationRun automations, plus Read automations to find its ID
Connect an AI clientConnect to Tape MCPNone. You sign in with your Tape account

You can't add capabilities to an existing token. Create a new token for the task. Webhooks and automation runs also need the Admin role in the app's workspace.

Next steps​