Workflows
Blocks
Integrations
GraphQL

GraphQL Action Block

The GraphQL Action Block makes GraphQL API requests with custom queries, variables, headers, and query parameters.

No built-in authentication. Pass auth tokens via the Headers field (e.g. Authorization: Bearer token).

Configuration

  • Method: HTTP method (default: POST)
  • URL: GraphQL endpoint URL (supports {{variables}})
  • Query: GraphQL query string (supports {{variables}})
  • Variables: JSON object of GraphQL variables
  • Headers: JSON object of HTTP headers
  • Query Params: JSON object of URL query parameters
  • Timeout: Request timeout in seconds
  • No Error on Failure: Return error response instead of throwing

Example

Query:

query GetUser($id: ID!) {
  user(id: $id) {
    name
    email
    posts { title }
  }
}

Variables:

{ "id": "123" }

Output

{
  "status": 200,
  "headers": { "content-type": "application/json" },
  "body": { "data": { "user": { "name": "John", "email": "john@example.com" } } }
}

Use Cases

  • Querying GraphQL APIs (GitHub, Shopify, Hasura, etc.)
  • Fetching nested data in a single request
  • Mutations for creating/updating data via GraphQL
Indite Documentation v1.6.0
PrivacyTermsSupport