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

# createApiTokens

> Create one or more short-lived API access tokens using your API key.

<Warning>
  API Keys are sensitive credentials. Store them securely and never expose them in client-side code.
</Warning>

### Returns

<ResponseField name="createApiTokens" type="[ApiToken!]!">
  List of newly created API tokens. See [ApiToken](/api-reference/graphql/types/ApiToken).
</ResponseField>

### Arguments

<ResponseField name="input" type="CreateApiTokensInput">
  Configuration for the tokens to be created. See [CreateApiTokensInput](/api-reference/graphql/types/CreateApiTokensInput).
</ResponseField>

### Example

```graphql theme={null}
mutation CreateApiTokens($input: CreateApiTokensInput) {
  createApiTokens(input: $input) {
    id
    token
    expiresTimeString
    requestLimit
    remaining
  }
}
```

### Playground

<iframe src={`https://graphql.mobula.io/graphql?query=${encodeURIComponent('mutation CreateApiTokens($input: CreateApiTokensInput) { createApiTokens(input: $input) { id token expiresTimeString requestLimit remaining } }')}&variables=${encodeURIComponent('{"input": {"count": 1, "requestLimit": "500", "expiresIn": 86400}}')}`} title="GraphQL Playground" style={{ width: '100%', minHeight: '600px', border: '1px solid var(--color-border)', borderRadius: '8px' }} />
