> ## Documentation Index
> Fetch the complete documentation index at: https://docs.opal.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Typeform

> Learn how to connect Opal to Typeform to manage workspace roles. Organization roles and user provisioning aren't available.

With the Typeform integration, you can manage access to Typeform workspaces from Opal:

* Allow users to request a workspace role, **Can view**, **Can edit**, or **Owner**, from the web and Slack
* See who holds each role on the workspaces the connected account belongs to
* Set the right resource owners to delegate approvals to those with the most context
* Automatically revoke access when a time-bound grant expires

Opal connects through one person's personal access token. It sees the workspaces that person belongs to. To cover workspaces they aren't in, connect a token whose owner is a member of those workspaces.

## Supported resources

| Resource | Read | Grant and revoke access |
| - | - | - |
| Typeform workspaces | ✔️ | ✔️ |

### What Opal can't manage

Typeform's API doesn't expose the rest of the account, and Opal doesn't infer it:

* **Organization roles.** Typeform's Owner, Admin, and Member roles can't be read or changed. There is no endpoint for them.
* **Users.** There is no endpoint to list everyone in the organization, or to create, deactivate, or delete a user. People appear in Opal only when they are members of a workspace the token's owner belongs to, and Opal matches them to existing users by email. Add and remove people in Typeform, or through your identity provider. Typeform's Enterprise plan mentions SCIM, but it isn't a documented API a token can call.

### How Typeform access maps to Opal

* **Workspaces**: each workspace the token's owner belongs to appears in Opal as a **Typeform Workspace**, with the access levels **Can view**, **Can edit**, and **Owner**.
* **One role per person.** Typeform keeps a single role per person in a workspace, and granting a new role replaces the old one. Opal remembers every role it has granted and sends Typeform the highest one. Revoking that role restores the next one Opal still grants. After a sync, Opal can still list the lower role even though Typeform shows only the higher one. That isn't a stale page: both grants are stored, so the lower role can be restored.
* **The last owner stays.** Typeform's UI won't let a workspace end up with no owner. Its API will, and the workspace then can't be managed, including to put an owner back. Opal refuses to remove or demote the only owner. Assign someone else as **Owner** first.

### Limitations

* Opal only lists workspaces the token's owner belongs to, even when that person is an organization Owner.
* Changing members requires the token's owner to be an **Owner** of that workspace. Otherwise Typeform rejects the change.
* A plan with more than one seat is required to grant workspace roles to other people. The free plan has a single seat.
* Accounts in Typeform's EU data center use `api.eu.typeform.com` or `api.typeform.eu` instead of `api.typeform.com`.

## Requirements

Before you begin, you must:

* Be an Opal Admin
* Be an Owner or Admin of the Typeform organization, so you can create a personal access token
* Be an Owner of each workspace you want Opal to change
* Be on version `1.1262.0` or later, if you self-host Opal

## Configuration steps

### 1. Create a personal access token

1. In Typeform, go to [Personal tokens](https://admin.typeform.com/user/tokens) and create a token, for example `Opal`.
2. Give it these scopes: `accounts:read`, `workspaces:read`, and `workspaces:write`.
3. Copy the token. Typeform shows it only once.

The token acts as the person who created it. Opal can change members only in workspaces where that person is an Owner.

### 2. Create the Typeform app in Opal

In Opal, go to **Inventory** > **+App** and select **Typeform**. Fill in the following fields:

| Field | Value |
| - | - |
| App name | A name for the Typeform app in Opal, for example `Typeform`. |
| App admin | The owner who administers the app in Opal. |
| Description | A short description that helps requesters understand what this app is. |
| Visibility | Who in your organization can see the app. |
| API host | `api.typeform.com`, or `api.eu.typeform.com` / `api.typeform.eu` for an EU account. |
| Personal access token | The token from step 1. |

Opal checks the token when you save the app.

### 3. Import workspaces

After you save the app, import the workspaces you want to manage: on the app's **Assets** tab, select **Import assets**. Opal pulls members only for imported workspaces, so roles appear after the next sync.

A Typeform member is linked to an Opal user by email. Invite anyone missing from Opal with the same email address they use in Typeform.

## Troubleshooting

| Error | Fix |
| - | - |
| An authentication error when you save the app | Create a new token and check that it includes `accounts:read` and `workspaces:read`. Confirm **API host** matches the account's data center. |
| A workspace is missing | The token's owner isn't a member of it. Typeform only lists their workspaces. Connect a token for someone who belongs to it, or add them to the workspace. |
| A grant fails because the token's owner isn't an Owner | In Typeform, make the token's owner an **Owner** of that workspace. Being an organization Admin is not enough. |
| A grant fails because the workspace needs an owner | This person is the workspace's only **Owner**. Grant **Owner** to someone else first, then change or remove this role. |
| A person on the workspace doesn't appear in Opal | Their Typeform email doesn't match an Opal user. Invite them in Opal with that email, then sync again. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.