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

Authenticate with a static bearer token

GEThttps://api.testingapis.com/api/auth/bearerSign in to see this endpoint's URL

Header: Authorization: Bearer apibee-token-123.

Bearer token — apibee-token-123

Responses

200
Authenticated.
401
Token missing, or invalid (then WWW-Authenticate: Bearer error="invalid_token").

Example

Request
curl -X GET "https://api.testingapis.com/api/auth/bearer" \
  -H "Authorization: Bearer apibee-token-123" \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response200 OK
{"authenticated": true, "scheme": "bearer", "token": "apibee-token-123"}

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.