Import cookies into a browser profile
import_browser_profile_cookiesAdds sign-in cookies to a browser profile so authenticated sessions persist, with optional per-site import and encrypted storage.
Instructions
Add sign-in cookies to a browser profile. This is what gumloop browser import-logins calls. Send the cookies in Chrome extension (chrome.cookies.Cookie) or Chrome DevTools Protocol Cookie shape. With url, only that site's cookies are kept and the import replaces that site; without it, every site in the payload is imported. Cookies are encrypted with the profile's key before storage and are never returned by any endpoint.
Use default as the profile_id to import into the owner's default profile, creating it if needed.
Explicit confirmation is required for this exact account operation. Runs can spend credits or trigger downstream actions; never resubmit unknown outcomes automatically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Import only the cookies for this site and replace what the profile had for it. Omit to import every site in `cookies`. | |
| account | No | Named private Gumloop account; selects private credentials and user/team identity. | |
| confirm | No | Set true only when the user asked for exactly this action. | |
| cookies | No | Cookies in `chrome.cookies.Cookie` or CDP `Cookie` shape. | |
| payload | No | Complete JSON request body instead of body flags. Preserves current endpoint fields and values. | |
| team_id | No | Import into a team-owned profile instead of a personal one. | |
| profile_id | Yes | A profile id, or `default`. | |
| payload_file | No | Regular local JSON body file, at most 5 MB. Cannot be mixed with body flags or payload. |