Profiles
A profile is a named store of cookies and local storage. You start a session with a profile name, and the session can save back into that profile when it ends.
In the dashboard: Profile, Profile name, Saved profiles. In the API: profile on create, plus GET /v1/profiles and DELETE /v1/profiles/{name}.
OpenAPI: the profile state itself (cookies, storage) is never returned on list. It goes only into a session.
Create with a profile
SessionRequest.profile: string or null. Pattern: ^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$.
Description: name of a profile whose cookies and localStorage this session starts with and saves back to when it ends.
curl -X POST "https://interact.geonode.io/v1/sessions?wait=true" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"country": "us",
"engine": "chromium",
"profile": "Geonode_Testing"
}'Response fields
| Field | Meaning |
|---|---|
profile | The profile this session started from and saves back to. |
profile_loaded | Whether the container took the profile. Null when none was asked for, or not yet. |
profile_saved | Whether cookies and local storage were saved into the profile when it ended. Null while it runs or without a profile. |
profile_note | Why the end did not save: empty (nothing to keep; the profile keeps what it had), over_cap, or unreadable. Null when it saved. |
{
"id": "aa11a2a310b4",
"state": "ready",
"profile": "Geonode_Testing",
"profile_loaded": true,
"profile_saved": null,
"profile_note": null
}List profiles
curl "https://interact.geonode.io/v1/profiles" \
-H "X-API-Key: YOUR_API_KEY"Each item is ProfileSummary:
| Field | Meaning |
|---|---|
name | Profile name. |
updated_at | Unix seconds of the last save. The profile expires 30 days after it. |
bytes | Size when known. |
cookies | Cookie count. |
origins | Origin count. |
Delete a profile
curl -X DELETE "https://interact.geonode.io/v1/profiles/Geonode_Testing" \
-H "X-API-Key: YOUR_API_KEY"Next
Was this page helpful?