NAiOS IconNAiOS Logo
Volver al catálogo

Contentful Graphql

contentful_graphql

The Contentful GraphQL Content API allows developers to query and deliver content using GraphQL, providing a flexible and efficient way to access content stored in Contentful.

Acciones
3
Triggers
0
Autenticación
OAuth gestionado
No
Información técnica: el detalle de parámetros, schemas y triggers de esta página está pensado para equipos de integración. Si solo necesitas saber si tu herramienta favorita está disponible, basta con ver la lista de acciones.

Acciones disponibles (3)

Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.

Get CMA TokenCONTENTFUL_GRAPHQL_GET_CMA_TOKENAcción

Tool to retrieve a Contentful Management API (CMA) access token. Use when making CMA calls to ensure valid authorization.

Parámetros de entrada

Sin parámetros.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

GraphQL Content API Persisted QueryCONTENTFUL_GRAPHQL_GRAPH_QL_CONTENT_API_PERSISTED_QUERYAcción

Tool to execute a persisted GraphQL query via its SHA256 hash. Use after registering a query hash to run cached queries by hash. On first call include full query text; thereafter invoke with only hash and variables.

Parámetros de entrada

  • querystring

    Full GraphQL query text; required on first invocation to register the persisted query.

  • versioninteger

    Persisted query version number; currently must be 1.

  • space_idstringObligatorio

    Contentful Space ID.

  • variablesobject

    Variables for the GraphQL query as a JSON object.

  • sha256_hashstringObligatorio

    Lowercase SHA256 hash of the GraphQL query text.

  • access_tokenstring

    Optional override for the Authorization header. If provided, used instead of the token in metadata.

  • environment_idstringObligatorio

    Contentful Environment ID.

Parámetros de salida

  • dataobject

    GraphQL response data, may be absent on error.

  • errorstring

    Error if any occurred during the execution of the action

  • errorsobject[]

    List of GraphQL errors if any occurred.

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

  • X-Contentful-RateLimit-Resetinteger

    Seconds until rate limit resets (present on rate limit errors).

  • X-Contentful-Graphql-Query-Costinteger

    Calculated query complexity from response headers.

GraphQL Content API QueryCONTENTFUL_GRAPHQL_GRAPH_QL_CONTENT_API_QUERYAcción

Tool to execute a GraphQL query against a specified space and environment. Use when fetching Contentful content via GraphQL after obtaining or providing a valid token.

Parámetros de entrada

  • querystringObligatorio

    GraphQL document string to execute.

  • space_idstringObligatorio

    Contentful Space ID.

  • variablesobject

    Variables for the GraphQL query as a JSON object.

  • access_tokenstring

    Optional override for the Authorization header. If provided, used instead of the bearer token in metadata.

  • environment_idstringObligatorio

    Contentful Environment ID.

  • resource_resolutionstring

    Base64-encoded JSON map for cross-space resource resolution. Only needed for cross-space links.

  • persisted_query_hashstring

    SHA-256 hash for Automatic Persisted Queries (APQ).

  • persisted_query_versioninteger

    Persisted query version number for APQ.

Parámetros de salida

  • dataobject

    GraphQL response data, may be absent on error.

  • errorstring

    Error if any occurred during the execution of the action

  • errorsobject[]

    List of GraphQL errors if any occurred.

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

  • X-Contentful-RateLimit-Resetinteger

    Seconds until rate limit resets (present on 429 responses).

  • X-Contentful-Graphql-Query-Costinteger

    Calculated query complexity from response headers.