Skip to content
Maua.Culturewire

Contentful (GraphQL)

Contentful content via GraphQL: entries and assets

E-commerceCatalog2 tools · 0 triggers

Managed auth

Authentication

Methods your end users can connect with. Credentials are stored encrypted, and secret values are never shown again or returned by the API.

  • API key

    Your users enter

    • Space IDRequiredIdentifier
    • EnvironmentOptionalIdentifier
    • Content Delivery (or Preview) tokenSecretRequired

    Where to find them

    1. In Contentful open “Settings” → “API keys” and create a key.
    2. Copy the “Space ID” and the “Content Delivery API - access token” (or the Preview one for drafts).
    3. To manage content use the “Contentful” connector.

Tools (2)

  • Contentful (GraphQL) API requestCONTENTFULGRAPHQL_SEND_REQUEST

    Authenticated call to the Contentful (GraphQL) API (https://graphql.contentful.com/content/v1/spaces/{workspace}/environments/{environment}). Any endpoint of the API is allowed. The API is GraphQL (POST /): use CONTENTFULGRAPHQL_SEND_GRAPHQL_REQUEST. Examples: { blogPostCollection(limit: 5, order: sys_publishedAt_DESC) { items { title slug sys { id publishedAt } } } }, { asset(id: "…") { url title } }. Collection names come from your content types (introspection with __schema).

    Required scopes

    No scopes required

    Input

    Contentful (GraphQL) API request input
    NameTypeDescription
    methodstringHTTP methodOne of: GET, POST, PUT, PATCH, DELETEDefault: "GET"
    pathrequiredstringPath relative to the API base URL, or a full URL on the same API (e.g. a next-page link)
    queryobjectQuery string parameters
    bodyunknownJSON body
    formobjectBody as application/x-www-form-urlencoded instead of JSON
    body_base64stringBinary body, base64 (at most 960000 characters)
    content_typestringContent-Type of body_base64
    headersobjectExtra headers such as Accept. Authentication is added automatically.
  • Contentful (GraphQL) GraphQL requestCONTENTFULGRAPHQL_SEND_GRAPHQL_REQUEST

    Runs a GraphQL query or mutation against the Contentful (GraphQL) API and returns its data and errors.

    Required scopes

    No scopes required

    Input

    Contentful (GraphQL) GraphQL request input
    NameTypeDescription
    queryrequiredstringGraphQL query or mutation
    variablesobjectGraphQL variables