NPR Authorization Service
The interface to our OAuth2 server
Media & content#openapi#entertainment
Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.
Overview
The interface to our OAuth2 server
Endpoints 3
authorization
- POSTInitiate an OAuth2 login flow for limited input devices
/v2/deviceThis flow should only be used by clients who cannot show a native webview or do not have advanced input controls. It is an alternative to GET /v2/authorize.… - POSTCreate a new OAuth2 access token
/v2/tokenPlease be aware that the required parameters are contingent on the grant_type that you select. For the authorization_code grant type, you are required to pass… - POSTRevoke an existing OAuth2 access token
/v2/token/revokeOur implementation follows the proposed IETF specification RFC-7009. If your client application offers the ability to for a logged-in user to log out, and you…
API details
- Base URL
https://authorization.api.npr.org- Authentication
- OAuth 2.0 (authorization code flow) with 5 scopes
- Operations
- 3 operations on 3 pathsPOST 3
- Main resources
- authorization 3
- Response formats
application/json- Description format
- Swagger 2.0, API version
2 - Links
- Documentation · OpenAPI document · Terms of service · Support
- Listed from
- APIs.guru OpenAPI Directory (CC0-1.0)
Source updated
How to test the NPR Authorization Service in Swastik Codes
- Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
- Fork it into your workspaceChoose a workspace. You get your own copy of the NPR Authorization Service collection, without the publisher's secrets.
- Add your credentialsThis API uses OAuth 2.0 (authorization code flow) with 5 scopes. Add yours in the collection's variables or an environment; the requests already reference it.
- Send a requestPick an endpoint, for example “Initiate an OAuth2 login flow for limited input devices” (POST /v2/device), and press Send. Check the response, add tests and run the whole collection with the runner.
Frequently asked questions
What is the NPR Authorization Service?
The interface to our OAuth2 server It is listed under Media & content and has 3 endpoints.
Who publishes the NPR Authorization Service?
It is listed from Npr's public API description (an OpenAPI document), not published by Npr on Swastik Codes. Anyone who controls npr.org can claim the profile by adding a DNS TXT record.
What is the base URL of the NPR Authorization Service?
Requests go to https://authorization.api.npr.org. Endpoint paths are added to this base URL.
How do I authenticate with the NPR Authorization Service?
With OAuth 2.0 (authorization code flow) with 5 scopes.
How many endpoints does the NPR Authorization Service have?
3 operations on 3 paths (3 POST). The largest groups are authorization.
Is forking the NPR Authorization Service free?
Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.