> ## 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.

# apiKeys

> Retrieve paginated list of API keys



**query** `apiKeys(input: GetApiKeysInput!): ApiKeyConnection!`

## Arguments

**`input`**: `GetApiKeysInput!` (required)

## Returns

`ApiKeyConnection!`

**`edges`**: `[ApiKeyEdge!]!`

Edges in the current page

---

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

Pagination information

---

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

Total number of items matching the filter

## Examples

```graphql Query
query ApiKeys($input: GetApiKeysInput!) {
  apiKeys(input: $input) {
    edges {
      cursor
      node {
        createdAt
        description
        displayName
        environmentId
        expireAt
        id
      }
    }
    pageInfo {
      endCursor
      hasNextPage
      hasPreviousPage
      startCursor
    }
    totalCount
  }
}
```

```json Variables
{
  "input": {}
}
```

```json Response
{
  "data": {
    "apiKeys": {
      "edges": [
        {
          "cursor": "string",
          "node": {
            "createdAt": "value",
            "description": "string",
            "displayName": "string",
            "environmentId": "value",
            "expireAt": "value",
            "id": "value"
          }
        }
      ],
      "pageInfo": {
        "endCursor": "value",
        "hasNextPage": true,
        "hasPreviousPage": true,
        "startCursor": "value"
      },
      "totalCount": 1
    }
  }
}
```


## Related topics

- [ApiKey](https://docs.stigg.io/graphql-reference/types/ApiKey.md)
- [Sidecar SDK](https://docs.stigg.io/api-and-sdks/changelog/backend-graphql/sidecar.md)
- [Sidecar Service](https://docs.stigg.io/api-and-sdks/changelog/backend-graphql/sidecar-service.md)
- [Go SDK](https://docs.stigg.io/api-and-sdks/changelog/backend-graphql/go.md)
- [API Keys](https://docs.stigg.io/documentation/managing-your-account/environments/api-keys.md)


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