Generic GraphQL request action

This action is available in the Rewst actions section of the workflow builder's actions list, but is open-ended in its capabilities.

Description: A generic action for making authenticated requests against Rewst''s GraphQL API. The Generic GraphQL Request action is part of the Rewst action pack and enables:

  • Direct API access: Execute custom GraphQL queries and mutations against Rewst's backend

  • Advanced data retrieval: Access data structures not available through standard actions

  • Custom automation: Build sophisticated workflows with precise data control

  • Administrative operations: Perform bulk operations and administrative tasks programmatically

Parameters:

  • Operation Type: The type of GraphQL operation: query or mutation

  • Graph Operation: The name of the specific GraphQL operation to execute

  • Variable Values: Variables to pass to the GraphQL operation

  • Response Fields: Specify the fields to include in the GraphQL response. Only provide the inner content, as it will be wrapped in curly braces. For example, id orgName email { name } .

  • Raw Query: The complete raw GraphQL query string to execute - an alternative to operation-based approach

Generic GraphQL request action usage examples

Basic query example

Mutation example

Raw query example

Generic GraphQL request action: Allowed operations

Queries

Action and configuration queries

actionOption - Retrieves a specific action option configuration.

GraphQL schema

Usage example:

actionOptions-Retrieves multiple action options with filtering and sorting.

GraphQL schema:

Usage example:

localReferenceOptions-Gets dropdown options for local reference models.

GraphQL schema:

Usage example:

resourceTypesByPack-Gets resource types organized by pack.

GraphQL schema:

Action management queries

action-Retrieves a specific action definition.

GraphQL schema:

Usage example:

actions-Retrieves multiple actions with filtering.

GraphQL schema:

actionsForOrg-Gets actions available to a specific organization.

GraphQL schema:

System and Debug Queries

announcement-Gets system announcements.

debug-Debug endpoint for system information.

GraphQL schema:

Component management queries

component-Retrieves a specific component definition.

GraphQL schema:

components-Gets multiple components for an organization.

GraphQL schema:

componentsByRoots-Gets components by their root IDs.

GraphQL schema:

componentTree-Gets the component tree structure.

GraphQL schema:

Crate management queries

crateTokenTypes-Gets available crate token types.

GraphQL schema:

crate-Retrieves a specific crate.

GraphQL schema:

crates-Gets multiple crates with filtering and sorting.

GraphQL schema:

crateExportInfo-Gets export information for a workflow to crate.

GraphQL schema:

crateUnpackingArgumentSet-Gets crate unpacking argument sets.

GraphQL schema:

Feature preview queries

featurePreviewSetting-Gets a specific feature preview setting.

GraphQL schema:

featurePreviewSettings-Gets multiple feature preview settings.

GraphQL schema:

Foreign Object Reference Queries

foreignObjectReference-Gets a specific foreign object reference.

GraphQL schema:

foreignObjectReferences-Gets multiple foreign object references.

GraphQL schema:

Form management queries

form-Retrieves a specific form definition.

GraphQL schema:

forms-Gets multiple forms with filtering.

GraphQL schema:

packConfigsForForm-Gets pack configurations associated with a form.

GraphQL schema:

evaluatedForm-Gets an evaluated form for a specific trigger.

GraphQL schema:

Microsoft CSP Queries

microsoftCSPCustomer-Gets Microsoft CSP customer information.

GraphQL schema:

microsoftCSPCustomers-Gets multiple Microsoft CSP customers.

GraphQL schema:

Trigger instance queries

orgTriggerInstance-Gets a specific organization trigger instance.

GraphQL schema:

orgTriggerInstances-Gets multiple organization trigger instances.

GraphQL schema:

Organization variable queries

orgVariable-Gets a specific organization variable.

GraphQL schema:

orgVariables-Gets multiple organization variables.

GraphQL schema:

visibleOrgVariables-Gets organization variables visible to a specific organization.

GraphQL schema:

Organization management queries

organization-Gets a specific organization.

GraphQL schema:

organizations-Gets multiple organizations.

GraphQL schema:

orgSearch-Performs organization search with breadcrumbs.

GraphQL schema:

softDeletedOrgs-Gets soft-deleted organizations.

GraphQL schema:

Pack action option queries

packActionOption-Gets a specific pack action option.

GraphQL schema:

packActionOptions-Gets multiple pack action options.

GraphQL schema:

Pack bundle queries

packBundle-Gets a specific pack bundle.

GraphQL schema:

packBundles-Gets multiple pack bundles.

GraphQL schema:

Pack configuration queries

packConfig-Gets a specific pack configuration.

GraphQL schema:

packConfigs-Gets multiple pack configurations.

GraphQL schema:

packConfigsForOrg-Gets pack configurations for a specific organization.

GraphQL schema:

Pack management queries

pack-Gets a specific integration pack.

GraphQL schema:

packsAndBundlesByInstalledState-Gets packs and bundles organized by installation state.

GraphQL schema:

Page management queries

page-Gets a specific page definition.

GraphQL schema:

pageVars-Gets page variables.

GraphQL schema:

pages-Gets multiple pages.

GraphQL schema:

Permission queries

permission-Gets a specific permission.

GraphQL schema:

permissions-Gets multiple permissions.

GraphQL schema:

Sensor type queries

sensorType-Gets a specific sensor type.

GraphQL schema:

sensorTypes-Gets multiple sensor types.

GraphQL schema:

Site and app management queries

site-Gets a specific site/app.

GraphQL schema:

sites-Gets multiple sites/apps.

GraphQL schema:

getAppPermissions-Gets app permissions for an organization.

GraphQL schema:

getSiteTheme-Gets site theme configuration.

GraphQL schema:

Tag management queries

tag-Gets a specific tag.

GraphQL schema:

tags-Gets multiple tags.

GraphQL schema:

crateTags-Gets tags associated with crates.

GraphQL schema:

Task and execution analytics queries

dailyTaskCountsByDateRange-Gets daily task counts within a date range.

GraphQL schema:

taskExecutionStats-Gets task execution statistics.

GraphQL schema:

taskLog-Gets a specific task log entry.

GraphQL schema:

taskLogs-Gets multiple task log entries.

GraphQL schema:

Template management queries

template- Gets a specific template.

GraphQL schema:

templates-Gets multiple templates.

GraphQL schema:

jinjaTemplate-Gets a Jinja template for rendering.

GraphQL schema:

Trigger type queries

triggerType-Gets a specific trigger type.

GraphQL schema:

triggerTypes-Gets multiple trigger types.

GraphQL schema:

Trigger management queries

trigger-Gets a specific trigger.

GraphQL schema:

workflowCompletionListeners-Gets workflow completion listeners.

GraphQL schema:

triggers-Gets multiple triggers.

GraphQL schema:

triggerDbNotificationErrors-Gets database notification errors for a trigger.

GraphQL schema:

User invite queries

userInvite-Gets a specific user invite.

GraphQL schema:

userInvites-Gets multiple user invites.

GraphQL schema:

User management queries

me-Gets current user information.

GraphQL schema:

userOrganization-Gets the user's organization.

GraphQL schema:

user-Gets a specific user.

GraphQL schema:

users-Gets multiple users.

GraphQL schema:

getTestUsers-Gets test users.

GraphQL schema:

getTestUserSession-Gets current test user session.

GraphQL schema:

Workflow analytics queries

timeSavedGroupByWorkflow-Gets time saved statistics grouped by workflow.

GraphQL schema:

timeSavedGroupBySubOrg-Gets time saved statistics grouped by sub-organization.

GraphQL schema:

workflowExecutionStats-Gets workflow execution statistics.

GraphQL schema:

workflowExecution-Gets a specific workflow execution.

GraphQL schema:

workflowExecutions-Gets multiple workflow executions.

GraphQL schema:

workflowExecutionContexts-Gets workflow execution contexts.

GraphQL schema:

dailyTimeSavedByDateRange-Gets daily time saved within a date range.

GraphQL schema:

Workflow patch queries

workflowPatch-Gets a specific workflow patch.

GraphQL schema:

workflowPatches-Gets multiple workflow patches.

GraphQL schema:

Workflow management queries

workflow-Gets a specific workflow.

GraphQL schema:

workflows-Gets multiple workflows.

GraphQL schema:

workflowNote-Gets a specific workflow note.

GraphQL schema:

workflowNotes-Gets multiple workflow notes.

GraphQL schema:

workflowTask-Gets a specific workflow task.

GraphQL schema:

workflowTasks-Gets multiple workflow tasks.

GraphQL schema:

Mutations

Action option mutations

createActionOptions-Creates multiple action options.

GraphQL schema:

Usage example:

Clone operations

Component mutations

createComponent-Creates a new component.

GraphQL schema:

updateComponent-Updates an existing component.

GraphQL schema:

deleteComponent-Deletes a component.

GraphQL schema:

duplicateComponent-Duplicates an existing component.

GraphQL schema:

Foreign object reference mutations

createForeignObjectReference-Creates a foreign object reference.

GraphQL schema:

createOrUpdateForeignObjectReference-Creates or updates a foreign object reference.

GraphQL schema:

Form mutations

createForm-Creates a new form.

GraphQL schema:

Usage example:

submitForm-Submits form data and triggers associated workflow.

GraphQL schema:

setFormTags-Sets tags for a form.

GraphQL schema:

shallowCloneForm-Creates a shallow clone of a form.

GraphQL schema:

updateForm-Updates an existing form.

GraphQL schema:

deleteForm-Deletes a form.

GraphQL schema:

Organization trigger instance mutations

updateOrgTriggerInstance-Updates an organization trigger instance.

GraphQL schema:

Organization variable mutations

createOrgVariable-Creates a new organization variable.

GraphQL schema:

Usage example:

deleteOrgVariable-Deletes an organization variable.

GraphQL schema:

updateOrgVariables-Updates multiple organization variables.

GraphQL schema:

Organization management mutations

bulkCreateOrganizations-Creates multiple organizations in bulk.

GraphQL schema:

bulkDeleteOrganizations-Deletes multiple organizations in bulk.

GraphQL schema:

createOrganization-Creates a single organization.

GraphQL schema:

createOrganizations-Creates multiple organizations.

GraphQL schema:

deleteOrganization-Deletes an organization.

GraphQL schema:

updateManagedAndSubOrganizations-Updates managed and sub-organizations.

GraphQL schema:

updateOrganization-Updates an organization.

GraphQL schema:

bulkUpdateOrganizationFeaturePreviewSettingByLabel-Bulk updates feature preview settings by label.

GraphQL schema:

Pack configuration mutations

synchronizePackBundleConfigs-Synchronizes pack bundle configurations.

GraphQL schema:

createPackConfig-Creates a new pack configuration.

GraphQL schema:

deletePackConfig-Deletes a pack configuration.

GraphQL schema:

refetchPackConfigRefOptions-Refetches pack configuration reference options.

GraphQL schema:

testPackConfig-Tests a pack configuration.

GraphQL schema:

updatePackConfig-Updates a pack configuration.

GraphQL schema:

updatePackConfigs-Updates multiple pack configurations.

GraphQL schema:

Pack mutations

generatePackOrBundleAuthUrl-Generates authorization URL for pack or bundle.

GraphQL schema:

installPack-Installs a pack for an organization.

GraphQL schema:

getPackInstallations-Gets pack installation information.

GraphQL schema:

getPackPageUrl-Gets the URL for a pack page

GraphQL schema:

updatePack-Updates a pack.

GraphQL schema:

Page mutations

createPage-Creates a new page.

GraphQL schema:

updatePage-Updates an existing page.

GraphQL schema:

deletePage-Deletes a page.

GraphQL schema:

updatePageNode-Updates a page node.

GraphQL schema:

updatePageNodeByCraftId-Updates a page node by craft ID.

GraphQL schema:

Site mutations

createSite-Creates a new site/app.

GraphQL schema:

updateSite-Updates an existing site/app.

GraphQL schema:

updateSites-Updates multiple sites.

GraphQL schema:

deleteSite-Deletes a site/app.

GraphQL schema:

validateSiteCustomDomainDNS-Validates custom domain DNS settings.

GraphQL schema:

Tag mutations

createTag-Creates a new tag.

GraphQL schema:

deleteTag-Deletes a tag.

GraphQL schema:

updateTag-Updates a tag.

GraphQL schema:

updateTags-Updates multiple tags.

GraphQL schema:

setOrganizationTags-Sets tags for an organization.

GraphQL schema:

Template mutations

createTemplate-Creates a new template.

GraphQL schema:

Security considerations

  1. Always validate user inputs before including in queries

  2. Use organization and permission filters to restrict data access

  3. Track usage patterns for potential security issues

Common use cases for the Generic GraphQL request action

Bulk data operations

Action configuration:

  • Operation type: mutation

  • Operation: updateOrgVariables

  • Variable values:

Complex reporting

Action configuration:

  • Operation type: query

  • Operation: workflows

  • Variable values:

  • Fields:

Data synchronization

Action configuration:

  • Operation type: query

  • Operation: organizations

  • Variable values:

  • Fields: id, name, domain, createdAt, managedOrgs { id, name }

Troubleshoot the Generic GraphQL request action

Permission denied

  • Verify the feature flag is enabled for your organization

Query syntax errors

  • Validate GraphQL syntax using a GraphQL validator

  • Check field names against the schema

  • Ensure variable types match the expected schema types

Rate limiting

  • Implement exponential backoff for retries

  • Consider breaking large operations into smaller batches

  • Monitor API usage patterns

Debug tips

  1. Begin with basic queries before building complex operations

  2. For debugging, use the raw_query parameter to see exact queries

  3. Review workflow execution logs for detailed error messages

  4. Build queries incrementally, adding fields and filters gradually

Schema Reference

The Generic GraphQL Request action provides access to Rewst's complete GraphQL schema. Key entity types include:

  • Organization: Core organizational data and settings

  • Workflow: Automation workflow definitions and execution data

  • Action: Available actions and their configurations

  • Trigger: Event triggers and their configurations

  • Form: Dynamic forms and field definitions

  • Template: Reusable templates and scripts

  • User: User accounts and permissions

  • Pack: Integration packs and their components

Last updated

Was this helpful?