Operations (sample payloads)

Main operations

Raw query

Run a raw query to a GraphQL endpoint Sample Input

{
    "graphql_endpoint": "https://api.example.com/graphql",
    "headers": [
        \{
            "key": "Authorization",
            "value": "Bearer token123"
        \},
        \{
            "key": "Content-Type",
            "value": "application/json"
        \}
    ],
    "variables": [
        \{
            "key": "userId",
            "value": "12345"
        \},
        \{
            "key": "limit",
            "value": 10
        \}
    ],
    "query": "query GetUserPosts($userId: ID!, $limit: Int!) { user(id: $userId) { name posts(limit: $limit) { id title content } } }",
    "fail_on_api_error": true
}

Sample Output

{
    "data": {
        "user": {
            "name": "John Doe",
            "posts": [
                \{
                    "id": "post1",
                    "title": "My First Post",
                    "content": "This is the content of my first post."
                \},
                \{
                    "id": "post2",
                    "title": "Another Post",
                    "content": "Here's another post I wrote."
                \}
            ]
        }
    }
}

Was this page helpful?