Bird
0
0

Given this token request snippet, what is the expected response field containing the access token?

medium📝 Predict Output Q13 of 15
Rest API - Authentication and Authorization
Given this token request snippet, what is the expected response field containing the access token?
POST /oauth2/token HTTP/1.1
Host: api.example.com
Content-Type: application/x-www-form-urlencoded

grant_type=client_credentials&client_id=abc123&client_secret=secret456
A"error"
B"refresh_token"
C"id_token"
D"access_token"
Step-by-Step Solution
Solution:
  1. Step 1: Understand client credentials response

    The response to this request includes an access token to authorize API calls.
  2. Step 2: Identify correct response field

    The field "access_token" holds the token; "refresh_token" and "id_token" are not returned here.
  3. Final Answer:

    "access_token" -> Option D
  4. Quick Check:

    Access token field = "access_token" [OK]
Quick Trick: Access token always in "access_token" field [OK]
Common Mistakes:
  • Expecting a refresh token in client credentials flow
  • Confusing id_token with access_token
  • Assuming error field means success

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes