# REST: chains

Source: <https://telegafirst.com/docs/api-chains>
Locale: ru
releaseGitSha: 0bb11ef116e17ec64c802d5476eaff442e53d252
sourceContentDigest: 2eb21f1648ae80a1a51b86011c6a205cde0fe78521a13862b0431a43dc07a498
Version: 9

# REST: chains

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

## listMessageChains

`GET /api/v1/tools/chains` — List message chain shells

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

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

## updateMessageChain

`PATCH /api/v1/tools/chains` — Update a chain shell by tenant sequence

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

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

## createMessageChain

`POST /api/v1/tools/chains` — Create a message chain shell

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

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

## deleteMessageChain

`POST /api/v1/tools/chains/delete` — Soft-delete a chain shell by tenant sequence

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

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

## listChainSteps

`GET /api/v1/tools/chains/steps` — listChainSteps

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

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

## updateChainStep

`PATCH /api/v1/tools/chains/steps` — updateChainStep

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

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

## createChainStep

`POST /api/v1/tools/chains/steps` — Add a step with its message to a chain

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

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

## deleteChainStep

`POST /api/v1/tools/chains/steps/delete` — deleteChainStep

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

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

## getChainStep

`GET /api/v1/tools/chains/steps/get` — getChainStep

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

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