Skip to content

Commit 2d7d6ad

Browse files
authored
Merge pull request #323 from dbt-labs/repo-sync
REPO SYNC - Public to Private
2 parents f79c494 + a6bb2f8 commit 2d7d6ad

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

website/docs/faqs/API/rotate-token.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,24 @@ id: rotate-token
77

88
For security reasons and best practices, you should aim to rotate API keys every so often.
99

10+
You can rotate your API key automatically with the push of a button in your dbt Cloud environment or manually using the command line.
11+
12+
<Tabs>
13+
14+
<TabItem value="Automatic">
15+
16+
To automatically rotate your API key:
17+
18+
1. Navigate to the Account settings by clicking the **gear icon** in the top right of your dbt Cloud account.
19+
2. Select **API Access** from the lefthand side.
20+
3. In the **API** pane, click `Rotate`.
21+
22+
<Lightbox src="/img/docs/dbt-cloud/rotate-token.png" title="Click the rotate button to generate a new key" />
23+
24+
</TabItem>
25+
26+
<TabItem value="Manual">
27+
1028
1. Rotate your [User API token](/docs/dbt-cloud-apis/user-tokens) by replacing `YOUR_USER_ID`, `YOUR_CURRENT_TOKEN`, and `YOUR_ACCESS_URL `with your information in the following request.
1129

1230
```
@@ -41,3 +59,7 @@ For example, if your deployment is Virtual Private dbt:
4159

4260
`http://cloud.customizedurl.getdbt.com/` <br />
4361
`http://cloud.getdbt.com/`<br />
62+
63+
</TabItem>
64+
65+
</Tabs>
Loading

0 commit comments

Comments
 (0)