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

Authenticate with HTTP Basic auth

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

Credentials: apibee / password123.

Header: Authorization: Basic YXBpYmVlOnBhc3N3b3JkMTIz (base64 of apibee:password123).

HTTP Basic — apibee / password123

Responses

200
Authenticated.
401
Header missing or malformed, or wrong credentials. Includes WWW-Authenticate: Basic realm="apibee".

Example

Request
curl -X GET "https://api.testingapis.com/api/auth/basic" \
  -H "Authorization: Basic YXBpYmVlOnBhc3N3b3JkMTIz" \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response200 OK
{"authenticated": true, "scheme": "basic", "user": "apibee"}

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.