# clientAccessTokenGenerate

Generate a new access token for a client, which can be used to authenticate with the API through a 'Authorization: Bearer &#x003C;token&#x003E;' header.


```graphql
mutation ClientAccessTokenGenerate($clientId: String!, $clientSecret: String!) {
  clientAccessTokenGenerate(clientId: $clientId, clientSecret: $clientSecret) {
    expires
    token
  }
}
```


### Arguments [#arguments]

#### <span class="gqlmd-mdx-entity"><code class="gqlmd-mdx-entity-name">clientId</code></span><span class="gqlmd-mdx-bullet">&nbsp;</span><span class="gqlmd-mdx-entity"><code class="gqlmd-mdx-entity-name">String!</code></span> `non-null` `scalar` [#clientidstring-non-null-scalar] 
[`String!`](https://graphql.strise.ai/connect/docs/types/scalars/string)


#### <span class="gqlmd-mdx-entity"><code class="gqlmd-mdx-entity-name">clientSecret</code></span><span class="gqlmd-mdx-bullet">&nbsp;</span><span class="gqlmd-mdx-entity"><code class="gqlmd-mdx-entity-name">String!</code></span> `non-null` `scalar` [#clientsecretstring-non-null-scalar] 
[`String!`](https://graphql.strise.ai/connect/docs/types/scalars/string)


### Type [#type]

#### <span class="gqlmd-mdx-entity"><code class="gqlmd-mdx-entity-name">AccessToken</code></span> `object` [#accesstoken-object] 
[`AccessToken`](https://graphql.strise.ai/connect/docs/types/objects/access-token)
An access token used to communicate with the Strise.ai APIs.

### Response Fields [#response-fields]

#### <span class="gqlmd-mdx-entity"><code class="gqlmd-mdx-entity-name">expires</code></span><span class="gqlmd-mdx-bullet">&nbsp;</span><span class="gqlmd-mdx-entity"><code class="gqlmd-mdx-entity-name">Int!</code></span> `non-null` `scalar` [#expiresint-non-null-scalar] 
[`Int!`](https://graphql.strise.ai/connect/docs/types/scalars/int)
The timestamp representing when the token is expiring. This is seconds since epoch.


#### <span class="gqlmd-mdx-entity"><code class="gqlmd-mdx-entity-name">token</code></span><span class="gqlmd-mdx-bullet">&nbsp;</span><span class="gqlmd-mdx-entity"><code class="gqlmd-mdx-entity-name">String!</code></span> `non-null` `scalar` [#tokenstring-non-null-scalar] 
[`String!`](https://graphql.strise.ai/connect/docs/types/scalars/string)
The access token as a JWT.