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: content/docs/account-settings/api-tokens.mdx
+39-2Lines changed: 39 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,25 +19,62 @@ Follow the steps below to create API Token
19
19
3. Enter the name for the API Token
20
20
4. Click on `Save` button to save the changes
21
21
5. Copy the API Token by clicking on `Copy` button displayed under `Actions` menu
22
-
6. Use the API Token in the services that require it to authenticate as `xc-token` in the headers.
22
+
6. Use the API Token in the services that require it to authenticate. You can use either the `xc-token` header or the `Authorization` header with bearer token format.
23
+
24
+
**Option 1: Using xc-token header**
23
25
```json
24
26
{
25
27
"headers": {
26
28
"xc-token": "Copied API token here under quotes"
27
29
}
28
30
}
29
31
```
32
+
33
+
**Option 2: Using Authorization header (since v0.264.7)**
34
+
```json
35
+
{
36
+
"headers": {
37
+
"Authorization": "Bearer Copied API token here under quotes"
38
+
}
39
+
}
40
+
```
30
41
31
42

32
43
33
44

34
45
35
-
<Callouttype="info">API Token does not expire, but can be deleted anytime</Callout>
46
+
<Callouttype="info">API Token does not expire, but can be deleted anytime. Both `xc-token` and `Authorization: Bearer` header formats are supported for authentication.</Callout>
36
47
37
48
API Token created will get added to the list. Copy API token by clicking on `Copy` button displayed under `Actions` menu
38
49
39
50

40
51
52
+
## Authentication Methods
53
+
54
+
NocoDB supports two methods for API token authentication:
55
+
56
+
### Method 1: xc-token Header
57
+
Use the `xc-token` header with your API token value directly:
0 commit comments