# createClientToken

Mutation · GraphQL API

Create a client token that can be used to initialize a client in order to tokenize payment information.

## Authentication

- SERVER

## Input

- `input` (`CreateClientTokenInput`)

## Returns [CreateClientTokenPayload](/braintree/graphql/reference/types/create-client-token-payload)

Top-level fields returned when creating a client token.

### Returned fields

- `clientMutationId` (`String`): An identifier used to reconcile requests and responses. 255 characters maximum.
- `clientToken` (`String`): A Base64 encoded string used to initialize client SDKs.

## Examples

### Create client token

Top-level input field for generating a client token.

```graphql
mutation createClientToken($input: CreateClientTokenInput) {
  createClientToken(input: $input) {
    clientMutationId
    clientToken
  }
}
```

---

[View the complete GraphQL schema on GitHub](https://raw.githubusercontent.com/braintree/graphql-api/refs/heads/master/schema.graphql)