Skip to content

List all API servers

Request

Beta
OAuth 2.0 scope:
  • okta.resourceServers.apiServers.read
Admin roles:
  • SUPER_ADMIN

Lists all registered third-party API servers

Query
afterstring

The cursor to use for pagination. It is an opaque string that specifies your current location in the list and is obtained from the Link response header. See Pagination and Link header.

limitinteger, [ 1 .. 200 ]

A limit on the number of objects to return

Default:20
searchstring, (scim-filter)

Searches for API servers with a filtering expression. The expression supports the following operators and properties:

  • eq operator for the status property
  • sw, co, and eq operator for the metadata.displayName property

Note: This operation requires URL encoding. See Special characters.

Examples:
Filter by display name and status
search=metadata.displayName sw "Example" and status eq "ACTIVE"
Filter by the associated app instance
search=metadata.app.orn eq "orn:okta:idp:00o1gjjp4jsdR3Sww4x7:apps:oidc_client:0oaACTOR0g4"
curl -i -X GET \
  'https://subdomain.okta.com/resource-servers/api/v1/api-servers?after=string&limit=20&search=metadata.displayName%20sw%20%22Example%22%20and%20status%20eq%20%22ACTIVE%22'

Responses

OK

Bodyapplication/json
dataArray of objects(ApiServer)required
Response
{ "data": [ { … }, { … }, { … } ], "_links": { "self": { … }, "next": { … } } }