Files
coder/docs/api/authentication.md
2023-02-01 17:05:45 -03:00

15 lines
333 B
Markdown
Generated

# Authentication
Long-lived tokens can be generated to perform actions on behalf of your user account:
```console
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: *****'
```