Skip to content

Commit

Permalink
update docs for using API keys with API
Browse files Browse the repository at this point in the history
  • Loading branch information
sami-alajrami committed Oct 28, 2024
1 parent 26a5a69 commit a4b4839
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs.kosli.com/content/getting_started/service-accounts.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,8 @@ you can assign an API key to any CLI command by one of the following options:

### In API

When utilizing the Kosli API directly, you can authenticate your requests using basic authentication. Set the `username` to your API key and the `password` to any string value.
When making requests against the Kosli API directly (e.g. using curl), you can authenticate your requests using bear token. Set the bearer token in the request Authorization header to your API key.

```shell
curl -H "Authorization: Bearer <<your-api-key>>" http://app.kosli.com/api/v2/environments/<<your-org-name>>
```

0 comments on commit a4b4839

Please sign in to comment.