POST
/api/v1/proxies/parse
Proxy-Zeilen erkennen und als Vorschau zurückgeben (ohne Speichern, ohne Passwörter)
Anfrage#
POSIX-Shell · curl
curl --fail-with-body --request POST \
"$ADBR_API_URL/api/v1/proxies/parse" \
-H "Authorization: Bearer $ADBR_API_TOKEN" \
-H "Content-Type: application/json" \
--data @request.jsonVerwende lokale Adresse und Token aus API & MCP. Ersetze Pfadplatzhalter wie {id} durch tatsächliche IDs. Erstelle request.json anhand des folgenden Körperschemas, bevor du den Befehl ausführst.
Authentifizierung und Rechte#
Authentifizierung: Bearer-Token
Scopes: proxies:read
Alle aufgeführten Scopes sind erforderlich; admin erfüllt Scope-Prüfungen. Kontorechte, Anfrageinhalt, Tresorzustand und Ressourcenrechte können weitere Voraussetzungen setzen.
Parameter#
Keine Pfad- oder Query-Parameter deklariert.
Anfragekörper#
Erforderlich.
| Feld | Typ | Pflicht | Beschreibung |
|---|---|---|---|
text | string | Ja | |
default_protocol | union | Nein | |
columns | array | Nein |
Vollständiges Körperschema
OpenAPI JSON
{
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"text"
],
"properties": {
"text": {
"type": "string",
"maxLength": 5000000
},
"default_protocol": {
"anyOf": [
{
"type": "string",
"enum": [
"http"
]
},
{
"type": "string",
"enum": [
"https"
]
},
{
"type": "string",
"enum": [
"socks4"
]
},
{
"type": "string",
"enum": [
"socks4a"
]
},
{
"type": "string",
"enum": [
"socks5"
]
},
{
"type": "string",
"enum": [
"socks5h"
]
},
{
"type": "string",
"enum": [
"ssh"
]
}
]
},
"columns": {
"type": "array",
"items": {
"type": "string",
"maxLength": 40
},
"maxItems": 20
}
},
"additionalProperties": false
}
}
}
}Antworten#
200 · Standardantwort
OpenAPI JSON
{
"description": "Default Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"lines"
],
"properties": {
"lines": {
"type": "array",
"items": {
"type": "object",
"required": [
"line",
"status",
"error",
"warnings",
"duplicate_of",
"proxy",
"alternatives"
],
"properties": {
"line": {
"type": "integer"
},
"status": {
"type": "string"
},
"error": {
"type": [
"null",
"string"
]
},
"warnings": {
"type": "array",
"items": {
"type": "string"
}
},
"duplicate_of": {
"type": [
"null",
"string"
]
},
"proxy": {
"anyOf": [
{
"type": "object",
"required": [
"protocol",
"protocol_source",
"host",
"port",
"username",
"password_present",
"name",
"remark",
"change_ip_url",
"provider",
"provider_params",
"pattern"
],
"properties": {
"protocol": {
"type": "string"
},
"protocol_source": {
"type": "string"
},
"host": {
"type": "string"
},
"port": {
"type": "integer"
},
"username": {
"type": [
"null",
"string"
]
},
"password_present": {
"type": "boolean"
},
"name": {
"type": [
"null",
"string"
]
},
"remark": {
"type": [
"null",
"string"
]
},
"change_ip_url": {
"type": [
"null",
"string"
]
},
"provider": {
"type": [
"null",
"string"
]
},
"provider_params": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"pattern": {
"type": "string"
}
}
},
{
"type": "null"
}
]
},
"alternatives": {
"type": "array",
"items": {
"type": "object",
"required": [
"protocol",
"protocol_source",
"host",
"port",
"username",
"password_present",
"name",
"remark",
"change_ip_url",
"provider",
"provider_params",
"pattern"
],
"properties": {
"protocol": {
"type": "string"
},
"protocol_source": {
"type": "string"
},
"host": {
"type": "string"
},
"port": {
"type": "integer"
},
"username": {
"type": [
"null",
"string"
]
},
"password_present": {
"type": "boolean"
},
"name": {
"type": [
"null",
"string"
]
},
"remark": {
"type": [
"null",
"string"
]
},
"change_ip_url": {
"type": [
"null",
"string"
]
},
"provider": {
"type": [
"null",
"string"
]
},
"provider_params": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"pattern": {
"type": "string"
}
}
}
}
}
}
}
}
}
}
}
}default · HTTP-Fehlerhülle. Status und error.code bezeichnen den Fehler.
OpenAPI JSON
{
"description": "HTTP error envelope. The status and error.code identify the failure.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}Allgemeine Authentifizierungs- und Transportfehler können zusätzlich zu den dokumentierten Antworten auftreten.
OpenAPI-Definition#
Vollständige Operationsdefinition
OpenAPI JSON
{
"summary": "Proxy-Zeilen erkennen und als Vorschau zurückgeben (ohne Speichern, ohne Passwörter)",
"tags": [
"Proxys"
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"text"
],
"properties": {
"text": {
"type": "string",
"maxLength": 5000000
},
"default_protocol": {
"anyOf": [
{
"type": "string",
"enum": [
"http"
]
},
{
"type": "string",
"enum": [
"https"
]
},
{
"type": "string",
"enum": [
"socks4"
]
},
{
"type": "string",
"enum": [
"socks4a"
]
},
{
"type": "string",
"enum": [
"socks5"
]
},
{
"type": "string",
"enum": [
"socks5h"
]
},
{
"type": "string",
"enum": [
"ssh"
]
}
]
},
"columns": {
"type": "array",
"items": {
"type": "string",
"maxLength": 40
},
"maxItems": 20
}
},
"additionalProperties": false
}
}
}
},
"x-required-scopes": [
"proxies:read"
],
"responses": {
"200": {
"description": "Default Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"lines"
],
"properties": {
"lines": {
"type": "array",
"items": {
"type": "object",
"required": [
"line",
"status",
"error",
"warnings",
"duplicate_of",
"proxy",
"alternatives"
],
"properties": {
"line": {
"type": "integer"
},
"status": {
"type": "string"
},
"error": {
"type": [
"null",
"string"
]
},
"warnings": {
"type": "array",
"items": {
"type": "string"
}
},
"duplicate_of": {
"type": [
"null",
"string"
]
},
"proxy": {
"anyOf": [
{
"type": "object",
"required": [
"protocol",
"protocol_source",
"host",
"port",
"username",
"password_present",
"name",
"remark",
"change_ip_url",
"provider",
"provider_params",
"pattern"
],
"properties": {
"protocol": {
"type": "string"
},
"protocol_source": {
"type": "string"
},
"host": {
"type": "string"
},
"port": {
"type": "integer"
},
"username": {
"type": [
"null",
"string"
]
},
"password_present": {
"type": "boolean"
},
"name": {
"type": [
"null",
"string"
]
},
"remark": {
"type": [
"null",
"string"
]
},
"change_ip_url": {
"type": [
"null",
"string"
]
},
"provider": {
"type": [
"null",
"string"
]
},
"provider_params": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"pattern": {
"type": "string"
}
}
},
{
"type": "null"
}
]
},
"alternatives": {
"type": "array",
"items": {
"type": "object",
"required": [
"protocol",
"protocol_source",
"host",
"port",
"username",
"password_present",
"name",
"remark",
"change_ip_url",
"provider",
"provider_params",
"pattern"
],
"properties": {
"protocol": {
"type": "string"
},
"protocol_source": {
"type": "string"
},
"host": {
"type": "string"
},
"port": {
"type": "integer"
},
"username": {
"type": [
"null",
"string"
]
},
"password_present": {
"type": "boolean"
},
"name": {
"type": [
"null",
"string"
]
},
"remark": {
"type": [
"null",
"string"
]
},
"change_ip_url": {
"type": [
"null",
"string"
]
},
"provider": {
"type": [
"null",
"string"
]
},
"provider_params": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"pattern": {
"type": "string"
}
}
}
}
}
}
}
}
}
}
}
},
"default": {
"description": "HTTP error envelope. The status and error.code identify the failure.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}