# REST: site

Source: <https://telegafirst.com/docs/api-site>
Locale: ru
releaseGitSha: 0bb11ef116e17ec64c802d5476eaff442e53d252
sourceContentDigest: 08d88de50cd3ef873ce2d65cdd34be59d74f7839eb02aa358f296d1bcec8074b
Version: 9

# REST: site

Выберите операцию: полный контракт доступен по ссылке. Scopes: ALL; auth alternatives: OR.

## issueSiteCheckoutKey

`POST /api/v1/tools/site/checkout-key` — Issue or rotate a browser checkout key

Scopes (ALL): \["site:write"]. Auth (OR): \[{"hubApiKey":\[]},{"hubBearer":\[]}].

[Параметры, ответы и права](https://telegafirst.com/docs/api-op-issuesitecheckoutkey)

## declareSiteForm

`POST /api/v1/tools/site/forms` — Declare or redeclare a site form

Scopes (ALL): \["site:write"]. Auth (OR): \[{"hubApiKey":\[]},{"hubBearer":\[]}].

[Параметры, ответы и права](https://telegafirst.com/docs/api-op-declaresiteform)

## listSitePages

`GET /api/v1/tools/site/pages` — List publishable hosts and registered site pages

Scopes (ALL): \["site:read"]. Auth (OR): \[{"hubApiKey":\[]},{"hubBearer":\[]}].

[Параметры, ответы и права](https://telegafirst.com/docs/api-op-listsitepages)

## setSitePagesVisibility

`POST /api/v1/tools/site/pages/visibility` — Show or hide existing site pages

Scopes (ALL): \["site:write"]. Auth (OR): \[{"hubApiKey":\[]},{"hubBearer":\[]}].

[Параметры, ответы и права](https://telegafirst.com/docs/api-op-setsitepagesvisibility)

## deleteSitePage

`DELETE /api/v1/tools/site/pages/{seqNum}` — Withdraw one page from the deployed site

Scopes (ALL): \["site:write"]. Auth (OR): \[{"hubApiKey":\[]},{"hubBearer":\[]}].

[Параметры, ответы и права](https://telegafirst.com/docs/api-op-deletesitepage)

## createSitePagePreview

`POST /api/v1/tools/site/pages/{seqNum}/preview` — Open a private preview of one site page

Scopes (ALL): \["site:write"]. Auth (OR): \[{"hubApiKey":\[]},{"hubBearer":\[]}].

[Параметры, ответы и права](https://telegafirst.com/docs/api-op-createsitepagepreview)

## publishSite

`POST /api/v1/tools/site/publish` — Publish a staged site bundle

Scopes (ALL): \["site:write"]. Auth (OR): \[{"hubApiKey":\[]},{"hubBearer":\[]}].

[Параметры, ответы и права](https://telegafirst.com/docs/api-op-publishsite)

## requestSiteUpload

`POST /api/v1/tools/site/request-upload` — Request staged bundle upload URLs

Scopes (ALL): \["site:write"]. Auth (OR): \[{"hubApiKey":\[]},{"hubBearer":\[]}].

[Параметры, ответы и права](https://telegafirst.com/docs/api-op-requestsiteupload)

## listSiteSecrets

`GET /api/v1/tools/site/secrets` — List stored secret names

Scopes (ALL): \["site:read"]. Auth (OR): \[{"hubApiKey":\[]},{"hubBearer":\[]}].

[Параметры, ответы и права](https://telegafirst.com/docs/api-op-listsitesecrets)

## putSiteSecret

`POST /api/v1/tools/site/secrets` — Request approval or store a new secret

Scopes (ALL): \["site:write"]. Auth (OR): \[{"hubApiKey":\[]},{"hubBearer":\[]}].

[Параметры, ответы и права](https://telegafirst.com/docs/api-op-putsitesecret)

## removeSiteSecret

`DELETE /api/v1/tools/site/secrets/{name}` — Request approval or delete a stored secret

Scopes (ALL): \["site:write"]. Auth (OR): \[{"hubApiKey":\[]},{"hubBearer":\[]}].

[Параметры, ответы и права](https://telegafirst.com/docs/api-op-removesitesecret)

## rotateSiteSecret

`PUT /api/v1/tools/site/secrets/{name}` — Request approval or rotate a stored secret

Scopes (ALL): \["site:write"]. Auth (OR): \[{"hubApiKey":\[]},{"hubBearer":\[]}].

[Параметры, ответы и права](https://telegafirst.com/docs/api-op-rotatesitesecret)
