githubEdit

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

circle-exclamation

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

chevron-rightactionOption - Retrieves a specific action option configuration.hashtag

GraphQL schema

Usage example:

chevron-rightactionOptions-Retrieves multiple action options with filtering and sorting.hashtag

GraphQL schema:

Usage example:

chevron-rightlocalReferenceOptions-Gets dropdown options for local reference models.hashtag

GraphQL schema:

Usage example:

chevron-rightresourceTypesByPack-Gets resource types organized by pack.hashtag

GraphQL schema:

Action management queries

chevron-rightaction-Retrieves a specific action definition.hashtag

GraphQL schema:

Usage example:

chevron-rightactions-Retrieves multiple actions with filtering.hashtag

GraphQL schema:

actionsForOrg-Gets actions available to a specific organization.

GraphQL schema:

System and Debug Queries

chevron-rightannouncement-Gets system announcements.hashtag

chevron-rightdebug-Debug endpoint for system information.hashtag

GraphQL schema:

Component management queries

chevron-rightcomponent-Retrieves a specific component definition.hashtag

GraphQL schema:

chevron-rightcomponents-Gets multiple components for an organization.hashtag

GraphQL schema:

componentsByRoots-Gets components by their root IDs.

GraphQL schema:

chevron-rightcomponentTree-Gets the component tree structure.hashtag

GraphQL schema:

Crate management queries

chevron-rightcrateTokenTypes-Gets available crate token types.hashtag

GraphQL schema:

chevron-rightcrate-Retrieves a specific crate.hashtag

GraphQL schema:

chevron-rightcrates-Gets multiple crates with filtering and sorting.hashtag

GraphQL schema:

chevron-rightcrateExportInfo-Gets export information for a workflow to crate.hashtag

GraphQL schema:

chevron-rightcrateUnpackingArgumentSet-Gets crate unpacking argument sets.hashtag

GraphQL schema:

Feature preview queries

chevron-rightfeaturePreviewSetting-Gets a specific feature preview setting.hashtag

GraphQL schema:

chevron-rightfeaturePreviewSettings-Gets multiple feature preview settings.hashtag

GraphQL schema:

Foreign Object Reference Queries

chevron-rightforeignObjectReference-Gets a specific foreign object reference.hashtag

GraphQL schema:

chevron-rightforeignObjectReferences-Gets multiple foreign object references.hashtag

GraphQL schema:

Form management queries

chevron-rightform-Retrieves a specific form definition.hashtag

GraphQL schema:

chevron-rightforms-Gets multiple forms with filtering.hashtag

GraphQL schema:

chevron-rightpackConfigsForForm-Gets pack configurations associated with a form.hashtag

GraphQL schema:

chevron-rightevaluatedForm-Gets an evaluated form for a specific trigger.hashtag

GraphQL schema:

Microsoft CSP Queries

chevron-rightmicrosoftCSPCustomer-Gets Microsoft CSP customer information.hashtag

GraphQL schema:

chevron-rightmicrosoftCSPCustomers-Gets multiple Microsoft CSP customers.hashtag

GraphQL schema:

Trigger instance queries

chevron-rightorgTriggerInstance-Gets a specific organization trigger instance.hashtag

GraphQL schema:

chevron-rightorgTriggerInstances-Gets multiple organization trigger instances.hashtag

GraphQL schema:

Organization variable queries

chevron-rightorgVariable-Gets a specific organization variable.hashtag

GraphQL schema:

chevron-rightorgVariables-Gets multiple organization variables.hashtag

GraphQL schema:

chevron-rightvisibleOrgVariables-Gets organization variables visible to a specific organization.hashtag

GraphQL schema:

Organization management queries

chevron-rightorganization-Gets a specific organization.hashtag

GraphQL schema:

chevron-rightorganizations-Gets multiple organizations.hashtag

GraphQL schema:

chevron-rightorgSearch-Performs organization search with breadcrumbs.hashtag

GraphQL schema:

chevron-rightsoftDeletedOrgs-Gets soft-deleted organizations.hashtag

GraphQL schema:

Pack action option queries

chevron-rightpackActionOption-Gets a specific pack action option.hashtag

GraphQL schema:

chevron-rightpackActionOptions-Gets multiple pack action options.hashtag

GraphQL schema:

Pack bundle queries

chevron-rightpackBundle-Gets a specific pack bundle.hashtag

GraphQL schema:

chevron-rightpackBundles-Gets multiple pack bundles.hashtag

GraphQL schema:

Pack configuration queries

chevron-rightpackConfig-Gets a specific pack configuration.hashtag

GraphQL schema:

chevron-rightpackConfigs-Gets multiple pack configurations.hashtag

GraphQL schema:

chevron-rightpackConfigsForOrg-Gets pack configurations for a specific organization.hashtag

GraphQL schema:

Pack management queries

chevron-rightpack-Gets a specific integration pack.hashtag

GraphQL schema:

chevron-rightpacksAndBundlesByInstalledState-Gets packs and bundles organized by installation state.hashtag

GraphQL schema:

Page management queries

chevron-rightpage-Gets a specific page definition.hashtag

GraphQL schema:

chevron-rightpageVars-Gets page variables.hashtag

GraphQL schema:

chevron-rightpages-Gets multiple pages.hashtag

GraphQL schema:

Permission queries

chevron-rightpermission-Gets a specific permission.hashtag

GraphQL schema:

chevron-rightpermissions-Gets multiple permissions.hashtag

GraphQL schema:

Sensor type queries

chevron-rightsensorType-Gets a specific sensor type.hashtag

GraphQL schema:

chevron-rightsensorTypes-Gets multiple sensor types.hashtag

GraphQL schema:

Site and app management queries

chevron-rightsite-Gets a specific site/app.hashtag

GraphQL schema:

chevron-rightsites-Gets multiple sites/apps.hashtag

GraphQL schema:

chevron-rightgetAppPermissions-Gets app permissions for an organization.hashtag

GraphQL schema:

chevron-rightgetSiteTheme-Gets site theme configuration.hashtag

GraphQL schema:

Tag management queries

chevron-righttag-Gets a specific tag.hashtag

GraphQL schema:

chevron-righttags-Gets multiple tags.hashtag

GraphQL schema:

chevron-rightcrateTags-Gets tags associated with crates.hashtag

GraphQL schema:

Task and execution analytics queries

chevron-rightdailyTaskCountsByDateRange-Gets daily task counts within a date range.hashtag

GraphQL schema:

chevron-righttaskExecutionStats-Gets task execution statistics.hashtag

GraphQL schema:

chevron-righttaskLog-Gets a specific task log entry.hashtag

GraphQL schema:

chevron-righttaskLogs-Gets multiple task log entries.hashtag

GraphQL schema:

Template management queries

chevron-righttemplate- Gets a specific template.hashtag

GraphQL schema:

chevron-righttemplates-Gets multiple templates.hashtag

GraphQL schema:

chevron-rightjinjaTemplate-Gets a Jinja template for rendering.hashtag

GraphQL schema:

Trigger type queries

chevron-righttriggerType-Gets a specific trigger type.hashtag

GraphQL schema:

chevron-righttriggerTypes-Gets multiple trigger types.hashtag

GraphQL schema:

Trigger management queries

chevron-righttrigger-Gets a specific trigger.hashtag

GraphQL schema:

chevron-rightworkflowCompletionListeners-Gets workflow completion listeners.hashtag

GraphQL schema:

chevron-righttriggers-Gets multiple triggers.hashtag

GraphQL schema:

chevron-righttriggerDbNotificationErrors-Gets database notification errors for a trigger.hashtag

GraphQL schema:

User invite queries

chevron-rightuserInvite-Gets a specific user invite.hashtag

GraphQL schema:

chevron-rightuserInvites-Gets multiple user invites.hashtag

GraphQL schema:

User management queries

chevron-rightme-Gets current user information.hashtag

GraphQL schema:

chevron-rightuserOrganization-Gets the user's organization.hashtag

GraphQL schema:

chevron-rightuser-Gets a specific user.hashtag

GraphQL schema:

chevron-rightusers-Gets multiple users.hashtag

GraphQL schema:

chevron-rightgetTestUsers-Gets test users.hashtag

GraphQL schema:

chevron-rightgetTestUserSession-Gets current test user session.hashtag

GraphQL schema:

Workflow analytics queries

chevron-righttimeSavedGroupByWorkflow-Gets time saved statistics grouped by workflow.hashtag

GraphQL schema:

chevron-righttimeSavedGroupBySubOrg-Gets time saved statistics grouped by sub-organization.hashtag

GraphQL schema:

chevron-rightworkflowExecutionStats-Gets workflow execution statistics.hashtag

GraphQL schema:

chevron-rightworkflowExecution-Gets a specific workflow execution.hashtag

GraphQL schema:

chevron-rightworkflowExecutions-Gets multiple workflow executions.hashtag

GraphQL schema:

chevron-rightworkflowExecutionContexts-Gets workflow execution contexts.hashtag

GraphQL schema:

chevron-rightdailyTimeSavedByDateRange-Gets daily time saved within a date range.hashtag

GraphQL schema:

Workflow patch queries

chevron-rightworkflowPatch-Gets a specific workflow patch.hashtag

GraphQL schema:

chevron-rightworkflowPatches-Gets multiple workflow patches.hashtag

GraphQL schema:

Workflow management queries

chevron-rightworkflow-Gets a specific workflow.hashtag

GraphQL schema:

chevron-rightworkflows-Gets multiple workflows.hashtag

GraphQL schema:

chevron-rightworkflowNote-Gets a specific workflow note.hashtag

GraphQL schema:

chevron-rightworkflowNotes-Gets multiple workflow notes.hashtag

GraphQL schema:

chevron-rightworkflowTask-Gets a specific workflow task.hashtag

GraphQL schema:

chevron-rightworkflowTasks-Gets multiple workflow tasks.hashtag

GraphQL schema:

Mutations

Action option mutations

chevron-rightcreateActionOptions-Creates multiple action options.hashtag

GraphQL schema:

Usage example:

Clone operations

Component mutations

chevron-rightcreateComponent-Creates a new component.hashtag

GraphQL schema:

chevron-rightupdateComponent-Updates an existing component.hashtag

GraphQL schema:

chevron-rightdeleteComponent-Deletes a component.hashtag

GraphQL schema:

chevron-rightduplicateComponent-Duplicates an existing component.hashtag

GraphQL schema:

Foreign object reference mutations

chevron-rightcreateForeignObjectReference-Creates a foreign object reference.hashtag

GraphQL schema:

chevron-rightcreateOrUpdateForeignObjectReference-Creates or updates a foreign object reference.hashtag

GraphQL schema:

Form mutations

chevron-rightcreateForm-Creates a new form.hashtag

GraphQL schema:

Usage example:

chevron-rightsubmitForm-Submits form data and triggers associated workflow.hashtag

GraphQL schema:

chevron-rightsetFormTags-Sets tags for a form.hashtag

GraphQL schema:

chevron-rightshallowCloneForm-Creates a shallow clone of a form.hashtag

GraphQL schema:

chevron-rightupdateForm-Updates an existing form.hashtag

GraphQL schema:

chevron-rightdeleteForm-Deletes a form.hashtag

GraphQL schema:

Organization trigger instance mutations

chevron-rightupdateOrgTriggerInstance-Updates an organization trigger instance.hashtag

GraphQL schema:

Organization variable mutations

chevron-rightcreateOrgVariable-Creates a new organization variable.hashtag

GraphQL schema:

Usage example:

chevron-rightdeleteOrgVariable-Deletes an organization variable.hashtag

GraphQL schema:

chevron-rightupdateOrgVariables-Updates multiple organization variables.hashtag

GraphQL schema:

Organization management mutations

chevron-rightbulkCreateOrganizations-Creates multiple organizations in bulk.hashtag

GraphQL schema:

chevron-rightbulkDeleteOrganizations-Deletes multiple organizations in bulk.hashtag

GraphQL schema:

chevron-rightcreateOrganization-Creates a single organization.hashtag

GraphQL schema:

chevron-rightcreateOrganizations-Creates multiple organizations.hashtag

GraphQL schema:

chevron-rightdeleteOrganization-Deletes an organization.hashtag

GraphQL schema:

chevron-rightupdateManagedAndSubOrganizations-Updates managed and sub-organizations.hashtag

GraphQL schema:

chevron-rightupdateOrganization-Updates an organization.hashtag

GraphQL schema:

chevron-rightbulkUpdateOrganizationFeaturePreviewSettingByLabel-Bulk updates feature preview settings by label.hashtag

GraphQL schema:

Pack configuration mutations

chevron-rightsynchronizePackBundleConfigs-Synchronizes pack bundle configurations.hashtag

GraphQL schema:

chevron-rightcreatePackConfig-Creates a new pack configuration.hashtag

GraphQL schema:

chevron-rightdeletePackConfig-Deletes a pack configuration.hashtag

GraphQL schema:

chevron-rightrefetchPackConfigRefOptions-Refetches pack configuration reference options.hashtag

GraphQL schema:

chevron-righttestPackConfig-Tests a pack configuration.hashtag

GraphQL schema:

chevron-rightupdatePackConfig-Updates a pack configuration.hashtag

GraphQL schema:

chevron-rightupdatePackConfigs-Updates multiple pack configurations.hashtag

GraphQL schema:

Pack mutations

chevron-rightgeneratePackOrBundleAuthUrl-Generates authorization URL for pack or bundle.hashtag

GraphQL schema:

chevron-rightinstallPack-Installs a pack for an organization.hashtag

GraphQL schema:

chevron-rightgetPackInstallations-Gets pack installation information.hashtag

GraphQL schema:

chevron-rightgetPackPageUrl-Gets the URL for a pack pagehashtag

GraphQL schema:

chevron-rightupdatePack-Updates a pack.hashtag

GraphQL schema:

Page mutations

chevron-rightcreatePage-Creates a new page.hashtag

GraphQL schema:

chevron-rightupdatePage-Updates an existing page.hashtag

GraphQL schema:

chevron-rightdeletePage-Deletes a page.hashtag

GraphQL schema:

chevron-rightupdatePageNode-Updates a page node.hashtag

GraphQL schema:

chevron-rightupdatePageNodeByCraftId-Updates a page node by craft ID.hashtag

GraphQL schema:

Site mutations

chevron-rightcreateSite-Creates a new site/app.hashtag

GraphQL schema:

chevron-rightupdateSite-Updates an existing site/app.hashtag

GraphQL schema:

chevron-rightupdateSites-Updates multiple sites.hashtag

GraphQL schema:

chevron-rightdeleteSite-Deletes a site/app.hashtag

GraphQL schema:

chevron-rightvalidateSiteCustomDomainDNS-Validates custom domain DNS settings.hashtag

GraphQL schema:

Tag mutations

chevron-rightcreateTag-Creates a new tag.hashtag

GraphQL schema:

chevron-rightdeleteTag-Deletes a tag.hashtag

GraphQL schema:

chevron-rightupdateTag-Updates a tag.hashtag

GraphQL schema:

chevron-rightupdateTags-Updates multiple tags.hashtag

GraphQL schema:

chevron-rightsetOrganizationTags-Sets tags for an organization.hashtag

GraphQL schema:

Template mutations

chevron-rightcreateTemplate-Creates a new template.hashtag

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?