TestingAPIs is still being built. If something breaks, email support@testingapis.com.

Greet an authenticated admin

GEThttps://api.testingapis.com/api/Admin/authorizeSign in to see this endpoint's URL

Get a token from POST /api/User/Login (Michael / Thompson) and send Authorization: Bearer <token>. The role check is case-sensitive: tokens from POST /api/auth/jwt/login carry the lowercase role admin and get 403 here.Get a token from POST … (Michael / Thompson) and send Authorization: Bearer <token>. The role check is case-sensitive: tokens from POST … carry the lowercase role admin and get 403 here.

Bearer token — {{legacyJwt}}

Responses

200
Greeting text.
401
Token missing, invalid or expired.
403
Valid token without the Admin role.

Example

Request
curl -X GET "https://api.testingapis.com/api/Admin/authorize" \
  -H "Authorization: Bearer {{legacyJwt}}" \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response200 OK
Content-Type: text/plain; charset=utf-8

Hi, I’m the Admin — how can I help you today?

Sign in to see the details

The parameters, request and response examples and the live Try it panel for this endpoint are for signed-in members. Accounts are free and take a few seconds to create.