{ "parameters": [ ], "response_fields": [ ], "requests": [ { "request_headers": { "Content-Type": "application/json" }, "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:54:13 GMT", "Cache-Control": "no-cache, no-store, must-revalidate", "X-Request-Id": "3d7a3492-f612-451d-8412-fafeee3c5c4c", "X-Runtime": "0.376294", "X-Workarea-Segments": "", "Expires": "0", "Content-Length": "306" }, "request_method": "POST", "request_path": "/api/storefront/account", "request_body": "{\"email\":\"bob@workarea.com\",\"password\":\"areallysecurepassword\"}", "request_content_type": "application/json", "response_status": 200, "response_status_text": "OK", "response_body": "{\n \"account\": {\n \"id\": \"5f3d2f050218236e938cec10\",\n \"email\": \"bob@workarea.com\",\n \"public_info\": null,\n \"first_name\": null,\n \"last_name\": null,\n \"updated_at\": \"2020-08-19T13:54:13.160Z\",\n \"created_at\": \"2020-08-19T13:54:13.160Z\"\n },\n \"authentication_token\": {\n \"token\": \"gBk8yfXKqZYG6C7TtPhSJauV\",\n \"expires_at\": \"2020-08-26T13:54:13.273Z\"\n }\n}", "response_content_type": "application/json", "curl": "curl \"https://www.example.com/api/storefront/account\" -d '{\"email\":\"bob@workarea.com\",\"password\":\"areallysecurepassword\"}' -X POST \\\n\t-H \"Content-Type: application/json\"" } ], "resource": "Accounts", "description": "Creating an account", "route": "/api/storefront/account", "explanation": "

This endpoint does three things: it creates an account, it creates
\nan authentication token, and it sends an account creation email to
\nthe customer.

\n", "http_method": "POST" }