Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/content/docs/api/authentication.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ If successful you should get a response like the following:

```json
{
"token": "eyTMjU2IiwiY...4Q0JDLUhWxnIjoiUE_A",
"token": "api_eyTMjU2IiwiY...4Q0JDLUhWxnIjoiUE_A",
"user": {
"id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"username": "admin",
Expand All @@ -35,7 +35,7 @@ If successful you should get a response like the following:
Save the token value and send an `Authorization` header with all your data requests with the value `Bearer <token>`. Your request header should look something like this:

```http request
Authorization: Bearer eyTMjU2IiwiY...4Q0JDLUhWxnIjoiUE_A
Authorization: Bearer api_eyTMjU2IiwiY...4Q0JDLUhWxnIjoiUE_A
```

For example, with `curl` it would look like this:
Expand Down
4 changes: 2 additions & 2 deletions src/content/docs/v1/api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ If successful you should get a response like the following:
Save the token value and send an `Authorization` header with all your data requests with the value `Bearer <token>`. Your request header should look something like this:

```http request
Authorization: Bearer eyTMjU2IiwiY...4Q0JDLUhWxnIjoiUE_A
Authorization: Bearer api_eyTMjU2IiwiY...4Q0JDLUhWxnIjoiUE_A
```

For example, with `curl` it would look like this:
Expand All @@ -50,7 +50,7 @@ Save the token value and pass it as a _cookie_ with all your data requests.
The cookie name is `umami.auth`. Your request header should look something like this:

```http request
Cookie: umami.auth=eyTMjU2IiwiY...4Q0JDLUhWxnIjoiUE_A
Cookie: umami.auth=api_eyTMjU2IiwiY...4Q0JDLUhWxnIjoiUE_A
```

## Websites
Expand Down