mirror of https://github.com/coder/coder.git
16 lines
365 B
Modula-2
16 lines
365 B
Modula-2
<!-- APIDOCGEN: BEGIN SECTION -->
|
|
# Authentication
|
|
|
|
Long-lived tokens can be generated to perform actions on behalf of your user account:
|
|
|
|
```shell
|
|
coder tokens create
|
|
```
|
|
|
|
You can use tokens with the Coder's REST API using the `Coder-Session-Token` HTTP header.
|
|
|
|
```console
|
|
curl 'http://coder-server:8080/api/v2/workspaces' \
|
|
-H 'Coder-Session-Token: *****'
|
|
```
|