Skip to content

List all API keys

Request

OPA roles:
  • resource_admin

Lists all API keys for a specified service user. This doesn't return the corresponding secret for each API key.

Security
bearerAuth
Path
team_namestringrequired

The name of your team

user_namestringrequired

The username for an existing user

curl -i -X GET \
  'https://{org_name}.pam.okta.com/v1/teams/{team_name}/service_users/{user_name}/keys' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

OK

Headers
Bodyapplication/json
listArray of objects(ServiceUserKey)
Response
{ "list": [ { … }, { … } ] }