Creating user tokens

If you want to use a Science Platform API service from a local system, you can create a new user token.

Follow these steps to create a user token.

  1. Open the Rubin Science Platform in a web browser and log in.

  2. Select Settings from the user drop-down menu at the upper right.

    Drop-down user menu
  3. On the settings page, choose Access tokens from the left menu.

  4. Click on Create a token.

    Create token button
  5. Choose a token name, scopes, and expiration. Usually you will want to name the token after the application you will use it with.

    Which scopes to select depends on what you’re doing. For example, to query the TAP service the scope you want is read:tap, but to retrieve images also select read:image.

    If you know that you’ll only be using the token for a limited period of time, you can choose an expiration date. Otherwise, you can set the token to never expire.

    Create token dialog
  6. Click on Create token. You will be shown the token, but only once. Be sure to copy this token and save it somewhere secure on your local system.

    Create token result
  7. Existing tokens will be shown on the Access tokens page, and can be deleted.

    Existing tokens cards

Next steps