

import { Callout } from 'fumadocs-ui/components/callout';

Generate a new access token for a client, which can be used to authenticate with the API through a 'Authorization: Bearer \<token>' header.

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

Arguments [#arguments]

clientId String! non-null scalar [#clientidstring-non-null-scalar]

[`String!`](/types/scalars/string)

clientSecret String! non-null scalar [#clientsecretstring-non-null-scalar]

[`String!`](/types/scalars/string)

Type [#type]

AccessToken object [#accesstoken-object]

[`AccessToken`](/types/objects/access-token)
An access token used to communicate with the Strise.ai APIs.

Response Fields [#response-fields]

expires Int! non-null scalar [#expiresint-non-null-scalar]

[`Int!`](/types/scalars/int)
The timestamp representing when the token is expiring. This is seconds since epoch.

token String! non-null scalar [#tokenstring-non-null-scalar]

[`String!`](/types/scalars/string)
The access token as a JWT.
