For PlanetScale, we need a service token ID, and a service token. These are straight-forward to add. Make sure to pay attention to the scopes when you create the tokens.

1

Log in to your PlanetScale account

2

Navigate to your Organization Settings

Click on the settings icon next to your organization name.

3

Access Service Tokens

Click on “Service Tokens” in the left hand menu.

4

Create a new service token

Click on the “New token” button.

5

Set permissions

Make sure to grant the service token the Read permission for the organization and database you want to use it with.

6

Retrieve token information

After creation, you will be presented with a SERVICE_TOKEN_ID and a SERVICE_TOKEN.

For security reasons, the service token is only shown once and cannot be retrieved later. If you lose your service token, you will need to create a new one.