v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1425156138.7 KB

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

nextTokenstring

The token to use when requesting the next set of service accounts.

serviceAccountIdstring required

The ID of the service account where the tokens reside.

workspaceIdstring required

The ID of the workspace where the tokens reside.