Enable a Platform App on a pipe or database via the GraphQL API.
Before You Begin
🔗 Use the GraphQL Playground to execute the queries in this guide.
➡️ New to GraphQL? Learn how to navigate the Playground with our Playground Basics Guide.
Why this use case
Platform Apps extend pipes and databases with additional features (buttons, card tabs, attachments). Use this mutation to programmatically enable an app on a repo — for example when provisioning new pipes from a template.
Prerequisites
- Authentication: Use a Service Account token (Personal Access Tokens are deprecated).
- Permissions: Your token must be able to manage the target pipe or database.
- Opt-in: Some apps require the user to accept their terms. Pass
optedIn: trueto confirm acceptance; otherwise apps whose manifest requires opt-in are not enabled. - IDs: See our Get resource IDs page for how to find the
repoId(pipe or database ID). TheappIdis the Platform App identifier (SUID) provided when the app is registered — there is currently no public API query to list available apps.
Step 1: Run the mutation
mutation EnablePlatformApp($repoId: ID!, $appId: ID!, $optedIn: Boolean) {
enablePlatformApp(input: { repoId: $repoId, appId: $appId, optedIn: $optedIn }) {
platformApp {
id
name
}
}
}
Variables
{
"repoId": "301234567",
"appId": "app-suid-123",
"optedIn": true
}
Step 2: Check the response
{
"data": {
"enablePlatformApp": {
"platformApp": {
"id": "app-suid-123",
"name": "App"
}
}
}
}
Returned fields
| Field | Description |
|---|---|
platformApp.id | The Platform App identifier (SUID) that was enabled |
platformApp.name | The Platform App name |
Implementation notes
repoIdaccepts a pipe or database ID;appIdis the Platform App identifier.- Apps gated by a feature flag can only be enabled when the flag is active for the organization — otherwise the mutation returns an
enabled apperror. - When the app's manifest declares opt-in as required and
optedInis nottrue, the mutation returns an error asking the user to opt in.
