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

# apiTokens

> Get all active short-lived api tokens for this api key. Reference for the apiTokens query in the Codex API: arguments, response fields, and usage.

## GraphQL

```
type Query {
  # Requires a Growth or Enterprise plan.
  apiTokens: [ApiToken!]!
}

type ApiToken {
  id: String!
  token: String!
  expiresTimeString: String!
  requestLimit: String!
  remaining: String
}
```

### Example

[Test this query in the Explorer →](https://docs.codex.io/explore.md)

```graphql theme={null}
{
  apiTokens {
    id
    token
    expiresTimeString
    requestLimit
    remaining
  }
}
```


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