Cookies
Cookie inspection, setting (with every attribute), deletion, and a cookie-based login session flow.
Your account unlocks these endpoints. Try it on each endpoint's page sends your key for you; from your own code, send a key from your API keys page in the X-TestingApis-Key header.
These endpoints need a free account. Create one or sign in to see their details and try them here.
- GET
https://api.testingapis.com/api/cookiesReturns the cookies the client sentReturns the cookies the client sent. - GETDELETE
https://api.testingapis.com/api/cookies/deleteDeletes cookies by name, or every cookie the client sentDeletes cookies by name, or every cookie the client sent. - POST
https://api.testingapis.com/api/cookies/loginLogs in and sets the apibee_session cookieLogs in and sets theapibee_sessioncookie. - POST
https://api.testingapis.com/api/cookies/logoutEnds the session and expires the session cookieEnds the session and expires the session cookie. - GET
https://api.testingapis.com/api/cookies/meReturns the profile of the user who owns the session cookieReturns the profile of the user who owns the session cookie. - GET
https://api.testingapis.com/api/cookies/setSets one cookie per query parameterSets one cookie per query parameter. - GET
https://api.testingapis.com/api/cookies/set/{name}/{value}Sets one cookie with explicit attributesSets one cookie with explicit attributes.
Example request
Returns the cookies the client sent. Full reference and a Send button.
curl -X GET "https://api.testingapis.com/api/cookies" \
-H "X-TestingApis-Key: YOUR_API_KEY"{"count": 0, "cookies": {}}Sign in to see the details
The parameters, request and response examples and the live Try it panel for these endpoints are for signed-in members. Accounts are free and take a few seconds to create.