Pular para o conteúdo principal
POST
Go (SDK)

Autorizações

Authorization
string
header
obrigatório

Send Authorization: Bearer , using an MKA1 API key for automation or an OAuth API access token for a signed-in application. Use a dynamic security callback to refresh OAuth access tokens. Browser session-only operations still require their declared cookie.

Cabeçalhos

X-On-Behalf-Of
string

Optional external end-user identifier forwarded by the API gateway.

Parâmetros de caminho

id
string
obrigatório

The agent ID.

Corpo

application/json
name
string
obrigatório
Required string length: 1 - 255
domain
string
obrigatório

O host para o qual o segredo pode ser enviado.

value
string
obrigatório
description
string | null
Maximum string length: 2000
expires_at
string<date-time> | null

Resposta

Armazenado.

id
string
object
enum<string>
Opções disponíveis:
secret
name
string
domain
string
description
string | null
value_preview
string | null

Masked preview; the value is never returned.

expires_at
string<date-time> | null
last_used_at
string<date-time> | null
created_at
string<date-time>
updated_at
string<date-time>