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.

Body

application/json
default_value
any
required

Any JSON value; its shape is constrained by the flag's value_type.

key
string
required
Pattern: ^[a-z0-9][a-z0-9-]{0,62}$
name
string
required
value_type
enum<string>
required
Available options:
boolean,
string,
number,
json
description
string
project_id
string<uuid>

Project to assign. Defaults to the Default project.

Response

Created flag with its state in every environment

archived_at
string<date-time> | null
required
created_at
string<date-time>
required
default_value
any
required

Any JSON value; its shape is constrained by the flag's value_type.

description
string
required
key
string
required
name
string
required
project_id
string<uuid>
required
updated_at
string<date-time>
required
value_type
enum<string>
required
Available options:
boolean,
string,
number,
json
states
object
required