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

List every auth scheme with its test credentials

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

Responses

200
Schemes, endpoints and credentials.

Example

Request
curl -X GET "https://api.testingapis.com/api/auth" \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response200 OK
{
  "message": "Hardcoded credentials for every auth scheme. Send them wrong to test your 401 handling; the role endpoints also return 403.",
  "schemes": [
    {
      "scheme": "basic",
      "endpoint": "GET /api/auth/basic",
      "credentials": {"username": "apibee", "password": "password123"}
    },
    {
      "scheme": "basic (path creds)",
      "endpoint": "GET /api/auth/basic/{user}/{pass}",
      "credentials": "Any user/pass — must match the path"
    },
    "… 12 more items"
… (2 more lines)

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.