{ "parameters": [ ], "response_fields": [ ], "requests": [ { "request_headers": { "Authorization": "Token token=\"BkPF5tvB28Mw4xoxngr1Ykdg\"" }, "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-Flash-Messages", "ETag": "W/\"4175ee7f97c7634deea80a2a9368559a\"", "Cache-Control": "no-cache, no-store, must-revalidate", "X-Request-Id": "a70bffbe-babf-4744-b283-cf131b855caf", "X-Runtime": "0.007518", "Expires": "0", "Content-Length": "203" }, "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\": \"5d5ecba3d4322a04dfbf7bec\",\n \"email\": \"user401@workarea.com\",\n \"public_info\": \"BC\",\n \"first_name\": \"Ben\",\n \"last_name\": \"Crouse\",\n \"updated_at\": \"2019-08-22T17:06:43.165Z\",\n \"created_at\": \"2019-08-22T17:06:43.165Z\"\n}", "response_content_type": "application/json", "curl": "curl -g \"https://www.example.com/api/storefront/account\" -X GET \\\n\t-H \"Authorization: Token token=\\\"BkPF5tvB28Mw4xoxngr1Ykdg\\\"\"" } ], "resource": "Authentication", "description": "Using an authentication token", "route": "/api/storefront/account", "http_method": "GET", "explanation": " After obtaining an authentication token you can use it to request\n authenticated endpoints by including it in the Authorization header\n on the request, as demonstrated in this example.\n" }