# Using Cookies

{% hint style="warning" %}
Cookies are only supported for captcha's that may require cookies.
{% endhint %}

## Using Cookies

```json
POST https://captcha.datalabs.net/createTask
Host: captcha.datalabs.net
Content-Type: application/json

{
  "clientKey": "DATALABS_API_KEY",
  "task": {
    "type": "TASK_DATA",
    "websiteURL": "WEBSITE_URL",
    "websiteKey": "WEBSITE_KEY",
    "cookies": [
      {
        "name": "cookie_name_1",
        "value": "cookie_value_1"
      },
      {
        "name": "cookie_name_2",
        "value": "cookie_value_2"
      }
    ],
  }
}
```

### Cookie Parameters

<table><thead><tr><th width="184">Parameters</th><th width="109">Type</th><th width="370">Description</th></tr></thead><tbody><tr><td>cookies</td><td>array</td><td>Array of cookies to be sent.</td></tr><tr><td>cookies.name</td><td>string</td><td>The cookie name.</td></tr><tr><td>cookies.value</td><td>string</td><td>The cookie value.</td></tr></tbody></table>
