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

Authenticate with HTTP Digest auth

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

Authenticate with HTTP Digest auth (MD5, qop=auth).

Credentials: apibee / password123, realm apibee. A request without credentials gets 401 with a WWW-Authenticate: Digest challenge carrying nonce and opaque; clients such as curl --digest, Postman and requests.auth.HTTPDigestAuth then retry automatically.

response = MD5(HA1:nonce:nc:cnonce:qop:HA2) where HA1 = MD5(username:realm:password) and HA2 = MD5(method:uri). Without qop: MD5(HA1:nonce:HA2). Nonces expire after 5 minutes; the 401 then includes stale=true. Replays are refused: with qop=auth each request must use a higher nc than the last one for that nonce, and without qop a nonce works once.

Note: HTTP Digest (RFC 7616, MD5, qop=auth). First call returns 401 with a nonce; curl --digest / Postman handle the handshake.

HTTP Digest (MD5, qop=auth) — apibee / password123

Responses

200
Authenticated.
401
Missing or invalid Digest header, wrong credentials, or an unknown or stale nonce. Includes a fresh challenge.

Example

Request
curl -X GET "https://api.testingapis.com/api/auth/digest" \
  --digest -u apibee:password123 \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response200 OK
{"authenticated": true, "scheme": "digest", "user": "apibee", "qop": "auth"}

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.