Skip to main content
Contentful Graphql logo
  • Category: developer tools
  • Auth: API_KEY
  • Composio-managed OAuth available? N/A
  • Tools: 2
  • Triggers: 0
  • Slug: CONTENTFUL_GRAPHQL
  • Version: 20261101_00

Tools

Slug: CONTENTFUL_GRAPHQL_GET_CMA_TOKENReturn authorization and content-type headers for Contentful Management API calls. The returned credential is not verified for CMA access.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: CONTENTFUL_GRAPHQL_GRAPH_QL_CONTENT_API_PERSISTED_QUERYExecute a GraphQL query using Automatic Persisted Queries (APQ). APQ reduces bandwidth by sending only a SHA256 hash instead of the full query text after initial registration. Workflow: 1. First request: Include both sha256_hash and query text to register the query 2. Subsequent requests: Send only sha256_hash and variables - the server uses the cached query Common errors: - PersistedQueryNotFound: Query not cached; include the full query text - PersistedQueryMismatch: Hash doesn’t match query text; recompute the hash - UNKNOWN_SPACE: Invalid space_id or access_token for the space

Input Parameters

string
Full GraphQL query text. Include on first request to register the query; omit on subsequent requests to use cached version by hash only.
integer
APQ protocol version. Must be 1.
string
required
Contentful Space ID. Example: ‘cfexampleapi’ for the public demo space.
object
Variables for parameterized GraphQL queries. Example: {“limit”: 10}
string
required
SHA256 hash of the exact GraphQL query text (64 hex characters). Compute with: echo -n ‘query text’ | sha256sum. Uppercase is auto-converted to lowercase.
string
Content Delivery API (CDA) access token. Overrides the token in metadata if provided.
string
required
Contentful Environment ID. Use ‘master’ for the default environment.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not