POST
/api/v1/profiles/import
Create profiles from a file or update using the id column; return a result per row
Request#
POSIX shell · curl
curl --fail-with-body --request POST \
"$ADBR_API_URL/api/v1/profiles/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 |
|---|---|---|---|
file_name | string | Yes | |
content_base64 | string | Yes | |
sheet | string | No | |
mapping | object | No | |
duplicate_check | union | No | |
ignore_cookie_errors | boolean | No | |
exclude_lines | array | No | |
defaults | object | No |
Complete body schema
OpenAPI JSON
{
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"file_name",
"content_base64"
],
"properties": {
"file_name": {
"type": "string",
"minLength": 1,
"maxLength": 260
},
"content_base64": {
"type": "string",
"minLength": 4,
"maxLength": 20971520
},
"sheet": {
"type": "string",
"maxLength": 64
},
"mapping": {
"type": "object",
"additionalProperties": {
"anyOf": [
{
"anyOf": [
{
"type": "string",
"enum": [
"id"
]
},
{
"type": "string",
"enum": [
"no"
]
},
{
"type": "string",
"enum": [
"external_id"
]
},
{
"type": "string",
"enum": [
"ip"
]
},
{
"type": "string",
"enum": [
"name"
]
},
{
"type": "string",
"enum": [
"custom_no"
]
},
{
"type": "string",
"enum": [
"group"
]
},
{
"type": "string",
"enum": [
"tags"
]
},
{
"type": "string",
"enum": [
"status"
]
},
{
"type": "string",
"enum": [
"notes"
]
},
{
"type": "string",
"enum": [
"engine"
]
},
{
"type": "string",
"enum": [
"engine_version"
]
},
{
"type": "string",
"enum": [
"os"
]
},
{
"type": "string",
"enum": [
"ua"
]
},
{
"type": "string",
"enum": [
"resolution"
]
},
{
"type": "string",
"enum": [
"platform"
]
},
{
"type": "string",
"enum": [
"username"
]
},
{
"type": "string",
"enum": [
"password"
]
},
{
"type": "string",
"enum": [
"totp_secret"
]
},
{
"type": "string",
"enum": [
"account_notes"
]
},
{
"type": "string",
"enum": [
"cookie"
]
},
{
"type": "string",
"enum": [
"proxytype"
]
},
{
"type": "string",
"enum": [
"proxy"
]
},
{
"type": "string",
"enum": [
"proxy_url"
]
},
{
"type": "string",
"enum": [
"proxy_id"
]
},
{
"type": "string",
"enum": [
"ip_checker"
]
},
{
"type": "string",
"enum": [
"countrycode"
]
},
{
"type": "string",
"enum": [
"regioncode"
]
},
{
"type": "string",
"enum": [
"citycode"
]
},
{
"type": "string",
"enum": [
"start_urls"
]
},
{
"type": "string",
"enum": [
"extensions_set"
]
}
]
},
{
"type": "null"
}
]
}
},
"duplicate_check": {
"anyOf": [
{
"type": "string",
"enum": [
"none"
]
},
{
"type": "string",
"enum": [
"account"
]
},
{
"type": "string",
"enum": [
"account_password"
]
},
{
"type": "string",
"enum": [
"cookie"
]
}
]
},
"ignore_cookie_errors": {
"type": "boolean"
},
"exclude_lines": {
"type": "array",
"items": {
"type": "integer",
"minimum": 1
},
"maxItems": 1000
},
"defaults": {
"type": "object",
"properties": {
"group_id": {
"type": [
"string",
"null"
]
},
"engine": {
"anyOf": [
{
"type": "string",
"enum": [
"chromium"
]
},
{
"type": "string",
"enum": [
"firefox"
]
}
]
},
"engine_version": {
"type": "string",
"pattern": "^[0-9]{2,4}$"
},
"os": {
"type": "string",
"maxLength": 16
},
"tag_ids": {
"type": "array",
"items": {
"type": "string"
},
"maxItems": 30
},
"tags": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 50
},
"maxItems": 30
},
"storage_options": {
"type": "object",
"additionalProperties": {
"type": "boolean"
}
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
}
}
}Responses#
200 · Default response
OpenAPI JSON
{
"description": "Default Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"created",
"updated",
"skipped",
"failed",
"results"
],
"properties": {
"created": {
"type": "integer"
},
"updated": {
"type": "integer"
},
"skipped": {
"type": "integer"
},
"failed": {
"type": "integer"
},
"results": {
"type": "array",
"items": {
"type": "object",
"required": [
"line",
"status",
"id",
"no",
"error",
"warnings",
"cookies"
],
"properties": {
"line": {
"type": "integer"
},
"status": {
"type": "string"
},
"id": {
"type": [
"null",
"string"
]
},
"no": {
"type": [
"null",
"integer"
]
},
"error": {
"anyOf": [
{
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
}
}
},
{
"type": "null"
}
]
},
"warnings": {
"type": "array",
"items": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
}
}
}
},
"cookies": {
"type": [
"null",
"string"
]
}
}
}
}
}
}
}
}
}default · HTTP error envelope. The status and error.code identify the failure.
OpenAPI JSON
{
"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
OpenAPI JSON
{
"summary": "Profile aus Datei anlegen oder über die Spalte id aktualisieren; Ergebnis je Zeile",
"tags": [
"Import/Export"
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"file_name",
"content_base64"
],
"properties": {
"file_name": {
"type": "string",
"minLength": 1,
"maxLength": 260
},
"content_base64": {
"type": "string",
"minLength": 4,
"maxLength": 20971520
},
"sheet": {
"type": "string",
"maxLength": 64
},
"mapping": {
"type": "object",
"additionalProperties": {
"anyOf": [
{
"anyOf": [
{
"type": "string",
"enum": [
"id"
]
},
{
"type": "string",
"enum": [
"no"
]
},
{
"type": "string",
"enum": [
"external_id"
]
},
{
"type": "string",
"enum": [
"ip"
]
},
{
"type": "string",
"enum": [
"name"
]
},
{
"type": "string",
"enum": [
"custom_no"
]
},
{
"type": "string",
"enum": [
"group"
]
},
{
"type": "string",
"enum": [
"tags"
]
},
{
"type": "string",
"enum": [
"status"
]
},
{
"type": "string",
"enum": [
"notes"
]
},
{
"type": "string",
"enum": [
"engine"
]
},
{
"type": "string",
"enum": [
"engine_version"
]
},
{
"type": "string",
"enum": [
"os"
]
},
{
"type": "string",
"enum": [
"ua"
]
},
{
"type": "string",
"enum": [
"resolution"
]
},
{
"type": "string",
"enum": [
"platform"
]
},
{
"type": "string",
"enum": [
"username"
]
},
{
"type": "string",
"enum": [
"password"
]
},
{
"type": "string",
"enum": [
"totp_secret"
]
},
{
"type": "string",
"enum": [
"account_notes"
]
},
{
"type": "string",
"enum": [
"cookie"
]
},
{
"type": "string",
"enum": [
"proxytype"
]
},
{
"type": "string",
"enum": [
"proxy"
]
},
{
"type": "string",
"enum": [
"proxy_url"
]
},
{
"type": "string",
"enum": [
"proxy_id"
]
},
{
"type": "string",
"enum": [
"ip_checker"
]
},
{
"type": "string",
"enum": [
"countrycode"
]
},
{
"type": "string",
"enum": [
"regioncode"
]
},
{
"type": "string",
"enum": [
"citycode"
]
},
{
"type": "string",
"enum": [
"start_urls"
]
},
{
"type": "string",
"enum": [
"extensions_set"
]
}
]
},
{
"type": "null"
}
]
}
},
"duplicate_check": {
"anyOf": [
{
"type": "string",
"enum": [
"none"
]
},
{
"type": "string",
"enum": [
"account"
]
},
{
"type": "string",
"enum": [
"account_password"
]
},
{
"type": "string",
"enum": [
"cookie"
]
}
]
},
"ignore_cookie_errors": {
"type": "boolean"
},
"exclude_lines": {
"type": "array",
"items": {
"type": "integer",
"minimum": 1
},
"maxItems": 1000
},
"defaults": {
"type": "object",
"properties": {
"group_id": {
"type": [
"string",
"null"
]
},
"engine": {
"anyOf": [
{
"type": "string",
"enum": [
"chromium"
]
},
{
"type": "string",
"enum": [
"firefox"
]
}
]
},
"engine_version": {
"type": "string",
"pattern": "^[0-9]{2,4}$"
},
"os": {
"type": "string",
"maxLength": 16
},
"tag_ids": {
"type": "array",
"items": {
"type": "string"
},
"maxItems": 30
},
"tags": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 50
},
"maxItems": 30
},
"storage_options": {
"type": "object",
"additionalProperties": {
"type": "boolean"
}
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
}
}
},
"x-required-scopes": [
"profiles:write"
],
"responses": {
"200": {
"description": "Default Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"created",
"updated",
"skipped",
"failed",
"results"
],
"properties": {
"created": {
"type": "integer"
},
"updated": {
"type": "integer"
},
"skipped": {
"type": "integer"
},
"failed": {
"type": "integer"
},
"results": {
"type": "array",
"items": {
"type": "object",
"required": [
"line",
"status",
"id",
"no",
"error",
"warnings",
"cookies"
],
"properties": {
"line": {
"type": "integer"
},
"status": {
"type": "string"
},
"id": {
"type": [
"null",
"string"
]
},
"no": {
"type": [
"null",
"integer"
]
},
"error": {
"anyOf": [
{
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
}
}
},
{
"type": "null"
}
]
},
"warnings": {
"type": "array",
"items": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
}
}
}
},
"cookies": {
"type": [
"null",
"string"
]
}
}
}
}
}
}
}
}
},
"default": {
"description": "HTTP error envelope. The status and error.code identify the failure.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}