{"id":1074,"date":"2020-06-27T23:26:41","date_gmt":"2020-06-27T23:26:41","guid":{"rendered":"https:\/\/sweepwidget.com\/docs\/?p=1074"},"modified":"2026-03-06T21:37:45","modified_gmt":"2026-03-06T21:37:45","slug":"sweepwidget-api","status":"publish","type":"post","link":"https:\/\/sweepwidget.com\/docs\/sweepwidget-api","title":{"rendered":"SweepWidget API Documentation"},"content":{"rendered":"<p><!-- HEADER SECTION --><\/p>\n<div style=\"background:linear-gradient(135deg,#1a1a2e 0%,#2d1b69 100%);border-radius:12px;padding:40px;margin-bottom:32px\">\n<h1 class=\"wp-block-heading\" style=\"font-size:36px;color:#ffffff;margin:0 0 12px 0;font-weight:800;letter-spacing:-0.5px\">SweepWidget API Documentation<\/h1>\n<p style=\"font-size:16px;color:#c4b5fd;margin:0 0 24px 0;line-height:1.6\">The SweepWidget API allows you to read and write data to your giveaways. If you need any specific functionality that is not currently available, feel free to contact support.<\/p>\n<div style=\"background:#0d0d1a;border-radius:8px;padding:14px 20px;font-family:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;font-size:14px;color:#a5b4fc;display:flex;align-items:center\"><span style=\"color:#6b7280;margin-right:12px;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:1px\">Base URL<\/span><span style=\"color:#e0e7ff;font-weight:500\">https:\/\/sweepwidgetapi.com\/sw_api\/<\/span><\/div>\n<\/div>\n<p><!-- API KEY SECTION --><\/p>\n<h2 class=\"wp-block-heading\" id=\"api-key-setup\" style=\"font-size:24px;color:#1a1a2e;padding-top:40px;margin-top:40px;border-top:1px solid #e5e7eb;font-weight:700\">Getting Your API Key<\/h2>\n<p style=\"font-size:15px;color:#374151;line-height:1.7;margin-bottom:16px\">First, you must get your API Key. Navigate to <strong>Integrations<\/strong> and click on <strong>API Access<\/strong>.<\/p>\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"568\" src=\"https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2020\/06\/api-docs-1-1024x568.png\" alt=\"\" class=\"wp-image-7306\" srcset=\"https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2020\/06\/api-docs-1-1024x568.png 1024w, https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2020\/06\/api-docs-1-300x166.png 300w, https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2020\/06\/api-docs-1-768x426.png 768w, https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2020\/06\/api-docs-1.png 1500w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"567\" src=\"https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2020\/06\/api-docs-2-1024x567.png\" alt=\"\" class=\"wp-image-7307\" srcset=\"https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2020\/06\/api-docs-2-1024x567.png 1024w, https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2020\/06\/api-docs-2-300x166.png 300w, https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2020\/06\/api-docs-2-768x425.png 768w, https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2020\/06\/api-docs-2.png 1500w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<p style=\"font-size:15px;color:#374151;line-height:1.7;margin-bottom:16px\">Then, copy your <strong>API Key<\/strong>.<\/p>\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"567\" src=\"https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2020\/06\/api-docs-3-1024x567.png\" alt=\"\" class=\"wp-image-7308\" srcset=\"https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2020\/06\/api-docs-3-1024x567.png 1024w, https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2020\/06\/api-docs-3-300x166.png 300w, https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2020\/06\/api-docs-3-768x425.png 768w, https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2020\/06\/api-docs-3.png 1500w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<p><!-- AUTHENTICATION SECTION --><\/p>\n<h2 class=\"wp-block-heading\" id=\"authentication\" style=\"font-size:24px;color:#1a1a2e;padding-top:40px;margin-top:40px;border-top:1px solid #e5e7eb;font-weight:700\">Authentication<\/h2>\n<p style=\"font-size:15px;color:#374151;line-height:1.7;margin-bottom:16px\">All API requests require authentication using your API key. Send your API key as a <strong>Bearer token<\/strong> in the <code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">Authorization<\/code> header:<\/p>\n<pre class=\"wp-block-code\" style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:16px 0;overflow-x:auto;border:none\"><code style=\"color:#cdd6f4;font-family:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;font-size:13px;line-height:1.6\">Authorization: Bearer YOUR_API_KEY<\/code><\/pre>\n<div style=\"background:#eff6ff;border-radius:8px;padding:16px 20px;margin:16px 0;border-left:4px solid #3b82f6\">\n<p style=\"font-size:14px;color:#1e40af;margin:0;line-height:1.6\"><strong>Backward compatible:<\/strong> You can also pass <code style=\"background:#dbeafe;padding:2px 6px;border-radius:4px;font-size:13px;color:#1e40af\">api_key<\/code> as a query parameter (GET) or form field (POST). Both methods are supported.<\/p>\n<\/div>\n<h3 style=\"font-size:18px;color:#1a1a2e;margin:32px 0 12px 0;font-weight:700\">How to make requests<\/h3>\n<p style=\"font-size:15px;color:#374151;line-height:1.7;margin-bottom:8px\"><strong>GET endpoints<\/strong> (reading data): Pass parameters as query string values in the URL.<\/p>\n<pre class=\"wp-block-code\" style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:16px 0;overflow-x:auto;border:none\"><code style=\"color:#cdd6f4;font-family:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;font-size:13px;line-height:1.6\">GET https:\/\/sweepwidgetapi.com\/sw_api\/users?competition_id=123&amp;page_start=1\nAuthorization: Bearer YOUR_API_KEY<\/code><\/pre>\n<p style=\"font-size:15px;color:#374151;line-height:1.7;margin-bottom:8px\"><strong>POST endpoints<\/strong> (writing data): Send parameters in the <strong>request body<\/strong> as JSON. Set the <code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">Content-Type<\/code> header to <code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">application\/json<\/code>.<\/p>\n<pre class=\"wp-block-code\" style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:16px 0;overflow-x:auto;border:none\"><code style=\"color:#cdd6f4;font-family:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;font-size:13px;line-height:1.6\">POST https:\/\/sweepwidgetapi.com\/sw_api\/new-entry\nAuthorization: Bearer YOUR_API_KEY\nContent-Type: application\/json\n\n{\n  \"competition_id\": 123,\n  \"user_name\": \"Jane\",\n  \"user_email\": \"jane@example.com\",\n  \"entry_amount\": 1,\n  \"giveaway_link\": \"https:\/\/yoursite.com\"\n}<\/code><\/pre>\n<div style=\"background:#fef2f2;border-radius:8px;padding:16px 20px;margin:16px 0;border-left:4px solid #dc2626\">\n<p style=\"font-size:14px;color:#991b1b;margin:0;line-height:1.6\"><strong>Important:<\/strong> For POST endpoints, parameters must be sent in the request body, not in the URL. Putting POST parameters in the URL query string (e.g. <code style=\"background:#fee2e2;padding:2px 6px;border-radius:4px;font-size:12px;color:#991b1b\">\/new-entry?competition_id=123&amp;user_email=...<\/code>) will not work.<\/p>\n<\/div>\n<h3 style=\"font-size:18px;color:#1a1a2e;margin:32px 0 12px 0;font-weight:700\">Quick start examples<\/h3>\n<p style=\"font-size:16px;font-weight:700;color:#1a1a2e;margin:24px 0 8px 0\">cURL<\/p>\n<pre class=\"wp-block-code\" style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:16px 0;overflow-x:auto;border:none\"><code style=\"color:#cdd6f4;font-family:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;font-size:13px;line-height:1.6\"># GET - List all users for a giveaway\ncurl \"https:\/\/sweepwidgetapi.com\/sw_api\/users?competition_id=123&amp;page_start=1\" \\\n  -H \"Authorization: Bearer YOUR_API_KEY\"\n\n# POST - Enter a user into a giveaway\ncurl -X POST \"https:\/\/sweepwidgetapi.com\/sw_api\/new-entry\" \\\n  -H \"Authorization: Bearer YOUR_API_KEY\" \\\n  -H \"Content-Type: application\/json\" \\\n  -d '{\n    \"competition_id\": 123,\n    \"user_name\": \"Jane\",\n    \"user_email\": \"jane@example.com\",\n    \"entry_amount\": 1,\n    \"giveaway_link\": \"https:\/\/yoursite.com\"\n  }'<\/code><\/pre>\n<p style=\"font-size:16px;font-weight:700;color:#1a1a2e;margin:24px 0 8px 0\">Python<\/p>\n<pre class=\"wp-block-code\" style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:16px 0;overflow-x:auto;border:none\"><code style=\"color:#cdd6f4;font-family:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;font-size:13px;line-height:1.6\">import requests\n\nAPI_KEY = \"YOUR_API_KEY\"\nheaders = {\"Authorization\": f\"Bearer {API_KEY}\"}\n\n# GET - List all users for a giveaway\nresponse = requests.get(\n    \"https:\/\/sweepwidgetapi.com\/sw_api\/users\",\n    params={\"competition_id\": 123, \"page_start\": 1},\n    headers=headers\n)\nprint(response.json())\n\n# POST - Enter a user into a giveaway\nresponse = requests.post(\n    \"https:\/\/sweepwidgetapi.com\/sw_api\/new-entry\",\n    json={\n        \"competition_id\": 123,\n        \"user_name\": \"Jane\",\n        \"user_email\": \"jane@example.com\",\n        \"entry_amount\": 1,\n        \"giveaway_link\": \"https:\/\/yoursite.com\"\n    },\n    headers=headers\n)\nprint(response.json())<\/code><\/pre>\n<p style=\"font-size:16px;font-weight:700;color:#1a1a2e;margin:24px 0 8px 0\">JavaScript (Node.js)<\/p>\n<pre class=\"wp-block-code\" style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:16px 0;overflow-x:auto;border:none\"><code style=\"color:#cdd6f4;font-family:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;font-size:13px;line-height:1.6\">const API_KEY = \"YOUR_API_KEY\";\nconst headers = {\n  \"Authorization\": `Bearer ${API_KEY}`,\n  \"Content-Type\": \"application\/json\"\n};\n\n\/\/ GET - List all users for a giveaway\nconst usersRes = await fetch(\n  \"https:\/\/sweepwidgetapi.com\/sw_api\/users?competition_id=123&amp;page_start=1\",\n  { headers }\n);\nconst users = await usersRes.json();\n\n\/\/ POST - Enter a user into a giveaway\nconst entryRes = await fetch(\n  \"https:\/\/sweepwidgetapi.com\/sw_api\/new-entry\",\n  {\n    method: \"POST\",\n    headers,\n    body: JSON.stringify({\n      competition_id: 123,\n      user_name: \"Jane\",\n      user_email: \"jane@example.com\",\n      entry_amount: 1,\n      giveaway_link: \"https:\/\/yoursite.com\"\n    })\n  }\n);\nconst result = await entryRes.json();<\/code><\/pre>\n<p><!-- TABLE OF CONTENTS --><\/p>\n<h2 class=\"wp-block-heading\" style=\"font-size:24px;color:#1a1a2e;padding-top:40px;margin-top:40px;border-top:1px solid #e5e7eb;font-weight:700\">API Endpoints<\/h2>\n<div style=\"background:#f8f9fa;border-radius:12px;padding:28px 32px;margin:20px 0 40px 0;border:1px solid #e5e7eb\">\n<p style=\"font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:1.5px;color:#6b7280;margin:0 0 14px 0\">Read Endpoints<\/p>\n<div style=\"margin-bottom:20px\">\n<p style=\"margin:6px 0;font-size:14px\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:700;background:#d1fae5;color:#065f46;margin-right:8px;font-family:monospace\">GET<\/span><a href=\"#get-all-users\" style=\"color:#4a3aff;text-decoration:none;font-weight:500\">List all users for a giveaway<\/a><\/p>\n<p style=\"margin:6px 0;font-size:14px\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:700;background:#d1fae5;color:#065f46;margin-right:8px;font-family:monospace\">GET<\/span><a href=\"#get-all-winners\" style=\"color:#4a3aff;text-decoration:none;font-weight:500\">List all winners for a giveaway<\/a><\/p>\n<p style=\"margin:6px 0;font-size:14px\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:700;background:#d1fae5;color:#065f46;margin-right:8px;font-family:monospace\">GET<\/span><a href=\"#get-entry-information\" style=\"color:#4a3aff;text-decoration:none;font-weight:500\">List all entries for a giveaway<\/a><\/p>\n<p style=\"margin:6px 0;font-size:14px\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:700;background:#d1fae5;color:#065f46;margin-right:8px;font-family:monospace\">GET<\/span><a href=\"#get-all-giveaways\" style=\"color:#4a3aff;text-decoration:none;font-weight:500\">List all giveaways<\/a><\/p>\n<p style=\"margin:6px 0;font-size:14px\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:700;background:#d1fae5;color:#065f46;margin-right:8px;font-family:monospace\">GET<\/span><a href=\"#user-entries\" style=\"color:#4a3aff;text-decoration:none;font-weight:500\">List all entries for a single user<\/a><\/p>\n<p style=\"margin:6px 0;font-size:14px\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:700;background:#d1fae5;color:#065f46;margin-right:8px;font-family:monospace\">GET<\/span><a href=\"#user-entered-giveaways\" style=\"color:#4a3aff;text-decoration:none;font-weight:500\">List all giveaways a user has entered<\/a><\/p>\n<p style=\"margin:6px 0;font-size:14px\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:700;background:#d1fae5;color:#065f46;margin-right:8px;font-family:monospace\">GET<\/span><a href=\"#fetch-referral-link-for-a-user\" style=\"color:#4a3aff;text-decoration:none;font-weight:500\">Fetch referral link for a user<\/a><\/p>\n<\/div>\n<p style=\"font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:1.5px;color:#6b7280;margin:0 0 14px 0\">Write Endpoints<\/p>\n<div style=\"margin-bottom:20px\">\n<p style=\"margin:6px 0;font-size:14px\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:700;background:#dbeafe;color:#1e40af;margin-right:8px;font-family:monospace\">POST<\/span><a href=\"#update-whitelisted-emails\" style=\"color:#4a3aff;text-decoration:none;font-weight:500\">Update whitelisted emails<\/a><\/p>\n<p style=\"margin:6px 0;font-size:14px\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:700;background:#dbeafe;color:#1e40af;margin-right:8px;font-family:monospace\">POST<\/span><a href=\"#add-entry-method\" style=\"color:#4a3aff;text-decoration:none;font-weight:500\">Add new entry method<\/a><\/p>\n<p style=\"margin:6px 0;font-size:14px\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:700;background:#dbeafe;color:#1e40af;margin-right:8px;font-family:monospace\">POST<\/span><a href=\"#update-entry-method\" style=\"color:#4a3aff;text-decoration:none;font-weight:500\">Update an entry method<\/a><\/p>\n<p style=\"margin:6px 0;font-size:14px\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:700;background:#dbeafe;color:#1e40af;margin-right:8px;font-family:monospace\">POST<\/span><a href=\"#delete-entry-method\" style=\"color:#4a3aff;text-decoration:none;font-weight:500\">Delete an entry method<\/a><\/p>\n<p style=\"margin:6px 0;font-size:14px\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:700;background:#dbeafe;color:#1e40af;margin-right:8px;font-family:monospace\">POST<\/span><a href=\"#create-giveaway\" style=\"color:#4a3aff;text-decoration:none;font-weight:500\">Create a giveaway<\/a><\/p>\n<p style=\"margin:6px 0;font-size:14px\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:700;background:#dbeafe;color:#1e40af;margin-right:8px;font-family:monospace\">POST<\/span><a href=\"#update-giveaway\" style=\"color:#4a3aff;text-decoration:none;font-weight:500\">Update a giveaway<\/a><\/p>\n<p style=\"margin:6px 0;font-size:14px\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:700;background:#dbeafe;color:#1e40af;margin-right:8px;font-family:monospace\">POST<\/span><a href=\"#delete-giveaway\" style=\"color:#4a3aff;text-decoration:none;font-weight:500\">Delete a giveaway<\/a><\/p>\n<p style=\"margin:6px 0;font-size:14px\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:700;background:#dbeafe;color:#1e40af;margin-right:8px;font-family:monospace\">POST<\/span><a href=\"#create-prize\" style=\"color:#4a3aff;text-decoration:none;font-weight:500\">Add a prize to a giveaway<\/a><\/p>\n<p style=\"margin:6px 0;font-size:14px\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:700;background:#dbeafe;color:#1e40af;margin-right:8px;font-family:monospace\">POST<\/span><a href=\"#create-reward\" style=\"color:#4a3aff;text-decoration:none;font-weight:500\">Add an unlock reward to a giveaway<\/a><\/p>\n<p style=\"margin:6px 0;font-size:14px\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:700;background:#dbeafe;color:#1e40af;margin-right:8px;font-family:monospace\">POST<\/span><a href=\"#add-manual-entries-for-user\" style=\"color:#4a3aff;text-decoration:none;font-weight:500\">Add manual entries for a user<\/a><\/p>\n<p style=\"margin:6px 0;font-size:14px\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:700;background:#dbeafe;color:#1e40af;margin-right:8px;font-family:monospace\">POST<\/span><a href=\"#enter-user-into-a-giveaway\" style=\"color:#4a3aff;text-decoration:none;font-weight:500\">Enter user into a giveaway<\/a><\/p>\n<\/div>\n<\/div>\n<p><!-- ============================================ --><br \/>\n<!-- ENDPOINT: List all users for a giveaway --><br \/>\n<!-- ============================================ --><\/p>\n<h2 class=\"wp-block-heading\" id=\"get-all-users\" style=\"font-size:24px;color:#1a1a2e;padding-top:40px;margin-top:40px;border-top:1px solid #e5e7eb;font-weight:700\">List all users for a giveaway<\/h2>\n<p style=\"font-size:15px;color:#374151;line-height:1.7;margin-bottom:16px\">This method allows you to get each unique user that has entered a giveaway.<\/p>\n<div style=\"background:#1e1e2e;border-radius:8px;padding:16px 20px;margin:16px 0;font-family:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;font-size:14px;color:#cdd6f4;overflow-x:auto\"><span style=\"display:inline-block;padding:3px 10px;border-radius:4px;font-size:12px;font-weight:700;margin-right:12px;background:#10b981;color:#fff\">GET<\/span>https:\/\/sweepwidgetapi.com\/sw_api\/users<\/div>\n<p style=\"font-size:16px;font-weight:700;color:#1a1a2e;margin:24px 0 12px 0\">Parameters<\/p>\n<figure class=\"wp-block-table\">\n<table style=\"border-collapse:collapse;width:100%\">\n<thead>\n<tr>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Parameter<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Type<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Description<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Required<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">api_key<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">API developer key. Can also be sent as <code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:12px;color:#7c3aed\">Authorization: Bearer<\/code> header.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">competition_id<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><a href=\"https:\/\/sweepwidget.com\/docs\/how-to-find-your-competition-id\" target=\"_blank\" rel=\"noopener noreferrer\">ID of your competition<\/a>.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">page_start<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">The page you want to start on. JSON output returns <strong>50<\/strong> rows at a time.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p style=\"font-size:16px;font-weight:700;color:#1a1a2e;margin:24px 0 12px 0\">Example Request<\/p>\n<pre class=\"wp-block-code\" style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:16px 0;overflow-x:auto;border:none\"><code style=\"color:#cdd6f4;font-family:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;font-size:13px;line-height:1.6\">$curl = curl_init();\n\n$url = \"https:\/\/sweepwidgetapi.com\/sw_api\/users?page_start=1&amp;competition_id=123\";\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL =&gt; $url,\n    CURLOPT_RETURNTRANSFER =&gt; true,\n    CURLOPT_ENCODING =&gt; \"\",\n    CURLOPT_MAXREDIRS =&gt; 10,\n    CURLOPT_TIMEOUT =&gt; 30,\n    CURLOPT_HTTP_VERSION =&gt; CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST =&gt; \"GET\",\n    CURLOPT_HTTPHEADER =&gt; array(\n        \"Authorization: Bearer YOUR_API_KEY\",\n        \"Content-Type: application\/json\"\n    ),\n));\n\n$response = json_decode(curl_exec($curl));\nvar_dump($response);<\/code><\/pre>\n<p style=\"font-size:16px;font-weight:700;color:#1a1a2e;margin:24px 0 12px 0\">Example Response<\/p>\n<pre class=\"wp-block-code\" style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:16px 0;overflow-x:auto;border:none\"><code style=\"color:#cdd6f4;font-family:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;font-size:13px;line-height:1.6\">{\n  \"data\": [\n    {\n      \"user_id\": 123,\n      \"user_name\": \"Test User\",\n      \"user_email\": \"one@test.com\",\n      \"birthday\": \"04-25-1994\",\n      \"custom_identifier\": \"your-reference-id\",\n      \"entry_type\": \"Twitter Follow\",\n      \"timestamp\": \"2020-06-26 11:18:21\",\n      \"country\": \"United States\"\n    }\n  ]\n}<\/code><\/pre>\n<p><!-- ============================================ --><br \/>\n<!-- ENDPOINT: List all winners for a giveaway --><br \/>\n<!-- ============================================ --><\/p>\n<h2 class=\"wp-block-heading\" id=\"get-all-winners\" style=\"font-size:24px;color:#1a1a2e;padding-top:40px;margin-top:40px;border-top:1px solid #e5e7eb;font-weight:700\">List all winners for a giveaway<\/h2>\n<p style=\"font-size:15px;color:#374151;line-height:1.7;margin-bottom:16px\">This method allows you to fetch all of the winners for a giveaway.<\/p>\n<div style=\"background:#1e1e2e;border-radius:8px;padding:16px 20px;margin:16px 0;font-family:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;font-size:14px;color:#cdd6f4;overflow-x:auto\"><span style=\"display:inline-block;padding:3px 10px;border-radius:4px;font-size:12px;font-weight:700;margin-right:12px;background:#10b981;color:#fff\">GET<\/span>https:\/\/sweepwidgetapi.com\/sw_api\/winners<\/div>\n<p style=\"font-size:16px;font-weight:700;color:#1a1a2e;margin:24px 0 12px 0\">Parameters<\/p>\n<figure class=\"wp-block-table\">\n<table style=\"border-collapse:collapse;width:100%\">\n<thead>\n<tr>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Parameter<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Type<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Description<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Required<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">api_key<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">API developer key. Can also be sent as <code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:12px;color:#7c3aed\">Authorization: Bearer<\/code> header.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">competition_id<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><a href=\"https:\/\/sweepwidget.com\/docs\/how-to-find-your-competition-id\" target=\"_blank\" rel=\"noopener noreferrer\">ID of your competition<\/a>.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">page_start<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">The page you want to start on. JSON output returns <strong>50<\/strong> rows at a time.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p style=\"font-size:16px;font-weight:700;color:#1a1a2e;margin:24px 0 12px 0\">Example Request<\/p>\n<pre class=\"wp-block-code\" style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:16px 0;overflow-x:auto;border:none\"><code style=\"color:#cdd6f4;font-family:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;font-size:13px;line-height:1.6\">$curl = curl_init();\n\n$url = \"https:\/\/sweepwidgetapi.com\/sw_api\/winners?page_start=1&amp;competition_id=123\";\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL =&gt; $url,\n    CURLOPT_RETURNTRANSFER =&gt; true,\n    CURLOPT_ENCODING =&gt; \"\",\n    CURLOPT_MAXREDIRS =&gt; 10,\n    CURLOPT_TIMEOUT =&gt; 30,\n    CURLOPT_HTTP_VERSION =&gt; CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST =&gt; \"GET\",\n    CURLOPT_HTTPHEADER =&gt; array(\n        \"Authorization: Bearer YOUR_API_KEY\",\n        \"Content-Type: application\/json\"\n    ),\n));\n\n$response = json_decode(curl_exec($curl));\nvar_dump($response);<\/code><\/pre>\n<p style=\"font-size:16px;font-weight:700;color:#1a1a2e;margin:24px 0 12px 0\">Example Response<\/p>\n<pre class=\"wp-block-code\" style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:16px 0;overflow-x:auto;border:none\"><code style=\"color:#cdd6f4;font-family:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;font-size:13px;line-height:1.6\">{\n  \"data\": [\n    {\n      \"user_id\": 123,\n      \"user_name\": \"Test User\",\n      \"user_email\": \"one@test.com\",\n      \"birthday\": \"04-25-1994\",\n      \"custom_identifier\": \"your-reference-id\",\n      \"country\": \"United States\"\n    }\n  ]\n}<\/code><\/pre>\n<p><!-- ============================================ --><br \/>\n<!-- ENDPOINT: List all entries for a giveaway --><br \/>\n<!-- ============================================ --><\/p>\n<h2 class=\"wp-block-heading\" id=\"get-entry-information\" style=\"font-size:24px;color:#1a1a2e;padding-top:40px;margin-top:40px;border-top:1px solid #e5e7eb;font-weight:700\">List all entries for a giveaway<\/h2>\n<p style=\"font-size:15px;color:#374151;line-height:1.7;margin-bottom:16px\">This method allows you to access all of the user entry information for a giveaway.<\/p>\n<div style=\"background:#1e1e2e;border-radius:8px;padding:16px 20px;margin:16px 0;font-family:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;font-size:14px;color:#cdd6f4;overflow-x:auto\"><span style=\"display:inline-block;padding:3px 10px;border-radius:4px;font-size:12px;font-weight:700;margin-right:12px;background:#10b981;color:#fff\">GET<\/span>https:\/\/sweepwidgetapi.com\/sw_api\/entries<\/div>\n<p style=\"font-size:16px;font-weight:700;color:#1a1a2e;margin:24px 0 12px 0\">Parameters<\/p>\n<figure class=\"wp-block-table\">\n<table style=\"border-collapse:collapse;width:100%\">\n<thead>\n<tr>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Parameter<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Type<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Description<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Required<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">api_key<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">API developer key. Can also be sent as <code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:12px;color:#7c3aed\">Authorization: Bearer<\/code> header.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">competition_id<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><a href=\"https:\/\/sweepwidget.com\/docs\/how-to-find-your-competition-id\" target=\"_blank\" rel=\"noopener noreferrer\">ID of your competition<\/a>.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">page_start<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">The page you want to start on. JSON output returns <strong>50<\/strong> rows at a time.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p style=\"font-size:16px;font-weight:700;color:#1a1a2e;margin:24px 0 12px 0\">Example Request<\/p>\n<pre class=\"wp-block-code\" style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:16px 0;overflow-x:auto;border:none\"><code style=\"color:#cdd6f4;font-family:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;font-size:13px;line-height:1.6\">$curl = curl_init();\n\n$url = \"https:\/\/sweepwidgetapi.com\/sw_api\/entries?page_start=1&amp;competition_id=123\";\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL =&gt; $url,\n    CURLOPT_RETURNTRANSFER =&gt; true,\n    CURLOPT_ENCODING =&gt; \"\",\n    CURLOPT_MAXREDIRS =&gt; 10,\n    CURLOPT_TIMEOUT =&gt; 30,\n    CURLOPT_HTTP_VERSION =&gt; CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST =&gt; \"GET\",\n    CURLOPT_HTTPHEADER =&gt; array(\n        \"Authorization: Bearer YOUR_API_KEY\",\n        \"Content-Type: application\/json\"\n    ),\n));\n\n$response = json_decode(curl_exec($curl));\nvar_dump($response);<\/code><\/pre>\n<p style=\"font-size:16px;font-weight:700;color:#1a1a2e;margin:24px 0 12px 0\">Example Response<\/p>\n<pre class=\"wp-block-code\" style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:16px 0;overflow-x:auto;border:none\"><code style=\"color:#cdd6f4;font-family:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;font-size:13px;line-height:1.6\">{\n  \"data\": [\n    {\n      \"user_id\": 123,\n      \"user_name\": \"Test User\",\n      \"user_email\": \"one@test.com\",\n      \"birthday\": \"04-25-1994\",\n      \"custom_identifier\": \"your-reference-id\",\n      \"entry_type\": \"Twitter Follow\",\n      \"action\": \"Follow @SweepWidget On Twitter\",\n      \"value\": \"@MyTwitter\",\n      \"entry_amount\": \"5\",\n      \"timestamp\": \"2020-06-26 11:18:21\",\n      \"country\": \"United States\"\n    }\n  ]\n}<\/code><\/pre>\n<p><!-- ============================================ --><br \/>\n<!-- ENDPOINT: List all giveaways --><br \/>\n<!-- ============================================ --><\/p>\n<h2 class=\"wp-block-heading\" id=\"get-all-giveaways\" style=\"font-size:24px;color:#1a1a2e;padding-top:40px;margin-top:40px;border-top:1px solid #e5e7eb;font-weight:700\">List all giveaways<\/h2>\n<p style=\"font-size:15px;color:#374151;line-height:1.7;margin-bottom:16px\">This method allows you to access basic information about all live, scheduled, and expired giveaways.<\/p>\n<div style=\"background:#1e1e2e;border-radius:8px;padding:16px 20px;margin:16px 0;font-family:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;font-size:14px;color:#cdd6f4;overflow-x:auto\"><span style=\"display:inline-block;padding:3px 10px;border-radius:4px;font-size:12px;font-weight:700;margin-right:12px;background:#10b981;color:#fff\">GET<\/span>https:\/\/sweepwidgetapi.com\/sw_api\/giveaways<\/div>\n<p style=\"font-size:16px;font-weight:700;color:#1a1a2e;margin:24px 0 12px 0\">Parameters<\/p>\n<figure class=\"wp-block-table\">\n<table style=\"border-collapse:collapse;width:100%\">\n<thead>\n<tr>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Parameter<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Type<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Description<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Required<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">api_key<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">API developer key. Can also be sent as <code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:12px;color:#7c3aed\">Authorization: Bearer<\/code> header.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">type<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Accepts any of the 3 values: <strong>live<\/strong>, <strong>scheduled<\/strong>, <strong>expired<\/strong><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">page_start<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">The page you want to start on. JSON output returns <strong>50<\/strong> rows at a time.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p style=\"font-size:16px;font-weight:700;color:#1a1a2e;margin:24px 0 12px 0\">Example Request<\/p>\n<pre class=\"wp-block-code\" style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:16px 0;overflow-x:auto;border:none\"><code style=\"color:#cdd6f4;font-family:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;font-size:13px;line-height:1.6\">$curl = curl_init();\n\n$url = \"https:\/\/sweepwidgetapi.com\/sw_api\/giveaways?type=live&amp;page_start=1\";\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL =&gt; $url,\n    CURLOPT_RETURNTRANSFER =&gt; true,\n    CURLOPT_ENCODING =&gt; \"\",\n    CURLOPT_MAXREDIRS =&gt; 10,\n    CURLOPT_TIMEOUT =&gt; 30,\n    CURLOPT_HTTP_VERSION =&gt; CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST =&gt; \"GET\",\n    CURLOPT_HTTPHEADER =&gt; array(\n        \"Authorization: Bearer YOUR_API_KEY\",\n        \"Content-Type: application\/json\"\n    ),\n));\n\n$response = json_decode(curl_exec($curl));\nvar_dump($response);<\/code><\/pre>\n<p style=\"font-size:16px;font-weight:700;color:#1a1a2e;margin:24px 0 12px 0\">Example Response<\/p>\n<pre class=\"wp-block-code\" style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:16px 0;overflow-x:auto;border:none\"><code style=\"color:#cdd6f4;font-family:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;font-size:13px;line-height:1.6\">{\n  \"data\": [\n    {\n      \"competition_id\": 123,\n      \"competition_url\": \"ahej14f9\",\n      \"type\": \"Live\",\n      \"title\": \"My Giveaway Title\",\n      \"description\": \"This is the description of my awesome giveaway!\",\n      \"rules\": \"US, CA, 18+\",\n      \"start_time\": \"2020-07-28 00:00:00\",\n      \"end_time\": \"2020-08-28 00:00:00\",\n      \"time_zone\": \"America\/Chicago\",\n      \"number_of_winners\": \"5\",\n      \"image_loc\": \"https:\/\/sweepwidget.com\/images\/my-image.jpg\",\n      \"giveaway_embed_code\": \"PGRpdiBpZD0i...\"\n    }\n  ]\n}<\/code><\/pre>\n<div style=\"background:#fffbeb;border-left:4px solid #f59e0b;border-radius:0 8px 8px 0;padding:14px 20px;margin:16px 0;font-size:14px;color:#92400e\"><strong>Important:<\/strong> The giveaway_embed_code is outputted in base 64 encoded format (because it contains HTML). You must base 64 decode this value to get the HTML. In PHP, the function would be <em>base64_decode($value);<\/em><\/div>\n<p><!-- ============================================ --><br \/>\n<!-- ENDPOINT: List all entries for a single user --><br \/>\n<!-- ============================================ --><\/p>\n<h2 class=\"wp-block-heading\" id=\"user-entries\" style=\"font-size:24px;color:#1a1a2e;padding-top:40px;margin-top:40px;border-top:1px solid #e5e7eb;font-weight:700\">List all entries for a single user in a giveaway<\/h2>\n<p style=\"font-size:15px;color:#374151;line-height:1.7;margin-bottom:16px\">This method allows you to list all of the entries a user has completed in a single giveaway.<\/p>\n<div style=\"background:#1e1e2e;border-radius:8px;padding:16px 20px;margin:16px 0;font-family:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;font-size:14px;color:#cdd6f4;overflow-x:auto\"><span style=\"display:inline-block;padding:3px 10px;border-radius:4px;font-size:12px;font-weight:700;margin-right:12px;background:#10b981;color:#fff\">GET<\/span>https:\/\/sweepwidgetapi.com\/sw_api\/user-entries<\/div>\n<p style=\"font-size:16px;font-weight:700;color:#1a1a2e;margin:24px 0 12px 0\">Parameters<\/p>\n<figure class=\"wp-block-table\">\n<table style=\"border-collapse:collapse;width:100%\">\n<thead>\n<tr>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Parameter<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Type<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Description<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Required<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">api_key<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">API developer key. Can also be sent as <code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:12px;color:#7c3aed\">Authorization: Bearer<\/code> header.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">competition_id<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><a href=\"https:\/\/sweepwidget.com\/docs\/how-to-find-your-competition-id\" target=\"_blank\" rel=\"noopener noreferrer\">ID of your competition<\/a>.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">user_email<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">This is the email address of the user who entered.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p style=\"font-size:16px;font-weight:700;color:#1a1a2e;margin:24px 0 12px 0\">Example Request<\/p>\n<pre class=\"wp-block-code\" style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:16px 0;overflow-x:auto;border:none\"><code style=\"color:#cdd6f4;font-family:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;font-size:13px;line-height:1.6\">&lt;?php\n\n$curl = curl_init();\n\n$url = \"https:\/\/sweepwidgetapi.com\/sw_api\/user-entries?competition_id=123&amp;user_email=test@test.com\";\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL =&gt; $url,\n    CURLOPT_RETURNTRANSFER =&gt; true,\n    CURLOPT_ENCODING =&gt; \"\",\n    CURLOPT_MAXREDIRS =&gt; 10,\n    CURLOPT_TIMEOUT =&gt; 30,\n    CURLOPT_HTTP_VERSION =&gt; CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST =&gt; \"GET\",\n    CURLOPT_HTTPHEADER =&gt; array(\n        \"Authorization: Bearer YOUR_API_KEY\",\n        \"Content-Type: application\/json\"\n    ),\n));\n\n$response = json_decode(curl_exec($curl));\nvar_dump($response);<\/code><\/pre>\n<p style=\"font-size:16px;font-weight:700;color:#1a1a2e;margin:24px 0 12px 0\">Example Response<\/p>\n<pre class=\"wp-block-code\" style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:16px 0;overflow-x:auto;border:none\"><code style=\"color:#cdd6f4;font-family:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;font-size:13px;line-height:1.6\">array(4) {\n  [0]=&gt;\n  object(stdClass)#2 (5) {\n    [\"entry_type\"]=&gt;\n    string(12) \"User Details\"\n    [\"action\"]=&gt;\n    string(5) \"Login\"\n    [\"value\"]=&gt;\n    string(13) \"Auto Verified\"\n    [\"entry_amount\"]=&gt;\n    int(1)\n    [\"timestamp\"]=&gt;\n    string(19) \"2024-02-29 15:13:51\"\n  }\n  [1]=&gt;\n  object(stdClass)#3 (5) {\n    [\"entry_type\"]=&gt;\n    string(19) \"Facebook Page Visit\"\n    [\"action\"]=&gt;\n    string(4) \"NULL\"\n    [\"value\"]=&gt;\n    string(13) \"Auto Verified\"\n    [\"entry_amount\"]=&gt;\n    int(1)\n    [\"timestamp\"]=&gt;\n    string(19) \"2024-03-01 19:44:52\"\n  }\n  [2]=&gt;\n  object(stdClass)#4 (5) {\n    [\"entry_type\"]=&gt;\n    string(16) \"Instagram Follow\"\n    [\"action\"]=&gt;\n    string(4) \"NULL\"\n    [\"value\"]=&gt;\n    string(4) \"Test\"\n    [\"entry_amount\"]=&gt;\n    int(1)\n    [\"timestamp\"]=&gt;\n    string(19) \"2024-03-01 19:44:58\"\n  }\n  [3]=&gt;\n  object(stdClass)#5 (5) {\n    [\"entry_type\"]=&gt;\n    string(15) \"Email Subscribe\"\n    [\"action\"]=&gt;\n    string(4) \"NULL\"\n    [\"value\"]=&gt;\n    string(13) \"Auto Verified\"\n    [\"entry_amount\"]=&gt;\n    int(1)\n    [\"timestamp\"]=&gt;\n    string(19) \"2024-03-04 19:07:05\"\n  }\n}<\/code><\/pre>\n<p><!-- ============================================ --><br \/>\n<!-- ENDPOINT: List all giveaways a user entered --><br \/>\n<!-- ============================================ --><\/p>\n<h2 class=\"wp-block-heading\" id=\"user-entered-giveaways\" style=\"font-size:24px;color:#1a1a2e;padding-top:40px;margin-top:40px;border-top:1px solid #e5e7eb;font-weight:700\">List all giveaways a user has entered<\/h2>\n<p style=\"font-size:15px;color:#374151;line-height:1.7;margin-bottom:16px\">This method allows you to list every giveaway a user has entered. It returns the competition_id for every giveaway they entered that you created. Note: it will not return giveaways they entered that were created by other hosts.<\/p>\n<div style=\"background:#1e1e2e;border-radius:8px;padding:16px 20px;margin:16px 0;font-family:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;font-size:14px;color:#cdd6f4;overflow-x:auto\"><span style=\"display:inline-block;padding:3px 10px;border-radius:4px;font-size:12px;font-weight:700;margin-right:12px;background:#10b981;color:#fff\">GET<\/span>https:\/\/sweepwidgetapi.com\/sw_api\/user-entered-giveaways<\/div>\n<p style=\"font-size:16px;font-weight:700;color:#1a1a2e;margin:24px 0 12px 0\">Parameters<\/p>\n<figure class=\"wp-block-table\">\n<table style=\"border-collapse:collapse;width:100%\">\n<thead>\n<tr>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Parameter<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Type<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Description<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Required<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">api_key<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">API developer key. Can also be sent as <code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:12px;color:#7c3aed\">Authorization: Bearer<\/code> header.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">search_value<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Either the user_id or user_email of the user.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">search_key<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Accepted values: <strong>user_id<\/strong> or <strong>user_email<\/strong>. You must specify if you are searching for a user by their id or email address.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p style=\"font-size:16px;font-weight:700;color:#1a1a2e;margin:24px 0 12px 0\">Example Request<\/p>\n<pre class=\"wp-block-code\" style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:16px 0;overflow-x:auto;border:none\"><code style=\"color:#cdd6f4;font-family:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;font-size:13px;line-height:1.6\">$curl = curl_init();\n\n\/\/ Example searching by the user's id\n$url = \"https:\/\/sweepwidgetapi.com\/sw_api\/user-entered-giveaways?search_value=123&amp;search_key=user_id\";\n\n\/\/ Example searching by the user's email address\n$url = \"https:\/\/sweepwidgetapi.com\/sw_api\/user-entered-giveaways?search_value=example-user@email.com&amp;search_key=user_email\";\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL =&gt; $url,\n    CURLOPT_RETURNTRANSFER =&gt; true,\n    CURLOPT_ENCODING =&gt; \"\",\n    CURLOPT_MAXREDIRS =&gt; 10,\n    CURLOPT_TIMEOUT =&gt; 30,\n    CURLOPT_HTTP_VERSION =&gt; CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST =&gt; \"GET\",\n    CURLOPT_HTTPHEADER =&gt; array(\n        \"Authorization: Bearer YOUR_API_KEY\",\n        \"Content-Type: application\/json\"\n    ),\n));\n\n$response = json_decode(curl_exec($curl));\nvar_dump($response);<\/code><\/pre>\n<p style=\"font-size:16px;font-weight:700;color:#1a1a2e;margin:24px 0 12px 0\">Example Response<\/p>\n<pre class=\"wp-block-code\" style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:16px 0;overflow-x:auto;border:none\"><code style=\"color:#cdd6f4;font-family:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;font-size:13px;line-height:1.6\">{\n  \"competition_id\": [\n    {\n    [0]=&gt;\n    string(5) \"20234\"\n    [1]=&gt;\n    string(5) \"20165\"\n    [2]=&gt;\n    string(5) \"20137\"\n    [3]=&gt;\n    string(5) \"20108\"\n    ]\n  }\n}<\/code><\/pre>\n<p><!-- ============================================ --><br \/>\n<!-- ENDPOINT: Update whitelisted emails --><br \/>\n<!-- ============================================ --><\/p>\n<h2 class=\"wp-block-heading\" id=\"update-whitelisted-emails\" style=\"font-size:24px;color:#1a1a2e;padding-top:40px;margin-top:40px;border-top:1px solid #e5e7eb;font-weight:700\">Update whitelisted emails<\/h2>\n<p style=\"font-size:15px;color:#374151;line-height:1.7;margin-bottom:16px\">This method allows you update the <a href=\"https:\/\/sweepwidget.com\/docs\/only-allow-certain-emails-to-enter-your-giveaway#local\" target=\"_blank\" rel=\"noreferrer noopener\">whitelisted emails for a single competition<\/a>. You can optionally update the <a href=\"https:\/\/sweepwidget.com\/docs\/only-allow-certain-emails-to-enter-your-giveaway#global\" target=\"_blank\" rel=\"noreferrer noopener\">globally whitelisted emails<\/a> for all competitions.<\/p>\n<div style=\"background:#1e1e2e;border-radius:8px;padding:16px 20px;margin:16px 0;font-family:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;font-size:14px;color:#cdd6f4;overflow-x:auto\"><span style=\"display:inline-block;padding:3px 10px;border-radius:4px;font-size:12px;font-weight:700;margin-right:12px;background:#3b82f6;color:#fff\">POST<\/span>https:\/\/sweepwidgetapi.com\/sw_api\/white-list-emails<\/div>\n<p style=\"font-size:16px;font-weight:700;color:#1a1a2e;margin:24px 0 12px 0\">Parameters<\/p>\n<figure class=\"wp-block-table\">\n<table style=\"border-collapse:collapse;width:100%\">\n<thead>\n<tr>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Parameter<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Type<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Description<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Required<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">api_key<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">API developer key. Can also be sent as <code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:12px;color:#7c3aed\">Authorization: Bearer<\/code> header.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">global<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Boolean<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Specify if this is for a single giveaway or ALL giveaways in your account. Accepted values: <strong>1<\/strong> or <strong>0<\/strong>.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">competition_id<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><a href=\"https:\/\/sweepwidget.com\/docs\/how-to-find-your-competition-id\" target=\"_blank\" rel=\"noopener noreferrer\">ID of your competition<\/a>.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fff7ed;color:#c2410c\">If global = 0<\/span><\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">whitelisted_emails<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Array<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Specify which emails are allowed to enter.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p style=\"font-size:16px;font-weight:700;color:#1a1a2e;margin:24px 0 12px 0\">Example Request<\/p>\n<pre class=\"wp-block-code\" style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:16px 0;overflow-x:auto;border:none\"><code style=\"color:#cdd6f4;font-family:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;font-size:13px;line-height:1.6\">$post = json_encode([\n    'global' =&gt; 0,\n    'competition_id' =&gt; '123',\n    'whitelisted_emails' =&gt; array('one@test.com', 'two@test.com', 'three@test.com')\n]);\n\n$ch = curl_init('https:\/\/sweepwidgetapi.com\/sw_api\/white-list-emails');\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_POSTFIELDS, $post);\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    'Authorization: Bearer YOUR_API_KEY',\n    'Content-Type: application\/json'\n]);\n\n$response = curl_exec($ch);\ncurl_close($ch);\nvar_dump($response);<\/code><\/pre>\n<p><!-- ============================================ --><br \/>\n<!-- ENDPOINT: Add new entry method --><br \/>\n<!-- ============================================ --><\/p>\n<h2 class=\"wp-block-heading\" id=\"add-entry-method\" style=\"font-size:24px;color:#1a1a2e;padding-top:40px;margin-top:40px;border-top:1px solid #e5e7eb;font-weight:700\">Add new entry method<\/h2>\n<p style=\"font-size:15px;color:#374151;line-height:1.7;margin-bottom:16px\">This method allows you to add a new entry method to an existing giveaway.<\/p>\n<div style=\"background:#1e1e2e;border-radius:8px;padding:16px 20px;margin:16px 0;font-family:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;font-size:14px;color:#cdd6f4;overflow-x:auto\"><span style=\"display:inline-block;padding:3px 10px;border-radius:4px;font-size:12px;font-weight:700;margin-right:12px;background:#3b82f6;color:#fff\">POST<\/span>https:\/\/sweepwidgetapi.com\/sw_api\/create-entry-method<\/div>\n<p style=\"font-size:16px;font-weight:700;color:#1a1a2e;margin:24px 0 12px 0\">Parameters<\/p>\n<figure class=\"wp-block-table\">\n<table style=\"border-collapse:collapse;width:100%\">\n<thead>\n<tr>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Parameter<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Type<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Description<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Required<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">api_key<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">API developer key. Can also be sent as <code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:12px;color:#7c3aed\">Authorization: Bearer<\/code> header.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">competition_id<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><a href=\"https:\/\/sweepwidget.com\/docs\/how-to-find-your-competition-id\" target=\"_blank\" rel=\"noopener noreferrer\">ID of your competition<\/a>.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">entry_order<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">What order the entry method appears.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">entry_method_type<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Type of entry method. See <a href=\"#available-entry-method-types\" style=\"color:#4a3aff\">available entry method types<\/a> below.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">entry_method_handle<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Title for the entry method on the outside (the title before the entrant toggles the entry method open).<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">mandatory<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Whether or not it is a required entry method.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">entries_worth<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">How many entries the entry method is worth.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">entry_link<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">This is either the profile handle or link depending on which one is required. Example: Instagram only requires the profile handle while Facebook requires the full link.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">input_header<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Header string after the entrant toggles open the entry method.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">additional_instructions<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Optional additional instructions (most entry methods do not use this).<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#f3f4f6;color:#6b7280\">Optional<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">widget_display<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">1 = circle icon, 2 = square look (circle icon is the default).<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#f3f4f6;color:#6b7280\">Optional<\/span><\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">icon_color<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Hex color code for icon e.g. #3b5998<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#f3f4f6;color:#6b7280\">Optional<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">require_verification<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">If you require the user to verify the username they performed the entry method with e.g. user must enter their Instagram username after following you.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#f3f4f6;color:#6b7280\">Optional<\/span><\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">language<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">2 character language code. Default is english: <strong>en<\/strong><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#f3f4f6;color:#6b7280\">Optional<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p><!-- Available Entry Method Types --><\/p>\n<h3 class=\"wp-block-heading\" id=\"available-entry-method-types\" style=\"font-size:18px;color:#1a1a2e;margin:32px 0 16px 0;font-weight:700\">Available entry method types<\/h3>\n<p style=\"font-size:14px;color:#6b7280;margin-bottom:16px;font-style:italic\">Use these values in the <strong style=\"color:#374151\">entry_method_type<\/strong> parameter.<\/p>\n<div style=\"display:flex;flex-wrap:wrap;gap:0;margin:16px 0 24px 0\">\n<div style=\"flex:1;min-width:250px;max-width:33.33%\">\n<p style=\"font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:#6b7280;margin:16px 0 8px 0;padding:0 8px\">Bluesky<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">bluesky_comment<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">bluesky_follow<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">bluesky_like_post<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">bluesky_post<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">bluesky_repost<\/p>\n<p style=\"font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:#6b7280;margin:16px 0 8px 0;padding:0 8px\">Discord<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">discord_join_server<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">discord_server_boost<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">discord_server_role<\/p>\n<p style=\"font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:#6b7280;margin:16px 0 8px 0;padding:0 8px\">Facebook<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">facebook_group_visit<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">facebook_page_visit<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">facebook_post_visit<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">facebook_select_media<\/p>\n<p style=\"font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:#6b7280;margin:16px 0 8px 0;padding:0 8px\">Instagram<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">instagram_comment_post<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">instagram_follow<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">instagram_like_post<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">instagram_repost<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">instagram_select_media<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">instagram_submit_post<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">instagram_tag_friend<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">instagram_view_post<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">instagram_visit_profile<\/p>\n<p style=\"font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:#6b7280;margin:16px 0 8px 0;padding:0 8px\">LinkedIn<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">linkedin_follow<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">linkedin_follow_influencer<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">linkedin_share<\/p>\n<p style=\"font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:#6b7280;margin:16px 0 8px 0;padding:0 8px\">Pinterest<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">pinterest_follow_board<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">pinterest_follow_user<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">pinterest_repin_pin<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">pinterest_select_board<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">pinterest_select_pin<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">pinterest_submit_board<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">pinterest_submit_pin<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">pinterest_visit_board<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">pinterest_visit_page<\/p>\n<p style=\"font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:#6b7280;margin:16px 0 8px 0;padding:0 8px\">Reddit<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">reddit_leave_a_comment<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">reddit_subscribe<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">reddit_visit_a_page<\/p>\n<p style=\"font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:#6b7280;margin:16px 0 8px 0;padding:0 8px\">Snapchat<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">snapchat_follow<\/p>\n<p style=\"font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:#6b7280;margin:16px 0 8px 0;padding:0 8px\">Telegram<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">telegram_join_channel<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">telegram_join_group<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">telegram_leave_a_comment<\/p>\n<p style=\"font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:#6b7280;margin:16px 0 8px 0;padding:0 8px\">Threads<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">threads_comment<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">threads_follow<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">threads_repost<\/p>\n<\/div>\n<div style=\"flex:1;min-width:250px;max-width:33.33%\">\n<p style=\"font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:#6b7280;margin:16px 0 8px 0;padding:0 8px\">TikTok<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">tiktok_comment<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">tiktok_follow<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">tiktok_like<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">tiktok_share<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">tiktok_visit<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">tiktok_watch_video<\/p>\n<p style=\"font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:#6b7280;margin:16px 0 8px 0;padding:0 8px\">Tumblr<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">tumblr_follow<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">tumblr_like_post<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">tumblr_reblog_post<\/p>\n<p style=\"font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:#6b7280;margin:16px 0 8px 0;padding:0 8px\">Twitch<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">twitch_follow<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">twitch_subscribe<\/p>\n<p style=\"font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:#6b7280;margin:16px 0 8px 0;padding:0 8px\">Twitter<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">twitter_follow<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">twitter_hashtags<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">twitter_retweet<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">twitter_select_media<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">twitter_tweet<\/p>\n<p style=\"font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:#6b7280;margin:16px 0 8px 0;padding:0 8px\">X<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">x_follow<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">x_post<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">x_repost<\/p>\n<p style=\"font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:#6b7280;margin:16px 0 8px 0;padding:0 8px\">YouTube<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">youtube_channel_subscribe<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">youtube_comment<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">youtube_like_video<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">youtube_submit_video<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">youtube_visit_channel<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">youtube_watch<\/p>\n<p style=\"font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:#6b7280;margin:16px 0 8px 0;padding:0 8px\">Kick<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">kick_follow<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">kick_subscribe<\/p>\n<p style=\"font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:#6b7280;margin:16px 0 8px 0;padding:0 8px\">SoundCloud<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">soundcloud_follow<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">soundcloud_like_song<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">soundcloud_listen_to_song<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">soundcloud_repost_song<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">soundcloud_submit_song<\/p>\n<p style=\"font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:#6b7280;margin:16px 0 8px 0;padding:0 8px\">Spotify<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">spotify_follow<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">spotify_follow_playlist<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">spotify_follow_podcast<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">spotify_listen_to_song<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">spotify_save<\/p>\n<p style=\"font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:#6b7280;margin:16px 0 8px 0;padding:0 8px\">Vimeo<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">vimeo_watch_video<\/p>\n<p style=\"font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:#6b7280;margin:16px 0 8px 0;padding:0 8px\">Bandcamp<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">bandcamp_follow<\/p>\n<\/div>\n<div style=\"flex:1;min-width:250px;max-width:33.33%\">\n<p style=\"font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:#6b7280;margin:16px 0 8px 0;padding:0 8px\">Crypto Wallets<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">bep2_crypto_wallet<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">btc_crypto_wallet<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">eth_bep20_crypto_wallet<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">other_crypto_wallet<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">solana_crypto_wallet<\/p>\n<p style=\"font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:#6b7280;margin:16px 0 8px 0;padding:0 8px\">Crowdfunding<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">indiegogo_visit<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">kickstarter_visit<\/p>\n<p style=\"font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:#6b7280;margin:16px 0 8px 0;padding:0 8px\">Commerce<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">ebay_follow<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">entries_for_purchase<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">etsy_follow<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">etsy_item<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">make_a_purchase<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">shopify_follow<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">woocommerce_purchases<\/p>\n<p style=\"font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:#6b7280;margin:16px 0 8px 0;padding:0 8px\">Content Platforms<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">blog_comment<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">disqus_comment<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">goodreads_add_to_shelf<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">goodreads_follow<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">medium_clap<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">medium_comment<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">patreon_page_visit<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">producthunt_follow<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">producthunt_vote<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">rss<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">substack_subscribe<\/p>\n<p style=\"font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:#6b7280;margin:16px 0 8px 0;padding:0 8px\">Events<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">add_to_calendar<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">attend_eventbrite_event<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">attend_eventbrite_venue<\/p>\n<p style=\"font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:#6b7280;margin:16px 0 8px 0;padding:0 8px\">Actions<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">app_download<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">bonus<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">custom<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">e_signature<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">email_subscribe<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">leave_a_review<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">loyalty_bonus<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">podcast_subscribe<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">refer_friends<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">secret_code<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">steam_join_group<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">upload_a_file<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">visit_a_page<\/p>\n<p style=\"font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:#6b7280;margin:16px 0 8px 0;padding:0 8px\">Form Fields<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">address<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">birthday<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">checkbox<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">checkboxes<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">complete_survey<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">full_name<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">phone_number<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">radio<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">select<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">text_input<\/p>\n<p style=\"margin:3px 0;padding:3px 8px;font-size:13px;font-family:monospace;color:#374151\">textarea<\/p>\n<\/div>\n<\/div>\n<p style=\"font-size:16px;font-weight:700;color:#1a1a2e;margin:24px 0 12px 0\">Example Request<\/p>\n<pre class=\"wp-block-code\" style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:16px 0;overflow-x:auto;border:none\"><code style=\"color:#cdd6f4;font-family:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;font-size:13px;line-height:1.6\">$post = json_encode([\n    'competition_id' =&gt; '123',\n    'entry_order' =&gt; '5',\n    'entry_method_type' =&gt; 'facebook_page_visit',\n    'entry_method_handle' =&gt; 'Visit Us On Facebook',\n    'mandatory' =&gt; '0',\n    'entries_worth' =&gt; '10',\n    'entry_link' =&gt; 'https:\/\/facebook.com\/SweepWidget',\n    'input_header' =&gt; 'Visit and follow SweepWidget on Facebook by manually clicking on the button below.',\n    'additional_instructions' =&gt; '',\n    'widget_display' =&gt; '1',\n    'icon_color' =&gt; '#3b5998',\n    'require_verification' =&gt; '1',\n    'language' =&gt; 'en'\n]);\n\n$ch = curl_init('https:\/\/sweepwidgetapi.com\/sw_api\/create-entry-method');\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_POSTFIELDS, $post);\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    'Authorization: Bearer YOUR_API_KEY',\n    'Content-Type: application\/json'\n]);\n\n$response = curl_exec($ch);\ncurl_close($ch);\nvar_dump($response);<\/code><\/pre>\n<p><!-- ============================================ --><br \/>\n<!-- ENDPOINT: Update an entry method --><br \/>\n<!-- ============================================ --><\/p>\n<h2 class=\"wp-block-heading\" id=\"update-entry-method\" style=\"font-size:24px;color:#1a1a2e;padding-top:40px;margin-top:40px;border-top:1px solid #e5e7eb;font-weight:700\">Update an entry method<\/h2>\n<p style=\"font-size:15px;color:#374151;line-height:1.7;margin-bottom:16px\">This method allows you to update an existing entry method on a giveaway. Only the fields you include in the request will be updated &#8211; all other fields remain unchanged.<\/p>\n<div style=\"background:#1e1e2e;border-radius:8px;padding:16px 20px;margin:16px 0;font-family:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;font-size:14px;color:#cdd6f4;overflow-x:auto\"><span style=\"display:inline-block;padding:3px 10px;border-radius:4px;font-size:12px;font-weight:700;margin-right:12px;background:#3b82f6;color:#fff\">POST<\/span>https:\/\/sweepwidgetapi.com\/sw_api\/update-entry-method<\/div>\n<p style=\"font-size:16px;font-weight:700;color:#1a1a2e;margin:24px 0 12px 0\">Parameters<\/p>\n<figure class=\"wp-block-table\">\n<table style=\"border-collapse:collapse;width:100%\">\n<thead>\n<tr>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Parameter<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Type<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Description<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Required<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">api_key<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">API developer key. Can also be sent as <code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:12px;color:#7c3aed\">Authorization: Bearer<\/code> header.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">competition_id<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><a href=\"https:\/\/sweepwidget.com\/docs\/how-to-find-your-competition-id\" target=\"_blank\" rel=\"noopener noreferrer\">ID of your competition<\/a>.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">entry_method_id<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">The entry_id of the entry method to update. You can find this from the entry method list or the response when creating an entry method.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">entries_worth<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">How many entries the entry method is worth.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#f3f4f6;color:#6b7280\">Optional<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">entry_method_handle<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Title for the entry method (the text shown before the entrant opens it).<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#f3f4f6;color:#6b7280\">Optional<\/span><\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">entry_link<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Profile handle or link for the entry method.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#f3f4f6;color:#6b7280\">Optional<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">entry_title<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Internal title\/label for the entry method.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#f3f4f6;color:#6b7280\">Optional<\/span><\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">mandatory<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Whether it is a required entry method. 1 = required, 0 = optional.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#f3f4f6;color:#6b7280\">Optional<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">daily<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">0 = one-time, 1 = daily repeat.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#f3f4f6;color:#6b7280\">Optional<\/span><\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">additional_instructions<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Additional instructions shown to the entrant.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#f3f4f6;color:#6b7280\">Optional<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">icon_color<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Hex color code for the icon, e.g. #3b5998.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#f3f4f6;color:#6b7280\">Optional<\/span><\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">widget_display<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">1 = circle icon (default), 2 = square look.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#f3f4f6;color:#6b7280\">Optional<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">require_verification<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">1 = require username verification, 0 = no verification.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#f3f4f6;color:#6b7280\">Optional<\/span><\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">entry_textarea<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Content field (tweet text, questions, purchase config, etc.).<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#f3f4f6;color:#6b7280\">Optional<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">input_options_1<\/code> through <code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">input_options_6<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Entry method-specific options. Usage varies by type.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#f3f4f6;color:#6b7280\">Optional<\/span><\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">timer<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Countdown seconds before the user can submit.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#f3f4f6;color:#6b7280\">Optional<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">entry_order<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Display order of the entry method.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#f3f4f6;color:#6b7280\">Optional<\/span><\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">entry_level<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">1 = pre-entry\/required, 2 = bonus action.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#f3f4f6;color:#6b7280\">Optional<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">tags<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Entry method tags.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#f3f4f6;color:#6b7280\">Optional<\/span><\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">email_integration<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Email provider integration config.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#f3f4f6;color:#6b7280\">Optional<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p style=\"font-size:16px;font-weight:700;color:#1a1a2e;margin:24px 0 12px 0\">Example Request<\/p>\n<pre class=\"wp-block-code\" style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:16px 0;overflow-x:auto;border:none\"><code style=\"color:#cdd6f4;font-family:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;font-size:13px;line-height:1.6\">$post = json_encode([\n    'competition_id' => '123',\n    'entry_method_id' => '5',\n    'entries_worth' => '20',\n    'entry_method_handle' => 'Follow Us On Instagram',\n    'mandatory' => '1'\n]);\n\n$ch = curl_init('https:\/\/sweepwidgetapi.com\/sw_api\/update-entry-method');\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_POSTFIELDS, $post);\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    'Authorization: Bearer YOUR_API_KEY',\n    'Content-Type: application\/json'\n]);\n\n$response = curl_exec($ch);\ncurl_close($ch);\nvar_dump($response);<\/code><\/pre>\n<p style=\"font-size:16px;font-weight:700;color:#1a1a2e;margin:24px 0 12px 0\">Example Response<\/p>\n<pre class=\"wp-block-code\" style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:16px 0;overflow-x:auto;border:none\"><code style=\"color:#cdd6f4;font-family:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;font-size:13px;line-height:1.6\">{\n  \"message\": \"Successfully updated entry method 5 for competition id: 123\"\n}<\/code><\/pre>\n<p><!-- ============================================ --><br \/>\n<!-- ENDPOINT: Delete an entry method --><br \/>\n<!-- ============================================ --><\/p>\n<h2 class=\"wp-block-heading\" id=\"delete-entry-method\" style=\"font-size:24px;color:#1a1a2e;padding-top:40px;margin-top:40px;border-top:1px solid #e5e7eb;font-weight:700\">Delete an entry method<\/h2>\n<p style=\"font-size:15px;color:#374151;line-height:1.7;margin-bottom:16px\">This method allows you to delete an entry method from an existing giveaway. Note: you cannot delete the User Details (login) entry method.<\/p>\n<div style=\"background:#1e1e2e;border-radius:8px;padding:16px 20px;margin:16px 0;font-family:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;font-size:14px;color:#cdd6f4;overflow-x:auto\"><span style=\"display:inline-block;padding:3px 10px;border-radius:4px;font-size:12px;font-weight:700;margin-right:12px;background:#3b82f6;color:#fff\">POST<\/span>https:\/\/sweepwidgetapi.com\/sw_api\/delete-entry-method<\/div>\n<p style=\"font-size:16px;font-weight:700;color:#1a1a2e;margin:24px 0 12px 0\">Parameters<\/p>\n<figure class=\"wp-block-table\">\n<table style=\"border-collapse:collapse;width:100%\">\n<thead>\n<tr>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Parameter<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Type<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Description<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Required<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">api_key<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">API developer key. Can also be sent as <code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:12px;color:#7c3aed\">Authorization: Bearer<\/code> header.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">competition_id<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><a href=\"https:\/\/sweepwidget.com\/docs\/how-to-find-your-competition-id\" target=\"_blank\" rel=\"noopener noreferrer\">ID of your competition<\/a>.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">entry_method_id<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">The entry_id of the entry method to delete.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p style=\"font-size:16px;font-weight:700;color:#1a1a2e;margin:24px 0 12px 0\">Example Request<\/p>\n<pre class=\"wp-block-code\" style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:16px 0;overflow-x:auto;border:none\"><code style=\"color:#cdd6f4;font-family:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;font-size:13px;line-height:1.6\">$post = json_encode([\n    'competition_id' => '123',\n    'entry_method_id' => '5'\n]);\n\n$ch = curl_init('https:\/\/sweepwidgetapi.com\/sw_api\/delete-entry-method');\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_POSTFIELDS, $post);\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    'Authorization: Bearer YOUR_API_KEY',\n    'Content-Type: application\/json'\n]);\n\n$response = curl_exec($ch);\ncurl_close($ch);\nvar_dump($response);<\/code><\/pre>\n<p style=\"font-size:16px;font-weight:700;color:#1a1a2e;margin:24px 0 12px 0\">Example Response<\/p>\n<pre class=\"wp-block-code\" style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:16px 0;overflow-x:auto;border:none\"><code style=\"color:#cdd6f4;font-family:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;font-size:13px;line-height:1.6\">{\n  \"message\": \"Successfully deleted entry method 5 from competition id: 123\"\n}<\/code><\/pre>\n<p><!-- ============================================ --><br \/>\n<!-- ENDPOINT: Create a giveaway --><br \/>\n<!-- ============================================ --><\/p>\n<h2 class=\"wp-block-heading\" id=\"create-giveaway\" style=\"font-size:24px;color:#1a1a2e;padding-top:40px;margin-top:40px;border-top:1px solid #e5e7eb;font-weight:700\">Create a giveaway<\/h2>\n<p style=\"font-size:15px;color:#374151;line-height:1.7;margin-bottom:16px\">This method allows you to create a new giveaway. It creates the giveaway with all settings including design\/styling, security rules, and a default User Details entry method. After creation, you can add additional entry methods, prizes, and rewards using the other API endpoints.<\/p>\n<div style=\"background:#1e1e2e;border-radius:8px;padding:16px 20px;margin:16px 0;font-family:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;font-size:14px;color:#cdd6f4;overflow-x:auto\"><span style=\"display:inline-block;padding:3px 10px;border-radius:4px;font-size:12px;font-weight:700;margin-right:12px;background:#3b82f6;color:#fff\">POST<\/span>https:\/\/sweepwidgetapi.com\/sw_api\/create-giveaway<\/div>\n<p style=\"font-size:16px;font-weight:700;color:#1a1a2e;margin:24px 0 12px 0\">Required Parameters<\/p>\n<figure class=\"wp-block-table\">\n<table style=\"border-collapse:collapse;width:100%\">\n<thead>\n<tr>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Parameter<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Type<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Description<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Required<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">api_key<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">API developer key. Can also be sent as <code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:12px;color:#7c3aed\">Authorization: Bearer<\/code> header.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">title<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Giveaway title (max 500 characters).<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">start_time<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Start date\/time in YYYY-MM-DD HH:MM:SS format.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">end_time<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">End date\/time in YYYY-MM-DD HH:MM:SS format. Must be after start_time.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p style=\"font-size:16px;font-weight:700;color:#1a1a2e;margin:24px 0 12px 0\">Basic Settings <span style=\"font-weight:400;color:#6b7280;font-size:13px\">(optional)<\/span><\/p>\n<figure class=\"wp-block-table\">\n<table style=\"border-collapse:collapse;width:100%\">\n<thead>\n<tr>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Parameter<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Type<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Default<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">time_zone<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">America\/New_York<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">PHP timezone identifier (e.g. America\/Chicago, Europe\/London).<\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">description<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">(empty)<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">HTML description of the giveaway.<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">rules<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">(empty)<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">HTML rules\/terms for the giveaway.<\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">number_of_winners<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">1<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Number of winners (1-1000).<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">language<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">en<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">2-character language code.<\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">is_draft<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">0<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">1 = save as draft, 0 = publish.<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">public_or_private<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">public<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">public or private.<\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">competition_type<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">standard<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">standard or photo_contest.<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">redirect_url<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">(empty)<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Post-entry redirect URL.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p style=\"font-size:16px;font-weight:700;color:#1a1a2e;margin:24px 0 12px 0\">Entry\/Points System <span style=\"font-weight:400;color:#6b7280;font-size:13px\">(optional)<\/span><\/p>\n<figure class=\"wp-block-table\">\n<table style=\"border-collapse:collapse;width:100%\">\n<thead>\n<tr>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Parameter<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Type<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Default<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">entries_or_points<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">1<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">1 = entries, 2 = points.<\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">entries_or_points_custom_singular<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">(empty)<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Custom singular label (e.g. &#8220;Token&#8221;).<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">entries_or_points_custom_plural<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">(empty)<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Custom plural label (e.g. &#8220;Tokens&#8221;).<\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">user_details_entries_worth<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">1<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Entries awarded for completing the login form.<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">show_prizes<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">1<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Show prizes section (0\/1).<\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">show_rules_expanded<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">0<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Auto-expand rules section (0\/1).<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">hide_entries_if_logged_out<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">0<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Hide entry methods until user logs in (0\/1).<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p style=\"font-size:16px;font-weight:700;color:#1a1a2e;margin:24px 0 12px 0\">Leaderboard <span style=\"font-weight:400;color:#6b7280;font-size:13px\">(optional)<\/span><\/p>\n<figure class=\"wp-block-table\">\n<table style=\"border-collapse:collapse;width:100%\">\n<thead>\n<tr>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Parameter<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Type<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Default<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">if_leaderboard<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">0<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Enable leaderboard (0\/1).<\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">leaderboard_title<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">(empty)<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Leaderboard title.<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">leaderboard_description<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">(empty)<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Leaderboard description.<\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">leaderboard_display_amount<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">10<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Number of leaders to show (max 500).<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">leaderboard_name_display<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">1<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">1 = full name, 2 = first initial + last, 3 = first + last initial, 4 = hide.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p style=\"font-size:16px;font-weight:700;color:#1a1a2e;margin:24px 0 12px 0\">Login Fields <span style=\"font-weight:400;color:#6b7280;font-size:13px\">(optional)<\/span><\/p>\n<figure class=\"wp-block-table\">\n<table style=\"border-collapse:collapse;width:100%\">\n<thead>\n<tr>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Parameter<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Type<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Default<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">required_main_login_options<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">1,1,0<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">CSV: name,email,phone (1 = required, 0 = not required).<\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">social_login_require<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">0<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Require social login (0\/1).<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">social_login_options<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">0,0,0,0,0,0,0,0,0,0,0,0,0,0,0<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">CSV of 15 toggles: Facebook, Twitter, Instagram, Pinterest, Google, LinkedIn, Twitch, Discord, Steam, Yahoo, Tumblr, OpenID, Telegram, Reddit, Spotify.<\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">require_entry_method_before_login<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">0<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Show entry methods before login form (0\/1).<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p style=\"font-size:16px;font-weight:700;color:#1a1a2e;margin:24px 0 12px 0\">Security <span style=\"font-weight:400;color:#6b7280;font-size:13px\">(optional)<\/span><\/p>\n<figure class=\"wp-block-table\">\n<table style=\"border-collapse:collapse;width:100%\">\n<thead>\n<tr>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Parameter<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Type<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Default<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">security_level<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">1<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">1 = weak, 2 = standard, 3 = strong, 4 = strict.<\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">require_captcha<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">1<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">1 = no captcha, 2 = always show, 3 = auto.<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">check_for_duplicate_ip<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">0<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Block duplicate IP addresses (0\/1).<\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">block_vpns<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">0<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Block VPN users (0\/1).<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">block_high_risk_email_tld<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">1<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Block disposable email addresses (0\/1).<\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">age_limit<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">0<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">0 = no limit, otherwise the age requirement.<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">age_limit_min_or_max<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">1<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">1 = minimum age, 2 = maximum age.<\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">countries_allowed<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">Worldwide<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Comma-separated country codes or &#8220;Worldwide&#8221;.<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">countries_allowed_include_or_exclude<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">include<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">include or exclude.<\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">max_allowed_users_to_enter<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">0<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Max participants (0 = unlimited).<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">max_allowed_entries<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">0<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Max total entries across all users (0 = unlimited).<\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">entries_allowed_per_user<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">0<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Max entries per user (0 = unlimited).<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">require_verify_email<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">0<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Require email verification (0\/1).<\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">if_enter_whitelist<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">0<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Enable email whitelist (0\/1).<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p style=\"font-size:16px;font-weight:700;color:#1a1a2e;margin:24px 0 12px 0\">Design\/Styling <span style=\"font-weight:400;color:#6b7280;font-size:13px\">(optional)<\/span><\/p>\n<p style=\"font-size:14px;color:#6b7280;margin-bottom:12px\">All color values are 6-character hex codes without the # symbol (e.g. 333333).<\/p>\n<figure class=\"wp-block-table\">\n<table style=\"border-collapse:collapse;width:100%\">\n<thead>\n<tr>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Parameter<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Type<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Default<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">widget_position<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">2<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">1 = left, 2 = center, 3 = right.<\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">title_font_color<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">333333<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Title text color.<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">title_font_size<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">24<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Title font size in px.<\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">body_font_color<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">555555<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Body text color.<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">body_background_color<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">ffffff<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Body background color.<\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">body_font_size<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">14<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Body font size in px.<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">buttons_font_color<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">ffffff<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Button text color.<\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">buttons_background_color<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">2196F3<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Button background color.<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">buttons_font_size<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">14<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Button font size in px.<\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">buttons_border_radius<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">5<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Button border radius in px.<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">buttons_enter_text<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">(empty)<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Custom button text.<\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">form_border_color<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">e0e0e0<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Form border color.<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">form_border_width<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">1<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Form border width in px.<\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">form_border_radius<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">5<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Form border radius in px.<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">form_box_shadow<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">1<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Enable form box shadow (0\/1).<\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">form_max_width<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">0<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Max form width in px (0 = auto).<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">form_font_family<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">(empty)<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">CSS font family.<\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">top_background_color<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">333333<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Countdown bar background color.<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">top_numbers_font_color<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">ffffff<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Countdown numbers color.<\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">top_text_font_color<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">cccccc<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Countdown text color.<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">input_border_color<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">cccccc<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Input field border color.<\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">input_border_radius<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">5<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Input field border radius in px.<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">links_font_color<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">2196F3<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Link text color.<\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">landing_page_background_color<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">f5f5f5<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Landing page background color.<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">entry_methods_view<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">1<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">1 = modern view, 2 = classic view.<\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">hide_title<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">0<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Hide the giveaway title (0\/1).<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">hide_description<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">0<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Hide the description (0\/1).<\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">if_custom_css<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">0<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Enable custom CSS (0\/1).<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">custom_css<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">(empty)<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Custom CSS code.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p style=\"font-size:16px;font-weight:700;color:#1a1a2e;margin:24px 0 12px 0\">Photo Contest Fields <span style=\"font-weight:400;color:#6b7280;font-size:13px\">(optional, only when competition_type = photo_contest)<\/span><\/p>\n<figure class=\"wp-block-table\">\n<table style=\"border-collapse:collapse;width:100%\">\n<thead>\n<tr>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Parameter<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Type<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Default<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">gallery_title<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">(empty)<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Gallery section title.<\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">gallery_description<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">(empty)<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Gallery description HTML.<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">gallery_how_winners_determined<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">1<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">1 = user voting, 2 = admin picks.<\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">gallery_votes_per_user<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">1<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Number of votes per user.<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">gallery_require_login_to_vote<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">1<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Require login to vote (0\/1).<\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">require_media_approval<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">0<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Require admin approval for submissions (0\/1).<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">gallery_button_photographer_text<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">(empty)<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Custom photographer button text.<\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">gallery_button_voter_text<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#6b7280;vertical-align:top\">(empty)<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Custom voter button text.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p style=\"font-size:16px;font-weight:700;color:#1a1a2e;margin:24px 0 12px 0\">Example Request<\/p>\n<pre class=\"wp-block-code\" style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:16px 0;overflow-x:auto;border:none\"><code style=\"color:#cdd6f4;font-family:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;font-size:13px;line-height:1.6\">$post = json_encode([\n    'title' => 'Summer Giveaway 2026',\n    'start_time' => '2026-03-01 00:00:00',\n    'end_time' => '2026-03-31 23:59:59',\n    'time_zone' => 'America\/New_York',\n    'description' => 'Enter to win amazing prizes this summer!',\n    'number_of_winners' => '3',\n    'language' => 'en',\n    'buttons_background_color' => '4CAF50',\n    'title_font_color' => '222222'\n]);\n\n$ch = curl_init('https:\/\/sweepwidgetapi.com\/sw_api\/create-giveaway');\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_POSTFIELDS, $post);\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    'Authorization: Bearer YOUR_API_KEY',\n    'Content-Type: application\/json'\n]);\n\n$response = curl_exec($ch);\ncurl_close($ch);\nvar_dump($response);<\/code><\/pre>\n<p style=\"font-size:16px;font-weight:700;color:#1a1a2e;margin:24px 0 12px 0\">Example Response<\/p>\n<pre class=\"wp-block-code\" style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:16px 0;overflow-x:auto;border:none\"><code style=\"color:#cdd6f4;font-family:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;font-size:13px;line-height:1.6\">{\n  \"message\": \"Successfully created giveaway.\",\n  \"competition_id\": 12345,\n  \"competition_url\": \"a1b2c3d4\",\n  \"giveaway_link\": \"https:\/\/sweepwidget.com\/view\/12345-a1b2c3d4\",\n  \"embed_code\": \"&lt;div id=\\\"12345-a1b2c3d4\\\" class=\\\"sw_container\\\"&gt;&lt;\/div&gt;&lt;script type=\\\"text\/javascript\\\" src=\\\"https:\/\/sweepwidget.com\/w\/j\/w_init.js\\\"&gt;&lt;\/script&gt;\"\n}<\/code><\/pre>\n<p><!-- ============================================ --><br \/>\n<!-- ENDPOINT: Update a giveaway --><br \/>\n<!-- ============================================ --><\/p>\n<h2 class=\"wp-block-heading\" id=\"update-giveaway\" style=\"font-size:24px;color:#1a1a2e;padding-top:40px;margin-top:40px;border-top:1px solid #e5e7eb;font-weight:700\">Update a giveaway<\/h2>\n<p style=\"font-size:15px;color:#374151;line-height:1.7;margin-bottom:16px\">This method allows you to update an existing giveaway. Only the fields you include in the request will be updated &#8211; all other settings remain unchanged. You can update settings across the main giveaway, security\/rules, and design\/styling.<\/p>\n<div style=\"background:#1e1e2e;border-radius:8px;padding:16px 20px;margin:16px 0;font-family:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;font-size:14px;color:#cdd6f4;overflow-x:auto\"><span style=\"display:inline-block;padding:3px 10px;border-radius:4px;font-size:12px;font-weight:700;margin-right:12px;background:#3b82f6;color:#fff\">POST<\/span>https:\/\/sweepwidgetapi.com\/sw_api\/update-giveaway<\/div>\n<p style=\"font-size:16px;font-weight:700;color:#1a1a2e;margin:24px 0 12px 0\">Parameters<\/p>\n<p style=\"font-size:14px;color:#374151;line-height:1.7;margin-bottom:12px\">The following parameters are required. All other parameters from the <a href=\"#create-giveaway\" style=\"color:#4a3aff\">Create a giveaway<\/a> endpoint are accepted as optional &#8211; only fields you include will be updated.<\/p>\n<figure class=\"wp-block-table\">\n<table style=\"border-collapse:collapse;width:100%\">\n<thead>\n<tr>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Parameter<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Type<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Description<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Required<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">api_key<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">API developer key. Can also be sent as <code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:12px;color:#7c3aed\">Authorization: Bearer<\/code> header.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">competition_id<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><a href=\"https:\/\/sweepwidget.com\/docs\/how-to-find-your-competition-id\" target=\"_blank\" rel=\"noopener noreferrer\">ID of your competition<\/a>.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p style=\"font-size:16px;font-weight:700;color:#1a1a2e;margin:24px 0 12px 0\">Example Request<\/p>\n<pre class=\"wp-block-code\" style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:16px 0;overflow-x:auto;border:none\"><code style=\"color:#cdd6f4;font-family:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;font-size:13px;line-height:1.6\">$post = json_encode([\n    'competition_id' => '12345',\n    'title' => 'Updated Giveaway Title',\n    'end_time' => '2026-04-15 23:59:59',\n    'buttons_background_color' => 'FF5722'\n]);\n\n$ch = curl_init('https:\/\/sweepwidgetapi.com\/sw_api\/update-giveaway');\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_POSTFIELDS, $post);\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    'Authorization: Bearer YOUR_API_KEY',\n    'Content-Type: application\/json'\n]);\n\n$response = curl_exec($ch);\ncurl_close($ch);\nvar_dump($response);<\/code><\/pre>\n<p style=\"font-size:16px;font-weight:700;color:#1a1a2e;margin:24px 0 12px 0\">Example Response<\/p>\n<pre class=\"wp-block-code\" style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:16px 0;overflow-x:auto;border:none\"><code style=\"color:#cdd6f4;font-family:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;font-size:13px;line-height:1.6\">{\n  \"message\": \"Successfully updated giveaway 12345.\"\n}<\/code><\/pre>\n<p><!-- ============================================ --><br \/>\n<!-- ENDPOINT: Delete a giveaway --><br \/>\n<!-- ============================================ --><\/p>\n<h2 class=\"wp-block-heading\" id=\"delete-giveaway\" style=\"font-size:24px;color:#1a1a2e;padding-top:40px;margin-top:40px;border-top:1px solid #e5e7eb;font-weight:700\">Delete a giveaway<\/h2>\n<p style=\"font-size:15px;color:#374151;line-height:1.7;margin-bottom:16px\">This method allows you to delete a giveaway. The giveaway is soft-deleted (it can be recovered by contacting support).<\/p>\n<div style=\"background:#1e1e2e;border-radius:8px;padding:16px 20px;margin:16px 0;font-family:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;font-size:14px;color:#cdd6f4;overflow-x:auto\"><span style=\"display:inline-block;padding:3px 10px;border-radius:4px;font-size:12px;font-weight:700;margin-right:12px;background:#3b82f6;color:#fff\">POST<\/span>https:\/\/sweepwidgetapi.com\/sw_api\/delete-giveaway<\/div>\n<p style=\"font-size:16px;font-weight:700;color:#1a1a2e;margin:24px 0 12px 0\">Parameters<\/p>\n<figure class=\"wp-block-table\">\n<table style=\"border-collapse:collapse;width:100%\">\n<thead>\n<tr>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Parameter<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Type<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Description<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Required<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">api_key<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">API developer key. Can also be sent as <code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:12px;color:#7c3aed\">Authorization: Bearer<\/code> header.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">competition_id<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><a href=\"https:\/\/sweepwidget.com\/docs\/how-to-find-your-competition-id\" target=\"_blank\" rel=\"noopener noreferrer\">ID of your competition<\/a>.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p style=\"font-size:16px;font-weight:700;color:#1a1a2e;margin:24px 0 12px 0\">Example Request<\/p>\n<pre class=\"wp-block-code\" style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:16px 0;overflow-x:auto;border:none\"><code style=\"color:#cdd6f4;font-family:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;font-size:13px;line-height:1.6\">$post = json_encode([\n    'competition_id' => '12345'\n]);\n\n$ch = curl_init('https:\/\/sweepwidgetapi.com\/sw_api\/delete-giveaway');\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_POSTFIELDS, $post);\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    'Authorization: Bearer YOUR_API_KEY',\n    'Content-Type: application\/json'\n]);\n\n$response = curl_exec($ch);\ncurl_close($ch);\nvar_dump($response);<\/code><\/pre>\n<p style=\"font-size:16px;font-weight:700;color:#1a1a2e;margin:24px 0 12px 0\">Example Response<\/p>\n<pre class=\"wp-block-code\" style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:16px 0;overflow-x:auto;border:none\"><code style=\"color:#cdd6f4;font-family:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;font-size:13px;line-height:1.6\">{\n  \"message\": \"Successfully deleted giveaway 12345.\"\n}<\/code><\/pre>\n<p><!-- ============================================ --><br \/>\n<!-- ENDPOINT: Add a prize to a giveaway --><br \/>\n<!-- ============================================ --><\/p>\n<h2 class=\"wp-block-heading\" id=\"create-prize\" style=\"font-size:24px;color:#1a1a2e;padding-top:40px;margin-top:40px;border-top:1px solid #e5e7eb;font-weight:700\">Add a prize to a giveaway<\/h2>\n<p style=\"font-size:15px;color:#374151;line-height:1.7;margin-bottom:16px\">This method allows you to add a prize to an existing giveaway. After adding a prize, the giveaway&#8217;s total number of winners is automatically updated to match the sum of all prize winner counts.<\/p>\n<div style=\"background:#1e1e2e;border-radius:8px;padding:16px 20px;margin:16px 0;font-family:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;font-size:14px;color:#cdd6f4;overflow-x:auto\"><span style=\"display:inline-block;padding:3px 10px;border-radius:4px;font-size:12px;font-weight:700;margin-right:12px;background:#3b82f6;color:#fff\">POST<\/span>https:\/\/sweepwidgetapi.com\/sw_api\/create-prize<\/div>\n<p style=\"font-size:16px;font-weight:700;color:#1a1a2e;margin:24px 0 12px 0\">Parameters<\/p>\n<figure class=\"wp-block-table\">\n<table style=\"border-collapse:collapse;width:100%\">\n<thead>\n<tr>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Parameter<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Type<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Description<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Required<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">api_key<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">API developer key. Can also be sent as <code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:12px;color:#7c3aed\">Authorization: Bearer<\/code> header.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">competition_id<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><a href=\"https:\/\/sweepwidget.com\/docs\/how-to-find-your-competition-id\" target=\"_blank\" rel=\"noopener noreferrer\">ID of your competition<\/a>.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">prize_name<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Name of the prize.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">prize_winners_allowed<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Number of winners for this prize. Default: 1.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#f3f4f6;color:#6b7280\">Optional<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">prize_value<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Monetary value of the prize (e.g. &#8220;50.00&#8221;).<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#f3f4f6;color:#6b7280\">Optional<\/span><\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">prize_currency<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">3-character currency code. Default: USD.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#f3f4f6;color:#6b7280\">Optional<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">redemption_switch<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Enable redemption codes for winners (0\/1). Default: 0.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#f3f4f6;color:#6b7280\">Optional<\/span><\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">redemption_codes<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Comma-separated redemption codes for winners.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#f3f4f6;color:#6b7280\">Optional<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">redemption_instructions<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">HTML instructions shown to winners.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#f3f4f6;color:#6b7280\">Optional<\/span><\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">redemption_subject<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Email subject line for winner notification.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#f3f4f6;color:#6b7280\">Optional<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">redemption_reply_to_email<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Reply-to email address for winner notification.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#f3f4f6;color:#6b7280\">Optional<\/span><\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">redemption_reply_to_name<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Reply-to name for winner notification.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#f3f4f6;color:#6b7280\">Optional<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p style=\"font-size:16px;font-weight:700;color:#1a1a2e;margin:24px 0 12px 0\">Example Request<\/p>\n<pre class=\"wp-block-code\" style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:16px 0;overflow-x:auto;border:none\"><code style=\"color:#cdd6f4;font-family:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;font-size:13px;line-height:1.6\">$post = json_encode([\n    'competition_id' => '12345',\n    'prize_name' => '$100 Amazon Gift Card',\n    'prize_winners_allowed' => '1',\n    'prize_value' => '100.00',\n    'prize_currency' => 'USD'\n]);\n\n$ch = curl_init('https:\/\/sweepwidgetapi.com\/sw_api\/create-prize');\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_POSTFIELDS, $post);\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    'Authorization: Bearer YOUR_API_KEY',\n    'Content-Type: application\/json'\n]);\n\n$response = curl_exec($ch);\ncurl_close($ch);\nvar_dump($response);<\/code><\/pre>\n<p style=\"font-size:16px;font-weight:700;color:#1a1a2e;margin:24px 0 12px 0\">Example Response<\/p>\n<pre class=\"wp-block-code\" style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:16px 0;overflow-x:auto;border:none\"><code style=\"color:#cdd6f4;font-family:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;font-size:13px;line-height:1.6\">{\n  \"message\": \"Successfully added prize to competition id: 12345\",\n  \"prize_id\": 1,\n  \"prize_order\": 1\n}<\/code><\/pre>\n<p><!-- ============================================ --><br \/>\n<!-- ENDPOINT: Add an unlock reward --><br \/>\n<!-- ============================================ --><\/p>\n<h2 class=\"wp-block-heading\" id=\"create-reward\" style=\"font-size:24px;color:#1a1a2e;padding-top:40px;margin-top:40px;border-top:1px solid #e5e7eb;font-weight:700\">Add an unlock reward to a giveaway<\/h2>\n<p style=\"font-size:15px;color:#374151;line-height:1.7;margin-bottom:16px\">This method allows you to add an unlock reward (milestone reward or instant coupon) to a giveaway. When a user earns enough entries, they automatically unlock the reward. Adding a reward automatically enables the unlock rewards feature on the giveaway.<\/p>\n<div style=\"background:#1e1e2e;border-radius:8px;padding:16px 20px;margin:16px 0;font-family:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;font-size:14px;color:#cdd6f4;overflow-x:auto\"><span style=\"display:inline-block;padding:3px 10px;border-radius:4px;font-size:12px;font-weight:700;margin-right:12px;background:#3b82f6;color:#fff\">POST<\/span>https:\/\/sweepwidgetapi.com\/sw_api\/create-reward<\/div>\n<p style=\"font-size:16px;font-weight:700;color:#1a1a2e;margin:24px 0 12px 0\">Parameters<\/p>\n<figure class=\"wp-block-table\">\n<table style=\"border-collapse:collapse;width:100%\">\n<thead>\n<tr>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Parameter<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Type<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Description<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Required<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">api_key<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">API developer key. Can also be sent as <code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:12px;color:#7c3aed\">Authorization: Bearer<\/code> header.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">competition_id<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><a href=\"https:\/\/sweepwidget.com\/docs\/how-to-find-your-competition-id\" target=\"_blank\" rel=\"noopener noreferrer\">ID of your competition<\/a>.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">unlock_rewards_type<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">1 = prize draw entry, 2 = coupon.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">unlock_rewards_title<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Name\/title of the reward.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">unlock_rewards_entries_required<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Number of entries the user must earn to unlock this reward.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">unlock_rewards_hide_progress<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Hide the progress bar from users (0\/1). Default: 0.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#f3f4f6;color:#6b7280\">Optional<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">unlock_rewards_prize_random_or_guaranteed<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">1 = random drawing, 2 = guaranteed. Default: 1. Coupons are always guaranteed.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#f3f4f6;color:#6b7280\">Optional<\/span><\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">unlock_rewards_coupon_code<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Coupon code(s), comma-separated for multiple codes.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#f3f4f6;color:#6b7280\">Optional<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">unlock_rewards_coupon_directions<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">HTML instructions for redeeming the coupon.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#f3f4f6;color:#6b7280\">Optional<\/span><\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">unlock_rewards_if_send_email<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">1 = no email, 2 = default email, 3 = custom email. Default: 1.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#f3f4f6;color:#6b7280\">Optional<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">unlock_rewards_user_email_subject<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Custom email subject line. Supports [NAME_OF_COUPON] placeholder.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#f3f4f6;color:#6b7280\">Optional<\/span><\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">unlock_rewards_user_email_body<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Custom email body HTML.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#f3f4f6;color:#6b7280\">Optional<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">unlock_rewards_user_email_reply_to_email<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Reply-to email. Default: noreply@sweepwidget.co.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#f3f4f6;color:#6b7280\">Optional<\/span><\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">unlock_rewards_user_email_reply_to_name<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Reply-to name. Default: SweepWidget.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#f3f4f6;color:#6b7280\">Optional<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p style=\"font-size:16px;font-weight:700;color:#1a1a2e;margin:24px 0 12px 0\">Example Request<\/p>\n<pre class=\"wp-block-code\" style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:16px 0;overflow-x:auto;border:none\"><code style=\"color:#cdd6f4;font-family:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;font-size:13px;line-height:1.6\">$post = json_encode([\n    'competition_id' => '12345',\n    'unlock_rewards_type' => '2',\n    'unlock_rewards_title' => '10% Off Coupon',\n    'unlock_rewards_entries_required' => '5',\n    'unlock_rewards_coupon_code' => 'SAVE10',\n    'unlock_rewards_coupon_directions' => 'Use code SAVE10 at checkout.',\n    'unlock_rewards_if_send_email' => '2'\n]);\n\n$ch = curl_init('https:\/\/sweepwidgetapi.com\/sw_api\/create-reward');\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_POSTFIELDS, $post);\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    'Authorization: Bearer YOUR_API_KEY',\n    'Content-Type: application\/json'\n]);\n\n$response = curl_exec($ch);\ncurl_close($ch);\nvar_dump($response);<\/code><\/pre>\n<p style=\"font-size:16px;font-weight:700;color:#1a1a2e;margin:24px 0 12px 0\">Example Response<\/p>\n<pre class=\"wp-block-code\" style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:16px 0;overflow-x:auto;border:none\"><code style=\"color:#cdd6f4;font-family:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;font-size:13px;line-height:1.6\">{\n  \"message\": \"Successfully added reward to competition id: 12345\",\n  \"unlock_rewards_id\": 1,\n  \"unlock_rewards_order\": 1\n}<\/code><\/pre>\n<p><!-- ============================================ --><br \/>\n<!-- ENDPOINT: Add manual entries for a user --><br \/>\n<!-- ============================================ --><\/p>\n<h2 class=\"wp-block-heading\" id=\"add-manual-entries-for-user\" style=\"font-size:24px;color:#1a1a2e;padding-top:40px;margin-top:40px;border-top:1px solid #e5e7eb;font-weight:700\">Add manual entries for a user<\/h2>\n<p style=\"font-size:15px;color:#374151;line-height:1.7;margin-bottom:16px\">This method allows you to add manual entries for a user. The user must already be entered into your giveaway to add entries. For example, if there is a user who has already entered your contest under the email john.doe@example.com, you can manually add 1-10,000 entries for this user.<\/p>\n<div style=\"background:#1e1e2e;border-radius:8px;padding:16px 20px;margin:16px 0;font-family:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;font-size:14px;color:#cdd6f4;overflow-x:auto\"><span style=\"display:inline-block;padding:3px 10px;border-radius:4px;font-size:12px;font-weight:700;margin-right:12px;background:#3b82f6;color:#fff\">POST<\/span>https:\/\/sweepwidgetapi.com\/sw_api\/add-manual-entries<\/div>\n<p style=\"font-size:16px;font-weight:700;color:#1a1a2e;margin:24px 0 12px 0\">Parameters<\/p>\n<figure class=\"wp-block-table\">\n<table style=\"border-collapse:collapse;width:100%\">\n<thead>\n<tr>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Parameter<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Type<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Description<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Required<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">api_key<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">API developer key. Can also be sent as <code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:12px;color:#7c3aed\">Authorization: Bearer<\/code> header.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">competition_id<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><a href=\"https:\/\/sweepwidget.com\/docs\/how-to-find-your-competition-id\" target=\"_blank\" rel=\"noopener noreferrer\">ID of your competition<\/a>.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">entry_amount<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">How many entries you are giving to this user.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">user_email<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">The email address of the user. Note: the user must already be entered into your contest.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">custom_identifier<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Your own external reference ID for this participant (max 255 characters). Updates the identifier for this user in this giveaway.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#f3f4f6;color:#6b7280\">Optional<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p style=\"font-size:16px;font-weight:700;color:#1a1a2e;margin:24px 0 12px 0\">Example Request<\/p>\n<pre class=\"wp-block-code\" style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:16px 0;overflow-x:auto;border:none\"><code style=\"color:#cdd6f4;font-family:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;font-size:13px;line-height:1.6\">$post = json_encode([\n    'competition_id' =&gt; '123',\n    'entry_amount' =&gt; '1',\n    'user_email' =&gt; 'john.doe@example.com'\n]);\n\n$ch = curl_init('https:\/\/sweepwidgetapi.com\/sw_api\/add-manual-entries');\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_POSTFIELDS, $post);\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    'Authorization: Bearer YOUR_API_KEY',\n    'Content-Type: application\/json'\n]);\n\n$response = curl_exec($ch);\ncurl_close($ch);\nvar_dump($response);<\/code><\/pre>\n<p><!-- ============================================ --><br \/>\n<!-- ENDPOINT: Enter user into a giveaway --><br \/>\n<!-- ============================================ --><\/p>\n<h2 class=\"wp-block-heading\" id=\"enter-user-into-a-giveaway\" style=\"font-size:24px;color:#1a1a2e;padding-top:40px;margin-top:40px;border-top:1px solid #e5e7eb;font-weight:700\">Enter user into a giveaway<\/h2>\n<p style=\"font-size:15px;color:#374151;line-height:1.7;margin-bottom:16px\">This method allows you to enter a user into your giveaway using the API.<\/p>\n<div style=\"background:#1e1e2e;border-radius:8px;padding:16px 20px;margin:16px 0;font-family:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;font-size:14px;color:#cdd6f4;overflow-x:auto\"><span style=\"display:inline-block;padding:3px 10px;border-radius:4px;font-size:12px;font-weight:700;margin-right:12px;background:#3b82f6;color:#fff\">POST<\/span>https:\/\/sweepwidgetapi.com\/sw_api\/new-entry<\/div>\n<p style=\"font-size:16px;font-weight:700;color:#1a1a2e;margin:24px 0 12px 0\">Parameters<\/p>\n<figure class=\"wp-block-table\">\n<table style=\"border-collapse:collapse;width:100%\">\n<thead>\n<tr>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Parameter<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Type<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Description<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Required<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">api_key<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">API developer key. Can also be sent as <code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:12px;color:#7c3aed\">Authorization: Bearer<\/code> header.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">competition_id<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><a href=\"https:\/\/sweepwidget.com\/docs\/how-to-find-your-competition-id\" target=\"_blank\" rel=\"noopener noreferrer\">ID of your competition<\/a>.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">user_email<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Email of the user.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">user_name<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Name of the user.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">entry_amount<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">How many entries is this worth?<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">giveaway_link<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Full URL to where the giveaway is located. Example: https:\/\/yoursite.com\/path-to-your-giveaway. Note: you must include the website protocol (http:\/\/ or https:\/\/).<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">sw_share<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">The share hash from the referral link. Fetch this value from the <strong>sw-share<\/strong> GET variable in your URL. Example: if the URL is https:\/\/yourwebsite.com\/giveaway?sw-share=12345-asfdjhwe, pass <strong>12345-asfdjhwe<\/strong> as the value. Only pass this parameter when the share hash is present in the URL. Note: a <strong>refer a friend<\/strong> entry method must exist on the giveaway for referral tracking to work.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#f3f4f6;color:#6b7280\">Optional<\/span><\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">custom_identifier<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Your own external reference ID for this participant (max 255 characters). This value is returned in entry, user, and winner responses.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#f3f4f6;color:#6b7280\">Optional<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p style=\"font-size:16px;font-weight:700;color:#1a1a2e;margin:24px 0 12px 0\">Example Request<\/p>\n<pre class=\"wp-block-code\" style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:16px 0;overflow-x:auto;border:none\"><code style=\"color:#cdd6f4;font-family:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;font-size:13px;line-height:1.6\">$curl = curl_init();\n\n$post = json_encode([\n    'competition_id' =&gt; '123',\n    'user_email' =&gt; 'test@example.com',\n    'user_name' =&gt; 'Test User',\n    'entry_amount' =&gt; '1',\n    'giveaway_link' =&gt; 'https:\/\/example.com\/path-to-my-giveaway',\n    \/\/'sw_share' =&gt; '8u84os-12345', \/\/ Only pass if the referral link is set\n    \/\/'custom_identifier' =&gt; 'your-reference-id' \/\/ Optional: your own external reference\n]);\n\n$ch = curl_init('https:\/\/sweepwidgetapi.com\/sw_api\/new-entry');\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_POSTFIELDS, $post);\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    'Authorization: Bearer YOUR_API_KEY',\n    'Content-Type: application\/json'\n]);\n\n$response = curl_exec($ch);\ncurl_close($ch);\nvar_dump($response);<\/code><\/pre>\n<p><!-- ============================================ --><br \/>\n<!-- ENDPOINT: Fetch referral link for a user --><br \/>\n<!-- ============================================ --><\/p>\n<h2 class=\"wp-block-heading\" id=\"fetch-referral-link-for-a-user\" style=\"font-size:24px;color:#1a1a2e;padding-top:40px;margin-top:40px;border-top:1px solid #e5e7eb;font-weight:700\">Fetch referral link for a user<\/h2>\n<p style=\"font-size:15px;color:#374151;line-height:1.7;margin-bottom:16px\">This method allows you to fetch a user&#8217;s referral link for any giveaway.<\/p>\n<div style=\"background:#1e1e2e;border-radius:8px;padding:16px 20px;margin:16px 0;font-family:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;font-size:14px;color:#cdd6f4;overflow-x:auto\"><span style=\"display:inline-block;padding:3px 10px;border-radius:4px;font-size:12px;font-weight:700;margin-right:12px;background:#10b981;color:#fff\">GET<\/span>https:\/\/sweepwidgetapi.com\/sw_api\/fetch-user-referral-link<\/div>\n<p style=\"font-size:16px;font-weight:700;color:#1a1a2e;margin:24px 0 12px 0\">Parameters<\/p>\n<figure class=\"wp-block-table\">\n<table style=\"border-collapse:collapse;width:100%\">\n<thead>\n<tr>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Parameter<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Type<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Description<\/th>\n<th style=\"background:#f8f9fa;text-align:left;padding:12px 16px;border-bottom:2px solid #e5e7eb;font-weight:600;font-size:13px;color:#374151\">Required<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">api_key<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">API developer key. Can also be sent as <code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:12px;color:#7c3aed\">Authorization: Bearer<\/code> header.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<tr style=\"background:#fafafa\">\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">competition_id<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Integer<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><a href=\"https:\/\/sweepwidget.com\/docs\/how-to-find-your-competition-id\" target=\"_blank\" rel=\"noopener noreferrer\">ID of your competition<\/a>.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><code style=\"background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:13px;color:#7c3aed\">user_email<\/code><\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">String<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\">Email of the user.<\/td>\n<td style=\"padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151;vertical-align:top\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#fef2f2;color:#dc2626\">Required<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p style=\"font-size:16px;font-weight:700;color:#1a1a2e;margin:24px 0 12px 0\">Example Request<\/p>\n<pre class=\"wp-block-code\" style=\"background:#1e1e2e;border-radius:8px;padding:20px 24px;margin:16px 0;overflow-x:auto;border:none\"><code style=\"color:#cdd6f4;font-family:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;font-size:13px;line-height:1.6\">$curl = curl_init();\n\n$url = \"https:\/\/sweepwidgetapi.com\/sw_api\/fetch-user-referral-link?competition_id=123&amp;user_email=user@example.com\";\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL =&gt; $url,\n    CURLOPT_RETURNTRANSFER =&gt; true,\n    CURLOPT_ENCODING =&gt; \"\",\n    CURLOPT_MAXREDIRS =&gt; 10,\n    CURLOPT_TIMEOUT =&gt; 30,\n    CURLOPT_HTTP_VERSION =&gt; CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST =&gt; \"GET\",\n    CURLOPT_HTTPHEADER =&gt; array(\n        \"Authorization: Bearer YOUR_API_KEY\",\n        \"Content-Type: application\/json\"\n    ),\n));\n\n$response = json_decode(curl_exec($curl));\nvar_dump($response);<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>SweepWidget API Documentation The SweepWidget API allows you to read and write data to your giveaways. If you need any specific functionality that is not currently available, feel free to contact support. Base URLhttps:\/\/sweepwidgetapi.com\/sw_api\/ Getting Your API Key First, you must get your API Key. Navigate to Integrations and click on API Access. Then, copy your API Key. Authentication All API requests require authentication using your API key. Send your API key as a Bearer token in the Authorization header: Authorization: Bearer YOUR_API_KEY Backward compatible: You can also pass api_key as a query parameter (GET) or form field (POST). Both methods are supported. How to make requests GET endpoints (reading data): Pass parameters as query string values in the URL. GET https:\/\/sweepwidgetapi.com\/sw_api\/users?competition_id=123&amp;page_start=1 Authorization: Bearer YOUR_API_KEY POST endpoints (writing data): Send parameters in the request body as JSON. Set the Content-Type header to application\/json. POST https:\/\/sweepwidgetapi.com\/sw_api\/new-entry Authorization: Bearer YOUR_API_KEY Content-Type: application\/json { &#8220;competition_id&#8221;: 123, &#8220;user_name&#8221;: &#8220;Jane&#8221;, &#8220;user_email&#8221;: &#8220;jane@example.com&#8221;, &#8220;entry_amount&#8221;: 1, &#8220;giveaway_link&#8221;: &#8220;https:\/\/yoursite.com&#8221; } Important: For POST endpoints, parameters must be sent in the request body, not in the URL. Putting POST parameters in the URL query string (e.g. \/new-entry?competition_id=123&amp;user_email=&#8230;) will not work. Quick start examples cURL # GET &#8211; List all users for a giveaway curl &#8220;https:\/\/sweepwidgetapi.com\/sw_api\/users?competition_id=123&amp;page_start=1&#8221; \\ -H &#8220;Authorization: Bearer YOUR_API_KEY&#8221; # POST &#8211; Enter a user into a giveaway curl -X POST &#8220;https:\/\/sweepwidgetapi.com\/sw_api\/new-entry&#8221; \\ -H &#8220;Authorization: Bearer YOUR_API_KEY&#8221; \\ -H &#8220;Content-Type: application\/json&#8221; \\ -d &#8216;{ &#8220;competition_id&#8221;: 123, &#8220;user_name&#8221;: &#8220;Jane&#8221;, &#8220;user_email&#8221;: &#8220;jane@example.com&#8221;, &#8220;entry_amount&#8221;: 1, &#8220;giveaway_link&#8221;: &#8220;https:\/\/yoursite.com&#8221; }&#8217; Python import requests API_KEY = &#8220;YOUR_API_KEY&#8221; headers = {&#8220;Authorization&#8221;: f&#8221;Bearer {API_KEY}&#8221;} # GET &#8211; List all users for a giveaway response = requests.get( &#8220;https:\/\/sweepwidgetapi.com\/sw_api\/users&#8221;, params={&#8220;competition_id&#8221;: 123, &#8220;page_start&#8221;: 1}, headers=headers ) print(response.json()) # POST &#8211; Enter a user into a giveaway response = requests.post( &#8220;https:\/\/sweepwidgetapi.com\/sw_api\/new-entry&#8221;, json={ &#8220;competition_id&#8221;: 123, &#8220;user_name&#8221;: &#8220;Jane&#8221;, &#8220;user_email&#8221;: &#8220;jane@example.com&#8221;, &#8220;entry_amount&#8221;: 1, &#8220;giveaway_link&#8221;: &#8220;https:\/\/yoursite.com&#8221; }, headers=headers ) print(response.json()) JavaScript (Node.js) const API_KEY = &#8220;YOUR_API_KEY&#8221;; const headers = { &#8220;Authorization&#8221;: `Bearer ${API_KEY}`, &#8220;Content-Type&#8221;: &#8220;application\/json&#8221; }; \/\/ GET &#8211; List all users for a giveaway const usersRes = await fetch( &#8220;https:\/\/sweepwidgetapi.com\/sw_api\/users?competition_id=123&amp;page_start=1&#8221;, { headers } ); const users = await usersRes.json(); \/\/ POST &#8211; Enter a user into a giveaway const entryRes = await fetch( &#8220;https:\/\/sweepwidgetapi.com\/sw_api\/new-entry&#8221;, { method: &#8220;POST&#8221;, headers, body: JSON.stringify({ competition_id: 123, user_name: &#8220;Jane&#8221;, user_email: &#8220;jane@example.com&#8221;, entry_amount: 1, giveaway_link: &#8220;https:\/\/yoursite.com&#8221; }) } ); const result = await entryRes.json(); API Endpoints Read Endpoints GETList all users for a giveaway GETList all winners for a giveaway GETList all entries for a giveaway GETList all giveaways GETList all entries for a single user GETList all giveaways a user has entered GETFetch referral link for a user Write Endpoints POSTUpdate whitelisted emails POSTAdd new entry method POSTUpdate an entry method POSTDelete an entry method POSTCreate a giveaway POSTUpdate a giveaway POSTDelete a giveaway POSTAdd a prize to a giveaway POSTAdd an unlock reward to a giveaway POSTAdd manual entries for a user POSTEnter user into a giveaway List all users for a giveaway This method allows you to get each unique user that has entered a giveaway. GEThttps:\/\/sweepwidgetapi.com\/sw_api\/users Parameters Parameter Type Description Required api_key String API developer key. Can also be sent as Authorization: Bearer header. Required competition_id Integer ID of your competition. Required page_start Integer The page you want to start on. JSON output returns 50 rows at a time. Required Example Request $curl = curl_init(); $url = &#8220;https:\/\/sweepwidgetapi.com\/sw_api\/users?page_start=1&amp;competition_id=123&#8221;; curl_setopt_array($curl, array( CURLOPT_URL =&gt; $url, CURLOPT_RETURNTRANSFER =&gt; true, CURLOPT_ENCODING =&gt; &#8220;&#8221;, CURLOPT_MAXREDIRS =&gt; 10, CURLOPT_TIMEOUT =&gt; 30, CURLOPT_HTTP_VERSION =&gt; CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST =&gt; &#8220;GET&#8221;, CURLOPT_HTTPHEADER =&gt; array( &#8220;Authorization: Bearer YOUR_API_KEY&#8221;, &#8220;Content-Type: application\/json&#8221; ), )); $response = json_decode(curl_exec($curl)); var_dump($response); Example Response { &#8220;data&#8221;: [ { &#8220;user_id&#8221;: 123, &#8220;user_name&#8221;: &#8220;Test User&#8221;, &#8220;user_email&#8221;: &#8220;one@test.com&#8221;, &#8220;birthday&#8221;: &#8220;04-25-1994&#8221;, &#8220;custom_identifier&#8221;: &#8220;your-reference-id&#8221;, &#8220;entry_type&#8221;: &#8220;Twitter Follow&#8221;, &#8220;timestamp&#8221;: &#8220;2020-06-26 11:18:21&#8221;, &#8220;country&#8221;: &#8220;United States&#8221; } ] } List all winners for a giveaway This method allows you to fetch all of the winners for a giveaway. GEThttps:\/\/sweepwidgetapi.com\/sw_api\/winners Parameters Parameter Type Description Required api_key String API developer key. Can also be sent as Authorization: Bearer header. Required competition_id Integer ID of your competition. Required page_start Integer The page you want to start on. JSON output returns 50 rows at a time. Required Example Request $curl = curl_init(); $url = &#8220;https:\/\/sweepwidgetapi.com\/sw_api\/winners?page_start=1&amp;competition_id=123&#8221;; curl_setopt_array($curl, array( CURLOPT_URL =&gt; $url, CURLOPT_RETURNTRANSFER =&gt; true, CURLOPT_ENCODING =&gt; &#8220;&#8221;, CURLOPT_MAXREDIRS =&gt; 10, CURLOPT_TIMEOUT =&gt; 30, CURLOPT_HTTP_VERSION =&gt; CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST =&gt; &#8220;GET&#8221;, CURLOPT_HTTPHEADER =&gt; array( &#8220;Authorization: Bearer YOUR_API_KEY&#8221;, &#8220;Content-Type: application\/json&#8221; ), )); $response = json_decode(curl_exec($curl)); var_dump($response); Example Response { &#8220;data&#8221;: [ { &#8220;user_id&#8221;: 123, &#8220;user_name&#8221;: &#8220;Test User&#8221;, &#8220;user_email&#8221;: &#8220;one@test.com&#8221;, &#8220;birthday&#8221;: &#8220;04-25-1994&#8221;, &#8220;custom_identifier&#8221;: &#8220;your-reference-id&#8221;, &#8220;country&#8221;: &#8220;United States&#8221; } ] } List all entries for a giveaway This method allows you to access all of the user entry information for a giveaway. GEThttps:\/\/sweepwidgetapi.com\/sw_api\/entries Parameters Parameter Type Description Required api_key String API developer key. Can also be sent as Authorization: Bearer header. Required competition_id Integer ID of your competition. Required page_start Integer The page you want to start on. JSON output returns 50 rows at a time. Required Example Request $curl = curl_init(); $url = &#8220;https:\/\/sweepwidgetapi.com\/sw_api\/entries?page_start=1&amp;competition_id=123&#8221;; curl_setopt_array($curl, array( CURLOPT_URL =&gt; $url, CURLOPT_RETURNTRANSFER =&gt; true, CURLOPT_ENCODING =&gt; &#8220;&#8221;, CURLOPT_MAXREDIRS =&gt; 10, CURLOPT_TIMEOUT =&gt; 30, CURLOPT_HTTP_VERSION =&gt; CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST =&gt; &#8220;GET&#8221;, CURLOPT_HTTPHEADER =&gt; array( &#8220;Authorization: Bearer YOUR_API_KEY&#8221;, &#8220;Content-Type: application\/json&#8221; ), )); $response = json_decode(curl_exec($curl)); var_dump($response); Example Response { &#8220;data&#8221;: [ { &#8220;user_id&#8221;: 123, &#8220;user_name&#8221;: &#8220;Test User&#8221;, &#8220;user_email&#8221;: &#8220;one@test.com&#8221;, &#8220;birthday&#8221;: &#8220;04-25-1994&#8221;, &#8220;custom_identifier&#8221;: &#8220;your-reference-id&#8221;, &#8220;entry_type&#8221;: &#8220;Twitter Follow&#8221;, &#8220;action&#8221;: &#8220;Follow @SweepWidget On Twitter&#8221;, &#8220;value&#8221;: &#8220;@MyTwitter&#8221;, &#8220;entry_amount&#8221;: &#8220;5&#8221;, &#8220;timestamp&#8221;: &#8220;2020-06-26 11:18:21&#8221;, &#8220;country&#8221;: &#8220;United States&#8221; } ] } List all giveaways This method allows you to access basic information about all live, scheduled, and expired giveaways. GEThttps:\/\/sweepwidgetapi.com\/sw_api\/giveaways Parameters Parameter Type Description Required api_key String API developer key. Can also be sent as Authorization: Bearer header. Required type String Accepts any of the 3 values: live, scheduled, expired Required page_start Integer The page you want to start on. JSON output returns 50 rows at a time. Required Example Request $curl = curl_init(); $url = &#8220;https:\/\/sweepwidgetapi.com\/sw_api\/giveaways?type=live&amp;page_start=1&#8221;; curl_setopt_array($curl, array( CURLOPT_URL =&gt; $url, CURLOPT_RETURNTRANSFER =&gt; true, CURLOPT_ENCODING =&gt; &#8220;&#8221;, CURLOPT_MAXREDIRS =&gt; 10, CURLOPT_TIMEOUT =&gt; 30, CURLOPT_HTTP_VERSION =&gt; CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST =&gt; &#8220;GET&#8221;,<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[59],"tags":[],"class_list":["post-1074","post","type-post","status-publish","format-standard","hentry","category-integrations"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>SweepWidget API Documentation<\/title>\n<meta name=\"description\" content=\"The SweepWidget API allows you to read and write data to your giveaways. Learn the API endpoints, accepted parameters, and outputted data.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/sweepwidget.com\/docs\/sweepwidget-api\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SweepWidget API Documentation\" \/>\n<meta property=\"og:description\" content=\"The SweepWidget API allows you to read and write data to your giveaways. Learn the API endpoints, accepted parameters, and outputted data.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/sweepwidget.com\/docs\/sweepwidget-api\" \/>\n<meta property=\"og:site_name\" content=\"SweepWidget Help Docs\" \/>\n<meta property=\"article:published_time\" content=\"2020-06-27T23:26:41+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-03-06T21:37:45+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2020\/06\/api-docs-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1500\" \/>\n\t<meta property=\"og:image:height\" content=\"832\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"SweepWidget\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"SweepWidget\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/sweepwidget-api#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/sweepwidget-api\"},\"author\":{\"name\":\"SweepWidget\",\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/#\\\/schema\\\/person\\\/4cca2bc9c600116750eca1bfff6648e0\"},\"headline\":\"SweepWidget API Documentation\",\"datePublished\":\"2020-06-27T23:26:41+00:00\",\"dateModified\":\"2026-03-06T21:37:45+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/sweepwidget-api\"},\"wordCount\":3242,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/sweepwidget-api#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/api-docs-1-1024x568.png\",\"articleSection\":[\"Integrations\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/sweepwidget-api\",\"url\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/sweepwidget-api\",\"name\":\"SweepWidget API Documentation\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/sweepwidget-api#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/sweepwidget-api#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/api-docs-1-1024x568.png\",\"datePublished\":\"2020-06-27T23:26:41+00:00\",\"dateModified\":\"2026-03-06T21:37:45+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/#\\\/schema\\\/person\\\/4cca2bc9c600116750eca1bfff6648e0\"},\"description\":\"The SweepWidget API allows you to read and write data to your giveaways. Learn the API endpoints, accepted parameters, and outputted data.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/sweepwidget-api#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/sweepwidget-api\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/sweepwidget-api#primaryimage\",\"url\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/api-docs-1.png\",\"contentUrl\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/api-docs-1.png\",\"width\":1500,\"height\":832},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/sweepwidget-api#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SweepWidget API Documentation\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/#website\",\"url\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/\",\"name\":\"SweepWidget Help Docs\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/#\\\/schema\\\/person\\\/4cca2bc9c600116750eca1bfff6648e0\",\"name\":\"SweepWidget\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/08ae098bc2290a9a645af1c26ddd7704f98d09c88bf65a55b5c4bc1e585f31f4?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/08ae098bc2290a9a645af1c26ddd7704f98d09c88bf65a55b5c4bc1e585f31f4?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/08ae098bc2290a9a645af1c26ddd7704f98d09c88bf65a55b5c4bc1e585f31f4?s=96&d=mm&r=g\",\"caption\":\"SweepWidget\"},\"sameAs\":[\"https:\\\/\\\/sweepwidget.com\\\/docs\"],\"url\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/author\\\/sweepwidget\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"SweepWidget API Documentation","description":"The SweepWidget API allows you to read and write data to your giveaways. Learn the API endpoints, accepted parameters, and outputted data.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/sweepwidget.com\/docs\/sweepwidget-api","og_locale":"en_US","og_type":"article","og_title":"SweepWidget API Documentation","og_description":"The SweepWidget API allows you to read and write data to your giveaways. Learn the API endpoints, accepted parameters, and outputted data.","og_url":"https:\/\/sweepwidget.com\/docs\/sweepwidget-api","og_site_name":"SweepWidget Help Docs","article_published_time":"2020-06-27T23:26:41+00:00","article_modified_time":"2026-03-06T21:37:45+00:00","og_image":[{"width":1500,"height":832,"url":"https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2020\/06\/api-docs-1.png","type":"image\/png"}],"author":"SweepWidget","twitter_card":"summary_large_image","twitter_misc":{"Written by":"SweepWidget","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/sweepwidget.com\/docs\/sweepwidget-api#article","isPartOf":{"@id":"https:\/\/sweepwidget.com\/docs\/sweepwidget-api"},"author":{"name":"SweepWidget","@id":"https:\/\/sweepwidget.com\/docs\/#\/schema\/person\/4cca2bc9c600116750eca1bfff6648e0"},"headline":"SweepWidget API Documentation","datePublished":"2020-06-27T23:26:41+00:00","dateModified":"2026-03-06T21:37:45+00:00","mainEntityOfPage":{"@id":"https:\/\/sweepwidget.com\/docs\/sweepwidget-api"},"wordCount":3242,"commentCount":0,"image":{"@id":"https:\/\/sweepwidget.com\/docs\/sweepwidget-api#primaryimage"},"thumbnailUrl":"https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2020\/06\/api-docs-1-1024x568.png","articleSection":["Integrations"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/sweepwidget.com\/docs\/sweepwidget-api","url":"https:\/\/sweepwidget.com\/docs\/sweepwidget-api","name":"SweepWidget API Documentation","isPartOf":{"@id":"https:\/\/sweepwidget.com\/docs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/sweepwidget.com\/docs\/sweepwidget-api#primaryimage"},"image":{"@id":"https:\/\/sweepwidget.com\/docs\/sweepwidget-api#primaryimage"},"thumbnailUrl":"https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2020\/06\/api-docs-1-1024x568.png","datePublished":"2020-06-27T23:26:41+00:00","dateModified":"2026-03-06T21:37:45+00:00","author":{"@id":"https:\/\/sweepwidget.com\/docs\/#\/schema\/person\/4cca2bc9c600116750eca1bfff6648e0"},"description":"The SweepWidget API allows you to read and write data to your giveaways. Learn the API endpoints, accepted parameters, and outputted data.","breadcrumb":{"@id":"https:\/\/sweepwidget.com\/docs\/sweepwidget-api#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/sweepwidget.com\/docs\/sweepwidget-api"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/sweepwidget.com\/docs\/sweepwidget-api#primaryimage","url":"https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2020\/06\/api-docs-1.png","contentUrl":"https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2020\/06\/api-docs-1.png","width":1500,"height":832},{"@type":"BreadcrumbList","@id":"https:\/\/sweepwidget.com\/docs\/sweepwidget-api#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/sweepwidget.com\/docs\/"},{"@type":"ListItem","position":2,"name":"SweepWidget API Documentation"}]},{"@type":"WebSite","@id":"https:\/\/sweepwidget.com\/docs\/#website","url":"https:\/\/sweepwidget.com\/docs\/","name":"SweepWidget Help Docs","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/sweepwidget.com\/docs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/sweepwidget.com\/docs\/#\/schema\/person\/4cca2bc9c600116750eca1bfff6648e0","name":"SweepWidget","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/08ae098bc2290a9a645af1c26ddd7704f98d09c88bf65a55b5c4bc1e585f31f4?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/08ae098bc2290a9a645af1c26ddd7704f98d09c88bf65a55b5c4bc1e585f31f4?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/08ae098bc2290a9a645af1c26ddd7704f98d09c88bf65a55b5c4bc1e585f31f4?s=96&d=mm&r=g","caption":"SweepWidget"},"sameAs":["https:\/\/sweepwidget.com\/docs"],"url":"https:\/\/sweepwidget.com\/docs\/author\/sweepwidget"}]}},"_links":{"self":[{"href":"https:\/\/sweepwidget.com\/docs\/wp-json\/wp\/v2\/posts\/1074","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sweepwidget.com\/docs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sweepwidget.com\/docs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sweepwidget.com\/docs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sweepwidget.com\/docs\/wp-json\/wp\/v2\/comments?post=1074"}],"version-history":[{"count":85,"href":"https:\/\/sweepwidget.com\/docs\/wp-json\/wp\/v2\/posts\/1074\/revisions"}],"predecessor-version":[{"id":7702,"href":"https:\/\/sweepwidget.com\/docs\/wp-json\/wp\/v2\/posts\/1074\/revisions\/7702"}],"wp:attachment":[{"href":"https:\/\/sweepwidget.com\/docs\/wp-json\/wp\/v2\/media?parent=1074"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sweepwidget.com\/docs\/wp-json\/wp\/v2\/categories?post=1074"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sweepwidget.com\/docs\/wp-json\/wp\/v2\/tags?post=1074"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}