Skip to content

Get protected resource metadata

Request

OAuth 2.0 protected resource metadata (RFC 9728) of API V3: the resource identifier, the authorization server that issues tokens for it, and the scopes it accepts. The path follows RFC 9728 §3.1: the well-known suffix is inserted between the host and the path of the resource identifier https://api.alteg.io/api/v3. A 401 from /api/v3 points here in WWW-Authenticate: Bearer resource_metadata="...".

curl -i -X GET \
  https://developer.alteg.io/_mock/en/b2b-v3/openapi/.well-known/oauth-protected-resource/api/v3

Responses

Protected resource metadata.

Headers
X-Request-Idstring

Request identifier for support and log correlation.

Cache-Controlstring

Public metadata may be cached briefly; clients should revalidate before long-lived use.

Example:"public, max-age=3600"
Bodyapplication/json
resourcestringrequired

Resource identifier, also the audience of tokens accepted here.

authorization_serversArray of stringsrequired
scopes_supportedArray of strings
bearer_methods_supportedArray of strings
Response
{ "resource": "https://api.alteg.io/api/v3", "authorization_servers": [ "https://api.alteg.io" ], "bearer_methods_supported": [ "header" ], "scopes_supported": [ "appointments:read", "clients:read" ] }