> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stigg.io/llms.txt
> Use this file to discover all available pages before exploring further.

# hooks



**query** `hooks(filter: HookFilter, paging: CursorPaging, sorting: [HookSort!]): HookConnection!`

## Arguments

**`filter`**: `HookFilter` = {}

Specify to filter the records returned.

---

**`paging`**: `CursorPaging` = {first: 10}

Limit or page results.

---

**`sorting`**: `[HookSort!]` = [{direction: DESC, field: createdAt}]

Specify to sort results.

## Returns

`HookConnection!`

**`edges`**: `[HookEdge!]!`

Array of edges.

---

**`pageInfo`**: `PageInfo!`

Paging information

---

**`totalCount`**: `Int!`

Fetch total count of records

## Examples

```graphql Query
query Hooks {
  hooks {
    edges {
      cursor
      node {
        account {
          __typename
        }
        configuration
        createdAt
        description
        endpoint
        environment {
          __typename
        }
      }
    }
    pageInfo {
      endCursor
      hasNextPage
      hasPreviousPage
      startCursor
    }
    totalCount
  }
}
```

```json Response
{
  "data": {
    "hooks": {
      "edges": [
        {
          "cursor": "value",
          "node": {
            "account": {
              "__typename": "Account"
            },
            "configuration": "value",
            "createdAt": "value",
            "description": "string",
            "endpoint": "string",
            "environment": {
              "__typename": "Environment"
            }
          }
        }
      ],
      "pageInfo": {
        "endCursor": "value",
        "hasNextPage": true,
        "hasPreviousPage": true,
        "startCursor": "value"
      },
      "totalCount": 1
    }
  }
}
```


## Related topics

- [hook](https://docs.stigg.io/graphql-reference/queries/hook.md)
- [Hook](https://docs.stigg.io/graphql-reference/types/Hook.md)
- [HookStatus](https://docs.stigg.io/graphql-reference/types/HookStatus.md)
- [HookConnection](https://docs.stigg.io/graphql-reference/types/HookConnection.md)
- [HookEdge](https://docs.stigg.io/graphql-reference/types/HookEdge.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.