# cs token (/docs/cli/token)

`cs token` prints the session's access token — refreshed first if it has
expired — and nothing else, so it can be substituted straight into a header.
It is a **user session JWT**: the member principal, accepted on every endpoint.

## Usage \[#usage]

```bash
cs token
```

## Extended usage \[#extended-usage]

```bash
curl https://api.corespeed.io/connectors \
  -H "Authorization: Bearer $(cs token)"
```

The token lives five minutes. That is right for a request you are making now
and wrong for anything that stays configured — give those an API key from
[`cs keys create`](/docs/cli/keys) instead.