Skip to content

Retrieving your Account ID, Database ID, and API Token

Alex edited this page Oct 4, 2023 · 2 revisions

Account ID

Your Account ID appears as part of the URL whenever you click on your account from the dashboard home:
image
Ours is: efdc5258818b25316c9f32128367def1

Database ID

On your account page, expand the Workers section and click on D1. From there, you can click the copy button next to the Database ID:
image

API Token

Go to your API Tokens page. There, you'll need to click on Create Token and scroll down to Create Custom Token. You'll need to add Account.D1:edit to the permissions. Optionally, you can also restrict this token to a specific account.
image
Click Continue To Summary and then click Create Token.

You'll now have the option to copy that token.
image

Clone this wiki locally