Skip to main content
POST
Go (SDK)

Authorizations

Authorization
string
header
required

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.

Headers

X-On-Behalf-Of
string

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

Path Parameters

id
string
required

The agent ID.

Body

application/json
name
string
required
Required string length: 1 - 255
domain
string
required

The host the secret may be sent to.

value
string
required
description
string | null
Maximum string length: 2000
expires_at
string<date-time> | null

Response

Stored.

id
string
object
enum<string>
Available options:
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>