Skip to main content
POST
/
v1
/
scrapers
/
cookies
Upload cookies for a retailer
curl --request POST \
  --url http://localhost:3000/v1/scrapers/cookies \
  --header 'Content-Type: application/json' \
  --data '
{
  "retailer_code": "<string>",
  "cookies": [
    {
      "name": "<string>",
      "value": "<string>",
      "domain": "<string>",
      "path": "<string>",
      "expires": 123,
      "httpOnly": true,
      "secure": true,
      "sameSite": "<string>"
    }
  ],
  "domain": "amazon.com",
  "expires_hours": 336,
  "notes": "<string>"
}
'
{
  "message": "<string>",
  "cookie_record": "<unknown>"
}

Body

application/json
retailer_code
string
required
Required string length: 1 - 20
cookies
object[]
required
domain
string
default:amazon.com
Maximum string length: 100
expires_hours
integer
default:336
Required range: 1 <= x <= 720
notes
string
Maximum string length: 500

Response

201 - application/json

Cookies uploaded

message
string
required