Pages

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from this space and version 7.6

...

If you do not already have a token, get it from the Frosmo Control Panel. You can also recreate or revoke an existing token. The token is valid for 356 days from the moment of creation.

Warning

Do not make Graniitti API requests in client-side code that is accessible to parties you do not trust, as this will expose your token to them. Use the Graniitti API only in server-side code and in client-side code that is only accessible to parties you trust.

Getting your personal access token

...

  1. In the Control Panel, select Utilities > Frosmo APIs.
  2. In the Graniitti API

    .

    Click section, click Create token.

    Getting your personal access tokenImage Modified

  3. Copy the token. It will not be shown on the page again.

    Getting your personal access token

You now have your personal access token for authenticating with the Graniitti API. The token will expire in 356 days.

Recreating your personal access token

If you forget your personal access token, or if you need a new one for some other reason, you can recreate the token.

Warning

Recreating the token renders your

previous

current token invalid. If you have applications that use the

previous

current token, their Graniitti API requests will no longer work after you recreate the token.

To recreate your personal access token:

  1. In the Control Panel, select Utilities > Frosmo APIs.
  2. In the Graniitti API

    .

    Click section, click Recreate token.

    Recreating your personal access tokenImage Modified

  3. Copy the token. It will not be shown on the page again.

You have recreated your personal access token. Use the new token in place of the old one in all Graniitti API requests. The new token will expire in 356 days.

Revoking your personal access token

If you no longer need your personal access token, you can revoke it.

Warning

Revoking the token renders it invalid. If you have applications that use the token, their Graniitti API requests will no longer work after you revoke the token.

To revoke your personal access token:

  1. In the Control Panel, select Utilities > Frosmo APIs.
  2. In the Graniitti API

    .

    Click section, click Revoke token.

    Revoking your personal access tokenImage Modified

You have revoked your personal access token and can no longer use it to authenticate Graniitti API requests.