Request Request
Request Certified

yaml
type: "io.kestra.plugin.graphql.Request"
yaml
id: graphql_request
namespace: company.team

tasks:
  - id: graphql_query
    type: io.kestra.plugin.graphql.Request
    uri: https://example.com/graphql
    query: |
      query GetUser($userId: ID!) {
        user(id: $userId) {
          name
          email
        }
      }
    variables:
      userId: "12345"

yaml
id: graphql_with_auth
namespace: company.team

tasks:
  - id: get_data
    type: io.kestra.plugin.graphql.Request
    uri: https://example.com/graphql
    headers:
      Authorization: "Bearer {{ secret('API_TOKEN') }}"
    query: |
      query {
        viewer {
          name
          email
        }
      }

yaml
id: graphql_with_operation_name
namespace: company.team

tasks:
  - id: get_data
    type: io.kestra.plugin.graphql.Request
    uri: https://example.com/graphql
    query: |
      query GetUser {
        user(id: "1") {
          name
        }
      }

      query GetPosts {
        posts {
          title
        }
      }
    operationName: "GetUser"
Properties
Defaultapplication/json
Defaultfalse
Defaultfalse
SubTypestring
DefaultPOST
Default{ "followRedirects": "true", "allowFailed": "false", "defaultCharset": "UTF-8" }
Definitions
allowFailedbooleanstring
Defaultfalse
allowedResponseCodesarray
SubTypeinteger
auth
type*Requiredobject
passwordstring
usernamestring
type*Requiredobject
tokenstring
basicAuthPasswordDeprecatedstring
basicAuthUserDeprecatedstring
connectTimeoutDeprecatedstring
Formatduration
connectionPoolIdleTimeoutDeprecatedstring
Formatduration
defaultCharsetstring
DefaultUTF-8
followRedirectsbooleanstring
Defaulttrue
logLevelDeprecatedstring
Possible Values
ALLTRACEDEBUGINFOWARNERROROFFNOT_SPECIFIED
logsarray
SubTypestring
Possible Values
REQUEST_HEADERSREQUEST_BODYRESPONSE_HEADERSRESPONSE_BODY
maxContentLengthDeprecatedinteger
proxy
addressstring
passwordstring
portintegerstring
typestring
DefaultDIRECT
Possible Values
DIRECTHTTPSOCKS
usernamestring
proxyAddressDeprecatedstring
proxyPasswordDeprecatedstring
proxyPortDeprecatedinteger
proxyTypeDeprecatedstring
Possible Values
DIRECTHTTPSOCKS
proxyUsernameDeprecatedstring
readIdleTimeoutDeprecatedstring
Formatduration
readTimeoutDeprecatedstring
Formatduration
ssl
insecureTrustAllCertificatesbooleanstring
timeout
connectTimeoutstring
readIdleTimeoutstring
DefaultPT5M
SubTypearray
Formaturi

Create automations with Graphql Request