Contentful Graphql
contentful_graphqlThe 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 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ónTool to retrieve a Contentful Management API (CMA) access token. Use when making CMA calls to ensure valid authorization.
CONTENTFUL_GRAPHQL_GET_CMA_TOKENAcciónTool 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
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
GraphQL Content API Persisted QueryCONTENTFUL_GRAPHQL_GRAPH_QL_CONTENT_API_PERSISTED_QUERYAcciónTool 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.
CONTENTFUL_GRAPHQL_GRAPH_QL_CONTENT_API_PERSISTED_QUERYAcciónTool 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
querystringFull GraphQL query text; required on first invocation to register the persisted query.
versionintegerPersisted query version number; currently must be 1.
space_idstringObligatorioContentful Space ID.
variablesobjectVariables for the GraphQL query as a JSON object.
sha256_hashstringObligatorioLowercase SHA256 hash of the GraphQL query text.
access_tokenstringOptional override for the Authorization header. If provided, used instead of the token in metadata.
environment_idstringObligatorioContentful Environment ID.
Parámetros de salida
dataobjectGraphQL response data, may be absent on error.
errorstringError if any occurred during the execution of the action
errorsobject[]List of GraphQL errors if any occurred.
successfulbooleanObligatorioWhether or not the action execution was successful or not
X-Contentful-RateLimit-ResetintegerSeconds until rate limit resets (present on rate limit errors).
X-Contentful-Graphql-Query-CostintegerCalculated query complexity from response headers.
GraphQL Content API QueryCONTENTFUL_GRAPHQL_GRAPH_QL_CONTENT_API_QUERYAcciónTool 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.
CONTENTFUL_GRAPHQL_GRAPH_QL_CONTENT_API_QUERYAcciónTool 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
querystringObligatorioGraphQL document string to execute.
space_idstringObligatorioContentful Space ID.
variablesobjectVariables for the GraphQL query as a JSON object.
access_tokenstringOptional override for the Authorization header. If provided, used instead of the bearer token in metadata.
environment_idstringObligatorioContentful Environment ID.
resource_resolutionstringBase64-encoded JSON map for cross-space resource resolution. Only needed for cross-space links.
persisted_query_hashstringSHA-256 hash for Automatic Persisted Queries (APQ).
persisted_query_versionintegerPersisted query version number for APQ.
Parámetros de salida
dataobjectGraphQL response data, may be absent on error.
errorstringError if any occurred during the execution of the action
errorsobject[]List of GraphQL errors if any occurred.
successfulbooleanObligatorioWhether or not the action execution was successful or not
X-Contentful-RateLimit-ResetintegerSeconds until rate limit resets (present on 429 responses).
X-Contentful-Graphql-Query-CostintegerCalculated query complexity from response headers.