Skip to content
Start here

Get logo queries

client.BrandProtection.V2.Logos.Get(ctx, params) (*[]V2LogoGetResponse, error)
GET/accounts/{account_id}/cloudforce-one/v2/brand-protection/logo/queries

Get all saved brand protection logo queries for an account. Optionally specify id to get a single query. Set download=true to include base64-encoded image data.

Security

API Token

The preferred authorization scheme for interacting with the Cloudflare API. Create a token.

Example:Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY
Accepted Permissions (at least one required)
Cloudforce One WriteCloudforce One Read
ParametersExpand Collapse
params V2LogoGetParams
AccountID param.Field[string]

Path param

minLength1
ID param.Field[string]Optional

Query param: Optional query ID to retrieve a specific logo query

Download param.Field[string]Optional

Query param: If true, include base64-encoded image data in the response

ReturnsExpand Collapse
type V2LogoGetResponse []V2LogoGetResponse
ID int64
R2Path string
SimilarityThreshold float64
Tag string
UploadedAt string
ContentType stringOptional

MIME type of the image (only present when download=true)

ImageData stringOptional

Base64-encoded image data (only present when download=true)

Get logo queries

package main

import (
  "context"
  "fmt"

  "github.com/stainless-sdks/cloudflare-go"
  "github.com/stainless-sdks/cloudflare-go/brand_protection"
  "github.com/stainless-sdks/cloudflare-go/option"
)

func main() {
  client := cloudflare.NewClient(
    option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"),
  )
  logos, err := client.BrandProtection.V2.Logos.Get(context.TODO(), brand_protection.V2LogoGetParams{
    AccountID: cloudflare.F("x"),
  })
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", logos)
}
[
  {
    "id": 0,
    "r2_path": "r2_path",
    "similarity_threshold": 0,
    "tag": "tag",
    "uploaded_at": "uploaded_at",
    "content_type": "content_type",
    "image_data": "image_data"
  }
]
Returns Examples
[
  {
    "id": 0,
    "r2_path": "r2_path",
    "similarity_threshold": 0,
    "tag": "tag",
    "uploaded_at": "uploaded_at",
    "content_type": "content_type",
    "image_data": "image_data"
  }
]