Create or revoke an API token
Open Settings → Integrations → API access and choose Create token. Enter Name. Select permissions under What it can do and set Expires after. Then choose Create token. Save the token shown once with Copy your token. Use Read API docs for the available API and Revoke when access should end. Tokens use your current account permissions.