Returns a list of tokens for a workspace service account.
This does not return the key for each token. You cannot access keys after they are created. To create a new key, delete the token and recreate it.
Service accounts are only available for workspaces that are compatible with Grafana version 9 and above.
get/workspaces/{workspaceId}/serviceaccounts/{serviceAccountId}/tokens
Path parameters
serviceAccountIdstring required
The ID of the service account for which to return tokens.
workspaceIdstring required
The ID of the workspace for which to return tokens.
Query parameters
maxResultsinteger
The maximum number of tokens to include in the results.
nextTokenstring
The token for the next set of service accounts to return. (You receive this token from a previous <code>ListWorkspaceServiceAccountTokens</code> operation.)
Response
Success