Contentful (GraphQL)
Contentful content via GraphQL: entries and assets
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
- In Contentful open “Settings” → “API keys” and create a key.
- Copy the “Space ID” and the “Content Delivery API - access token” (or the Preview one for drafts).
- To manage content use the “Contentful” connector.
Tools (2)
Contentful (GraphQL) API request
CONTENTFULGRAPHQL_SEND_REQUESTAuthenticated 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 Name Type Description 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 request
CONTENTFULGRAPHQL_SEND_GRAPHQL_REQUESTRuns 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 Name Type Description queryrequiredstringGraphQL query or mutation variablesobjectGraphQL variables

