Skip to main content
POST
/
agent-profiles
/
{profileId}
/
duplicate
Duplicate Agent Profile
curl --request POST \
  --url https://odyssey.asteroid.ai/agents/v2/agent-profiles/{profileId}/duplicate \
  --header 'Content-Type: application/json' \
  --header 'X-Asteroid-Agents-Api-Key: <api-key>' \
  --data '
{
  "organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'
{
  "adblockActive": true,
  "cachePersistence": true,
  "captchaSolverActive": true,
  "cookies": [
    {
      "domain": "<string>",
      "httpOnly": true,
      "key": "<string>",
      "name": "<string>",
      "sameSite": "Strict",
      "secure": true,
      "value": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "expiry": "2023-11-07T05:31:56Z",
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
    }
  ],
  "createdAt": "2023-11-07T05:31:56Z",
  "credentials": [
    {
      "data": "<string>",
      "name": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
    }
  ],
  "description": "<string>",
  "extraStealth": true,
  "forcePopupsAsTabsActive": true,
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "mediaBlockerActive": true,
  "name": "<string>",
  "organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "pdfViewerActive": true,
  "popupBlockerActive": true,
  "proxyMode": "none",
  "stickyIP": true,
  "tracingEnabled": true,
  "updatedAt": "2023-11-07T05:31:56Z",
  "customProxy": {
    "server": "<string>",
    "username": "<string>"
  },
  "operatingSystem": "macos",
  "proxyCC": "us",
  "proxyType": "basic"
}

Authorizations

X-Asteroid-Agents-Api-Key
string
header
required

Path Parameters

profileId
string<uuid>
required

The ID of the agent profile to duplicate

Body

application/json

Optional request body for cross-org duplication

Request to duplicate an agent profile

organizationId
string<uuid>

Target organization ID. Defaults to the source profile's organization if omitted.

Response

The request has succeeded and a new resource has been created as a result.

An agent profile containing browser configuration and credentials

adblockActive
boolean
required

Whether to enable ad blocking

cachePersistence
boolean
required

Whether to persist browser cache between sessions

captchaSolverActive
boolean
required

Whether the captcha solver is active for this profile (managed proxy only)

cookies
object[]
required

List of cookies associated with this profile

createdAt
string<date-time>
required

When the profile was created

credentials
object[]
required

List of credentials associated with this profile

description
string
required

Description of the agent profile

extraStealth
boolean
required

Whether extra stealth mode is enabled

forcePopupsAsTabsActive
boolean
required

Whether to force popups to open as tabs

id
string<uuid>
required

Unique identifier for the agent profile

mediaBlockerActive
boolean
required

Whether to enable media blocking (images, videos, etc.)

name
string
required

Name of the agent profile (unique within organization)

organizationId
string<uuid>
required

The ID of the organization that owns this profile

pdfViewerActive
boolean
required

Whether to enable the built-in PDF viewer (if disabled, PDFs are downloaded)

popupBlockerActive
boolean
required

Whether to enable popup blocking (requires adblock to be active)

proxyMode
enum<string>
required

Proxy configuration mode

Available options:
none,
managed,
custom,
tailscale
stickyIP
boolean
required

Whether to use the same IP address for all executions (managed proxy only)

tracingEnabled
boolean
required

Whether browser tracing is enabled (admin only)

updatedAt
string<date-time>
required

When the profile was last updated

customProxy
object

Custom proxy configuration (for custom proxy mode, password excluded)

operatingSystem
enum<string>

Operating system to emulate

Available options:
macos,
windows
proxyCC
enum<string>

Country code for proxy location (for managed proxy mode)

Available options:
us,
uk,
fr,
it,
jp,
au,
de,
fi,
ca
proxyType
enum<string>

Type of managed proxy to use (for managed proxy mode)

Available options:
basic,
residential,
mobile