Dokumentation / Cookies / Endpunkt
GET

/api/v1/profiles/{id}/cookies

Cookies eines Profils lesen (laufend über CDP, sonst über eine unsichtbare Wartungssitzung des Kerns)

Anfrage#

POSIX-Shell · curl
curl --fail-with-body --request GET \
  "$ADBR_API_URL/api/v1/profiles/{id}/cookies" \
  -H "Authorization: Bearer $ADBR_API_TOKEN"

Verwende lokale Adresse und Token aus API & MCP. Ersetze Pfadplatzhalter wie {id} durch tatsächliche IDs.

Authentifizierung und Rechte#

Authentifizierung: Bearer-Token

Scopes: cookies:read

Alle aufgeführten Scopes sind erforderlich; admin erfüllt Scope-Prüfungen. Kontorechte, Anfrageinhalt, Tresorzustand und Ressourcenrechte können weitere Voraussetzungen setzen.

Parameter#

ParameterOrtPflichtBeschreibung
formatqueryNein
idpathJa
Vollständige Parameterschemas
OpenAPI JSON
[
  {
    "schema": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "json"
          ]
        },
        {
          "type": "string",
          "enum": [
            "netscape"
          ]
        },
        {
          "type": "string",
          "enum": [
            "header"
          ]
        }
      ]
    },
    "in": "query",
    "name": "format",
    "required": false
  },
  {
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64
    },
    "in": "path",
    "name": "id",
    "required": true
  }
]

Anfragekörper#

Kein Anfragekörper deklariert.

Antworten#

200 · Standardantwort
OpenAPI JSON
{
  "description": "Default Response",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "required": [
          "format",
          "count",
          "cookies",
          "content"
        ],
        "properties": {
          "format": {
            "type": "string"
          },
          "count": {
            "type": "integer"
          },
          "cookies": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "name",
                "value",
                "domain",
                "host_only",
                "path",
                "expires",
                "http_only",
                "secure",
                "same_site",
                "session",
                "partition_key",
                "priority",
                "source_scheme",
                "source_port",
                "creation",
                "last_access"
              ],
              "properties": {
                "firefox": {
                  "type": "object",
                  "required": [
                    "partition_key",
                    "partitioned",
                    "user_context_id"
                  ],
                  "properties": {
                    "partition_key": {
                      "type": "string"
                    },
                    "partitioned": {
                      "type": "boolean"
                    },
                    "user_context_id": {
                      "type": "integer"
                    }
                  }
                },
                "name": {
                  "type": "string"
                },
                "value": {
                  "type": "string"
                },
                "domain": {
                  "type": "string"
                },
                "host_only": {
                  "type": "boolean"
                },
                "path": {
                  "type": "string"
                },
                "expires": {
                  "type": [
                    "null",
                    "number"
                  ]
                },
                "http_only": {
                  "type": "boolean"
                },
                "secure": {
                  "type": "boolean"
                },
                "same_site": {
                  "type": "string"
                },
                "session": {
                  "type": "boolean"
                },
                "partition_key": {
                  "anyOf": [
                    {
                      "type": "object",
                      "required": [
                        "top_level_site",
                        "has_cross_site_ancestor"
                      ],
                      "properties": {
                        "top_level_site": {
                          "type": "string"
                        },
                        "has_cross_site_ancestor": {
                          "type": "boolean"
                        }
                      }
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "priority": {
                  "type": [
                    "null",
                    "string"
                  ]
                },
                "source_scheme": {
                  "type": [
                    "null",
                    "string"
                  ]
                },
                "source_port": {
                  "type": [
                    "null",
                    "integer"
                  ]
                },
                "creation": {
                  "type": [
                    "null",
                    "number"
                  ]
                },
                "last_access": {
                  "type": [
                    "null",
                    "number"
                  ]
                }
              }
            }
          },
          "content": {
            "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": "Cookies eines Profils lesen (laufend über CDP, sonst über eine unsichtbare Wartungssitzung des Kerns)",
  "tags": [
    "Cookies"
  ],
  "parameters": [
    {
      "schema": {
        "anyOf": [
          {
            "type": "string",
            "enum": [
              "json"
            ]
          },
          {
            "type": "string",
            "enum": [
              "netscape"
            ]
          },
          {
            "type": "string",
            "enum": [
              "header"
            ]
          }
        ]
      },
      "in": "query",
      "name": "format",
      "required": false
    },
    {
      "schema": {
        "type": "string",
        "minLength": 1,
        "maxLength": 64
      },
      "in": "path",
      "name": "id",
      "required": true
    }
  ],
  "x-required-scopes": [
    "cookies:read"
  ],
  "responses": {
    "200": {
      "description": "Default Response",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "required": [
              "format",
              "count",
              "cookies",
              "content"
            ],
            "properties": {
              "format": {
                "type": "string"
              },
              "count": {
                "type": "integer"
              },
              "cookies": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "name",
                    "value",
                    "domain",
                    "host_only",
                    "path",
                    "expires",
                    "http_only",
                    "secure",
                    "same_site",
                    "session",
                    "partition_key",
                    "priority",
                    "source_scheme",
                    "source_port",
                    "creation",
                    "last_access"
                  ],
                  "properties": {
                    "firefox": {
                      "type": "object",
                      "required": [
                        "partition_key",
                        "partitioned",
                        "user_context_id"
                      ],
                      "properties": {
                        "partition_key": {
                          "type": "string"
                        },
                        "partitioned": {
                          "type": "boolean"
                        },
                        "user_context_id": {
                          "type": "integer"
                        }
                      }
                    },
                    "name": {
                      "type": "string"
                    },
                    "value": {
                      "type": "string"
                    },
                    "domain": {
                      "type": "string"
                    },
                    "host_only": {
                      "type": "boolean"
                    },
                    "path": {
                      "type": "string"
                    },
                    "expires": {
                      "type": [
                        "null",
                        "number"
                      ]
                    },
                    "http_only": {
                      "type": "boolean"
                    },
                    "secure": {
                      "type": "boolean"
                    },
                    "same_site": {
                      "type": "string"
                    },
                    "session": {
                      "type": "boolean"
                    },
                    "partition_key": {
                      "anyOf": [
                        {
                          "type": "object",
                          "required": [
                            "top_level_site",
                            "has_cross_site_ancestor"
                          ],
                          "properties": {
                            "top_level_site": {
                              "type": "string"
                            },
                            "has_cross_site_ancestor": {
                              "type": "boolean"
                            }
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "priority": {
                      "type": [
                        "null",
                        "string"
                      ]
                    },
                    "source_scheme": {
                      "type": [
                        "null",
                        "string"
                      ]
                    },
                    "source_port": {
                      "type": [
                        "null",
                        "integer"
                      ]
                    },
                    "creation": {
                      "type": [
                        "null",
                        "number"
                      ]
                    },
                    "last_access": {
                      "type": [
                        "null",
                        "number"
                      ]
                    }
                  }
                }
              },
              "content": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "default": {
      "description": "HTTP error envelope. The status and error.code identify the failure.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  }
}

Suche nach Headless, MCP, Cookies oder einem API-Endpunkt.

↑ ↓ NavigierenEnter ÖffnenEsc Schließen