You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sqlite-cloud/platform/access-tokens.mdx
+34-26Lines changed: 34 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,14 @@
1
1
---
2
2
title: Access Tokens
3
-
description: Grant to your users, devices, tenant, access to SQLite Cloud services.
3
+
description: Grant to your users, devices, tenant, access to SQLite Cloud database and services.
4
4
category: platform
5
5
status: publish
6
6
slug: access-tokens
7
7
---
8
8
9
9
# Access Token API
10
10
11
-
Access Tokens let backend systems securely grant users, devices, tenants, etc. access to SQLite Cloud services (SQLite Sync, Weblite, etc.). These endpoints enable full token lifecycle management: creation, inspection, validation, update, and revocation.
11
+
Access Tokens let backend systems securely grant users, devices, tenants, etc. access to SQLite Cloud database and services (SQLite Sync, Weblite, etc.). These endpoints enable full token lifecycle management: creation, inspection, validation, update, and revocation.
12
12
All endpoints require authentication. Use an **API Key** or an **Access Token** via the `Authorization` header.
13
13
14
14
---
@@ -17,9 +17,9 @@ All endpoints require authentication. Use an **API Key** or an **Access Token**
17
17
18
18
### `POST /v2/tokens`
19
19
20
-
Creates a new Access Token for a specific entity.
21
-
The `entityId` refers to any kind of resource you want to associate the Access Token with. It must be a unique ID in your system.
22
-
The `expiresAt` is a date time value to set an expiration, or `null` if it doesn't expire.
20
+
Creates a new Access Token for a specific user.
21
+
The `userId` refers to your user's id or any kind of resource you want to associate the Access Token to. It must be a unique ID in your system.
22
+
The `expiresAt` is a date time value to set expiration, or `null` if it doesn't expire.
23
23
24
24
>[!note] Store the Access Token securely. It will not be shown again.
25
25
@@ -29,12 +29,13 @@ The `expiresAt` is a date time value to set an expiration, or `null` if it doesn
0 commit comments