API

SitePreview

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
GET /api/v1/organizations/{organization_id}/verify/site_preview load What the site calls itself, and its icon

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

site_preview, err := client.SitePreview(nil).Load(map[string]any{"organization_id": "example", "url": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(site_preview)

Lua

Construct client as shown in the Lua setup, then call the operations:

local site_preview, err = client:SitePreview():load({ organization_id = "example", url = "example" })

PHP

Construct client as shown in the PHP setup, then call the operations:

$site_preview = $client->SitePreview()->load(["organization_id" => "example", "url" => "example"]);

Python

Construct client as shown in the Python setup, then call the operations:

site_preview = client.SitePreview().load({"organization_id": "example", "url": "example"})

Ruby

Construct client as shown in the Ruby setup, then call the operations:

site_preview = client.SitePreview.load({ "organization_id" => "example", "url" => "example" })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const site_preview = await client.SitePreview().load({ organization_id: "example", url: "example" })

Fields

Field Type Required Description
icon_data_url one,string,null Yes The site's icon as a data: URL, up to 256 KB
title one,string,null Yes Title
url string Yes The address as it will be saved

load

GET /api/v1/organizations/{organization_id}/verify/site_preview

Operation ID: api_v1_site_preview.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
url query string Yes

Responses

200: What the site calls itself, and its icon

application/json

Property Type Required Description
icon_data_url string Yes The site's icon as a data: URL, up to 256 KB
title string Yes
url string Yes The address as it will be saved
401: Unauthorized
403: Forbidden
404: Not found
422: The address is not a website

application/json

Property Type Required Description
code string Yes
error string Yes
502: Bad gateway