{ "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-Flash-Messages", "ETag": "W/\"32291d1d507a8f6b0b38211a17edd5ab\"", "Cache-Control": "no-cache, no-store, must-revalidate", "X-Request-Id": "b391b107-687a-4ab2-9b62-92697a27ada3", "X-Runtime": "0.006754", "Expires": "0", "Content-Length": "61" }, "request_method": "POST", "request_path": "/api/storefront/email_signups", "request_body": "{\"email\":\"email@example.com\"}", "request_content_type": "application/json", "response_status": 200, "response_status_text": "OK", "response_body": "{\n \"id\": \"5d5dbdc5d4322a4b69d7959c\",\n \"email\": \"email@example.com\"\n}", "response_content_type": "application/json", "curl": "curl \"https://www.example.com/api/storefront/email_signups\" -d '{\"email\":\"email@example.com\"}' -X POST \\\n\t-H \"Content-Type: application/json\"" } ], "resource": "Email Signups", "description": "Creating an email signup", "route": "/api/storefront/email_signups", "explanation": " Use this endpoint to create an email signup. This will usually be\n forwarded to an Email Service Provider, but Workarea will keep a\n record of it just in case.\n", "http_method": "POST" }