/api/v1/profiles/package/import
Import profiles from an .adbprofile package or .adbbackup full backup: new ID and number, fingerprint seeds preserved, cookies imported through the browser; on_conflict: new (default), skip, or replace (move existing profile to trash)
Request#
curl --fail-with-body --request POST \
"$ADBR_API_URL/api/v1/profiles/package/import" \
-H "Authorization: Bearer $ADBR_API_TOKEN" \
-H "Content-Type: application/json" \
--data @request.jsonUse the local address and token from API & MCP. Replace path placeholders such as {id} with actual IDs. Create request.json according to the body schema below before running this command.
Authentication and permissions#
Authentication: Bearer token
Scopes: profiles:write
All listed scopes are required; admin satisfies scope checks. Account permissions, request content, vault state and resource permissions can impose additional requirements.
Parameters#
No path or query parameters declared.
Request body#
Required.
| Field | Type | Required | Description |
|---|---|---|---|
path | string | Yes | |
password | string | Yes | |
on_conflict | union | No | |
decisions | object | No |
Complete body schema
{
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"path",
"password"
],
"properties": {
"path": {
"type": "string",
"minLength": 4,
"maxLength": 1024
},
"password": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"on_conflict": {
"anyOf": [
{
"type": "string",
"enum": [
"new"
]
},
{
"type": "string",
"enum": [
"skip"
]
},
{
"type": "string",
"enum": [
"replace"
]
}
]
},
"decisions": {
"type": "object",
"additionalProperties": {
"anyOf": [
{
"type": "string",
"enum": [
"new"
]
},
{
"type": "string",
"enum": [
"skip"
]
},
{
"type": "string",
"enum": [
"replace"
]
}
]
}
}
},
"additionalProperties": false
}
}
}
}Responses#
200 · Default response
{
"description": "Default Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"kind",
"results",
"restored"
],
"properties": {
"kind": {
"type": "string"
},
"results": {
"type": "array",
"items": {
"type": "object",
"required": [
"source_no",
"source_name",
"status",
"id",
"no",
"warnings",
"error"
],
"properties": {
"source_no": {
"type": "integer"
},
"source_name": {
"type": "string"
},
"status": {
"type": "string"
},
"id": {
"type": [
"null",
"string"
]
},
"no": {
"type": [
"null",
"integer"
]
},
"warnings": {
"type": "array",
"items": {
"type": "string"
}
},
"error": {
"type": [
"null",
"string"
]
}
}
}
},
"restored": {
"anyOf": [
{
"type": "object",
"required": [
"proxies",
"groups",
"tags",
"extensions",
"extension_sets",
"workflows",
"warnings"
],
"properties": {
"proxies": {
"type": "integer"
},
"groups": {
"type": "integer"
},
"tags": {
"type": "integer"
},
"extensions": {
"type": "integer"
},
"extension_sets": {
"type": "integer"
},
"workflows": {
"type": "integer"
},
"warnings": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
{
"type": "null"
}
]
}
}
}
}
}
}default · HTTP error envelope. The status and error.code identify the failure.
{
"description": "HTTP error envelope. The status and error.code identify the failure.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}General authentication and transport errors may occur in addition to the documented responses.
OpenAPI definition#
Complete operation definition
{
"summary": "Profile aus einem .adbprofile-Paket oder .adbbackup-Vollbackup importieren: neue ID und Nr., Fingerprint-Seeds erhalten, Cookies über den Browser eingespielt; on_conflict: new (Standard), skip oder replace (vorhandenes Profil in den Papierkorb)",
"tags": [
"Import/Export"
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"path",
"password"
],
"properties": {
"path": {
"type": "string",
"minLength": 4,
"maxLength": 1024
},
"password": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"on_conflict": {
"anyOf": [
{
"type": "string",
"enum": [
"new"
]
},
{
"type": "string",
"enum": [
"skip"
]
},
{
"type": "string",
"enum": [
"replace"
]
}
]
},
"decisions": {
"type": "object",
"additionalProperties": {
"anyOf": [
{
"type": "string",
"enum": [
"new"
]
},
{
"type": "string",
"enum": [
"skip"
]
},
{
"type": "string",
"enum": [
"replace"
]
}
]
}
}
},
"additionalProperties": false
}
}
}
},
"x-required-scopes": [
"profiles:write"
],
"responses": {
"200": {
"description": "Default Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"kind",
"results",
"restored"
],
"properties": {
"kind": {
"type": "string"
},
"results": {
"type": "array",
"items": {
"type": "object",
"required": [
"source_no",
"source_name",
"status",
"id",
"no",
"warnings",
"error"
],
"properties": {
"source_no": {
"type": "integer"
},
"source_name": {
"type": "string"
},
"status": {
"type": "string"
},
"id": {
"type": [
"null",
"string"
]
},
"no": {
"type": [
"null",
"integer"
]
},
"warnings": {
"type": "array",
"items": {
"type": "string"
}
},
"error": {
"type": [
"null",
"string"
]
}
}
}
},
"restored": {
"anyOf": [
{
"type": "object",
"required": [
"proxies",
"groups",
"tags",
"extensions",
"extension_sets",
"workflows",
"warnings"
],
"properties": {
"proxies": {
"type": "integer"
},
"groups": {
"type": "integer"
},
"tags": {
"type": "integer"
},
"extensions": {
"type": "integer"
},
"extension_sets": {
"type": "integer"
},
"workflows": {
"type": "integer"
},
"warnings": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
{
"type": "null"
}
]
}
}
}
}
}
},
"default": {
"description": "HTTP error envelope. The status and error.code identify the failure.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}