Skip to content

Wire types

Every JSON type the API sends and accepts. The CLI and the MCP server use the same types.

Conventions:

  • “Always” fields are present in every response, possibly as "", false, 0 or []. “Optional” fields are omitted when empty.
  • In request types, “required” means the server rejects the request without it.
  • Times are RFC 3339 strings; ids are UUID strings unless noted.

The one error shape. See Errors.

Field Type Presence Description
code string always stable error code
message string always English description
hint string optional what to do next
operation_id string optional related operation

Every list response: {"items": [T, ...]}. items is [] when empty.

Field Type Presence Description
id string always
email string always
name string always
email_verified boolean always
mfa_enabled boolean always two-step sign-in is on
created_at time always

A workspace as seen by a member (GET /v1/me, POST /v1/tenants).

Field Type Presence Description
id string always
slug string always
name string always
role string always owner, admin, operator, viewer
require_mfa boolean always (always false when the caller is a token)
require_sso boolean always (always false when the caller is a token)
Field Type Presence Description
user User optional the person (for a token: its creator)
tenants TenantRef[] always accepted memberships; a token: only its workspace; a workspace-SSO session: only that workspace
token TokenPrincipal optional set when authenticated with an API token
session_amr string[] optional how the session signed in (sessions only); see Session amr values
Field Type Presence Description
id string always token id
tenant_id string always
project_id string optional set for project tokens
scopes string[] always effective scopes (given ∩ creator’s role)
Field Type Presence Description
id string always
slug string always 3–40 characters
name string always
require_mfa boolean always
require_sso boolean always
created_at time always
Field Type Presence Description
user_id string always
email string always
name string always
role string always
pending boolean always invited, not yet accepted
created_at time always when invited or added

A workspace that invited the signed-in person.

Field Type Presence Description
tenant_id string always use in /v1/invitations/{tenant_id}/accept
slug string always
name string always
role string always role offered
invited_at time always
Field Type Presence Description
id string always
slug string always 2–40 characters; default for the default project
name string always
created_at time always
Field Type Presence Description
id string always
name string always
prefix string always myd_ + 6 characters of the secret
user_id string always creator
user_email string always creator’s email (empty in the create response)
project_id string optional project tokens only
scopes string[] always scopes given at creation
expires_at time optional
last_used_at time optional updated at most once a minute
revoked_at time optional
created_at time always

APIToken plus:

Field Type Presence Description
secret string always myd_…; returned only at creation
Field Type Required Description
name string yes 1–100 characters
scopes string[] yes subset of read, write, destroy, admin the caller has
project_id string no UUID
expires_in_days integer no ≤ 0 or omitted: no expiry
Field Type Presence Description
id string always
project_id string always
provider string always oci, gcp
name string always
default_region string always
account_ref string always non-secret account id: OCI tenancy OCID, GCP project id
status string always pending, active, error
status_message string optional <code>: <message> — <hint> when error
last_verified_at time optional
created_at time always
auth_mode string always key (stored cloud key) or keyless
Field Type Required Description
provider string yes
name string yes ^[a-z0-9][a-z0-9-]{0,62}$
default_region string yes
project_id string no project id or slug
credentials object yes write-only; see Credential formats
Field Type Required Description
credentials object yes write-only, same formats
Field Type Presence Description
connection string always connection name
provider string always
issuer string always Mayadyn’s issuer URL
subject string always mayadyn:<workspace id>:<connection id>
audience string optional GCP only
steps string[] always commands or policy statements, in order
notes string[] optional
Field Type Presence Description
id string always inventory id
kind string always vm
project_id string always
connection_id string always
connection_name string always
provider string always
provider_id string optional the cloud’s id (OCI instance OCID; GCP <zone>/<name>); missing until created
region string always
name string always
state string always provisioning, starting, running, stopping, stopped, terminating, terminated, error, unknown
size string always
image string always
public_ip string optional
private_ip string optional
ssh_user string optional
labels object always string → string
detail object optional provider-specific, shown as-is
created_at time always
updated_at time always
synced_at time optional last read from the cloud
Field Type Required Description
connection string yes id or name
name string yes ^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$
region string no default: connection’s
size string no default small
image string no default ubuntu-24.04
ssh_public_key string no OpenSSH public key line
labels object no ≤ 32

What a VM create would do (POST /v1/vms?dry_run=true).

Field Type Presence Description
dry_run boolean always true
connection string always connection name
provider string always
name string always
region string always resolved
size string always
image string always
ssh_user string optional for catalog images
labels object always
native_size string optional shape or machine type used
native_image string optional image used
warnings string[] optional
Field Type Presence Description
id string always
kind string always vm.create, vm.start, vm.stop, vm.delete, connection.sync, app.deploy, app.delete
status string always pending, running, succeeded, failed
project_id string always
connection_id string optional
resource_id string optional
target_name string optional
input object optional
result object optional
error Error optional on failed
attempts integer always
created_at time always
started_at time optional
finished_at time optional

Details: The operation object.

Field Type Presence Description
id integer always
at time always
actor_kind string always user, token, system
actor_user_id string optional
actor_email string optional
actor_token_id string optional
action string always see Audit actions
target_kind string optional
target_id string optional
result string always ok, denied, error
detail object optional
ip string optional

Catalog, CatalogRegion, CatalogSize, CatalogImage

Section titled “Catalog, CatalogRegion, CatalogSize, CatalogImage”
Type Field Type Description
Catalog providers string[]
regions CatalogRegion[]
sizes CatalogSize[]
images CatalogImage[]
CatalogRegion provider string
id string
city string
country string ISO 3166-1 alpha-2
CatalogSize id string xsmall, small, medium, large
vcpus integer
memory_gb integer
native object provider → native size
CatalogImage id string
name string
ssh_user string
providers string[]

All fields always present. See Catalog.

Field Type Presence Description
id string always
name string always
project_id string always
connection_id string always
region string always
size string always host size
port integer always container port
url string always https://<app>.<workspace>.<zone>
status string always new, deploying, live, failed, deleting
release integer optional live release number
host_resource_id string optional the host VM’s resource id
host_state string optional idle, applying, running, failed
host_healthy boolean always
host_message string optional agent’s message
host_last_seen time optional last agent report
has_secrets boolean always secrets are stored
created_at time always

Write-only; never returned.

Field Type Required Description
env object no string → string; replaces the set
registry RegistryAuth no kept if omitted
git_token string no kept if omitted
git_host string with git_token the only host the token is sent to
Field Type Required Description
server string yes host[:port]
username string yes
password string yes
Field Type Required Description
connection string yes
name string yes ^[a-z]([a-z0-9-]{0,38}[a-z0-9])?$
region string no
size string no default small
port integer no default 8080
secrets AppSecrets no
Field Type Required Description
url string yes https://, no credentials
ref string no default main
dockerfile string no path in the repository
Field Type Required Description
image string one of
git GitSource one of
port integer no changes the app’s port
Field Type Presence Description
id string always
number integer always per app, from 1
source string always image or git
image string optional
git GitSource optional git releases
status string always pending, deploying, live, failed, superseded
message string optional failure reason
created_at time always
finished_at time optional
Field Type Presence Description
host_state string always "" before the host reports
last_seen time optional
logs string always tail of the container’s output
Field Type Presence Description
secret string always base32 secret for the authenticator app (shown once)
otpauth_url string always otpauth://totp/... URI (SHA1, 6 digits, 30 s)
Field Type Presence Description
issuer string always https://
client_id string always
client_secret string write-only required on PUT; never returned
allowed_domains string[] always []: no restriction
Field Type Presence Description
provider string always google, microsoft, or sso:<workspace id>|<issuer>
email string always
created_at time always