Bird
0
0

Which of the following is the correct way to send an authentication token in a REST API request header?

easy📝 Syntax Q12 of 15
Rest API - API Documentation
Which of the following is the correct way to send an authentication token in a REST API request header?
AToken: <token>
BAuth-Token: <token>
CAuthorization: Bearer <token>
DAccess: <token>
Step-by-Step Solution
Solution:
  1. Step 1: Recall standard header format

    The standard way to send tokens is using the 'Authorization' header with 'Bearer' prefix.
  2. Step 2: Compare options

    Only Authorization: Bearer uses the correct 'Authorization: Bearer ' format.
  3. Final Answer:

    Authorization: Bearer <token> -> Option C
  4. Quick Check:

    Token header = Authorization: Bearer [OK]
Quick Trick: Use 'Authorization: Bearer' to send tokens [OK]
Common Mistakes:
MISTAKES
  • Using wrong header names like 'Token' or 'Access'
  • Omitting 'Bearer' keyword before token
  • Placing token in URL instead of header

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes