Skip to content

Get the OAuth protected resource metadata (RFC 9728)

On this page
GET/.well-known/oauth-protected-resourceget_protected_resource_metadata
Riskread
Authenticationnone (public)
Scopesnone
Idempotencynatural: repeating the call gives the same result
Dry runnot applicable
Success status200
Response typeapplication/json

What it does#

  • Use when: An OAuth client or agent needs to learn which authorization server issues tokens for this API.
  • Do not use when: you use an API key (send it as a Bearer token; no discovery is needed).
  • Side effects: None.
  • Reversible: Not applicable, nothing changes.
  • Required scope: none (public).
  • Idempotency: safe to repeat.
  • Typical next step: sign in at the authorization server named in authorization_servers, then call get_current_access with the access token.

Request#

Path parameters#

None.

Query parameters#

None.

Response#

FieldTypeRequiredDescription
resourcestringyes
authorization_serversarray of stringyes
bearer_methods_supportedarray of exactly "header"yes
resource_namestringyes
resource_documentationstringno

Examples#

staging#

Request:

curl 'https://api.seemly.com/.well-known/oauth-protected-resource'

Response: 200:

JSON
{
  "resource": "https://api.seemly.com",
  "authorization_servers": [
    "https://auth.seemly.com"
  ],
  "bearer_methods_supported": [
    "header"
  ],
  "resource_name": "Seemly API"
}

Errors#

StatusCodes
503service_unavailable

Every error is an application/problem+json body with a code, a fix sentence and next_actions. See reading a problem response.

Typical next steps#

View this page as MarkdownReport a problem with this page

Type to search. Try a method and path, an operation name or an error code.