{ "parameters": [ ], "response_fields": [ ], "requests": [ { "request_headers": { "Authorization": "Token token=\"ghsBisE8nroaeQ1UNYx4t2Tn\"" }, "request_query_parameters": { }, "response_headers": { "X-Frame-Options": "SAMEORIGIN", "X-XSS-Protection": "1; mode=block", "X-Content-Type-Options": "nosniff", "X-Download-Options": "noopen", "X-Permitted-Cross-Domain-Policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", "Content-Type": "application/json; charset=utf-8", "Access-Control-Allow-Origin": "*", "Access-Control-Allow-Headers": "*", "Access-Control-Allow-Methods": "GET, POST, PATCH, PUT, DELETE, OPTIONS", "X-Requested-With": "", "Vary": "X-Requested-With, X-Workarea-Segments", "Last-Modified": "Wed, 19 Aug 2020 13:55:28 GMT", "Cache-Control": "no-cache, no-store, must-revalidate", "X-Request-Id": "2d46743e-b2b5-4f7a-861d-323f77f3d86a", "X-Runtime": "0.002808", "X-Workarea-Segments": "", "Expires": "0", "Content-Length": "202" }, "request_method": "GET", "request_path": "/api/storefront/account", "request_body": null, "request_content_type": null, "response_status": 200, "response_status_text": "OK", "response_body": "{\n \"id\": \"5f3d2f500218236e938cf115\",\n \"email\": \"user20@workarea.com\",\n \"public_info\": \"BC\",\n \"first_name\": \"Ben\",\n \"last_name\": \"Crouse\",\n \"updated_at\": \"2020-08-19T13:55:28.816Z\",\n \"created_at\": \"2020-08-19T13:55:28.816Z\"\n}", "response_content_type": "application/json", "curl": "curl -g \"https://www.example.com/api/storefront/account\" -X GET \\\n\t-H \"Authorization: Token token=\\\"ghsBisE8nroaeQ1UNYx4t2Tn\\\"\"" } ], "resource": "Authentication", "description": "Using an authentication token", "route": "/api/storefront/account", "explanation": "

After obtaining an authentication token you can use it to request
\nauthenticated endpoints by including it in the Authorization header
\non the request, as demonstrated in this example.

\n", "http_method": "GET" }