OneOS Docs
Genesis 0.3.3 Console

API reference

Relays

DNS: zones and records.

Operations
150
Base path
https://os.one.ml/api/v1/relays
Scopes
relays:read relays:write
API keys
1 failed with an API key · 3 refused to API keys · 119 tested with an API key
SDK
genesis.call('relays_getAnalytics', …) · helpers under genesis.relays
CLI
genesis relays
MCP
101 tools; the other 49 through genesis_call

Operations

OperationEndpointAPI key
Account-wide DNS query analytics (totals, by type, hourly timeline)GET/analyticsTested with an API key
Query tenant audit log events with filters and paginationGET/audit-logsTested with an API key
Export the account audit log as JSONGET/audit-logs/exportTested with an API key
List certificates with filters, stats and paginationGET/certificatesTested with an API key
Request a new ACME certificate (issued asynchronously)POST/certificatesTested with an API key
Get a certificate with its validation challenges and recent eventsGET/certificates/{certId}Tested with an API key
Delete a certificate and its private keyDELETE/certificates/{certId}Tested with an API key
Update renewal, notification, CT monitoring and tag settingsPATCH/certificates/{certId}Tested with an API key
Download the certificate, chain and private keyGET/certificates/{certId}/downloadTested with an API key
List the events recorded for a certificateGET/certificates/{certId}/eventsTested with an API key
List the archived previous versions of a certificateGET/certificates/{certId}/historyTested with an API key
Renew (re-issue) an issued, failed or expired certificate nowPOST/certificates/{certId}/renewTested with an API key
List Certificate Transparency monitorsGET/certificates/ct-monitorsTested with an API key
Create a Certificate Transparency monitor for a domain patternPOST/certificates/ct-monitorsTested with an API key
Get a CT monitor with the log entries it foundGET/certificates/ct-monitors/{monitorId}Tested with an API key
Delete a CT monitor and its log entriesDELETE/certificates/ct-monitors/{monitorId}Tested with an API key
Update a CT monitor (the domain pattern cannot change)PATCH/certificates/ct-monitors/{monitorId}Tested with an API key
List the tenant's zones with their Total TLS statusGET/certificates/total-tlsTested with an API key
Enable Total TLS for a zone (request a certificate for every uncovered A/AAAA name)POST/certificates/total-tlsTested with an API key
Disable Total TLS for a zone (stops automatic renewal; revokes nothing)DELETE/certificates/total-tls/{domainId}Tested with an API key
Upload your own certificate (key must match, chain must sign it)POST/certificates/upload—
List external DNS provider connectionsGET/dns-provider-connectionsTested with an API key
Connect an external DNS provider account with its API credentialsPOST/dns-provider-connectionsTested with an API key
Disconnect a provider connection and remove its imported zonesDELETE/dns-provider-connections/{connectionId}Tested with an API key
Import the provider's zone list for a connectionPOST/dns-provider-connections/{connectionId}/syncTested with an API key
List the zones imported for a provider connectionGET/dns-provider-connections/{connectionId}/zonesTested with an API key
Apply record changes to a zone at the external providerPOST/dns-provider-connections/{connectionId}/zones/{zone}/applyTested with an API key
List a zone's live records at the external providerGET/dns-provider-connections/{connectionId}/zones/{zone}/recordsTested with an API key
List the external DNS provider catalogGET/dns-providersTested with an API key
Plan record changes between current and desired records (dry run)POST/dns-providers/planTested with an API key
Check whether a domain's public nameservers point at RelaysGET/dns/propagationTested with an API key
Look a name up from every global probe regionGET/dns/propagation/globalFailed with an API key
List the account's domains across Relays DNS and connected providersGET/domain-assetsTested with an API key
Get one domain's DNS and registration authoritiesGET/domain-assets/{domain}Tested with an API key
Analyze a domain for confusability, brand collision, language and deliverability riskPOST/domains/analyzeTested with an API key
List forwarding rules for a domainGET/domains/forwardingTested with an API key
Create a URL or email forwarding rulePOST/domains/forwardingTested with an API key
Delete a forwarding ruleDELETE/domains/forwarding/{ruleId}Tested with an API key
List TLDs priced below their 24-hour meanGET/domains/specialsTested with an API key
Suggest domain names for an intentPOST/domains/suggestTested with an API key
List release artifacts (source maps, debug symbols)GET/errors/artifactsTested with an API key
Register a source map or debug symbols for a releasePOST/errors/artifactsTested with an API key
List release deploy markersGET/errors/deploymentsTested with an API key
Register a release deploy markerPOST/errors/deploymentsTested with an API key
Ingest one Sentry-shaped application error eventPOST/errors/eventsTested with an API key
List grouped error issuesGET/errors/issuesTested with an API key
Set a grouped issue's workflow statusPATCH/errors/issues/{issueId}Tested with an API key
AI-ready issue context and heuristic fix suggestionsGET/errors/issues/{issueId}/contextTested with an API key
List external work-item links on an issueGET/errors/issues/{issueId}/integrationsTested with an API key
Record a link from an issue to an existing Linear, Jira or GitHub work itemPOST/errors/issues/{issueId}/integrationsTested with an API key
List error tracking SDK projects (DSNs)GET/errors/projectsTested with an API key
Create an error tracking SDK project and DSNPOST/errors/projectsTested with an API key
Aggregate grouped errors by release with trend and deploy markersGET/errors/releasesTested with an API key
List escalation policies with their levelsGET/escalation-policies—
Create an escalation policyPOST/escalation-policies—
Get an escalation policyGET/escalation-policies/{policyId}—
Delete an escalation policyDELETE/escalation-policies/{policyId}—
Update an escalation policy (rules replace all levels)PATCH/escalation-policies/{policyId}—
Poll the account's platform events (zone, record, certificate, monitor, incident and domain changes)GET/events—
Read enrollment for the current verified human Genesis selectionGET/genesis/enrollmentAPI keys refused
Explicitly activate an empty Relays account; read status after an unconfirmed resultPOST/genesis/enrollmentAPI keys refused
List incidents with filters, stats and paginationGET/incidentsTested with an API key
Create an incident with its first updatePOST/incidentsTested with an API key
Get an incident with its updates and affected componentsGET/incidents/{incidentId}Tested with an API key
Delete an incident and its updatesDELETE/incidents/{incidentId}Tested with an API key
Update an incident status or fields, optionally appending an update messagePATCH/incidents/{incidentId}Tested with an API key
Draft the incident write-up from the recorded timelinePOST/incidents/{incidentId}/writeup—
Publish the reviewed incident write-up on its status pagePOST/incidents/{incidentId}/writeup/publish—
Incident counts, MTTA, MTTR, MTBF and distributions over a windowGET/incidents/analyticsTested with an API key
Query DNS query logs from the warehouse (tenant-filtered, retention-window enforced)GET/logsTested with an API key
Poll the live DNS query log tail (one JSON snapshot after a cursor)GET/logs/live—
Detect DNS log patterns and anomaly candidates over the filtered logsGET/logs/patternsTested with an API key
Evaluate DNS log patterns and dispatch alerts to notification channels (unless dry_run)POST/logs/patterns/alertsTested with an API key
List saved log pattern alert policiesGET/logs/patterns/policiesTested with an API key
Create a saved log pattern alert policyPOST/logs/patterns/policiesTested with an API key
Evaluate a saved policy now; dispatches alerts unless dry_runPOST/logs/patterns/policies/{policyId}/evaluateTested with an API key
Get the DNS query log retention policy (default 30 days when none is saved)GET/logs/retentionTested with an API key
Set the DNS query log retention policyPUT/logs/retentionTested with an API key
List uptime monitors with filters, stats and paginationGET/monitorsTested with an API key
Create an uptime monitorPOST/monitorsTested with an API key
Get a monitor with recent checks, recent alerts, heartbeat and DNS monitor configGET/monitors/{monitorId}Tested with an API key
Delete a monitor (400 while linked to status page components)DELETE/monitors/{monitorId}Tested with an API key
Update monitor configuration (strict body, unknown fields rejected)PATCH/monitors/{monitorId}Tested with an API key
Check history for a monitor with range statsGET/monitors/{monitorId}/checksTested with an API key
Pause a monitor (400 when already paused)POST/monitors/{monitorId}/pauseTested with an API key
Resume a paused monitor (400 when not paused)POST/monitors/{monitorId}/resumeTested with an API key
Run one immediate check against the monitor target and return the resultPOST/monitors/{monitorId}/testTested with an API key
List monitor service level objectivesGET/monitors/slosTested with an API key
Create a monitor service level objectivePOST/monitors/slosTested with an API key
Calculate error budget burn rates for enabled SLOsGET/monitors/slos/burn-rateTested with an API key
List your mTLS certificate authoritiesGET/mtls/cas—
Create a private mTLS CA, or bring your own CA certificate for verificationPOST/mtls/cas—
Get an mTLS certificate authorityGET/mtls/cas/{caId}—
Get the CAs signed certificate revocation listGET/mtls/cas/{caId}/crl—
Check whether this CA would accept a client certificate nowPOST/mtls/cas/{caId}/verify—
List your mTLS client certificatesGET/mtls/client-certificates—
Issue a client certificate from your Relays CA (private key returned once)POST/mtls/client-certificates—
Get an mTLS client certificateGET/mtls/client-certificates/{clientId}—
Revoke a client certificate (listed on the CAs next CRL)POST/mtls/client-certificates/{clientId}/revoke—
Status of a client certificate (good, revoked or expired; the OCSP question as JSON)GET/mtls/client-certificates/{clientId}/status—
List the default Relays nameservers to delegate a zone toGET/nameserversTested with an API key
Detect on-call coverage gaps across up to 100 schedulesGET/oncall/coverageTested with an API key
List on-call schedulesGET/oncall/schedulesTested with an API key
Create an on-call schedule with its rotation membersPOST/oncall/schedulesTested with an API key
Get a schedule with members and upcoming overridesGET/oncall/schedules/{scheduleId}Tested with an API key
Delete an on-call scheduleDELETE/oncall/schedules/{scheduleId}Tested with an API key
Update a schedule, or create or delete an override (create_override and delete_override_id are mutually exclusive actions)PATCH/oncall/schedules/{scheduleId}Tested with an API key
Validate a provider connection, optionally with a live provider callPOST/provider-connections/{connectionId}/validateTested with an API key
List what the person's domains need from themGET/registrar/attention—
List the account's domains and their registration stateGET/registrar/domainsTested with an API key
Get one domain's registration stateGET/registrar/domains/{domain}Tested with an API key
Reveal the transfer auth code of one of the person's domainsPOST/registrar/domains/{domain}/auth-code—
Quote a renewal of one of the person's domainsPOST/registrar/domains/{domain}/renew-quotes—
Quote a domain registration for the personPOST/registrar/quotes—
Get one of the person's domain quotesGET/registrar/quotes/{quoteId}—
Buy the quoted domain, charging the person's cardPOST/registrar/quotes/{quoteId}/purchase—
Search domain availability across TLDsGET/registrar/searchTested with an API key
List status pages with component and subscriber countsGET/status-pagesTested with an API key
Create a status pagePOST/status-pagesTested with an API key
Get a status page with component groups, subscriber counts and recent incidentsGET/status-pages/{pageId}Tested with an API key
Delete a status page with its components, groups, subscribers and incidentsDELETE/status-pages/{pageId}Tested with an API key
Update a status page (strict body)PATCH/status-pages/{pageId}Tested with an API key
Delete a component group of a status page; its components become ungroupedDELETE/status-pages/{pageId}/component-groups/{groupId}Tested with an API key
List component groups and components of a status pageGET/status-pages/{pageId}/componentsTested with an API key
Add a component, or a component group when is_group is truePOST/status-pages/{pageId}/componentsTested with an API key
Update a component or group; the target id travels in the bodyPATCH/status-pages/{pageId}/componentsTested with an API key
Delete a component of a status pageDELETE/status-pages/{pageId}/components/{componentId}Tested with an API key
List incidents of a status page with their updatesGET/status-pages/{pageId}/incidentsTested with an API key
Create an incident or scheduled maintenance on a status pagePOST/status-pages/{pageId}/incidentsTested with an API key
List subscribers of a status page (phone numbers and webhook URLs masked)GET/status-pages/{pageId}/subscribersTested with an API key
Add a subscriber to a status page; one added by a key stays pending until the recipient agreesPOST/status-pages/{pageId}/subscribers—
Remove a subscriber from a status pageDELETE/status-pages/{pageId}/subscribers/{subscriberId}Tested with an API key
Query tenant trace spans with a waterfallGET/tracesTested with an API key
List DNS zones for the tenantGET/zonesTested with an API key
Create a DNS zonePOST/zonesTested with an API key
Get zone detailsGET/zones/{zone}Tested with an API key
Delete a zone and all its recordsDELETE/zones/{zone}Tested with an API key
Update zone settings (type, SOA)PATCH/zones/{zone}Tested with an API key
List CAA records for a zone, with recommended Let's Encrypt recordsGET/zones/{zone}/caaTested with an API key
Create a CAA record, and by default publish it in the zonePOST/zones/{zone}/caaTested with an API key
Read owned DNSSEC status; unavailable public key details return 503GET/zones/{zone}/dnssecAPI keys refused
Disable DNSSEC for a zone (hard-deletes its signing keys)DELETE/zones/{zone}/dnssecTested with an API key
Export a zone's records as a BIND zone file or as JSONGET/zones/{zone}/exportTested with an API key
Import records from a BIND zone file into an existing zonePOST/zones/{zone}/importTested with an API key
List records in a zoneGET/zones/{zone}/recordsTested with an API key
Create one record, or up to 100 with {records:[...]}POST/zones/{zone}/recordsTested with an API key
Get a recordGET/zones/{zone}/records/{recordId}Tested with an API key
Delete a recordDELETE/zones/{zone}/records/{recordId}Tested with an API key
Update a recordPATCH/zones/{zone}/records/{recordId}Tested with an API key
Create, update and delete records in one requestPOST/zones/{zone}/records/bulkTested with an API key

Analytics

Account-wide DNS query analytics (totals, by type, hourly timeline)

GET/v1/relays/analytics

relays:readTested with an API keyrelays_getAnalytics

Genesis scope relays:read. Local scope analytics:read. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED). Counts only the account's own zones; zone must name one of them (404 otherwise). Only summary.total_queries, queries.by_type and timeline carry data.

Parameters

  • periodquery · "1h" | "6h" | "24h" | "7d" | "30d" | "90d"
  • zonequery · string

    One of the account's zones (case-insensitive, trailing dot optional)

Responses

  • 200Analytics
    Response fields
    • periodstring
    • zonestring
    • time_rangeobject
    • time_range.startstring
    • time_range.endstring
    • summaryobject
    • queriesobject
    • queries.by_typeobject[]
    • queries.by_type[].[].query_typestring
    • queries.by_type[].[].cntinteger
    • queries.by_response_codeany[]
    • queries.by_countryany[]
    • performanceobject
    • top_recordsany[]
    • timelineobject[]
    • timeline[].[].tsstring
    • timeline[].[].queriesinteger
  • 400Error
  • 401Error
  • 404Error
  • 500Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/analytics" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Audit logs

Query tenant audit log events with filters and pagination

GET/v1/relays/audit-logs

relays:readTested with an API keyrelays_listAuditLogs

Genesis scope relays:read. Local scope logs:read. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED). Always filtered to the account; a missing local scope answers 403.

Parameters

  • userIdquery · string
  • apiKeyIdquery · string
  • actionquery · string
  • resourceTypequery · string
  • resourceIdquery · string
  • outcomequery · string
  • severityquery · string
  • ipAddressquery · string
  • startDatequery · string (date-time)
  • endDatequery · string (date-time)
  • searchquery · string
  • pagequery · integer
  • limitquery · integer

Responses

  • 200Audit logs
    Response fields
    • dataobject[]required
    • data[].[].idinteger
    • data[].[].timestampstring (date-time)
    • data[].[].actorobject
    • data[].[].actor.userIdstring | null
    • data[].[].actor.apiKeyIdstring | null
    • data[].[].actor.ipAddressstring | null
    • data[].[].actor.userAgentstring | null
    • data[].[].eventobject
    • data[].[].event.actionstring
    • data[].[].event.categorystring
    • data[].[].event.severitystring
    • data[].[].event.outcomestring
    • data[].[].resourceobject
    • data[].[].resource.typestring
    • data[].[].resource.idstring | null
    • data[].[].contextobject
    • data[].[].changesany
    • data[].[].errorMessageany
    • data[].[].metadataobject
    • paginationobjectrequired
    • pagination.pageinteger
    • pagination.limitinteger
    • pagination.totalinteger
    • pagination.totalPagesinteger
    • pagination.hasNextboolean
    • pagination.hasPrevboolean
  • 401Error
  • 403Error
  • 500Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/audit-logs" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Export the account audit log as JSON

GET/v1/relays/audit-logs/export

relays:readTested with an API keyrelays_exportAuditLogs

Genesis scope relays:read. Local scope logs:read. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED). JSON only through Genesis: the gateway answers application/json and caps a response at 1 MiB, so keep limit small. Defaults to the last 30 days; at most 10000 records.

Parameters

  • formatquery · "json"

    json through Genesis (csv is for direct callers)

  • limitquery · integer
  • startDatequery · string (date-time)
  • endDatequery · string (date-time)

Responses

  • 200Export file
    Response fields
    • exportedAtstring (date-time)
    • tenantIdstring
    • dateRangeobject
    • dateRange.startstring
    • dateRange.endstring
    • recordCountinteger
    • dataobject[]
  • 401Error
  • 403Error
  • 500Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/audit-logs/export" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Certificates

List certificates with filters, stats and pagination

GET/v1/relays/certificates

relays:readTested with an API keyrelays_listCertificates

Requires Genesis scope relays:read; local scope certificates:read. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED until an owner or admin opens Relays).

Parameters

  • pagequery · integer
  • limitquery · integer
  • statusquery · "pending" | "validating" | "issued" | "expired" | "revoked" | "failed"
  • cert_typequery · "single" | "wildcard" | "multi"
  • searchquery · string

    Substring of the common name, or an exact SAN

  • expiring_within_daysquery · integer

    Issued certificates expiring within this many days

  • domain_idquery · integer
  • auto_renewquery · "true" | "false"
  • is_customquery · "true" | "false"
  • sortquery · "created_at" | "expires_at" | "common_name"
  • orderquery · "asc" | "desc"

Responses

  • 200Certificates
    Response fields
    • certificatesobject[]
    • certificates[].[].idstring (uuid)
    • certificates[].[].tenant_idstring
    • certificates[].[].domain_idinteger | null
    • certificates[].[].common_namestring
    • certificates[].[].san_domainsstring[]
    • certificates[].[].cert_typestring
    • certificates[].[].providerstring
    • certificates[].[].status"pending" | "validating" | "issued" | "expired" | "revoked" | "failed"
    • certificates[].[].auto_renewboolean
    • certificates[].[].renew_before_daysinteger
    • certificates[].[].validation_methodstring
    • certificates[].[].key_typestring
    • certificates[].[].is_customboolean
    • certificates[].[].custom_ca_namestring | null
    • certificates[].[].serial_numberstring | null
    • certificates[].[].fingerprint_sha256string | null
    • certificates[].[].public_key_pin_sha256string | null
    • certificates[].[].issuerstring | null
    • certificates[].[].signature_algorithmstring | null
    • certificates[].[].issued_atstring | null (date-time)
    • certificates[].[].expires_atstring | null (date-time)
    • certificates[].[].next_renewal_atstring | null (date-time)
    • certificates[].[].last_renewal_atstring | null (date-time)
    • certificates[].[].deployed_atstring | null (date-time)
    • certificates[].[].renewal_failuresinteger
    • certificates[].[].last_errorstring | null
    • certificates[].[].notify_emailstring | null
    • certificates[].[].notify_webhookstring | null

      Scheme and host only (scheme://host/***); the full URL is never returned.

    • certificates[].[].notify_before_expiryinteger[]
    • certificates[].[].ct_log_monitoredboolean
    • certificates[].[].deployed_toarray | object | null
    • certificates[].[].tagsstring[]
    • certificates[].[].created_atstring (date-time)
    • certificates[].[].updated_atstring (date-time)
    • statsobject
    • stats.totalinteger
    • stats.issuedinteger
    • stats.pendinginteger
    • stats.expiring_sooninteger
    • stats.expiredinteger
    • stats.failedinteger
    • stats.custominteger
    • stats.wildcardinteger
    • metaobject
    • meta.pageinteger
    • meta.per_pageinteger
    • meta.totalinteger
    • meta.total_pagesinteger
  • 400Error
  • 401Error
  • 403Genesis scope missing, or 403 RELAYS_NOT_PROVISIONED: the project has no Relays account yet (an owner or admin opens Relays once)
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/certificates" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Request a new ACME certificate (issued asynchronously)

POST/v1/relays/certificates

relays:writeTested with an API keyrelays_createCertificate

Requires Genesis scope relays:write; local scope certificates:write. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED until an owner or admin opens Relays). The common name and every SAN must sit in one of the project's Relays zones. Returns 202 with a pending certificate; relays-certs asks the certificate authority to issue it, and a pending record is picked up later if that notification fails.

Request body application/json

  • common_namestringrequired

    Domain or *.domain max length 253

  • san_domainsstring[]

    default []

  • cert_type"single" | "wildcard" | "multi"

    default "single"

  • validation_method"dns-01" | "http-01"

    default "dns-01"

  • key_type"rsa-2048" | "rsa-4096" | "ecdsa-p256" | "ecdsa-p384"

    default "rsa-2048"

  • provider"letsencrypt" | "letsencrypt_staging" | "zerossl" | "buypass"

    default "letsencrypt"

  • auto_renewboolean

    default true

  • renew_before_daysnumber

    min 7 · max 90 · default 30

  • notify_emailstring (email)
  • notify_webhookstring (uri)
  • notify_before_expirynumber[]

    default [30,14,7,1]

  • tagsstring[]

    default []

Responses

  • 202Accepted; status pending
    Response fields
    • idstring (uuid)
    • tenant_idstring
    • domain_idinteger | null
    • common_namestring
    • san_domainsstring[]
    • cert_typestring
    • providerstring
    • status"pending" | "validating" | "issued" | "expired" | "revoked" | "failed"
    • auto_renewboolean
    • renew_before_daysinteger
    • validation_methodstring
    • key_typestring
    • is_customboolean
    • custom_ca_namestring | null
    • serial_numberstring | null
    • fingerprint_sha256string | null
    • public_key_pin_sha256string | null
    • issuerstring | null
    • signature_algorithmstring | null
    • issued_atstring | null (date-time)
    • expires_atstring | null (date-time)
    • next_renewal_atstring | null (date-time)
    • last_renewal_atstring | null (date-time)
    • deployed_atstring | null (date-time)
    • renewal_failuresinteger
    • last_errorstring | null
    • notify_emailstring | null
    • notify_webhookstring | null

      Scheme and host only (scheme://host/***); the full URL is never returned.

    • notify_before_expiryinteger[]
    • ct_log_monitoredboolean
    • deployed_toarray | object | null
    • tagsstring[]
    • created_atstring (date-time)
    • updated_atstring (date-time)
  • 400Error
  • 401Error
  • 403Genesis scope missing, or 403 RELAYS_NOT_PROVISIONED: the project has no Relays account yet (an owner or admin opens Relays once)
  • 409Error
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/relays/certificates" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "common_name": "string"
  }'

Get a certificate with its validation challenges and recent events

GET/v1/relays/certificates/{certId}

relays:readTested with an API keyrelays_getCertificate

Requires Genesis scope relays:read; local scope certificates:read. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED until an owner or admin opens Relays). Never returns the certificate PEM or private key (see downloadCertificate).

Parameters

  • certIdpath · stringrequired

Responses

  • 200Certificate
    Response fields
    • idstring (uuid)
    • tenant_idstring
    • domain_idinteger | null
    • common_namestring
    • san_domainsstring[]
    • cert_typestring
    • providerstring
    • status"pending" | "validating" | "issued" | "expired" | "revoked" | "failed"
    • auto_renewboolean
    • renew_before_daysinteger
    • validation_methodstring
    • key_typestring
    • is_customboolean
    • custom_ca_namestring | null
    • serial_numberstring | null
    • fingerprint_sha256string | null
    • public_key_pin_sha256string | null
    • issuerstring | null
    • signature_algorithmstring | null
    • issued_atstring | null (date-time)
    • expires_atstring | null (date-time)
    • next_renewal_atstring | null (date-time)
    • last_renewal_atstring | null (date-time)
    • deployed_atstring | null (date-time)
    • renewal_failuresinteger
    • last_errorstring | null
    • notify_emailstring | null
    • notify_webhookstring | null

      Scheme and host only (scheme://host/***); the full URL is never returned.

    • notify_before_expiryinteger[]
    • ct_log_monitoredboolean
    • deployed_toarray | object | null
    • tagsstring[]
    • created_atstring (date-time)
    • updated_atstring (date-time)
    • key_algorithmstring | null
    • validationobject
    • validation.methodstring
    • validation.statusstring | null
    • validation.challengesobject[]
    • validation.challenges[].[].domainstring
    • validation.challenges[].[].statusstring
    • validation.challenges[].[].challenge_typestring
    • validation.challenges[].[].dns_recordobject | null
    • validation.challenges[].[].dns_record.namestring
    • validation.challenges[].[].dns_record.typestring
    • validation.challenges[].[].dns_record.valuestring
    • validation.challenges[].[].http_challengeobject | null
    • validation.challenges[].[].http_challenge.pathstring
    • validation.challenges[].[].http_challenge.contentstring
    • validation.challenges[].[].errorstring | null
    • validation.challenges[].[].last_attemptstring | null (date-time)
    • validation.challenges[].[].attemptsinteger
    • recent_eventsobject[]
    • recent_events[].[].typestring
    • recent_events[].[].dataobject

      Any webhook URL in the event data is shown as scheme and host only (scheme://host/***).

    • recent_events[].[].timestampstring (date-time)
    • history_countinteger
  • 400Error
  • 401Error
  • 403Genesis scope missing, or 403 RELAYS_NOT_PROVISIONED: the project has no Relays account yet (an owner or admin opens Relays once)
  • 404Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/certificates/$CERT_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Delete a certificate and its private key

DELETE/v1/relays/certificates/{certId}

relays:writeTested with an API keyrelays_deleteCertificate

Requires Genesis scope relays:write; local scope certificates:delete (distinct from certificates:write). Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED until an owner or admin opens Relays). An issued certificate is archived to its history first. Through Genesis this does not revoke at the certificate authority: writes take no query, and the receiver answers 400 to a Genesis delete that carries one (such as revoke=true). 409 while issuance is in progress.

Parameters

  • certIdpath · stringrequired

Responses

  • 204Deleted
  • 400Error
  • 401Error
  • 403Genesis scope missing, or 403 RELAYS_NOT_PROVISIONED: the project has no Relays account yet (an owner or admin opens Relays once)
  • 404Error
  • 409Error
  • 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/relays/certificates/$CERT_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Update renewal, notification, CT monitoring and tag settings

PATCH/v1/relays/certificates/{certId}

relays:writeTested with an API keyrelays_updateCertificate

Requires Genesis scope relays:write; local scope certificates:write. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED until an owner or admin opens Relays).

Parameters

  • certIdpath · stringrequired

Request body application/json

  • auto_renewboolean
  • renew_before_daysnumber

    min 7 · max 90

  • notify_emailstring | null (email)
  • notify_webhookstring | null (uri)
  • notify_before_expirynumber[]
  • ct_log_monitoredboolean
  • tagsstring[]

Responses

  • 200Updated certificate (no challenges or events)
    Response fields
    • idstring (uuid)
    • tenant_idstring
    • domain_idinteger | null
    • common_namestring
    • san_domainsstring[]
    • cert_typestring
    • providerstring
    • status"pending" | "validating" | "issued" | "expired" | "revoked" | "failed"
    • auto_renewboolean
    • renew_before_daysinteger
    • validation_methodstring
    • key_typestring
    • is_customboolean
    • custom_ca_namestring | null
    • serial_numberstring | null
    • fingerprint_sha256string | null
    • public_key_pin_sha256string | null
    • issuerstring | null
    • signature_algorithmstring | null
    • issued_atstring | null (date-time)
    • expires_atstring | null (date-time)
    • next_renewal_atstring | null (date-time)
    • last_renewal_atstring | null (date-time)
    • deployed_atstring | null (date-time)
    • renewal_failuresinteger
    • last_errorstring | null
    • notify_emailstring | null
    • notify_webhookstring | null

      Scheme and host only (scheme://host/***); the full URL is never returned.

    • notify_before_expiryinteger[]
    • ct_log_monitoredboolean
    • deployed_toarray | object | null
    • tagsstring[]
    • created_atstring (date-time)
    • updated_atstring (date-time)
    • key_algorithmstring | null
    • validationobject
    • validation.methodstring
    • validation.statusstring | null
    • validation.challengesobject[]
    • validation.challenges[].[].domainstring
    • validation.challenges[].[].statusstring
    • validation.challenges[].[].challenge_typestring
    • validation.challenges[].[].dns_recordobject | null
    • validation.challenges[].[].dns_record.namestring
    • validation.challenges[].[].dns_record.typestring
    • validation.challenges[].[].dns_record.valuestring
    • validation.challenges[].[].http_challengeobject | null
    • validation.challenges[].[].http_challenge.pathstring
    • validation.challenges[].[].http_challenge.contentstring
    • validation.challenges[].[].errorstring | null
    • validation.challenges[].[].last_attemptstring | null (date-time)
    • validation.challenges[].[].attemptsinteger
    • recent_eventsobject[]
    • recent_events[].[].typestring
    • recent_events[].[].dataobject

      Any webhook URL in the event data is shown as scheme and host only (scheme://host/***).

    • recent_events[].[].timestampstring (date-time)
    • history_countinteger
  • 400Error
  • 401Error
  • 403Genesis scope missing, or 403 RELAYS_NOT_PROVISIONED: the project has no Relays account yet (an owner or admin opens Relays once)
  • 404Error
  • 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/relays/certificates/$CERT_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

List Certificate Transparency monitors

GET/v1/relays/certificates/ct-monitors

relays:readTested with an API keyrelays_listCtMonitors

Requires Genesis scope relays:read; local scope certificates:read. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED until an owner or admin opens Relays). Alert webhook URLs are shown as scheme and host only (scheme://host/***).

Responses

  • 200Monitors
    Response fields
    • monitorsobject[]
    • monitors[].[].idstring (uuid)
    • monitors[].[].tenant_idstring
    • monitors[].[].domain_patternstring
    • monitors[].[].include_subdomainsboolean
    • monitors[].[].alert_on_any_issuanceboolean
    • monitors[].[].alert_on_unknown_caboolean
    • monitors[].[].allowed_casstring[]
    • monitors[].[].alert_emailstring | null
    • monitors[].[].alert_webhookstring | null

      Scheme and host only (scheme://host/***); the full URL is never returned.

    • monitors[].[].alert_slack_webhookstring | null

      Scheme and host only (scheme://host/***); the full URL is never returned.

    • monitors[].[].last_check_atstring | null (date-time)
    • monitors[].[].certificates_foundinteger
    • monitors[].[].alerts_sentinteger
    • monitors[].[].enabledboolean
    • monitors[].[].created_atstring (date-time)
    • monitors[].[].updated_atstring (date-time)
    • totalinteger
  • 401Error
  • 403Genesis scope missing, or 403 RELAYS_NOT_PROVISIONED: the project has no Relays account yet (an owner or admin opens Relays once)
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/certificates/ct-monitors" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Create a Certificate Transparency monitor for a domain pattern

POST/v1/relays/certificates/ct-monitors

relays:writeTested with an API keyrelays_createCtMonitor

Requires Genesis scope relays:write; local scope certificates:write. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED until an owner or admin opens Relays). 400 if a monitor for the same pattern exists.

Request body application/json

  • domain_patternstringrequired

    Domain or *.domain max length 253

  • include_subdomainsboolean

    default true

  • alert_on_any_issuanceboolean

    default false

  • alert_on_unknown_caboolean

    default true

  • allowed_casstring[]

    default []

  • alert_emailstring (email)
  • alert_webhookstring (uri)

    An https URL on a public host. Other URLs (http, private or internal addresses, credentials in the URL) are refused with 400.

  • alert_slack_webhookstring (uri)

    An https URL on a public host. Other URLs (http, private or internal addresses, credentials in the URL) are refused with 400.

Responses

  • 201Created
    Response fields
    • idstring (uuid)
    • tenant_idstring
    • domain_patternstring
    • include_subdomainsboolean
    • alert_on_any_issuanceboolean
    • alert_on_unknown_caboolean
    • allowed_casstring[]
    • alert_emailstring | null
    • alert_webhookstring | null

      Scheme and host only (scheme://host/***); the full URL is never returned.

    • alert_slack_webhookstring | null

      Scheme and host only (scheme://host/***); the full URL is never returned.

    • last_check_atstring | null (date-time)
    • certificates_foundinteger
    • alerts_sentinteger
    • enabledboolean
    • created_atstring (date-time)
    • updated_atstring (date-time)
  • 400Error
  • 401Error
  • 403Genesis scope missing, or 403 RELAYS_NOT_PROVISIONED: the project has no Relays account yet (an owner or admin opens Relays once)
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/relays/certificates/ct-monitors" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "domain_pattern": "string"
  }'

Get a CT monitor with the log entries it found

GET/v1/relays/certificates/ct-monitors/{monitorId}

relays:readTested with an API keyrelays_getCtMonitor

Requires Genesis scope relays:read; local scope certificates:read. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED until an owner or admin opens Relays). Non-numeric or out-of-range page and limit fall back to their defaults or clamp.

Parameters

  • monitorIdpath · stringrequired
  • pagequery · integer
  • limitquery · integer

Responses

  • 200Monitor with entries
    Response fields
    • idstring (uuid)
    • tenant_idstring
    • domain_patternstring
    • include_subdomainsboolean
    • alert_on_any_issuanceboolean
    • alert_on_unknown_caboolean
    • allowed_casstring[]
    • alert_emailstring | null
    • alert_webhookstring | null

      Scheme and host only (scheme://host/***); the full URL is never returned.

    • alert_slack_webhookstring | null

      Scheme and host only (scheme://host/***); the full URL is never returned.

    • last_check_atstring | null (date-time)
    • certificates_foundinteger
    • alerts_sentinteger
    • enabledboolean
    • created_atstring (date-time)
    • updated_atstring (date-time)
    • entriesobject[]
    • entries[].[].idstring | integer
    • entries[].[].log_namestring
    • entries[].[].log_urlstring
    • entries[].[].log_indexinteger | string
    • entries[].[].common_namestring | null
    • entries[].[].san_domainsstring[]
    • entries[].[].issuerstring | null
    • entries[].[].serial_numberstring | null
    • entries[].[].not_beforestring (date-time)
    • entries[].[].not_afterstring (date-time)
    • entries[].[].is_known_certboolean
    • entries[].[].known_cert_idstring | null
    • entries[].[].is_from_allowed_caboolean | null
    • entries[].[].alert_sentboolean
    • entries[].[].alert_acknowledgedboolean
    • entries[].[].discovered_atstring (date-time)
    • entries_pageinteger
    • entries_limitinteger
  • 400Error
  • 401Error
  • 403Genesis scope missing, or 403 RELAYS_NOT_PROVISIONED: the project has no Relays account yet (an owner or admin opens Relays once)
  • 404Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/certificates/ct-monitors/$MONITOR_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Delete a CT monitor and its log entries

DELETE/v1/relays/certificates/ct-monitors/{monitorId}

relays:writeTested with an API keyrelays_deleteCtMonitor

Requires Genesis scope relays:write; local scope certificates:write (not certificates:delete). Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED until an owner or admin opens Relays). Returns 200 with a body, not 204.

Parameters

  • monitorIdpath · stringrequired

Responses

  • 200Deleted
    Response fields
    • messagestring
    • idstring (uuid)
  • 400Error
  • 401Error
  • 403Genesis scope missing, or 403 RELAYS_NOT_PROVISIONED: the project has no Relays account yet (an owner or admin opens Relays once)
  • 404Error
  • 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/relays/certificates/ct-monitors/$MONITOR_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Update a CT monitor (the domain pattern cannot change)

PATCH/v1/relays/certificates/ct-monitors/{monitorId}

relays:writeTested with an API keyrelays_updateCtMonitor

Requires Genesis scope relays:write; local scope certificates:write. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED until an owner or admin opens Relays).

Parameters

  • monitorIdpath · stringrequired

Request body application/json

  • include_subdomainsboolean
  • alert_on_any_issuanceboolean
  • alert_on_unknown_caboolean
  • allowed_casstring[]
  • alert_emailstring | null (email)
  • alert_webhookstring | null (uri)

    An https URL on a public host. Other URLs (http, private or internal addresses, credentials in the URL) are refused with 400.

  • alert_slack_webhookstring | null (uri)

    An https URL on a public host. Other URLs (http, private or internal addresses, credentials in the URL) are refused with 400.

  • enabledboolean

Responses

  • 200Updated
    Response fields
    • idstring (uuid)
    • tenant_idstring
    • domain_patternstring
    • include_subdomainsboolean
    • alert_on_any_issuanceboolean
    • alert_on_unknown_caboolean
    • allowed_casstring[]
    • alert_emailstring | null
    • alert_webhookstring | null

      Scheme and host only (scheme://host/***); the full URL is never returned.

    • alert_slack_webhookstring | null

      Scheme and host only (scheme://host/***); the full URL is never returned.

    • last_check_atstring | null (date-time)
    • certificates_foundinteger
    • alerts_sentinteger
    • enabledboolean
    • created_atstring (date-time)
    • updated_atstring (date-time)
  • 400Error
  • 401Error
  • 403Genesis scope missing, or 403 RELAYS_NOT_PROVISIONED: the project has no Relays account yet (an owner or admin opens Relays once)
  • 404Error
  • 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/relays/certificates/ct-monitors/$MONITOR_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

List the tenant's zones with their Total TLS status

GET/v1/relays/certificates/total-tls

relays:readTested with an API keyrelays_listTotalTlsZones

Requires Genesis scope relays:read; local scope certificates:read. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED until an owner or admin opens Relays).

Responses

  • 200Zones
    Response fields
    • zonesobject[]
    • zones[].[].domain_idinteger
    • zones[].[].domain_namestring
    • zones[].[].total_tls_enabledboolean
    • zones[].[].addressable_recordsinteger
    • zones[].[].active_certificatesinteger
  • 401Error
  • 403Genesis scope missing, or 403 RELAYS_NOT_PROVISIONED: the project has no Relays account yet (an owner or admin opens Relays once)
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/certificates/total-tls" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Enable Total TLS for a zone (request a certificate for every uncovered A/AAAA name)

POST/v1/relays/certificates/total-tls

relays:writeTested with an API keyrelays_enableTotalTls

Requires Genesis scope relays:write; local scope certificates:write. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED until an owner or admin opens Relays). Creates one pending certificate per uncovered A/AAAA name in the zone and asks relays-certs to issue each one (many certificate authority requests).

Request body application/json

  • domain_idintegerrequired

    min 1

  • provider"letsencrypt" | "letsencrypt_staging" | "zerossl" | "buypass"

    default "letsencrypt"

  • key_type"rsa-2048" | "rsa-4096" | "ecdsa-p256" | "ecdsa-p384"

    default "ecdsa-p256"

  • exclude_patternsstring[]

    default []

Responses

  • 202Scan result
    Response fields
    • records_scannedinteger
    • certificates_issuedinteger
    • already_coveredinteger
    • excludedinteger
    • detailsobject[]
    • details[].[].domainstring
    • details[].[].action"issued" | "already_covered" | "excluded"
    • details[].[].certificate_idstring (uuid)
  • 400Error
  • 401Error
  • 403Genesis scope missing, or 403 RELAYS_NOT_PROVISIONED: the project has no Relays account yet (an owner or admin opens Relays once)
  • 404Error
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/relays/certificates/total-tls" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "domain_id": 1
  }'

Disable Total TLS for a zone (stops automatic renewal; revokes nothing)

DELETE/v1/relays/certificates/total-tls/{domainId}

relays:writeTested with an API keyrelays_disableTotalTls

Requires Genesis scope relays:write; local scope certificates:write (not certificates:delete). Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED until an owner or admin opens Relays). Removes the total-tls tag and auto-renew from the zone's Total TLS certificates; certificates are neither revoked nor deleted.

Parameters

  • domainIdpath · stringrequired

Responses

  • 200Disabled
    Response fields
    • messagestring
    • domain_idinteger
  • 400Error
  • 401Error
  • 403Genesis scope missing, or 403 RELAYS_NOT_PROVISIONED: the project has no Relays account yet (an owner or admin opens Relays once)
  • 404Error
  • 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/relays/certificates/total-tls/$DOMAIN_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Upload your own certificate (key must match, chain must sign it)

POST/v1/relays/certificates/upload

relays:writerelays_uploadCertificate

Genesis scope: relays:write. Local scope: certificates:write. The private key is sealed at rest; download returns it to relays:write. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Request body application/json

  • certificate_pemstring
  • private_key_pemstring
  • chain_pemstring
  • ca_namestring
  • auto_renewboolean
  • notify_emailstring
  • tagsstring[]

Responses

  • 201Uploaded certificate
    Response fields

    A JSON object.

  • 400Error
  • 404Error
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/relays/certificates/upload" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Download

Download the certificate, chain and private key

GET/v1/relays/certificates/{certId}/download

relays:readTested with an API keyrelays_downloadCertificate

Requires Genesis scope relays:write (this read returns the private key); local scope certificates:read. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED until an owner or admin opens Relays). The certificate must be issued. format=pkcs12 needs the export password in the X-Certificate-Password header; a password query parameter is refused with 400 on the Genesis lane, so the password never lands in URLs or access logs. Every download is recorded as a certificate event and in the audit log. Responses are Cache-Control no-store.

Parameters

  • certIdpath · stringrequired
  • formatquery · "pem" | "pkcs12" | "fullchain" | "separate"
  • X-Certificate-Passwordheader · string

    PKCS12 export password; required when format=pkcs12

Responses

  • 200Material (shape depends on format)
    Response fields
    • certificatestring
    • private_keystring
    • chainstring
    • fullchainstring
    • pkcs12_base64string
    • filenamestring
    • size_bytesinteger
    • common_namestring
    • expires_atstring (date-time)
    • filesobject
  • 400Error
  • 401Error
  • 403Genesis scope missing, or 403 RELAYS_NOT_PROVISIONED: the project has no Relays account yet (an owner or admin opens Relays once)
  • 404Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/certificates/$CERT_ID/download" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Events

List the events recorded for a certificate

GET/v1/relays/certificates/{certId}/events

relays:readTested with an API keyrelays_listCertificateEvents

Requires Genesis scope relays:read; local scope certificates:read. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED until an owner or admin opens Relays).

Parameters

  • certIdpath · stringrequired
  • pagequery · integer
  • limitquery · integer
  • event_typequery · string

    For example requested, updated, downloaded, renewal_requested

  • sincequery · string (date-time)

    ISO date-time; an invalid value is ignored

Responses

  • 200Events
    Response fields
    • certificate_idstring (uuid)
    • common_namestring
    • eventsobject[]
    • events[].[].idstring
    • events[].[].event_typestring
    • events[].[].event_dataobject

      Any webhook URL in the event data is shown as scheme and host only (scheme://host/***).

    • events[].[].created_atstring (date-time)
    • metaobject
    • meta.pageinteger
    • meta.per_pageinteger
    • meta.totalinteger
    • meta.total_pagesinteger
  • 400Error
  • 401Error
  • 403Genesis scope missing, or 403 RELAYS_NOT_PROVISIONED: the project has no Relays account yet (an owner or admin opens Relays once)
  • 404Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/certificates/$CERT_ID/events" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Poll the account's platform events (zone, record, certificate, monitor, incident and domain changes)

GET/v1/relays/events

relays:readrelays_listEvents

Genesis scope relays:read. Local scope analytics:read. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED). Through Genesis the event stream answers one JSON snapshot, never a stream. Without last_event_id: the newest limit events, oldest first. With last_event_id: the events after it, oldest first, at most limit, and meta.has_more when more are waiting. Poll by passing meta.last_event_id back. A last_event_id that is not one of the account's events answers 404.

Parameters

  • typesquery · string

    Comma-separated event types (default all)

  • last_event_idquery · string (uuid)

    Cursor: the previous meta.last_event_id

  • limitquery · integer

    Default 50, clamped 1..100

Responses

  • 200Snapshot
    Response fields
    • eventsobject[]required
    • events[].[].idstring (uuid)required
    • events[].[].typestringrequired

      For example zone.created, record.updated, certificate.issued, monitor.down, incident.created, domain.renewed

    • events[].[].timestampstring (date-time)required
    • events[].[].resource_typestringrequired
    • events[].[].resource_idstringrequired
    • events[].[].tenant_idstringrequired
    • events[].[].dataobjectrequired
    • metaobjectrequired
    • meta.limitintegerrequired
    • meta.has_morebooleanrequired

      More events after last_event_id are waiting (cursor mode only)

    • meta.last_event_idstring | nullrequired

      Pass back as last_event_id to read the events after it

    • filtersobjectrequired
    • filters.types"all" | string[]
  • 400Error
  • 401Error
  • 404Error
  • 500Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/events" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

History

List the archived previous versions of a certificate

GET/v1/relays/certificates/{certId}/history

relays:readTested with an API keyrelays_listCertificateHistory

Requires Genesis scope relays:read; local scope certificates:read. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED until an owner or admin opens Relays). Metadata only; no PEM.

Parameters

  • certIdpath · stringrequired
  • pagequery · integer
  • limitquery · integer

Responses

  • 200History
    Response fields
    • certificate_idstring (uuid)
    • common_namestring
    • historyobject[]
    • history[].[].idstring | integer
    • history[].[].common_namestring
    • history[].[].san_domainsstring[]
    • history[].[].serial_numberstring | null
    • history[].[].fingerprint_sha256string | null
    • history[].[].issuerstring | null
    • history[].[].issued_atstring (date-time)
    • history[].[].expires_atstring (date-time)
    • history[].[].replaced_reasonstring | null
    • history[].[].replaced_atstring (date-time)
    • history[].[].replaced_by_user_idstring | null
    • metaobject
    • meta.pageinteger
    • meta.per_pageinteger
    • meta.totalinteger
    • meta.total_pagesinteger
  • 400Error
  • 401Error
  • 403Genesis scope missing, or 403 RELAYS_NOT_PROVISIONED: the project has no Relays account yet (an owner or admin opens Relays once)
  • 404Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/certificates/$CERT_ID/history" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Renew

Renew (re-issue) an issued, failed or expired certificate now

POST/v1/relays/certificates/{certId}/renew

relays:writeTested with an API keyrelays_renewCertificate

Requires Genesis scope relays:write; local scope certificates:write. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED until an owner or admin opens Relays). Starts a new ACME issuance at the certificate authority. Custom certificates cannot be renewed. 503 if relays-certs does not confirm the renewal.

Parameters

  • certIdpath · stringrequired

Responses

  • 202Renewal started
    Response fields
    • messagestring
    • certificate_idstring (uuid)
    • statusstring
    • common_namestring
  • 400Error
  • 401Error
  • 403Genesis scope missing, or 403 RELAYS_NOT_PROVISIONED: the project has no Relays account yet (an owner or admin opens Relays once)
  • 404Error
  • 503Error
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/relays/certificates/$CERT_ID/renew" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Dns provider connections

List external DNS provider connections

GET/v1/relays/dns-provider-connections

relays:readTested with an API keyrelays_listDnsProviderConnections

Genesis scope relays:read; local scope dns:read. Acts on the selected project's existing Relays account and never provisions it. Stored credentials are never returned.

Parameters

  • include_inactivequery · boolean

    true includes revoked connections

Responses

  • 200Connections
    Response fields
    • connectionsobject[]
    • connections[].[].idstring (uuid)
    • connections[].[].providerobject
    • connections[].[].labelstring
    • connections[].[].accountRefstring | null
    • connections[].[].authModelstring
    • connections[].[].statusstring

      pending_validation, active, manual_bridge, revoked

    • connections[].[].scopesstring[]
    • connections[].[].capabilitiesSnapshotobject
    • connections[].[].metadataobject

      Connection metadata. credentialRedacted lists the stored credential's key names, each masked as ******** (no character of any value).

    • connections[].[].createdAtstring (date-time)
    • connections[].[].updatedAtstring (date-time)
    • connections[].[].lastValidatedAtstring | null (date-time)
    • connections[].[].lastSyncAtstring | null (date-time)
    • metaobject
    • meta.totalinteger
  • 401Error
  • 403Error
  • 500Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/dns-provider-connections" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Connect an external DNS provider account with its API credentials

POST/v1/relays/dns-provider-connections

relays:writeTested with an API keyrelays_createDnsProviderConnection

Genesis scope relays:write; local scope dns:write. Acts on the selected project's existing Relays account and never provisions it. The body carries the provider account's API credentials, which are sealed at rest and never returned. For providers whose connection may name its API base or host (OVHcloud apiBase/endpoint, DNS Made Easy apiBase, Akamai host) the value must be that provider's own https API host; anything else is refused with 400 before any request is made. The connection starts as pending_validation; validate it next.

Request body application/json

  • providerstringrequired

    Catalog slug or alias min length 1

  • labelstringrequired

    min length 1 · max length 255

  • account_refstring

    max length 255

  • auth_modelstringrequired

    Must be one of the provider authModels min length 1 · max length 64

  • credentialsobjectrequired

    Provider secrets; sealed at rest

  • metadataobject

Responses

  • 201Created
    Response fields
    • connectionobject
    • connection.idstring (uuid)
    • connection.providerobject
    • connection.labelstring
    • connection.accountRefstring | null
    • connection.authModelstring
    • connection.statusstring

      pending_validation, active, manual_bridge, revoked

    • connection.scopesstring[]
    • connection.capabilitiesSnapshotobject
    • connection.metadataobject

      Connection metadata. credentialRedacted lists the stored credential's key names, each masked as ******** (no character of any value).

    • connection.createdAtstring (date-time)
    • connection.updatedAtstring (date-time)
    • connection.lastValidatedAtstring | null (date-time)
    • connection.lastSyncAtstring | null (date-time)
  • 400Invalid body, unknown provider, unsupported auth model, an API endpoint off the provider's hosts, or duplicate label
  • 401Error
  • 403Error
  • 500Error
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/relays/dns-provider-connections" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "provider": "string",
    "label": "string",
    "auth_model": "string",
    "credentials": {}
  }'

Disconnect a provider connection and remove its imported zones

DELETE/v1/relays/dns-provider-connections/{connectionId}

relays:writeTested with an API keyrelays_deleteDnsProviderConnection

Genesis scope relays:write; local scope dns:write. Acts on the selected project's existing Relays account and never provisions it. The stored credentials are destroyed; the provider account itself is untouched. Takes no body.

Parameters

  • connectionIdpath · stringrequired

Responses

  • 200Disconnected
    Response fields
    • connectionobject
    • connection.idstring (uuid)
    • connection.providerobject
    • connection.labelstring
    • connection.accountRefstring | null
    • connection.authModelstring
    • connection.statusstring

      pending_validation, active, manual_bridge, revoked

    • connection.scopesstring[]
    • connection.capabilitiesSnapshotobject
    • connection.metadataobject

      Connection metadata. credentialRedacted lists the stored credential's key names, each masked as ******** (no character of any value).

    • connection.createdAtstring (date-time)
    • connection.updatedAtstring (date-time)
    • connection.lastValidatedAtstring | null (date-time)
    • connection.lastSyncAtstring | null (date-time)
    • disconnectedboolean
  • 401Error
  • 403Error
  • 404Error
  • 500Error
  • 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/relays/dns-provider-connections/$CONNECTION_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Sync

Import the provider's zone list for a connection

POST/v1/relays/dns-provider-connections/{connectionId}/sync

relays:writeTested with an API keyrelays_syncDnsProviderConnection

Genesis scope relays:write; local scope dns:write. Acts on the selected project's existing Relays account and never provisions it. Reads the provider; changes nothing there. Zones no longer at the provider are removed from the imported list. Send an empty JSON object or no body.

Parameters

  • connectionIdpath · stringrequired

Responses

  • 200Synced
    Response fields
    • syncedinteger
    • removedinteger
    • zonesobject[]
    • zones[].[].idstring
    • zones[].[].zoneNamestring
    • zones[].[].providerZoneIdstring | null
    • zones[].[].statusstring
    • zones[].[].nameserversstring[]
    • zones[].[].dnssecStatusstring
    • zones[].[].dsRecordsany[]
    • zones[].[].recordCountinteger
    • zones[].[].metadataobject
    • zones[].[].lastSyncedAtstring | null (date-time)
    • zones[].[].createdAtstring (date-time)
    • zones[].[].updatedAtstring (date-time)
  • 401Error
  • 403Error
  • 404Error
  • 500Provider credential error
  • 501No runtime implemented for this provider
  • 502Provider API error
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/relays/dns-provider-connections/$CONNECTION_ID/sync" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Zones

List the zones imported for a provider connection

GET/v1/relays/dns-provider-connections/{connectionId}/zones

relays:readTested with an API keyrelays_listDnsProviderZones

Genesis scope relays:read; local scope dns:read. Acts on the selected project's existing Relays account and never provisions it. Empty until a sync has run.

Parameters

  • connectionIdpath · stringrequired

Responses

  • 200Zones
    Response fields
    • connectionobject
    • zonesobject[]
    • zones[].[].idstring
    • zones[].[].zoneNamestring
    • zones[].[].providerZoneIdstring | null
    • zones[].[].statusstring
    • zones[].[].nameserversstring[]
    • zones[].[].dnssecStatusstring
    • zones[].[].dsRecordsany[]
    • zones[].[].recordCountinteger
    • zones[].[].metadataobject
    • zones[].[].lastSyncedAtstring | null (date-time)
    • zones[].[].createdAtstring (date-time)
    • zones[].[].updatedAtstring (date-time)
    • metaobject
    • meta.totalinteger
  • 401Error
  • 403Error
  • 404Error
  • 500Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/dns-provider-connections/$CONNECTION_ID/zones" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Apply record changes to a zone at the external provider

POST/v1/relays/dns-provider-connections/{connectionId}/zones/{zone}/apply

relays:writeTested with an API keyrelays_applyDnsProviderZoneChanges

Genesis scope relays:write; local scope dns:write. Acts on the selected project's existing Relays account and never provisions it. Changes live DNS at the provider. The plan is computed from the current records you send, so send the records listDnsProviderZoneRecords returned. A plan with blockers answers 409 and applies nothing; providers that replace the whole zone need confirmFullZoneReplacement.

Parameters

  • zonepath · stringrequired
  • connectionIdpath · stringrequired

Request body application/json

  • currentobject[]required
  • current[].[].idstring
  • current[].[].providerRecordIdstring
  • current[].[].namestringrequired

    min length 1

  • current[].[].typestringrequired

    min length 1

  • current[].[].contentstringrequired

    min length 1

  • current[].[].ttlinteger

    min 1

  • current[].[].priorityinteger
  • current[].[].priointeger
  • current[].[].proxiedboolean
  • current[].[].commentstring
  • current[].[].tagsstring[]
  • current[].[].disabledboolean
  • desiredobject[]required
  • desired[].[].idstring
  • desired[].[].providerRecordIdstring
  • desired[].[].namestringrequired

    min length 1

  • desired[].[].typestringrequired

    min length 1

  • desired[].[].contentstringrequired

    min length 1

  • desired[].[].ttlinteger

    min 1

  • desired[].[].priorityinteger
  • desired[].[].priointeger
  • desired[].[].proxiedboolean
  • desired[].[].commentstring
  • desired[].[].tagsstring[]
  • desired[].[].disabledboolean
  • confirmFullZoneReplacementboolean

Responses

  • 200Applied
    Response fields
    • planobject
    • plan.idstring
    • plan.mode"dry_run"
    • plan.zonestring
    • plan.providerobject
    • plan.summaryobject
    • plan.summary.createsinteger
    • plan.summary.updatesinteger
    • plan.summary.deletesinteger
    • plan.summary.unchangedinteger
    • plan.summary.blockedinteger
    • plan.changesobject[]
    • plan.changes[].[].action"create" | "update" | "delete" | "unchanged"
    • plan.changes[].[].keystring
    • plan.changes[].[].currentobject
    • plan.changes[].[].current.idstring
    • plan.changes[].[].current.providerRecordIdstring
    • plan.changes[].[].current.namestringrequired

      min length 1

    • plan.changes[].[].current.typestringrequired

      min length 1

    • plan.changes[].[].current.contentstringrequired

      min length 1

    • plan.changes[].[].current.ttlinteger

      min 1

    • plan.changes[].[].current.priorityinteger
    • plan.changes[].[].current.priointeger
    • plan.changes[].[].current.proxiedboolean
    • plan.changes[].[].current.commentstring
    • plan.changes[].[].current.tagsstring[]
    • plan.changes[].[].current.disabledboolean
    • plan.changes[].[].desiredobject
    • plan.changes[].[].desired.idstring
    • plan.changes[].[].desired.providerRecordIdstring
    • plan.changes[].[].desired.namestringrequired

      min length 1

    • plan.changes[].[].desired.typestringrequired

      min length 1

    • plan.changes[].[].desired.contentstringrequired

      min length 1

    • plan.changes[].[].desired.ttlinteger

      min 1

    • plan.changes[].[].desired.priorityinteger
    • plan.changes[].[].desired.priointeger
    • plan.changes[].[].desired.proxiedboolean
    • plan.changes[].[].desired.commentstring
    • plan.changes[].[].desired.tagsstring[]
    • plan.changes[].[].desired.disabledboolean
    • plan.changes[].[].warningsstring[]
    • plan.blockersobject[]
    • plan.blockers[].[].code"FULL_ZONE_REPLACEMENT_REQUIRED" | "UNKNOWN_PROVIDER"
    • plan.blockers[].[].messagestring
    • plan.requiresRollbackSnapshotboolean
    • plan.capabilityWarningsstring[]
    • resultobject
    • result.appliedinteger
    • result.providerRequestIdstring
    • result.rollbackSnapshotIdstring
    • result.metadataobject
  • 400Error
  • 401Error
  • 403Error
  • 404Error
  • 409Plan has blockers
  • 500Provider credential error
  • 501No runtime implemented for this provider
  • 502Provider API error
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/relays/dns-provider-connections/$CONNECTION_ID/zones/$ZONE/apply" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "current": [],
    "desired": []
  }'

List a zone's live records at the external provider

GET/v1/relays/dns-provider-connections/{connectionId}/zones/{zone}/records

relays:readTested with an API keyrelays_listDnsProviderZoneRecords

Genesis scope relays:read; local scope dns:read. Acts on the selected project's existing Relays account and never provisions it. Calls the provider's API.

Parameters

  • zonepath · stringrequired
  • connectionIdpath · stringrequired

Responses

  • 200Records
    Response fields
    • connectionobject
    • zoneobject
    • recordsobject[]
    • records[].[].idstring
    • records[].[].providerRecordIdstring
    • records[].[].namestringrequired

      min length 1

    • records[].[].typestringrequired

      min length 1

    • records[].[].contentstringrequired

      min length 1

    • records[].[].ttlinteger

      min 1

    • records[].[].priorityinteger
    • records[].[].priointeger
    • records[].[].proxiedboolean
    • records[].[].commentstring
    • records[].[].tagsstring[]
    • records[].[].disabledboolean
  • 400Error
  • 401Error
  • 403Error
  • 404Error
  • 500Provider credential error
  • 501No runtime implemented for this provider
  • 502Provider API error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/dns-provider-connections/$CONNECTION_ID/zones/$ZONE/records" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

List DNS zones for the tenant

GET/v1/relays/zones

relays:readTested with an API keyrelays_listZones

Parameters

  • pagequery · integer
  • limitquery · integer
  • searchquery · string

Responses

  • 200Zones
    Response fields
    • zonesobject[]
    • zones[].[].idinteger
    • zones[].[].namestring
    • zones[].[].type"NATIVE" | "MASTER" | "SLAVE"
    • zones[].[].record_countinteger
    • zones[].[].dnssec_enabledboolean
    • zones[].[].statusstring
    • zones[].[].serialinteger
    • zones[].[].nameserversstring[]
    • zones[].[].soaobject
    • zones[].[].created_atstring
    • zones[].[].updated_atstring
    • metaobject
    • meta.pageinteger
    • meta.per_pageinteger
    • meta.totalinteger
    • meta.total_pagesinteger
  • 401Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/zones" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Create a DNS zone

POST/v1/relays/zones

relays:writeTested with an API keyrelays_createZone

Requires relays:write. Acts on the selected project's existing Relays account; never provisions it (403 RELAYS_NOT_PROVISIONED until an owner or admin opens Relays).

Request body application/json

  • namestringrequired

    max length 253

  • type"NATIVE" | "MASTER" | "SLAVE"

    default "NATIVE"

  • create_default_recordsboolean

    default true

Responses

  • 201Created
    Response fields
    • idinteger
    • namestring
    • type"NATIVE" | "MASTER" | "SLAVE"
    • record_countinteger
    • dnssec_enabledboolean
    • statusstring
    • serialinteger
    • nameserversstring[]
    • soaobject
    • created_atstring
    • updated_atstring
  • 400Invalid body or zone already exists
  • 401Error
  • 403Error
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/relays/zones" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "string"
  }'

Get zone details

GET/v1/relays/zones/{zone}

relays:readTested with an API keyrelays_getZone

Parameters

  • zonepath · stringrequired

Responses

  • 200Zone
    Response fields
    • idinteger
    • namestring
    • type"NATIVE" | "MASTER" | "SLAVE"
    • record_countinteger
    • dnssec_enabledboolean
    • statusstring
    • serialinteger
    • nameserversstring[]
    • soaobject
    • created_atstring
    • updated_atstring
  • 404Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/zones/$ZONE" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Delete a zone and all its records

DELETE/v1/relays/zones/{zone}

relays:writeTested with an API keyrelays_deleteZone

Requires relays:write. Acts on the selected project's existing Relays account; never provisions it (403 RELAYS_NOT_PROVISIONED until an owner or admin opens Relays).

Parameters

  • zonepath · stringrequired

Responses

  • 200Deleted
    Response fields
    • successboolean
    • messagestring
  • 401Error
  • 403Error
  • 404Error
  • 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/relays/zones/$ZONE" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Update zone settings (type, SOA)

PATCH/v1/relays/zones/{zone}

relays:writeTested with an API keyrelays_updateZone

Requires relays:write. Acts on the selected project's existing Relays account; never provisions it (403 RELAYS_NOT_PROVISIONED until an owner or admin opens Relays).

Parameters

  • zonepath · stringrequired

Request body application/json

  • type"NATIVE" | "MASTER" | "SLAVE"
  • soaobject
  • soa.primary_nsstring
  • soa.hostmasterstring (email)
  • soa.refreshinteger

    min 60

  • soa.retryinteger

    min 60

  • soa.expireinteger

    min 3600

  • soa.ttlinteger

    min 60

Responses

  • 200Updated: id, name, type, updated_at
    Response fields
    • idinteger
    • namestring
    • type"NATIVE" | "MASTER" | "SLAVE"
    • record_countinteger
    • dnssec_enabledboolean
    • statusstring
    • serialinteger
    • nameserversstring[]
    • soaobject
    • created_atstring
    • updated_atstring
  • 400Error
  • 401Error
  • 403Error
  • 404Error
  • 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/relays/zones/$ZONE" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Dns providers

List the external DNS provider catalog

GET/v1/relays/dns-providers

relays:readTested with an API keyrelays_listDnsProviders

Genesis scope relays:read; local scope dns:read. Acts on the selected project's existing Relays account and never provisions it. The catalog is the same for every account; use a provider's slug and one of its authModels to create a connection.

Parameters

  • tierquery · 1 | 2 | 3
  • searchquery · string

Responses

  • 200Providers
    Response fields
    • providersobject[]
    • providers[].[].slugstring
    • providers[].[].namestring
    • providers[].[].aliasesstring[]
    • providers[].[].tier1 | 2 | 3
    • providers[].[].prioritystring
    • providers[].[].categorystring
    • providers[].[].badgeobject
    • providers[].[].authModelsstring[]
    • providers[].[].oauthStatus"yes" | "partial" | "no" | "unknown"
    • providers[].[].primaryOnboardingstring
    • providers[].[].dnsWritesstring
    • providers[].[].registrarActionsstring
    • providers[].[].capabilitiesobject
    • providers[].[].recordSemanticsobject
    • providers[].[].observabilityobject
    • providers[].[].migrationobject
    • providers[].[].capabilityWarningsstring[]
    • metaobject
    • meta.totalinteger
    • meta.catalog_totalinteger
  • 400Error
  • 401Error
  • 403Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/dns-providers" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Plan record changes between current and desired records (dry run)

POST/v1/relays/dns-providers/plan

relays:writeTested with an API keyrelays_planDnsProviderChanges

Genesis scope relays:write (every POST); local scope dns:write. Acts on the selected project's existing Relays account and never provisions it. Nothing is stored or sent to a provider.

Request body application/json

  • providerstringrequired

    min length 1

  • zonestringrequired

    min length 1

  • currentobject[]required
  • current[].[].idstring
  • current[].[].providerRecordIdstring
  • current[].[].namestringrequired

    min length 1

  • current[].[].typestringrequired

    min length 1

  • current[].[].contentstringrequired

    min length 1

  • current[].[].ttlinteger

    min 1

  • current[].[].priorityinteger
  • current[].[].priointeger
  • current[].[].proxiedboolean
  • current[].[].commentstring
  • current[].[].tagsstring[]
  • current[].[].disabledboolean
  • desiredobject[]required
  • desired[].[].idstring
  • desired[].[].providerRecordIdstring
  • desired[].[].namestringrequired

    min length 1

  • desired[].[].typestringrequired

    min length 1

  • desired[].[].contentstringrequired

    min length 1

  • desired[].[].ttlinteger

    min 1

  • desired[].[].priorityinteger
  • desired[].[].priointeger
  • desired[].[].proxiedboolean
  • desired[].[].commentstring
  • desired[].[].tagsstring[]
  • desired[].[].disabledboolean
  • confirmFullZoneReplacementboolean

Responses

  • 200Plan
    Response fields
    • planobject
    • plan.idstring
    • plan.mode"dry_run"
    • plan.zonestring
    • plan.providerobject
    • plan.summaryobject
    • plan.summary.createsinteger
    • plan.summary.updatesinteger
    • plan.summary.deletesinteger
    • plan.summary.unchangedinteger
    • plan.summary.blockedinteger
    • plan.changesobject[]
    • plan.changes[].[].action"create" | "update" | "delete" | "unchanged"
    • plan.changes[].[].keystring
    • plan.changes[].[].currentobject
    • plan.changes[].[].current.idstring
    • plan.changes[].[].current.providerRecordIdstring
    • plan.changes[].[].current.namestringrequired

      min length 1

    • plan.changes[].[].current.typestringrequired

      min length 1

    • plan.changes[].[].current.contentstringrequired

      min length 1

    • plan.changes[].[].current.ttlinteger

      min 1

    • plan.changes[].[].current.priorityinteger
    • plan.changes[].[].current.priointeger
    • plan.changes[].[].current.proxiedboolean
    • plan.changes[].[].current.commentstring
    • plan.changes[].[].current.tagsstring[]
    • plan.changes[].[].current.disabledboolean
    • plan.changes[].[].desiredobject
    • plan.changes[].[].desired.idstring
    • plan.changes[].[].desired.providerRecordIdstring
    • plan.changes[].[].desired.namestringrequired

      min length 1

    • plan.changes[].[].desired.typestringrequired

      min length 1

    • plan.changes[].[].desired.contentstringrequired

      min length 1

    • plan.changes[].[].desired.ttlinteger

      min 1

    • plan.changes[].[].desired.priorityinteger
    • plan.changes[].[].desired.priointeger
    • plan.changes[].[].desired.proxiedboolean
    • plan.changes[].[].desired.commentstring
    • plan.changes[].[].desired.tagsstring[]
    • plan.changes[].[].desired.disabledboolean
    • plan.changes[].[].warningsstring[]
    • plan.blockersobject[]
    • plan.blockers[].[].code"FULL_ZONE_REPLACEMENT_REQUIRED" | "UNKNOWN_PROVIDER"
    • plan.blockers[].[].messagestring
    • plan.requiresRollbackSnapshotboolean
    • plan.capabilityWarningsstring[]
  • 400Error
  • 401Error
  • 403Error
  • 500Error
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/relays/dns-providers/plan" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "provider": "string",
    "zone": "string",
    "current": [],
    "desired": []
  }'

Dns

Check whether a domain's public nameservers point at Relays

GET/v1/relays/dns/propagation

relays:readTested with an API keyrelays_checkDnsPropagation

Requires Genesis scope relays:read; relays-web checks local scope dns:read. Needs the selected project's existing Relays account (403 RELAYS_NOT_PROVISIONED until an owner or admin opens Relays). Looks up the domain's NS records on public resolvers and compares them with the Relays nameservers; any public domain can be checked.

Parameters

  • domainquery · stringrequired

    Domain to check, e.g. example.com

Responses

  • 200Nameserver delegation status
    Response fields
    • domainstring
    • status"pending" | "propagating" | "complete" | "error"
    • currentNameserversstring[]
    • expectedNameserversstring[]
    • matchCountinteger
    • totalExpectedinteger
    • percentagenumber
    • checkedAtstring
    • messagestring
  • 400Error
  • 401Error
  • 403Error
  • 500Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/dns/propagation?domain=$DOMAIN" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Look a name up from every global probe region

GET/v1/relays/dns/propagation/global

relays:readFailed with an API keyrelays_checkGlobalDnsPropagation

Requires Genesis scope relays:read; relays-web checks local scope dns:read. Needs the selected project's existing Relays account (403 RELAYS_NOT_PROVISIONED until an owner or admin opens Relays). Queries the record type from each Relays probe region in parallel (15 s per region) and summarises the answers; any public domain can be checked.

Parameters

  • domainquery · stringrequired

    Domain to look up, e.g. example.com

  • typequery · "A" | "AAAA" | "CNAME" | "MX" | "TXT" | "NS" | "SOA" | "PTR" | "SRV" | "CAA"

Responses

  • 200Per-region answers and a summary
    Response fields
    • domainstring
    • recordTypestring
    • resultsobject[]
    • summaryobject
    • summary.totalProbesinteger
    • summary.successCountinteger
    • summary.errorCountinteger
    • summary.pendingCountinteger
    • summary.averageLatencyMsnumber
    • summary.consensusValuestring[]
    • summary.consensusPercentagenumber
    • startedAtstring
    • completedAtstring
  • 400Error
  • 401Error
  • 403Error
  • 500Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/dns/propagation/global?domain=$DOMAIN" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Domain assets

List the account's domains across Relays DNS and connected providers

GET/v1/relays/domain-assets

relays:readTested with an API keyrelays_listDomainAssets

Genesis scope relays:read; local scope dns:read. Acts on the selected project's existing Relays account and never provisions it. Each domain names who serves its DNS and who holds its registration.

Parameters

  • searchquery · string

    Case-insensitive substring of the domain

Responses

  • 200Domain assets
    Response fields
    • domainAssetsobject[]
    • domainAssets[].[].idstring
    • domainAssets[].[].domainstring
    • domainAssets[].[].sources"relays_dns" | "external_dns" | "registrar"[]
    • domainAssets[].[].registrarAuthorityobject
    • domainAssets[].[].registrarAuthority.idstring
    • domainAssets[].[].registrarAuthority.kind"relays" | "external" | "manual_bridge" | "unknown"
    • domainAssets[].[].registrarAuthority.providerSlugstring
    • domainAssets[].[].registrarAuthority.providerNamestring
    • domainAssets[].[].registrarAuthority.connectionIdstring
    • domainAssets[].[].registrarAuthority.accountRefstring | null
    • domainAssets[].[].registrarAuthority.zoneNamestring
    • domainAssets[].[].registrarAuthority.statusstring
    • domainAssets[].[].registrarAuthority.supportedActionsstring[]
    • domainAssets[].[].registrarAuthority.warningsstring[]
    • domainAssets[].[].dnsAuthorityobject
    • domainAssets[].[].dnsAuthority.idstring
    • domainAssets[].[].dnsAuthority.kind"relays" | "external" | "manual_bridge" | "unknown"
    • domainAssets[].[].dnsAuthority.providerSlugstring
    • domainAssets[].[].dnsAuthority.providerNamestring
    • domainAssets[].[].dnsAuthority.connectionIdstring
    • domainAssets[].[].dnsAuthority.accountRefstring | null
    • domainAssets[].[].dnsAuthority.zoneNamestring
    • domainAssets[].[].dnsAuthority.statusstring
    • domainAssets[].[].dnsAuthority.supportedActionsstring[]
    • domainAssets[].[].dnsAuthority.warningsstring[]
    • domainAssets[].[].recordCountinteger
    • domainAssets[].[].dnssecStatusstring
    • domainAssets[].[].nameserversstring[]
    • domainAssets[].[].lastSyncedAtstring | null (date-time)
    • metaobject
    • meta.totalinteger
  • 401Error
  • 403Error
  • 500Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/domain-assets" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Get one domain's DNS and registration authorities

GET/v1/relays/domain-assets/{domain}

relays:readTested with an API keyrelays_getDomainAsset

Genesis scope relays:read; local scope dns:read. Acts on the selected project's existing Relays account and never provisions it.

Parameters

  • domainpath · stringrequired

Responses

  • 200Domain asset
    Response fields
    • domainAssetobject
    • domainAsset.idstring
    • domainAsset.domainstring
    • domainAsset.sources"relays_dns" | "external_dns" | "registrar"[]
    • domainAsset.registrarAuthorityobject
    • domainAsset.registrarAuthority.idstring
    • domainAsset.registrarAuthority.kind"relays" | "external" | "manual_bridge" | "unknown"
    • domainAsset.registrarAuthority.providerSlugstring
    • domainAsset.registrarAuthority.providerNamestring
    • domainAsset.registrarAuthority.connectionIdstring
    • domainAsset.registrarAuthority.accountRefstring | null
    • domainAsset.registrarAuthority.zoneNamestring
    • domainAsset.registrarAuthority.statusstring
    • domainAsset.registrarAuthority.supportedActionsstring[]
    • domainAsset.registrarAuthority.warningsstring[]
    • domainAsset.dnsAuthorityobject
    • domainAsset.dnsAuthority.idstring
    • domainAsset.dnsAuthority.kind"relays" | "external" | "manual_bridge" | "unknown"
    • domainAsset.dnsAuthority.providerSlugstring
    • domainAsset.dnsAuthority.providerNamestring
    • domainAsset.dnsAuthority.connectionIdstring
    • domainAsset.dnsAuthority.accountRefstring | null
    • domainAsset.dnsAuthority.zoneNamestring
    • domainAsset.dnsAuthority.statusstring
    • domainAsset.dnsAuthority.supportedActionsstring[]
    • domainAsset.dnsAuthority.warningsstring[]
    • domainAsset.recordCountinteger
    • domainAsset.dnssecStatusstring
    • domainAsset.nameserversstring[]
    • domainAsset.lastSyncedAtstring | null (date-time)
  • 401Error
  • 403Error
  • 404Error
  • 500Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/domain-assets/$DOMAIN" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Domains

Analyze a domain for confusability, brand collision, language and deliverability risk

POST/v1/relays/domains/analyze

relays:writeTested with an API keyrelays_analyzeDomain

Genesis scope relays:write (every POST); local scope registrar:read. Acts on the selected project's existing Relays account and never provisions it. Computed locally; nothing is stored except an audit row.

Request body application/json

  • domainstringrequired

    min length 3 · max length 253 · pattern ^[a-zA-Z0-9]([a-zA-Z0-9-]*[a-zA-Z0-9])?(\.[a-zA-Z]{2,})+$

  • include_defensiveboolean

    default false

Responses

  • 200Analysis
    Response fields
    • domainstring
    • analysisobject
    • analysis.confusabilityobject
    • analysis.confusability.level"low" | "medium" | "high"
    • analysis.confusability.typosstring[]
    • analysis.confusability.homophonesstring[]
    • analysis.confusability.reasonstring
    • analysis.brand_collisionobject
    • analysis.brand_collision.level"low" | "medium" | "high"
    • analysis.brand_collision.reasonstring
    • analysis.language_pitfallsobject
    • analysis.language_pitfalls.level"low" | "medium" | "high"
    • analysis.language_pitfalls.issuesobject[]
    • analysis.language_pitfalls.issues[].[].languagestring
    • analysis.language_pitfalls.issues[].[].meaningstring
    • analysis.language_pitfalls.issues[].[].severity"minor" | "moderate" | "severe"
    • analysis.language_pitfalls.reasonstring
    • analysis.deliverabilityobject
    • analysis.deliverability.level"low" | "medium" | "high"
    • analysis.deliverability.spamScorenumber
    • analysis.deliverability.reasonstring
    • analysis.overall_risk"low" | "medium" | "high"
    • analysis.recommendationstring
    • defensive_setobject[]
    • defensive_set[].[].domainstring
    • defensive_set[].[].reasonstring
    • defensive_set[].[].priority"high" | "medium" | "low"
    • analyzed_atstring (date-time)
  • 400Error
  • 401Error
  • 403Error
  • 500Error
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/relays/domains/analyze" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "domain": "string"
  }'

List forwarding rules for a domain

GET/v1/relays/domains/forwarding

relays:readTested with an API keyrelays_listDomainForwardingRules

Genesis scope relays:read; local scope registrar:read (registrar:write also passes). Acts on the selected project's existing Relays account and never provisions it.

Parameters

  • domainquery · stringrequired

    Hostname, e.g. example.com

Responses

  • 200Rules
    Response fields
    • rulesobject[]
    • rules[].[].idstring (uuid)
    • rules[].[].domainstring
    • rules[].[].type"url" | "email"
    • rules[].[].sourcestring
    • rules[].[].destinationstring
    • rules[].[].code301 | 302 | null
    • rules[].[].enabledboolean
    • rules[].[].created_atstring (date-time)
  • 400Error
  • 401Error
  • 403Error
  • 500Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/domains/forwarding?domain=$DOMAIN" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Create a URL or email forwarding rule

POST/v1/relays/domains/forwarding

relays:writeTested with an API keyrelays_createDomainForwardingRule

Genesis scope relays:write; local scope registrar:write. Acts on the selected project's existing Relays account and never provisions it. The domain, or a parent zone of it, must be held by the account (404 otherwise). One rule per type and source on a domain (400 on a duplicate).

Request body application/json

  • domainstringrequired

    Hostname

  • type"url" | "email"required
  • sourcestringrequired

    url: path starting with /; email: local part without @

  • destinationstringrequired

    url: http(s) URL; email: address

  • redirect_code301 | 302

    default 301

  • enabledboolean

    default true

Responses

  • 201Created
    Response fields
    • successboolean
    • ruleobject
    • rule.idstring (uuid)
    • rule.domainstring
    • rule.type"url" | "email"
    • rule.sourcestring
    • rule.destinationstring
    • rule.code301 | 302 | null
    • rule.enabledboolean
    • rule.created_atstring (date-time)
  • 400Invalid body or duplicate rule
  • 401Error
  • 403Error
  • 404Error
  • 500Error
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/relays/domains/forwarding" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "domain": "string",
    "type": "url",
    "source": "string",
    "destination": "string"
  }'

Delete a forwarding rule

DELETE/v1/relays/domains/forwarding/{ruleId}

relays:writeTested with an API keyrelays_deleteDomainForwardingRule

Genesis scope relays:write; local scope registrar:write. Acts on the selected project's existing Relays account and never provisions it. Takes no body.

Parameters

  • ruleIdpath · stringrequired

Responses

  • 200Deleted
    Response fields
    • successboolean
    • deletedobject
    • deleted.idstring
    • deleted.domainstring
    • deleted.typestring
    • deleted.sourcestring
    • deleted.destinationstring
  • 401Error
  • 403Error
  • 404Error
  • 500Error
  • 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/relays/domains/forwarding/$RULE_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

List TLDs priced below their 24-hour mean

GET/v1/relays/domains/specials

relays:readTested with an API keyrelays_listDomainSpecials

Genesis scope relays:read; local scope registrar:read. Needs the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED until an owner or admin opens Relays). Returns the TLDs whose cheapest current wholesale registration price across Relays' registrars is at least 10% below its 24-hour trailing mean, deepest discount first, at most 50. Prices are integer cents; deltaPercent is the fractional change (-0.25 is 25% below the mean). narrative is present when a recent pricing note exists for the TLD. The data is market pricing shared by every account and is recomputed at most once a minute (cached says whether this answer came from that cache). Nothing is bought.

Responses

  • 200Current specials
    Response fields
    • specialsobject[]required
    • specials[].[].tldstringrequired

      The TLD without a leading dot, e.g. com

    • specials[].[].latestPriceCentsintegerrequired

      Cheapest current registration price, in cents

    • specials[].[].trailingMeanCentsintegerrequired

      Mean registration price over the last 24 hours, in cents

    • specials[].[].deltaPercentnumberrequired

      Fractional change from the mean; -0.25 is 25% below

    • specials[].[].currencystringrequired
    • specials[].[].narrativestring

      A recent pricing note for the TLD, when one exists

    • cachedboolean

      True when the answer came from the one-minute cache

  • 401Error
  • 403Error
  • 500Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/domains/specials" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Suggest domain names for an intent

POST/v1/relays/domains/suggest

relays:writeTested with an API keyrelays_suggestDomains

Genesis scope relays:write (every POST); local scope registrar:read. Acts on the selected project's existing Relays account and never provisions it. Names come from a rule-based generator. check_availability=true asks the registrar about the first 20. Each of those carries availability: checked: true with available only when the registrar answered; a failed lookup is checked: false (unknown, not taken), and the development sample is source: sample, checked: false. Nothing is bought.

Request body application/json

  • intentstringrequired

    min length 2 · max length 500

  • tonesstring[]
  • constraintsobject
  • constraints.maxLengthinteger

    min 2 · max 63

  • constraints.noHyphensboolean
  • tldsstring[]
  • check_availabilityboolean

    default false

  • limitinteger

    min 1 · max 100 · default 30

Responses

  • 200Suggestions
    Response fields
    • suggestionsobject[]
    • suggestions[].[].namestring
    • suggestions[].[].tldstring
    • suggestions[].[].fqdnstring
    • suggestions[].[].rationalestring
    • suggestions[].[].scoresobject
    • suggestions[].[].scores.memorabilitynumber
    • suggestions[].[].scores.pronounceabilitynumber
    • suggestions[].[].scores.brandFitnumber
    • suggestions[].[].cluster"literal" | "abstract" | "compound" | "invented" | "category"
    • suggestions[].[].availabilityobject

      Present on the first 20 names when check_availability is true.

    • suggestions[].[].availability.checkedbooleanrequired

      true only when the registrar answered; false means unknown, not taken

    • suggestions[].[].availability.source"openprovider" | "sample"required
    • suggestions[].[].availability.availableboolean

      Present only when checked is true

    • suggestions[].[].availability.premiumboolean

      Present only when checked is true

    • suggestions[].[].availability.priceobject
    • suggestions[].[].availability.price.amountnumber
    • suggestions[].[].availability.price.currencystring
    • metaobject
    • meta.intentstring
    • meta.totalinteger
    • meta.availability_checkedboolean
    • analyzed_atstring (date-time)
  • 400Error
  • 401Error
  • 403Error
  • 500Error
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/relays/domains/suggest" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "intent": "string"
  }'

Errors

List release artifacts (source maps, debug symbols)

GET/v1/relays/errors/artifacts

relays:readTested with an API keyrelays_listErrorArtifacts

Genesis scope relays:read. Local scope errors:read. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Parameters

  • project_keyquery · string
  • releasequery · string
  • artifact_typequery · "source_map" | "debug_symbols"
  • limitquery · integer

Responses

  • 200Artifacts
    Response fields
    • artifactsobject[]required
    • artifacts[].[].idstring
    • artifacts[].[].tenant_idstring
    • artifacts[].[].project_keystring
    • artifacts[].[].releasestring
    • artifacts[].[].diststring | null
    • artifacts[].[].artifact_type"source_map" | "debug_symbols"
    • artifacts[].[].artifact_pathstring
    • artifacts[].[].debug_idstring | null
    • artifacts[].[].content_typestring | null
    • artifacts[].[].content_sha256string
    • artifacts[].[].size_bytesinteger
    • artifacts[].[].storage_urlstring | null
    • artifacts[].[].created_atstring
    • artifacts[].[].updated_atstring
    • metaobjectrequired
    • meta.limitinteger
    • meta.returnedinteger
  • 400Error
  • 401Error
  • 500Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/errors/artifacts" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Register a source map or debug symbols for a release

POST/v1/relays/errors/artifacts

relays:writeTested with an API keyrelays_createErrorArtifact

Genesis scope relays:write. Local scope errors:write. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED). content is inline JSON. storage_url must be https and resolve only to public addresses; it is fetched (5 MiB cap, no redirects) when an event is symbolicated.

Request body application/json

  • project_keystringrequired

    min length 1 · max length 128 · pattern ^[A-Za-z0-9._-]+$

  • releasestringrequired

    min length 1 · max length 255

  • diststring

    max length 128

  • artifact_type"source_map" | "debug_symbols"required
  • artifact_pathstringrequired

    min length 1 · max length 2048

  • debug_idstring

    max length 128

  • content_typestring

    max length 128

  • storage_urlstring

    max length 2048

  • contentany

    Inline artifact body, any JSON

Responses

  • 201Created
    Response fields
    • artifactobjectrequired
    • artifact.idstring
    • artifact.tenant_idstring
    • artifact.project_keystring
    • artifact.releasestring
    • artifact.diststring | null
    • artifact.artifact_type"source_map" | "debug_symbols"
    • artifact.artifact_pathstring
    • artifact.debug_idstring | null
    • artifact.content_typestring | null
    • artifact.content_sha256string
    • artifact.size_bytesinteger
    • artifact.storage_urlstring | null
    • artifact.created_atstring
    • artifact.updated_atstring
  • 400Error
  • 401Error
  • 500Error
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/relays/errors/artifacts" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "project_key": "string",
    "release": "string",
    "artifact_type": "source_map",
    "artifact_path": "string"
  }'

List release deploy markers

GET/v1/relays/errors/deployments

relays:readTested with an API keyrelays_listErrorDeployments

Genesis scope relays:read. Local scope errors:read. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Parameters

  • project_keyquery · string
  • releasequery · string
  • environmentquery · string
  • limitquery · integer

Responses

  • 200Deployments
    Response fields
    • deploymentsobject[]required
    • deployments[].[].idstring
    • deployments[].[].tenant_idstring
    • deployments[].[].project_keystring
    • deployments[].[].releasestring
    • deployments[].[].environmentstring | null
    • deployments[].[].commit_shastring | null
    • deployments[].[].repositorystring | null
    • deployments[].[].branchstring | null
    • deployments[].[].deployed_bystring | null
    • deployments[].[].deployed_atstring
    • deployments[].[].metadataobject
    • deployments[].[].created_bystring | null
    • deployments[].[].created_atstring
    • deployments[].[].updated_atstring
    • metaobjectrequired
    • meta.limitinteger
    • meta.returnedinteger
  • 400Error
  • 401Error
  • 500Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/errors/deployments" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Register a release deploy marker

POST/v1/relays/errors/deployments

relays:writeTested with an API keyrelays_createErrorDeployment

Genesis scope relays:write. Local scope errors:write. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED). A marker only; it deploys nothing.

Request body application/json

  • project_keystringrequired

    min length 1 · max length 128 · pattern ^[A-Za-z0-9._-]+$

  • releasestringrequired

    min length 1 · max length 255

  • environmentstring

    max length 128

  • commit_shastring

    max length 128

  • repositorystring

    max length 255

  • branchstring

    max length 255

  • deployed_bystring

    max length 255

  • deployed_atstring (date-time)
  • metadataobject

    default {}

Responses

  • 201Created
    Response fields
    • deploymentobjectrequired
    • deployment.idstring
    • deployment.tenant_idstring
    • deployment.project_keystring
    • deployment.releasestring
    • deployment.environmentstring | null
    • deployment.commit_shastring | null
    • deployment.repositorystring | null
    • deployment.branchstring | null
    • deployment.deployed_bystring | null
    • deployment.deployed_atstring
    • deployment.metadataobject
    • deployment.created_bystring | null
    • deployment.created_atstring
    • deployment.updated_atstring
  • 400Error
  • 401Error
  • 500Error
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/relays/errors/deployments" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "project_key": "string",
    "release": "string"
  }'

Ingest one Sentry-shaped application error event

POST/v1/relays/errors/events

relays:writeTested with an API keyrelays_ingestErrorEvent

Genesis scope relays:write. Local scope errors:write. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED). Loose Sentry-shaped JSON object; project_key defaults to default. Events are grouped into issues by fingerprint.

Request body application/json

  • event_idstring
  • project_keystring
  • messagestring
  • titlestring
  • level"fatal" | "error" | "warning" | "info" | "debug"
  • platformstring
  • environmentstring
  • releasestring
  • diststring
  • transactionstring
  • trace_idstring
  • span_idstring
  • timestampstring
  • fingerprintstring[]
  • exceptionobject
  • tagsobject
  • userobject
  • requestobject
  • contextsobject

Responses

  • 202Accepted
    Response fields
    • issueobjectrequired
    • issue.idstring
    • issue.tenant_idstring
    • issue.project_keystring
    • issue.fingerprintstring
    • issue.titlestring
    • issue.culpritstring | null
    • issue.levelstring
    • issue.status"unresolved" | "resolved" | "ignored"
    • issue.platformstring | null
    • issue.environmentstring | null
    • issue.releasestring | null
    • issue.event_countinteger
    • issue.user_countinteger
    • issue.first_seen_atstring
    • issue.last_seen_atstring
    • issue.last_event_idstring | null
    • issue.tagsobject
    • issue.metadataobject
    • issue.assigned_tostring | null
    • issue.resolved_atstring | null
    • issue.created_atstring
    • issue.updated_atstring
    • eventobjectrequired
    • event.idstring
    • event.tenant_idstring
    • event.issue_idstring
    • event.event_idstring | null
    • event.project_keystring
    • event.fingerprintstring
    • event.titlestring
    • event.messagestring | null
    • event.levelstring
    • event.platformstring | null
    • event.environmentstring | null
    • event.releasestring | null
    • event.transactionstring | null
    • event.trace_idstring | null
    • event.span_idstring | null
    • event.exception_typestring | null
    • event.exception_valuestring | null
    • event.culpritstring | null
    • event.tagsobject
    • event.occurred_atstring
    • event.received_atstring
  • 400Error
  • 401Error
  • 500Error
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/relays/errors/events" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

List grouped error issues

GET/v1/relays/errors/issues

relays:readTested with an API keyrelays_listErrorIssues

Genesis scope relays:read. Local scope errors:read. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Parameters

  • statusquery · "unresolved" | "resolved" | "ignored"
  • project_keyquery · string
  • environmentquery · string
  • levelquery · "fatal" | "error" | "warning" | "info" | "debug"
  • limitquery · integer

Responses

  • 200Issues
    Response fields
    • issuesobject[]required
    • issues[].[].idstring
    • issues[].[].tenant_idstring
    • issues[].[].project_keystring
    • issues[].[].fingerprintstring
    • issues[].[].titlestring
    • issues[].[].culpritstring | null
    • issues[].[].levelstring
    • issues[].[].status"unresolved" | "resolved" | "ignored"
    • issues[].[].platformstring | null
    • issues[].[].environmentstring | null
    • issues[].[].releasestring | null
    • issues[].[].event_countinteger
    • issues[].[].user_countinteger
    • issues[].[].first_seen_atstring
    • issues[].[].last_seen_atstring
    • issues[].[].last_event_idstring | null
    • issues[].[].tagsobject
    • issues[].[].metadataobject
    • issues[].[].assigned_tostring | null
    • issues[].[].resolved_atstring | null
    • issues[].[].created_atstring
    • issues[].[].updated_atstring
    • summaryobjectrequired
    • summary.totalinteger
    • summary.unresolvedinteger
    • summary.resolvedinteger
    • summary.ignoredinteger
    • summary.criticalinteger
    • summary.warninginteger
    • summary.errorinteger
    • metaobjectrequired
    • meta.limitinteger
    • meta.returnedinteger
  • 400Error
  • 401Error
  • 500Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/errors/issues" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Set a grouped issue's workflow status

PATCH/v1/relays/errors/issues/{issueId}

relays:writeTested with an API keyrelays_updateErrorIssue

Genesis scope relays:write. Local scope errors:write. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Parameters

  • issueIdpath · stringrequired

Request body application/json

  • status"unresolved" | "resolved" | "ignored"required

Responses

  • 200Updated
    Response fields
    • idstring
    • tenant_idstring
    • project_keystring
    • fingerprintstring
    • titlestring
    • culpritstring | null
    • levelstring
    • status"unresolved" | "resolved" | "ignored"
    • platformstring | null
    • environmentstring | null
    • releasestring | null
    • event_countinteger
    • user_countinteger
    • first_seen_atstring
    • last_seen_atstring
    • last_event_idstring | null
    • tagsobject
    • metadataobject
    • assigned_tostring | null
    • resolved_atstring | null
    • created_atstring
    • updated_atstring
  • 400Error
  • 401Error
  • 404Error
  • 500Error
  • 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/relays/errors/issues/$ISSUE_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "status": "unresolved"
  }'

AI-ready issue context and heuristic fix suggestions

GET/v1/relays/errors/issues/{issueId}/context

relays:readTested with an API keyrelays_getErrorIssueContext

Genesis scope relays:read. Local scope errors:read. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED). Computed from the latest 5 events; no external call.

Parameters

  • issueIdpath · stringrequired

Responses

  • 200Context
    Response fields
    • contextobjectrequired
    • context.issue_idstring
    • context.severitystring
    • context.summarystring
    • context.suspected_causestring
    • context.suggested_fixesobject[]
    • context.correlationobject
    • context.evidencestring[]
  • 401Error
  • 404Error
  • 500Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/errors/issues/$ISSUE_ID/context" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

List external work-item links on an issue

GET/v1/relays/errors/issues/{issueId}/integrations

relays:readTested with an API keyrelays_listErrorIssueIntegrations

Genesis scope relays:read. Local scope errors:read. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Parameters

  • issueIdpath · stringrequired

Responses

  • 200Links
    Response fields
    • integrationsobject[]required
    • integrations[].[].idstring
    • integrations[].[].tenant_idstring
    • integrations[].[].issue_idstring
    • integrations[].[].provider"linear" | "jira" | "github"
    • integrations[].[].external_keystring
    • integrations[].[].external_urlstring
    • integrations[].[].titlestring
    • integrations[].[].statusstring
    • integrations[].[].metadataobject
    • integrations[].[].created_bystring | null
    • integrations[].[].created_atstring
    • integrations[].[].updated_atstring
    • metaobjectrequired
    • meta.returnedinteger
  • 401Error
  • 500Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/errors/issues/$ISSUE_ID/integrations" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Record a link from an issue to an existing Linear, Jira or GitHub work item

POST/v1/relays/errors/issues/{issueId}/integrations

relays:writeTested with an API keyrelays_linkErrorIssueIntegration

Genesis scope relays:write. Local scope errors:write. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED). Stores the link only; it does not call the provider.

Parameters

  • issueIdpath · stringrequired

Request body application/json

  • provider"linear" | "jira" | "github"required
  • external_keystringrequired

    min length 1 · max length 255

  • external_urlstring (uri)required
  • titlestringrequired

    min length 1 · max length 512

  • statusstring

    max length 64 · default "linked"

  • metadataobject

    default {}

Responses

  • 201Linked
    Response fields
    • integrationobjectrequired
    • integration.idstring
    • integration.tenant_idstring
    • integration.issue_idstring
    • integration.provider"linear" | "jira" | "github"
    • integration.external_keystring
    • integration.external_urlstring
    • integration.titlestring
    • integration.statusstring
    • integration.metadataobject
    • integration.created_bystring | null
    • integration.created_atstring
    • integration.updated_atstring
  • 400Error
  • 401Error
  • 404Error
  • 500Error
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/relays/errors/issues/$ISSUE_ID/integrations" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "provider": "linear",
    "external_key": "string",
    "external_url": "https://example.com",
    "title": "string"
  }'

List error tracking SDK projects (DSNs)

GET/v1/relays/errors/projects

relays:readTested with an API keyrelays_listErrorProjects

Genesis scope relays:read. Local scope errors:read. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED). dsn, envelope_url and store_url use the Relays public origin, never the request host. The DSN public key is a client key meant to ship in apps.

Responses

  • 200Projects
    Response fields
    • projectsobject[]required
    • projects[].[].idstring
    • projects[].[].tenant_idstring
    • projects[].[].project_keystring
    • projects[].[].namestring
    • projects[].[].public_keystring
    • projects[].[].dsnstring
    • projects[].[].envelope_urlstring
    • projects[].[].store_urlstring
    • projects[].[].enabledboolean
    • projects[].[].allowed_originsstring[]
    • projects[].[].created_atstring
    • projects[].[].updated_atstring
  • 401Error
  • 500Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/errors/projects" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Create an error tracking SDK project and DSN

POST/v1/relays/errors/projects

relays:writeTested with an API keyrelays_createErrorProject

Genesis scope relays:write. Local scope errors:write. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED). dsn, envelope_url and store_url use the Relays public origin, never the request host.

Request body application/json

  • project_keystringrequired

    min length 1 · max length 128 · pattern ^[A-Za-z0-9._-]+$

  • namestringrequired

    min length 1 · max length 255

  • allowed_originsstring[]
  • enabledboolean

    default true

Responses

  • 201Created
    Response fields
    • projectobjectrequired
    • project.idstring
    • project.tenant_idstring
    • project.project_keystring
    • project.namestring
    • project.public_keystring
    • project.dsnstring
    • project.envelope_urlstring
    • project.store_urlstring
    • project.enabledboolean
    • project.allowed_originsstring[]
    • project.created_atstring
    • project.updated_atstring
  • 400Error
  • 401Error
  • 500Error
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/relays/errors/projects" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "project_key": "string",
    "name": "string"
  }'

Aggregate grouped errors by release with trend and deploy markers

GET/v1/relays/errors/releases

relays:readTested with an API keyrelays_listErrorReleases

Genesis scope relays:read. Local scope errors:read. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Parameters

  • project_keyquery · string
  • environmentquery · string
  • limitquery · integer

Responses

  • 200Releases
    Response fields
    • releasesobject[]required
    • releases[].[].project_keystring
    • releases[].[].releasestring
    • releases[].[].environmentstring | null
    • releases[].[].issue_countinteger
    • releases[].[].event_countinteger
    • releases[].[].unresolved_countinteger
    • releases[].[].critical_countinteger
    • releases[].[].user_countinteger
    • releases[].[].first_seen_atstring
    • releases[].[].last_seen_atstring
    • releases[].[].status"regression" | "watch" | "healthy"
    • releases[].[].trendobject[]
    • releases[].[].change_markersobject[]
    • metaobjectrequired
    • meta.limitinteger
    • meta.returnedinteger
  • 400Error
  • 401Error
  • 500Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/errors/releases" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Escalation policies

List escalation policies with their levels

GET/v1/relays/escalation-policies

relays:readrelays_listEscalationPolicies

Genesis scope: relays:read. Local scope: oncall:read. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Responses

  • 200Escalation policies
    Response fields

    A JSON object.

  • 400Error
  • 404Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/escalation-policies" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Create an escalation policy

POST/v1/relays/escalation-policies

relays:writerelays_createEscalationPolicy

Genesis scope: relays:write. Local scope: oncall:write. Levels page in order after delay_minutes until the incident is acknowledged or resolved; each page is recorded on the incident and published as incident.paged. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Request body application/json

  • namestring
  • descriptionstring
  • repeat_enabledboolean
  • repeat_countinteger
  • rulesobject[]
  • rules[].[].levelintegerrequired
  • rules[].[].delay_minutesintegerrequired
  • rules[].[].notify_type"channel" | "schedule" | "user"required
  • rules[].[].notify_target_idstring (uuid)required
  • rules[].[].repeat_countinteger

Responses

  • 201Escalation policy
    Response fields

    A JSON object.

  • 400Error
  • 404Error
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/relays/escalation-policies" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Get an escalation policy

GET/v1/relays/escalation-policies/{policyId}

relays:readrelays_getEscalationPolicy

Genesis scope: relays:read. Local scope: oncall:read. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Parameters

  • policyIdpath · stringrequired

Responses

  • 200Escalation policy
    Response fields

    A JSON object.

  • 400Error
  • 404Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/escalation-policies/$POLICY_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Delete an escalation policy

DELETE/v1/relays/escalation-policies/{policyId}

relays:writerelays_deleteEscalationPolicy

Genesis scope: relays:write. Local scope: oncall:delete. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Parameters

  • policyIdpath · stringrequired

Responses

  • 200Deleted
    Response fields

    A JSON object.

  • 400Error
  • 404Error
  • 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/relays/escalation-policies/$POLICY_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Update an escalation policy (rules replace all levels)

PATCH/v1/relays/escalation-policies/{policyId}

relays:writerelays_updateEscalationPolicy

Genesis scope: relays:write. Local scope: oncall:write. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Parameters

  • policyIdpath · stringrequired

Request body application/json

  • namestring
  • descriptionstring | null
  • repeat_enabledboolean
  • repeat_countinteger
  • rulesobject[]

Responses

  • 200Escalation policy
    Response fields

    A JSON object.

  • 400Error
  • 404Error
  • 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/relays/escalation-policies/$POLICY_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Genesis

Read enrollment for the current verified human Genesis selection

GET/v1/relays/genesis/enrollment

relays:readAPI keys refusedrelays_getEnrollment

Responses

  • 200Actual enrollment status; no provisioning
    Response fields
    • state"ready" | "not_enrolled"required
    • organizationIdstringrequired

      pattern ^o_[A-Za-z0-9_-]{1,128}$

    • projectIdstringrequired

      pattern ^pr_[A-Za-z0-9_-]{1,128}$

    • workspaceIdstringrequired

      pattern ^w_[A-Za-z0-9_-]{1,128}$

    • resourceEnvironment"sandbox"required
  • 400Enrollment was rejected or unconfirmed; read status before another explicit POST
  • 401Enrollment was rejected or unconfirmed; read status before another explicit POST
  • 403Enrollment was rejected or unconfirmed; read status before another explicit POST
  • 404Enrollment was rejected or unconfirmed; read status before another explicit POST
  • 409Enrollment was rejected or unconfirmed; read status before another explicit POST
  • 503Enrollment was rejected or unconfirmed; read status before another explicit POST
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/genesis/enrollment" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Explicitly activate an empty Relays account; read status after an unconfirmed result

POST/v1/relays/genesis/enrollment

relays:writeAPI keys refusedrelays_enroll

Responses

  • 200Exact mapping already exists; created false
    Response fields
    • state"ready"required
    • organizationIdstringrequired

      pattern ^o_[A-Za-z0-9_-]{1,128}$

    • projectIdstringrequired

      pattern ^pr_[A-Za-z0-9_-]{1,128}$

    • workspaceIdstringrequired

      pattern ^w_[A-Za-z0-9_-]{1,128}$

    • resourceEnvironment"sandbox"required
    • createdbooleanrequired
  • 201Empty account created; created true
    Response fields
    • state"ready"required
    • organizationIdstringrequired

      pattern ^o_[A-Za-z0-9_-]{1,128}$

    • projectIdstringrequired

      pattern ^pr_[A-Za-z0-9_-]{1,128}$

    • workspaceIdstringrequired

      pattern ^w_[A-Za-z0-9_-]{1,128}$

    • resourceEnvironment"sandbox"required
    • createdbooleanrequired
  • 400Enrollment was rejected or unconfirmed; read status before another explicit POST
  • 401Enrollment was rejected or unconfirmed; read status before another explicit POST
  • 403Enrollment was rejected or unconfirmed; read status before another explicit POST
  • 404Enrollment was rejected or unconfirmed; read status before another explicit POST
  • 409Enrollment was rejected or unconfirmed; read status before another explicit POST
  • 503Enrollment was rejected or unconfirmed; read status before another explicit POST
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/relays/genesis/enrollment" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Incidents

List incidents with filters, stats and pagination

GET/v1/relays/incidents

relays:readTested with an API keyrelays_listIncidents

Genesis scope: relays:read. Local scope: incidents:read. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Parameters

  • pagequery · integer
  • limitquery · integer
  • statusquery · "investigating" | "identified" | "monitoring" | "resolved" | "scheduled" | "in_progress" | "completed"
  • severityquery · "minor" | "major" | "critical" | "maintenance"
  • resolvedquery · "true" | "false"
  • searchquery · string
  • status_page_idquery · string (uuid)
  • component_idquery · string (uuid)
  • sincequery · string (date-time)
  • untilquery · string (date-time)
  • sortquery · "created_at" | "updated_at" | "started_at" | "resolved_at"
  • orderquery · "asc" | "desc"

Responses

  • 200Incidents
    Response fields
    • incidentsobject[]required
    • incidents[].[].idstring (uuid)required
    • incidents[].[].tenant_idstringrequired
    • incidents[].[].titlestringrequired
    • incidents[].[].status"investigating" | "identified" | "monitoring" | "resolved" | "scheduled" | "in_progress" | "completed"required
    • incidents[].[].severity"minor" | "major" | "critical" | "maintenance"required
    • incidents[].[].impactstringrequired
    • incidents[].[].monitor_idstring | null
    • incidents[].[].status_page_idsstring[]
    • incidents[].[].component_idsstring[]
    • incidents[].[].is_publicboolean
    • incidents[].[].is_auto_createdboolean
    • incidents[].[].started_atstring | null (date-time)
    • incidents[].[].identified_atstring | null (date-time)
    • incidents[].[].resolved_atstring | null (date-time)
    • incidents[].[].scheduled_forstring | null (date-time)
    • incidents[].[].scheduled_untilstring | null (date-time)
    • incidents[].[].created_bystring | null
    • incidents[].[].acknowledged_bystring | null
    • incidents[].[].acknowledged_atstring | null (date-time)
    • incidents[].[].resolved_bystring | null
    • incidents[].[].postmortem_urlstring | null
    • incidents[].[].created_atstring (date-time)required
    • incidents[].[].updated_atstring (date-time)required
    • statsobjectrequired
    • stats.totalinteger
    • stats.investigatinginteger
    • stats.identifiedinteger
    • stats.monitoringinteger
    • stats.resolvedinteger
    • stats.unresolvedinteger
    • stats.criticalinteger
    • metaobjectrequired
    • meta.pageinteger
    • meta.per_pageinteger
    • meta.totalinteger
    • meta.total_pagesinteger
  • 400Error
  • 401Error
  • 403Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/incidents" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Create an incident with its first update

POST/v1/relays/incidents

relays:writeTested with an API keyrelays_createIncident

Genesis scope: relays:write. Local scope: incidents:write. status_page_ids must name at least one status page of the tenant (only the first is stored; 400 when empty); component_ids and monitor_id must be the tenant's. With notify_subscribers (default true) the active, verified email subscribers of that page are emailed through Resend when configured, at most six mailings per incident and thirty per tenant an hour. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Request body application/json

  • titlestringrequired

    min length 1 · max length 255

  • messagestringrequired

    min length 1 · max length 10000

  • status"investigating" | "identified" | "monitoring" | "resolved" | "scheduled" | "in_progress" | "completed"
  • severity"minor" | "major" | "critical" | "maintenance"
  • impact"none" | "minor" | "major" | "critical"

    default "minor"

  • component_idsstring (uuid)[]

    default []

  • monitor_idstring (uuid)
  • scheduled_forstring (date-time)
  • scheduled_untilstring (date-time)
  • status_page_idsstring (uuid)[]required

    The first entry is stored as the incident's status page; an empty list answers 400.

  • is_publicboolean

    Accepted but not stored default true

  • notify_subscribersboolean

    default true

Responses

  • 201Created
    Response fields
    • idstring (uuid)required
    • tenant_idstringrequired
    • titlestringrequired
    • status"investigating" | "identified" | "monitoring" | "resolved" | "scheduled" | "in_progress" | "completed"required
    • severity"minor" | "major" | "critical" | "maintenance"required
    • impactstringrequired
    • monitor_idstring | null
    • status_page_idsstring[]
    • component_idsstring[]
    • is_publicboolean
    • is_auto_createdboolean
    • started_atstring | null (date-time)
    • identified_atstring | null (date-time)
    • resolved_atstring | null (date-time)
    • scheduled_forstring | null (date-time)
    • scheduled_untilstring | null (date-time)
    • created_bystring | null
    • acknowledged_bystring | null
    • acknowledged_atstring | null (date-time)
    • resolved_bystring | null
    • postmortem_urlstring | null
    • created_atstring (date-time)required
    • updated_atstring (date-time)required
    • updatesobject[]
    • updates[].[].idstring
    • updates[].[].statusstring
    • updates[].[].messagestring
    • updates[].[].is_publicboolean
    • updates[].[].created_bystring | null
    • updates[].[].created_atstring (date-time)
    • affected_componentsobject[]

      Present on GET only

    • affected_components[].[].idstring
    • affected_components[].[].namestring
    • affected_components[].[].current_statusstring
  • 400Error
  • 401Error
  • 403Error
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/relays/incidents" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "string",
    "message": "string",
    "status_page_ids": [
      "00000000-0000-4000-8000-000000000000"
    ]
  }'

Get an incident with its updates and affected components

GET/v1/relays/incidents/{incidentId}

relays:readTested with an API keyrelays_getIncident

Genesis scope: relays:read. Local scope: incidents:read. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Parameters

  • incidentIdpath · stringrequired

Responses

  • 200Incident
    Response fields
    • idstring (uuid)required
    • tenant_idstringrequired
    • titlestringrequired
    • status"investigating" | "identified" | "monitoring" | "resolved" | "scheduled" | "in_progress" | "completed"required
    • severity"minor" | "major" | "critical" | "maintenance"required
    • impactstringrequired
    • monitor_idstring | null
    • status_page_idsstring[]
    • component_idsstring[]
    • is_publicboolean
    • is_auto_createdboolean
    • started_atstring | null (date-time)
    • identified_atstring | null (date-time)
    • resolved_atstring | null (date-time)
    • scheduled_forstring | null (date-time)
    • scheduled_untilstring | null (date-time)
    • created_bystring | null
    • acknowledged_bystring | null
    • acknowledged_atstring | null (date-time)
    • resolved_bystring | null
    • postmortem_urlstring | null
    • created_atstring (date-time)required
    • updated_atstring (date-time)required
    • updatesobject[]
    • updates[].[].idstring
    • updates[].[].statusstring
    • updates[].[].messagestring
    • updates[].[].is_publicboolean
    • updates[].[].created_bystring | null
    • updates[].[].created_atstring (date-time)
    • affected_componentsobject[]

      Present on GET only

    • affected_components[].[].idstring
    • affected_components[].[].namestring
    • affected_components[].[].current_statusstring
  • 401Error
  • 403Error
  • 404Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/incidents/$INCIDENT_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Delete an incident and its updates

DELETE/v1/relays/incidents/{incidentId}

relays:writeTested with an API keyrelays_deleteIncident

Genesis scope: relays:write. Local scope: incidents:delete. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Parameters

  • incidentIdpath · stringrequired

Responses

  • 200Deleted
    Response fields
    • messagestringrequired
    • idstringrequired
  • 401Error
  • 403Error
  • 404Error
  • 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/relays/incidents/$INCIDENT_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Update an incident status or fields, optionally appending an update message

PATCH/v1/relays/incidents/{incidentId}

relays:writeTested with an API keyrelays_updateIncident

Genesis scope: relays:write. Local scope: incidents:write. component_ids and status_page_ids must be the tenant's (400 otherwise). With notify_subscribers the email subscribers of the incident's status page are notified (same hourly limits as create); unset means false for an org API key and true for a signed-in user. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Parameters

  • incidentIdpath · stringrequired

Request body application/json

  • titlestring

    min length 1 · max length 255

  • status"investigating" | "identified" | "monitoring" | "resolved" | "scheduled" | "in_progress" | "completed"
  • severity"minor" | "major" | "critical" | "maintenance"
  • impact"none" | "minor" | "major" | "critical"
  • messagestring

    Appends an incident update entry min length 1 · max length 10000

  • component_idsstring (uuid)[]
  • status_page_idsstring (uuid)[]
  • is_publicboolean

    Accepted but not stored

  • postmortem_urlstring | null (uri)

    max length 2048

  • scheduled_forstring | null (date-time)
  • scheduled_untilstring | null (date-time)
  • notify_subscribersboolean

    Unset means false for an org API key and true for a signed-in user

Responses

  • 200Updated incident with updates
    Response fields
    • idstring (uuid)required
    • tenant_idstringrequired
    • titlestringrequired
    • status"investigating" | "identified" | "monitoring" | "resolved" | "scheduled" | "in_progress" | "completed"required
    • severity"minor" | "major" | "critical" | "maintenance"required
    • impactstringrequired
    • monitor_idstring | null
    • status_page_idsstring[]
    • component_idsstring[]
    • is_publicboolean
    • is_auto_createdboolean
    • started_atstring | null (date-time)
    • identified_atstring | null (date-time)
    • resolved_atstring | null (date-time)
    • scheduled_forstring | null (date-time)
    • scheduled_untilstring | null (date-time)
    • created_bystring | null
    • acknowledged_bystring | null
    • acknowledged_atstring | null (date-time)
    • resolved_bystring | null
    • postmortem_urlstring | null
    • created_atstring (date-time)required
    • updated_atstring (date-time)required
    • updatesobject[]
    • updates[].[].idstring
    • updates[].[].statusstring
    • updates[].[].messagestring
    • updates[].[].is_publicboolean
    • updates[].[].created_bystring | null
    • updates[].[].created_atstring (date-time)
    • affected_componentsobject[]

      Present on GET only

    • affected_components[].[].idstring
    • affected_components[].[].namestring
    • affected_components[].[].current_statusstring
  • 400Error
  • 401Error
  • 403Error
  • 404Error
  • 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/relays/incidents/$INCIDENT_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Incident counts, MTTA, MTTR, MTBF and distributions over a window

GET/v1/relays/incidents/analytics

relays:readTested with an API keyrelays_getIncidentAnalytics

Genesis scope: relays:read. Local scope: incidents:read. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Parameters

  • window_daysquery · integer
  • sincequery · string (date-time)
  • untilquery · string (date-time)
  • status_page_idquery · string (uuid)
  • severityquery · "minor" | "major" | "critical" | "maintenance"

Responses

  • 200Analytics
    Response fields
    • summaryobjectrequired
    • summary.totalinteger
    • summary.activeinteger
    • summary.acknowledgedinteger
    • summary.resolvedinteger
    • summary.criticalinteger
    • timingsobjectrequired
    • timings.mtta_secondsinteger | null
    • timings.mttr_secondsinteger | null
    • timings.mtbf_secondsinteger | null
    • distributionsobjectrequired
    • distributions.by_statusobject
    • distributions.by_severityobject
    • distributions.by_impactobject
    • windowobjectrequired
    • window.sincestring (date-time)
    • window.untilstring (date-time)
    • window.window_daysinteger
  • 400Error
  • 401Error
  • 403Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/incidents/analytics" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

List incidents of a status page with their updates

GET/v1/relays/status-pages/{pageId}/incidents

relays:readTested with an API keyrelays_listStatusPageIncidents

Genesis scope: relays:read. Local scope: status-pages:read. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Parameters

  • pageIdpath · stringrequired
  • pagequery · integer
  • limitquery · integer
  • statusquery · string

    active, resolved, scheduled, or an incident status

Responses

  • 200Incidents
    Response fields
    • incidentsobject[]required
    • incidents[].[].idstring
    • incidents[].[].titlestring
    • incidents[].[].statusstring
    • incidents[].[].impactstring
    • incidents[].[].severitystring
    • incidents[].[].affected_component_idsstring[]
    • incidents[].[].started_atstring | null (date-time)
    • incidents[].[].identified_atstring | null (date-time)
    • incidents[].[].resolved_atstring | null (date-time)
    • incidents[].[].scheduled_forstring | null
    • incidents[].[].scheduled_untilstring | null
    • incidents[].[].auto_createdboolean
    • incidents[].[].acknowledged_atstring | null (date-time)
    • incidents[].[].post_mortem_urlstring | null
    • incidents[].[].created_bystring | null
    • incidents[].[].created_atstring (date-time)
    • incidents[].[].updated_atstring (date-time)
    • incidents[].[].updatesobject[]
    • incidents[].[].updates[].[].idstring
    • incidents[].[].updates[].[].statusstring
    • incidents[].[].updates[].[].messagestring
    • incidents[].[].updates[].[].internal_notestring | null
    • incidents[].[].updates[].[].auto_generatedboolean | null
    • incidents[].[].updates[].[].created_bystring | null
    • incidents[].[].updates[].[].created_atstring (date-time)
    • metaobjectrequired
    • meta.pageinteger
    • meta.per_pageinteger
    • meta.totalinteger
    • meta.total_pagesinteger
  • 401Error
  • 403Error
  • 404Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/status-pages/$PAGE_ID/incidents" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Create an incident or scheduled maintenance on a status page

POST/v1/relays/status-pages/{pageId}/incidents

relays:writeTested with an API keyrelays_createStatusPageIncident

Genesis scope: relays:write. Local scope: status-pages:write. impact maintenance requires scheduled_for and scheduled_until. Updates affected component statuses and the page overall_status. Sends no subscriber email. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Parameters

  • pageIdpath · stringrequired

Request body application/json

  • titlestringrequired

    min length 1 · max length 255

  • impact"none" | "minor" | "major" | "critical" | "maintenance"

    default "minor"

  • status"investigating" | "identified" | "monitoring" | "resolved" | "scheduled" | "in_progress" | "completed"
  • messagestringrequired

    min length 1 · max length 5000

  • affected_component_idsstring (uuid)[]

    default []

  • severity"minor" | "major" | "critical" | "maintenance"
  • scheduled_forstring (date-time)
  • scheduled_untilstring (date-time)
  • internal_notestring

    max length 2000

Responses

  • 201Created
    Response fields
    • idstring
    • titlestring
    • statusstring
    • impactstring
    • severitystring
    • affected_component_idsstring[]
    • started_atstring | null (date-time)
    • identified_atstring | null (date-time)
    • resolved_atstring | null (date-time)
    • scheduled_forstring | null
    • scheduled_untilstring | null
    • auto_createdboolean
    • acknowledged_atstring | null (date-time)
    • post_mortem_urlstring | null
    • created_bystring | null
    • created_atstring (date-time)
    • updated_atstring (date-time)
    • updatesobject[]
    • updates[].[].idstring
    • updates[].[].statusstring
    • updates[].[].messagestring
    • updates[].[].internal_notestring | null
    • updates[].[].auto_generatedboolean | null
    • updates[].[].created_bystring | null
    • updates[].[].created_atstring (date-time)
  • 400Error
  • 401Error
  • 403Error
  • 404Error
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/relays/status-pages/$PAGE_ID/incidents" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "string",
    "message": "string"
  }'

Writeup

Draft the incident write-up from the recorded timeline

POST/v1/relays/incidents/{incidentId}/writeup

relays:writerelays_draftIncidentWriteup

Genesis scope: relays:write. Local scope: incidents:write. Stored on the incident as writeup (markdown); cause and changes are left as To write. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Parameters

  • incidentIdpath · stringrequired

Responses

  • 201Draft write-up
    Response fields

    A JSON object.

  • 400Error
  • 404Error
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/relays/incidents/$INCIDENT_ID/writeup" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Publish the reviewed incident write-up on its status page

POST/v1/relays/incidents/{incidentId}/writeup/publish

relays:writerelays_publishIncidentWriteup

Genesis scope: relays:write. Local scope: incidents:write. The team's review step: send the reviewed markdown as writeup (or nothing to publish the stored draft as it stands). Refused with 409 WRITEUP_MISSING before a draft exists and 422 WRITEUP_NOT_REVIEWED while a "To write." section remains. Once published, the status page shows writeup and writeup_published_at on the incident; drafts never show. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Parameters

  • incidentIdpath · stringrequired

Request body application/json

  • writeupstring

    The reviewed write-up (markdown). Omit to publish the stored draft. min length 1 · max length 100000

Responses

  • 200Published write-up
    Response fields

    A JSON object.

  • 400Error
  • 403Error
  • 404Error
  • 409Error
  • 422Error
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/relays/incidents/$INCIDENT_ID/writeup/publish" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Logs

Query DNS query logs from the warehouse (tenant-filtered, retention-window enforced)

GET/v1/relays/logs

relays:readTested with an API keyrelays_listLogs

Genesis scope relays:read. Local scope logs:read. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED). Tenant-filtered DNS query logs from the warehouse; start is raised to the retention cutoff. A warehouse outage answers 200 with an empty list.

Parameters

  • zonequery · string

    DNS name filter

  • typequery · "A" | "AAAA" | "CNAME" | "MX" | "NS" | "PTR" | "SOA" | "SRV" | "TXT" | "CAA" | "DS" | "DNSKEY" | "NSEC" | "NSEC3" | "NSEC3PARAM" | "TLSA" | "SVCB" | "HTTPS" | "NAPTR" | "RRSIG"

    DNS record type

  • namequery · string

    Substring match on the queried name

  • clientquery · string

    Client IP

  • response_codequery · "NOERROR" | "FORMERR" | "SERVFAIL" | "NXDOMAIN" | "NOTIMP" | "REFUSED"
  • trace_idquery · string
  • span_idquery · string
  • startquery · string (date-time)

    ISO timestamp; raised to the retention cutoff if older

  • endquery · string (date-time)
  • limitquery · integer

    Default 100, clamped 1..1000

Responses

  • 200Logs
    Response fields
    • logsobject[]required
    • metaobjectrequired
    • meta.totalinteger
    • meta.limitinteger
    • meta.cursorstring | null
    • meta.has_moreboolean
    • filtersobjectrequired
    • retentionobject
    • retention.retention_daysinteger
    • retention.enforced_startstring | null
  • 400Error
  • 401Error
  • 500Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/logs" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Poll the live DNS query log tail (one JSON snapshot after a cursor)

GET/v1/relays/logs/live

relays:readrelays_listLiveLogs

Genesis scope relays:read. Local scope logs:read. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED). Through Genesis the live tail answers one JSON snapshot, never a stream: the logs after start (exclusive), oldest first, at most limit. Without start it reads the last five minutes (inclusive). Poll by passing meta.cursor back as start. start is raised to the retention cutoff if older.

Parameters

  • zonequery · string

    DNS name filter

  • typequery · "A" | "AAAA" | "CNAME" | "MX" | "NS" | "PTR" | "SOA" | "SRV" | "TXT" | "CAA" | "DS" | "DNSKEY" | "NSEC" | "NSEC3" | "NSEC3PARAM" | "TLSA" | "SVCB" | "HTTPS" | "NAPTR" | "RRSIG"

    DNS record type

  • namequery · string

    Substring match on the queried name

  • clientquery · string

    Client IP

  • response_codequery · "NOERROR" | "FORMERR" | "SERVFAIL" | "NXDOMAIN" | "NOTIMP" | "REFUSED"
  • trace_idquery · string
  • span_idquery · string
  • startquery · string (date-time)

    Cursor: the previous meta.cursor. Logs strictly after it are returned. Omitted: the last five minutes.

  • endquery · string (date-time)
  • limitquery · integer

    Default 50, clamped 1..100

Responses

  • 200Snapshot
    Response fields
    • logsobject[]required
    • logs[].[].idstringrequired
    • logs[].[].timestampstringrequired
    • logs[].[].zonestring
    • logs[].[].namestring
    • logs[].[].typestring
    • logs[].[].clientstring
    • logs[].[].responseCodestring
    • logs[].[].latencyMsnumber
    • logs[].[].traceIdstring
    • logs[].[].spanIdstring
    • logs[].[].rawobject
    • metaobjectrequired
    • meta.limitintegerrequired
    • meta.has_morebooleanrequired

      The snapshot filled limit; poll again from cursor

    • meta.cursorstringrequired

      Newest timestamp returned (the effective start when none); pass back as start

    • filtersobjectrequired
    • retentionobject
    • retention.retention_daysinteger
    • retention.enforced_startstring | null
  • 400Error
  • 401Error
  • 500Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/logs/live" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Detect DNS log patterns and anomaly candidates over the filtered logs

GET/v1/relays/logs/patterns

relays:readTested with an API keyrelays_listLogPatterns

Genesis scope relays:read. Local scope logs:read. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED). Same filters as listLogs (limit default 500, max 1000).

Parameters

  • zonequery · string

    DNS name filter

  • typequery · "A" | "AAAA" | "CNAME" | "MX" | "NS" | "PTR" | "SOA" | "SRV" | "TXT" | "CAA" | "DS" | "DNSKEY" | "NSEC" | "NSEC3" | "NSEC3PARAM" | "TLSA" | "SVCB" | "HTTPS" | "NAPTR" | "RRSIG"

    DNS record type

  • namequery · string

    Substring match on the queried name

  • clientquery · string

    Client IP

  • response_codequery · "NOERROR" | "FORMERR" | "SERVFAIL" | "NXDOMAIN" | "NOTIMP" | "REFUSED"
  • trace_idquery · string
  • span_idquery · string
  • startquery · string (date-time)

    ISO timestamp; raised to the retention cutoff if older

  • endquery · string (date-time)
  • limitquery · integer

Responses

  • 200Patterns
    Response fields
    • patternsobject[]required
    • patterns[].[].idstring
    • patterns[].[].labelstring
    • patterns[].[].signaturestring
    • patterns[].[].severity"info" | "warning" | "critical"
    • patterns[].[].countinteger
    • patterns[].[].sharenumber
    • patterns[].[].response_codestring | null
    • patterns[].[].zonestring | null
    • patterns[].[].typestring | null
    • patterns[].[].sample_namestring | null
    • patterns[].[].first_seenstring
    • patterns[].[].last_seenstring
    • patterns[].[].hintstring
    • summaryobjectrequired
    • summary.total_logsinteger
    • summary.pattern_countinteger
    • summary.anomaly_countinteger
    • summary.dominant_patternstring | null
    • summary.error_ratenumber
    • metaobjectrequired
    • meta.source"warehouse" | "memory"
    • meta.totalinteger
    • meta.limitinteger
    • meta.generated_atstring
  • 400Error
  • 401Error
  • 500Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/logs/patterns" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Evaluate DNS log patterns and dispatch alerts to notification channels (unless dry_run)

POST/v1/relays/logs/patterns/alerts

relays:writeTested with an API keyrelays_dispatchLogPatternAlerts

Genesis scope relays:write. Local scopes logs:read and alerts:write. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED). Writes carry no query through Genesis, so log filters go in the body's filters object (same names and rules as listLogs; limit default 500). Dispatches to the Relays alerter unless dry_run; dispatched true is not delivery confirmation.

Request body application/json

  • threshold_severity"warning" | "critical"

    default "warning"

  • channel_idsstring (uuid)[]

    Alert channels of this account; empty means all of its enabled channels. An id that is not one of them answers 400 and nothing is sent or stored. default []

  • dry_runboolean

    default false

  • filtersobject
  • filters.zonestring

    max length 253

  • filters.typestring

    max length 16

  • filters.namestring

    max length 253

  • filters.clientstring

    max length 45

  • filters.response_codestring

    max length 32

  • filters.trace_idstring

    min length 32 · max length 32

  • filters.span_idstring

    min length 16 · max length 16

  • filters.startstring (date-time)
  • filters.endstring (date-time)
  • filters.limitinteger

    min 1 · max 1000

Responses

  • 200Evaluation
    Response fields
    • alertsobject[]required
    • alerts[].[].pattern_signaturestring
    • alerts[].[].labelstring
    • alerts[].[].severitystring
    • alerts[].[].dispatchedboolean
    • alerts[].[].dedup_keystring
    • summaryobjectrequired
    • summary.evaluated_patternsinteger
    • summary.triggered_alertsinteger
    • summary.dry_runboolean
    • patternsobject[]required
    • patterns[].[].idstring
    • patterns[].[].labelstring
    • patterns[].[].signaturestring
    • patterns[].[].severity"info" | "warning" | "critical"
    • patterns[].[].countinteger
    • patterns[].[].sharenumber
    • patterns[].[].response_codestring | null
    • patterns[].[].zonestring | null
    • patterns[].[].typestring | null
    • patterns[].[].sample_namestring | null
    • patterns[].[].first_seenstring
    • patterns[].[].last_seenstring
    • patterns[].[].hintstring
    • metaobjectrequired
  • 400Error
  • 401Error
  • 500Error
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/relays/logs/patterns/alerts" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

List saved log pattern alert policies

GET/v1/relays/logs/patterns/policies

relays:readTested with an API keyrelays_listLogPatternPolicies

Genesis scope relays:read. Local scopes logs:read and alerts:read. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Responses

  • 200Policies
    Response fields
    • policiesobject[]required
    • policies[].[].idstring (uuid)
    • policies[].[].tenant_idstring
    • policies[].[].namestring
    • policies[].[].descriptionstring | null
    • policies[].[].enabledboolean
    • policies[].[].filtersobject
    • policies[].[].filters.zonestring

      max length 253

    • policies[].[].filters.typestring

      max length 16

    • policies[].[].filters.namestring

      max length 253

    • policies[].[].filters.clientstring

      max length 45

    • policies[].[].filters.response_codestring

      max length 32

    • policies[].[].filters.trace_idstring

      min length 32 · max length 32

    • policies[].[].filters.span_idstring

      min length 16 · max length 16

    • policies[].[].filters.startstring (date-time)
    • policies[].[].filters.endstring (date-time)
    • policies[].[].filters.limitinteger

      min 1 · max 1000

    • policies[].[].threshold_severity"warning" | "critical"
    • policies[].[].interval_minutesinteger
    • policies[].[].channel_idsstring[]
    • policies[].[].last_evaluated_atstring | null
    • policies[].[].last_triggered_atstring | null
    • policies[].[].last_summaryobject | null
    • policies[].[].created_atstring
    • policies[].[].updated_atstring
  • 401Error
  • 500Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/logs/patterns/policies" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Create a saved log pattern alert policy

POST/v1/relays/logs/patterns/policies

relays:writeTested with an API keyrelays_createLogPatternPolicy

Genesis scope relays:write. Local scopes logs:read and alerts:write. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Request body application/json

  • namestringrequired

    min length 1 · max length 255

  • descriptionstring

    max length 2000

  • enabledboolean

    default true

  • filtersobject
  • filters.zonestring

    max length 253

  • filters.typestring

    max length 16

  • filters.namestring

    max length 253

  • filters.clientstring

    max length 45

  • filters.response_codestring

    max length 32

  • filters.trace_idstring

    min length 32 · max length 32

  • filters.span_idstring

    min length 16 · max length 16

  • filters.startstring (date-time)
  • filters.endstring (date-time)
  • filters.limitinteger

    min 1 · max 1000

  • threshold_severity"warning" | "critical"

    default "warning"

  • interval_minutesinteger

    min 1 · max 1440 · default 15

  • channel_idsstring (uuid)[]

    Alert channels of this account; empty means all of its enabled channels. An id that is not one of them answers 400 and nothing is sent or stored. default []

Responses

  • 201Created
    Response fields
    • idstring (uuid)
    • tenant_idstring
    • namestring
    • descriptionstring | null
    • enabledboolean
    • filtersobject
    • filters.zonestring

      max length 253

    • filters.typestring

      max length 16

    • filters.namestring

      max length 253

    • filters.clientstring

      max length 45

    • filters.response_codestring

      max length 32

    • filters.trace_idstring

      min length 32 · max length 32

    • filters.span_idstring

      min length 16 · max length 16

    • filters.startstring (date-time)
    • filters.endstring (date-time)
    • filters.limitinteger

      min 1 · max 1000

    • threshold_severity"warning" | "critical"
    • interval_minutesinteger
    • channel_idsstring[]
    • last_evaluated_atstring | null
    • last_triggered_atstring | null
    • last_summaryobject | null
    • created_atstring
    • updated_atstring
  • 400Error
  • 401Error
  • 500Error
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/relays/logs/patterns/policies" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "string"
  }'

Evaluate a saved policy now; dispatches alerts unless dry_run

POST/v1/relays/logs/patterns/policies/{policyId}/evaluate

relays:writeTested with an API keyrelays_evaluateLogPatternPolicy

Genesis scope relays:write. Local scopes logs:read and alerts:write. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED). Non-dry runs notify the Relays alerter and record last_evaluated_at. A policy that names an alert channel that is not one of the account's answers 400 and is not evaluated.

Parameters

  • policyIdpath · stringrequired

Request body application/json

  • dry_runboolean

    default false

Responses

  • 200Evaluation
    Response fields
    • policyobject
    • policy.idstring (uuid)
    • policy.tenant_idstring
    • policy.namestring
    • policy.descriptionstring | null
    • policy.enabledboolean
    • policy.filtersobject
    • policy.filters.zonestring

      max length 253

    • policy.filters.typestring

      max length 16

    • policy.filters.namestring

      max length 253

    • policy.filters.clientstring

      max length 45

    • policy.filters.response_codestring

      max length 32

    • policy.filters.trace_idstring

      min length 32 · max length 32

    • policy.filters.span_idstring

      min length 16 · max length 16

    • policy.filters.startstring (date-time)
    • policy.filters.endstring (date-time)
    • policy.filters.limitinteger

      min 1 · max 1000

    • policy.threshold_severity"warning" | "critical"
    • policy.interval_minutesinteger
    • policy.channel_idsstring[]
    • policy.last_evaluated_atstring | null
    • policy.last_triggered_atstring | null
    • policy.last_summaryobject | null
    • policy.created_atstring
    • policy.updated_atstring
    • alertsobject[]
    • alerts[].[].pattern_signaturestring
    • alerts[].[].labelstring
    • alerts[].[].severitystring
    • alerts[].[].dispatchedboolean
    • alerts[].[].dedup_keystring
    • summaryobject
    • patternsobject[]
    • patterns[].[].idstring
    • patterns[].[].labelstring
    • patterns[].[].signaturestring
    • patterns[].[].severity"info" | "warning" | "critical"
    • patterns[].[].countinteger
    • patterns[].[].sharenumber
    • patterns[].[].response_codestring | null
    • patterns[].[].zonestring | null
    • patterns[].[].typestring | null
    • patterns[].[].sample_namestring | null
    • patterns[].[].first_seenstring
    • patterns[].[].last_seenstring
    • patterns[].[].hintstring
    • metaobject
  • 400Error
  • 401Error
  • 404Error
  • 500Error
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/relays/logs/patterns/policies/$POLICY_ID/evaluate" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Get the DNS query log retention policy (default 30 days when none is saved)

GET/v1/relays/logs/retention

relays:readTested with an API keyrelays_getLogRetention

Genesis scope relays:read. Local scope logs:read. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED). Default 30 days when none is saved.

Responses

  • 200Policy
    Response fields
    • policyobjectrequired
    • policy.idstring | null
    • policy.tenant_idstring
    • policy.source"dns_query"
    • policy.retention_daysinteger

      min 1 · max 3650

    • policy.archive_enabledboolean
    • policy.cold_storage"none" | "ocean"
    • policy.created_atstring | null
    • policy.updated_atstring | null
  • 401Error
  • 500Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/logs/retention" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Set the DNS query log retention policy

PUT/v1/relays/logs/retention

relays:writeTested with an API keyrelays_setLogRetention

Genesis scope relays:write. Local scope logs:write. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED). Narrows the queryable window; deletes nothing.

Request body application/json

  • source"dns_query"

    default "dns_query"

  • retention_daysintegerrequired

    min 1 · max 3650

  • archive_enabledboolean

    default false

  • cold_storage"none" | "ocean"

    default "none"

Responses

  • 200Policy
    Response fields
    • policyobjectrequired
    • policy.idstring | null
    • policy.tenant_idstring
    • policy.source"dns_query"
    • policy.retention_daysinteger

      min 1 · max 3650

    • policy.archive_enabledboolean
    • policy.cold_storage"none" | "ocean"
    • policy.created_atstring | null
    • policy.updated_atstring | null
  • 400Error
  • 401Error
  • 500Error
  • 4xx 5xxThe error envelope.
curl -X PUT "https://os.one.ml/api/v1/relays/logs/retention" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "retention_days": 1
  }'

Monitors

List uptime monitors with filters, stats and pagination

GET/v1/relays/monitors

relays:readTested with an API keyrelays_listMonitors

Genesis scope: relays:read. With relays:read alone the monitor credentials (http_auth password/token, header values, API-step headers and bodies, heartbeat ping token) come back as "***" and credentials_redacted is true; with relays:write they come back in clear. Local scope: monitors:read. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Parameters

  • pagequery · integer
  • limitquery · integer
  • statusquery · "active" | "paused" | "disabled"
  • target_typequery · "http" | "https" | "tcp" | "udp" | "dns" | "ping" | "ssl" | "heartbeat" | "keyword" | "api_sequence" | "domain_expiry"
  • current_statequery · "up" | "down" | "degraded" | "unknown" | "paused"
  • searchquery · string
  • tagquery · string
  • sortquery · "created_at" | "name" | "last_check_at" | "uptime_percentage"
  • orderquery · "asc" | "desc"

Responses

  • 200Monitors
    Response fields
    • monitorsobject[]required
    • monitors[].[].idstring (uuid)required
    • monitors[].[].tenant_idstringrequired
    • monitors[].[].namestringrequired
    • monitors[].[].descriptionstring | null
    • monitors[].[].target_type"http" | "https" | "tcp" | "udp" | "dns" | "ping" | "ssl" | "heartbeat" | "keyword" | "api_sequence" | "domain_expiry"required
    • monitors[].[].target_urlstring
    • monitors[].[].api_stepsobject[]
    • monitors[].[].api_steps[].[].namestringrequired

      min length 1 · max length 120

    • monitors[].[].api_steps[].[].method"GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS"

      default "GET"

    • monitors[].[].api_steps[].[].urlstring (uri)required

      max length 2048

    • monitors[].[].api_steps[].[].headersobject
    • monitors[].[].api_steps[].[].bodystring | null

      max length 10000

    • monitors[].[].api_steps[].[].expected_statusinteger[]

      default [200]

    • monitors[].[].api_steps[].[].expected_bodystring | null

      max length 1000

    • monitors[].[].api_steps[].[].expected_body_notstring | null

      max length 1000

    • monitors[].[].api_steps[].[].extractobject[]
    • monitors[].[].api_steps[].[].extract[].[].namestringrequired

      min length 1 · max length 64

    • monitors[].[].api_steps[].[].extract[].[].from"json" | "header" | "body"required
    • monitors[].[].api_steps[].[].extract[].[].pathstringrequired

      min length 1 · max length 255

    • monitors[].[].api_steps[].[].continue_on_failureboolean
    • monitors[].[].status"active" | "paused" | "disabled"required
    • monitors[].[].paused_atstring | null (date-time)
    • monitors[].[].pause_reasonstring | null
    • monitors[].[].current_state"up" | "down" | "degraded" | "unknown" | "paused"required
    • monitors[].[].current_response_msinteger | null
    • monitors[].[].last_check_atstring | null (date-time)
    • monitors[].[].last_state_change_atstring | null (date-time)
    • monitors[].[].last_up_atstring | null (date-time)
    • monitors[].[].last_down_atstring | null (date-time)
    • monitors[].[].consecutive_failuresinteger
    • monitors[].[].consecutive_successesinteger
    • monitors[].[].last_errorstring | null
    • monitors[].[].ssl_expires_atstring | null (date-time)
    • monitors[].[].ssl_issuerstring | null
    • monitors[].[].ssl_gradestring | null
    • monitors[].[].uptime_percentagenumber | null
    • monitors[].[].avg_response_msinteger | null
    • monitors[].[].p50_response_msinteger | null
    • monitors[].[].p95_response_msinteger | null
    • monitors[].[].p99_response_msinteger | null
    • monitors[].[].total_checksinteger
    • monitors[].[].failed_checksinteger
    • monitors[].[].failover_triggered_atstring | null (date-time)
    • monitors[].[].tagsstring[]
    • monitors[].[].created_atstring (date-time)required
    • monitors[].[].updated_atstring (date-time)required
    • statsobjectrequired
    • stats.totalinteger
    • stats.activeinteger
    • stats.pausedinteger
    • stats.upinteger
    • stats.downinteger
    • stats.degradedinteger
    • stats.unknowninteger
    • metaobjectrequired
    • meta.pageinteger
    • meta.per_pageinteger
    • meta.totalinteger
    • meta.total_pagesinteger
  • 400Error
  • 401Error
  • 403Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/monitors" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Create an uptime monitor

POST/v1/relays/monitors

relays:writeTested with an API keyrelays_createMonitor

Genesis scope: relays:write. Local scope: monitors:write. target_url is required unless target_type is api_sequence (then api_steps needs at least two steps). alert_channel_ids, failover_domain_id and dns_domain_id must be the tenant's (400 otherwise). 409 when the name already exists for the tenant. Takes monitor credentials (http_auth, headers). Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Request body application/json

  • namestringrequired

    min length 1 · max length 255

  • descriptionstring

    max length 2000

  • target_type"http" | "https" | "tcp" | "udp" | "dns" | "ping" | "ssl" | "heartbeat" | "keyword" | "api_sequence" | "domain_expiry"
  • target_urlstring

    min length 1 · max length 2048

  • target_portinteger

    min 1 · max 65535

  • target_hoststring

    max length 255

  • http_method"GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS"

    default "GET"

  • http_headersobject
  • http_bodystring

    max length 10000

  • http_expected_statusinteger[]

    default [200,201,204]

  • http_expected_bodystring

    max length 1000

  • http_expected_body_notstring

    max length 1000

  • http_follow_redirectsboolean

    default true

  • http_verify_sslboolean

    default true

  • http_authobject
  • http_auth.type"basic" | "bearer" | "api-key"required
  • http_auth.usernamestring
  • http_auth.passwordstring
  • http_auth.tokenstring
  • http_auth.header_namestring
  • api_stepsobject[]
  • api_steps[].[].namestringrequired

    min length 1 · max length 120

  • api_steps[].[].method"GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS"

    default "GET"

  • api_steps[].[].urlstring (uri)required

    max length 2048

  • api_steps[].[].headersobject
  • api_steps[].[].bodystring | null

    max length 10000

  • api_steps[].[].expected_statusinteger[]

    default [200]

  • api_steps[].[].expected_bodystring | null

    max length 1000

  • api_steps[].[].expected_body_notstring | null

    max length 1000

  • api_steps[].[].extractobject[]
  • api_steps[].[].extract[].[].namestringrequired

    min length 1 · max length 64

  • api_steps[].[].extract[].[].from"json" | "header" | "body"required
  • api_steps[].[].extract[].[].pathstringrequired

    min length 1 · max length 255

  • api_steps[].[].continue_on_failureboolean
  • dns_record_typestring

    max length 16

  • dns_expected_responsestring[]
  • dns_resolverstring

    max length 255

  • interval_secondsinteger

    min 30 · max 3600 · default 60

  • timeout_secondsinteger

    min 1 · max 120 · default 30

  • retriesinteger

    min 0 · max 10 · default 3

  • retry_interval_secondsinteger

    min 1 · max 300 · default 30

  • check_regions"dfw" | "ewr" | "gru" | "iad" | "lax" | "ord" | "sjc" | "yyz" | "ams" | "arn" | "cdg" | "fra" | "jnb" | "lhr" | "bom" | "nrt" | "sin" | "syd"[]

    default ["dfw","ewr","fra","sin","syd"]

  • quorum_type"all" | "majority" | "any" | "count"

    default "majority"

  • quorum_countinteger

    min 1 · max 18 · default 2

  • degraded_threshold_msinteger

    min 100 · max 30000 · default 1000

  • slow_threshold_msinteger

    min 100 · max 60000 · default 3000

  • alert_on_failureboolean

    default true

  • alert_on_recoveryboolean

    default true

  • alert_on_degradedboolean

    default false

  • alert_on_ssl_expiryboolean

    default true

  • ssl_expiry_warning_daysinteger

    min 1 · max 90 · default 14

  • alert_channel_idsstring (uuid)[]

    default []

  • alert_after_failuresinteger

    min 1 · max 10 · default 2

  • alert_after_minutesinteger

    min 0 · max 60 · default 0

  • failover_enabledboolean

    default false

  • failover_domain_idinteger
  • failover_record_namestring

    max length 255

  • failover_primary_ipstring

    max length 45

  • failover_backup_ipstring

    max length 45

  • failover_ttlinteger

    min 30 · max 86400 · default 60

  • tagsstring[]

    default []

  • heartbeat_interval_secondsinteger

    min 60 · max 86400

  • heartbeat_grace_secondsinteger

    min 60 · max 3600

  • dns_monitor_propagationboolean
  • dns_monitor_dnssecboolean
  • dns_monitor_nameserversboolean
  • dns_domain_idinteger

Responses

  • 201Created
    Response fields
    • idstring (uuid)required
    • tenant_idstringrequired
    • namestringrequired
    • descriptionstring | null
    • target_type"http" | "https" | "tcp" | "udp" | "dns" | "ping" | "ssl" | "heartbeat" | "keyword" | "api_sequence" | "domain_expiry"required
    • target_urlstring
    • api_stepsobject[]
    • api_steps[].[].namestringrequired

      min length 1 · max length 120

    • api_steps[].[].method"GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS"

      default "GET"

    • api_steps[].[].urlstring (uri)required

      max length 2048

    • api_steps[].[].headersobject
    • api_steps[].[].bodystring | null

      max length 10000

    • api_steps[].[].expected_statusinteger[]

      default [200]

    • api_steps[].[].expected_bodystring | null

      max length 1000

    • api_steps[].[].expected_body_notstring | null

      max length 1000

    • api_steps[].[].extractobject[]
    • api_steps[].[].extract[].[].namestringrequired

      min length 1 · max length 64

    • api_steps[].[].extract[].[].from"json" | "header" | "body"required
    • api_steps[].[].extract[].[].pathstringrequired

      min length 1 · max length 255

    • api_steps[].[].continue_on_failureboolean
    • status"active" | "paused" | "disabled"required
    • paused_atstring | null (date-time)
    • pause_reasonstring | null
    • current_state"up" | "down" | "degraded" | "unknown" | "paused"required
    • current_response_msinteger | null
    • last_check_atstring | null (date-time)
    • last_state_change_atstring | null (date-time)
    • last_up_atstring | null (date-time)
    • last_down_atstring | null (date-time)
    • consecutive_failuresinteger
    • consecutive_successesinteger
    • last_errorstring | null
    • ssl_expires_atstring | null (date-time)
    • ssl_issuerstring | null
    • ssl_gradestring | null
    • uptime_percentagenumber | null
    • avg_response_msinteger | null
    • p50_response_msinteger | null
    • p95_response_msinteger | null
    • p99_response_msinteger | null
    • total_checksinteger
    • failed_checksinteger
    • failover_triggered_atstring | null (date-time)
    • tagsstring[]
    • created_atstring (date-time)required
    • updated_atstring (date-time)required
  • 400Error
  • 401Error
  • 403Error
  • 409Error
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/relays/monitors" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "string"
  }'

Get a monitor with recent checks, recent alerts, heartbeat and DNS monitor config

GET/v1/relays/monitors/{monitorId}

relays:readTested with an API keyrelays_getMonitor

Genesis scope: relays:read. With relays:read alone the monitor credentials (http_auth password/token, header values, API-step headers and bodies, heartbeat ping token) come back as "***" and credentials_redacted is true; with relays:write they come back in clear. Local scope: monitors:read. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Parameters

  • monitorIdpath · stringrequired

Responses

  • 200Monitor detail
    Response fields
    • idstring (uuid)required
    • tenant_idstringrequired
    • namestringrequired
    • descriptionstring | null
    • target_type"http" | "https" | "tcp" | "udp" | "dns" | "ping" | "ssl" | "heartbeat" | "keyword" | "api_sequence" | "domain_expiry"required
    • target_urlstring
    • api_stepsobject[]
    • api_steps[].[].namestringrequired

      min length 1 · max length 120

    • api_steps[].[].method"GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS"

      default "GET"

    • api_steps[].[].urlstring (uri)required

      max length 2048

    • api_steps[].[].headersobject
    • api_steps[].[].bodystring | null

      max length 10000

    • api_steps[].[].expected_statusinteger[]

      default [200]

    • api_steps[].[].expected_bodystring | null

      max length 1000

    • api_steps[].[].expected_body_notstring | null

      max length 1000

    • api_steps[].[].extractobject[]
    • api_steps[].[].extract[].[].namestringrequired

      min length 1 · max length 64

    • api_steps[].[].extract[].[].from"json" | "header" | "body"required
    • api_steps[].[].extract[].[].pathstringrequired

      min length 1 · max length 255

    • api_steps[].[].continue_on_failureboolean
    • status"active" | "paused" | "disabled"required
    • paused_atstring | null (date-time)
    • pause_reasonstring | null
    • current_state"up" | "down" | "degraded" | "unknown" | "paused"required
    • current_response_msinteger | null
    • last_check_atstring | null (date-time)
    • last_state_change_atstring | null (date-time)
    • last_up_atstring | null (date-time)
    • last_down_atstring | null (date-time)
    • consecutive_failuresinteger
    • consecutive_successesinteger
    • last_errorstring | null
    • ssl_expires_atstring | null (date-time)
    • ssl_issuerstring | null
    • ssl_gradestring | null
    • uptime_percentagenumber | null
    • avg_response_msinteger | null
    • p50_response_msinteger | null
    • p95_response_msinteger | null
    • p99_response_msinteger | null
    • total_checksinteger
    • failed_checksinteger
    • failover_triggered_atstring | null (date-time)
    • tagsstring[]
    • created_atstring (date-time)required
    • updated_atstring (date-time)required
    • recent_checksobject[]
    • recent_alertsobject[]
    • heartbeatobject | null
    • dns_monitorobject | null
    • linked_componentsobject[]
  • 401Error
  • 403Error
  • 404Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/monitors/$MONITOR_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Delete a monitor (400 while linked to status page components)

DELETE/v1/relays/monitors/{monitorId}

relays:writeTested with an API keyrelays_deleteMonitor

Genesis scope: relays:write. Local scope: monitors:delete. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Parameters

  • monitorIdpath · stringrequired

Responses

  • 200Deleted
    Response fields
    • messagestringrequired
    • idstringrequired
  • 400Error
  • 401Error
  • 403Error
  • 404Error
  • 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/relays/monitors/$MONITOR_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Update monitor configuration (strict body, unknown fields rejected)

PATCH/v1/relays/monitors/{monitorId}

relays:writeTested with an API keyrelays_updateMonitor

Genesis scope: relays:write. Local scope: monitors:write. Strict body: unknown fields are refused. alert_channel_ids and failover_domain_id must be the tenant's (400 otherwise). Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Parameters

  • monitorIdpath · stringrequired

Request body application/json

  • namestring

    min length 1 · max length 255

  • descriptionstring | null

    max length 2000

  • target_type"http" | "https" | "tcp" | "udp" | "dns" | "ping" | "ssl" | "heartbeat" | "keyword" | "api_sequence" | "domain_expiry"
  • target_urlstring

    min length 1 · max length 2048

  • target_portinteger | null

    min 1 · max 65535

  • target_hoststring | null

    max length 255

  • http_method"GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS"
  • http_headersobject | null
  • http_bodystring | null

    max length 10000

  • http_expected_statusinteger[]
  • http_expected_bodystring | null

    max length 1000

  • http_expected_body_notstring | null

    max length 1000

  • http_follow_redirectsboolean
  • http_verify_sslboolean
  • http_authobject | null
  • api_stepsobject[]
  • api_steps[].[].namestringrequired

    min length 1 · max length 120

  • api_steps[].[].method"GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS"

    default "GET"

  • api_steps[].[].urlstring (uri)required

    max length 2048

  • api_steps[].[].headersobject
  • api_steps[].[].bodystring | null

    max length 10000

  • api_steps[].[].expected_statusinteger[]

    default [200]

  • api_steps[].[].expected_bodystring | null

    max length 1000

  • api_steps[].[].expected_body_notstring | null

    max length 1000

  • api_steps[].[].extractobject[]
  • api_steps[].[].extract[].[].namestringrequired

    min length 1 · max length 64

  • api_steps[].[].extract[].[].from"json" | "header" | "body"required
  • api_steps[].[].extract[].[].pathstringrequired

    min length 1 · max length 255

  • api_steps[].[].continue_on_failureboolean
  • dns_record_typestring | null

    max length 16

  • dns_expected_responsearray | null
  • dns_resolverstring | null

    max length 255

  • interval_secondsinteger

    min 30 · max 3600

  • timeout_secondsinteger

    min 1 · max 120

  • retriesinteger

    min 0 · max 10

  • retry_interval_secondsinteger

    min 1 · max 300

  • check_regions"dfw" | "ewr" | "gru" | "iad" | "lax" | "ord" | "sjc" | "yyz" | "ams" | "arn" | "cdg" | "fra" | "jnb" | "lhr" | "bom" | "nrt" | "sin" | "syd"[]
  • quorum_type"all" | "majority" | "any" | "count"
  • quorum_countinteger

    min 1 · max 18

  • degraded_threshold_msinteger

    min 100 · max 30000

  • slow_threshold_msinteger

    min 100 · max 60000

  • alert_on_failureboolean
  • alert_on_recoveryboolean
  • alert_on_degradedboolean
  • alert_on_ssl_expiryboolean
  • ssl_expiry_warning_daysinteger

    min 1 · max 90

  • alert_channel_idsstring (uuid)[]
  • alert_after_failuresinteger

    min 1 · max 10

  • alert_after_minutesinteger

    min 0 · max 60

  • failover_enabledboolean
  • failover_domain_idinteger | null
  • failover_record_namestring | null

    max length 255

  • failover_primary_ipstring | null

    max length 45

  • failover_backup_ipstring | null

    max length 45

  • failover_ttlinteger

    min 30 · max 86400

  • tagsstring[]

Responses

  • 200Updated monitor
    Response fields
    • idstring (uuid)required
    • tenant_idstringrequired
    • namestringrequired
    • descriptionstring | null
    • target_type"http" | "https" | "tcp" | "udp" | "dns" | "ping" | "ssl" | "heartbeat" | "keyword" | "api_sequence" | "domain_expiry"required
    • target_urlstring
    • api_stepsobject[]
    • api_steps[].[].namestringrequired

      min length 1 · max length 120

    • api_steps[].[].method"GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS"

      default "GET"

    • api_steps[].[].urlstring (uri)required

      max length 2048

    • api_steps[].[].headersobject
    • api_steps[].[].bodystring | null

      max length 10000

    • api_steps[].[].expected_statusinteger[]

      default [200]

    • api_steps[].[].expected_bodystring | null

      max length 1000

    • api_steps[].[].expected_body_notstring | null

      max length 1000

    • api_steps[].[].extractobject[]
    • api_steps[].[].extract[].[].namestringrequired

      min length 1 · max length 64

    • api_steps[].[].extract[].[].from"json" | "header" | "body"required
    • api_steps[].[].extract[].[].pathstringrequired

      min length 1 · max length 255

    • api_steps[].[].continue_on_failureboolean
    • status"active" | "paused" | "disabled"required
    • paused_atstring | null (date-time)
    • pause_reasonstring | null
    • current_state"up" | "down" | "degraded" | "unknown" | "paused"required
    • current_response_msinteger | null
    • last_check_atstring | null (date-time)
    • last_state_change_atstring | null (date-time)
    • last_up_atstring | null (date-time)
    • last_down_atstring | null (date-time)
    • consecutive_failuresinteger
    • consecutive_successesinteger
    • last_errorstring | null
    • ssl_expires_atstring | null (date-time)
    • ssl_issuerstring | null
    • ssl_gradestring | null
    • uptime_percentagenumber | null
    • avg_response_msinteger | null
    • p50_response_msinteger | null
    • p95_response_msinteger | null
    • p99_response_msinteger | null
    • total_checksinteger
    • failed_checksinteger
    • failover_triggered_atstring | null (date-time)
    • tagsstring[]
    • created_atstring (date-time)required
    • updated_atstring (date-time)required
  • 400Error
  • 401Error
  • 403Error
  • 404Error
  • 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/relays/monitors/$MONITOR_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

List monitor service level objectives

GET/v1/relays/monitors/slos

relays:readTested with an API keyrelays_listMonitorSlos

Genesis scope: relays:read. Local scope: monitors:read. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Parameters

  • monitor_idquery · string (uuid)
  • include_burn_ratequery · "true" | "false"

    Accepted by the validator but ignored by the handler

Responses

  • 200SLOs
    Response fields
    • slosobject[]required
    • slos[].[].idstring (uuid)required
    • slos[].[].tenant_idstringrequired
    • slos[].[].monitor_idstring (uuid)required
    • slos[].[].namestringrequired
    • slos[].[].descriptionstring | null
    • slos[].[].enabledbooleanrequired
    • slos[].[].target_percentagenumberrequired
    • slos[].[].window_daysintegerrequired
    • slos[].[].burn_rate_thresholdnumberrequired
    • slos[].[].alert_channel_idsstring[]
    • slos[].[].last_evaluated_atstring | null (date-time)
    • slos[].[].last_statusstring | null
    • slos[].[].last_burn_ratenumber | null
    • slos[].[].created_atstring (date-time)required
    • slos[].[].updated_atstring (date-time)required
  • 400Error
  • 401Error
  • 403Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/monitors/slos" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Create a monitor service level objective

POST/v1/relays/monitors/slos

relays:writeTested with an API keyrelays_createMonitorSlo

Genesis scope: relays:write. Local scope: monitors:write. monitor_id and alert_channel_ids must be the tenant's (404/400 otherwise). 409 when the name already exists for the monitor. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Request body application/json

  • monitor_idstring (uuid)required
  • namestringrequired

    min length 1 · max length 255

  • descriptionstring

    max length 2000

  • enabledboolean

    default true

  • target_percentagenumber

    min 90 · max 99.999 · default 99.9

  • window_daysinteger

    min 1 · max 365 · default 30

  • burn_rate_thresholdnumber

    min 1 · max 100 · default 4

  • alert_channel_idsstring (uuid)[]

    default []

Responses

  • 201Created
    Response fields
    • idstring (uuid)required
    • tenant_idstringrequired
    • monitor_idstring (uuid)required
    • namestringrequired
    • descriptionstring | null
    • enabledbooleanrequired
    • target_percentagenumberrequired
    • window_daysintegerrequired
    • burn_rate_thresholdnumberrequired
    • alert_channel_idsstring[]
    • last_evaluated_atstring | null (date-time)
    • last_statusstring | null
    • last_burn_ratenumber | null
    • created_atstring (date-time)required
    • updated_atstring (date-time)required
  • 400Error
  • 401Error
  • 403Error
  • 404Error
  • 409Error
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/relays/monitors/slos" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "monitor_id": "00000000-0000-4000-8000-000000000000",
    "name": "string"
  }'

Calculate error budget burn rates for enabled SLOs

GET/v1/relays/monitors/slos/burn-rate

relays:readTested with an API keyrelays_getMonitorSloBurnRates

Genesis scope: relays:read. Local scope: monitors:read. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Parameters

  • slo_idquery · string (uuid)
  • monitor_idquery · string (uuid)

Responses

  • 200Burn rates
    Response fields
    • burn_ratesobject[]required
    • burn_rates[].[].slo_idstring
    • burn_rates[].[].monitor_idstring
    • burn_rates[].[].namestring
    • burn_rates[].[].target_percentagenumber
    • burn_rates[].[].window_daysinteger
    • burn_rates[].[].availability_percentagenumber | null
    • burn_rates[].[].error_rate_percentagenumber | null
    • burn_rates[].[].error_budget_percentagenumber
    • burn_rates[].[].error_budget_consumed_percentnumber | null
    • burn_rates[].[].error_budget_remaining_percentnumber | null
    • burn_rates[].[].burn_ratenumber | null
    • burn_rates[].[].burn_rate_thresholdnumber
    • burn_rates[].[].total_checksinteger
    • burn_rates[].[].failed_checksinteger
    • burn_rates[].[].status"healthy" | "warning" | "critical" | "no_data"
    • summaryobjectrequired
    • summary.total_slosinteger
    • summary.healthyinteger
    • summary.warninginteger
    • summary.criticalinteger
    • summary.no_datainteger
    • metaobjectrequired
    • meta.generated_atstring (date-time)
  • 400Error
  • 401Error
  • 403Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/monitors/slos/burn-rate" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Checks

Check history for a monitor with range stats

GET/v1/relays/monitors/{monitorId}/checks

relays:readTested with an API keyrelays_listMonitorChecks

Genesis scope: relays:read. Local scope: monitors:read. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Parameters

  • monitorIdpath · stringrequired
  • pagequery · integer
  • limitquery · integer
  • successquery · "true" | "false"
  • sincequery · string (date-time)
  • untilquery · string (date-time)
  • include_regionsquery · "true" | "false"

Responses

  • 200Checks
    Response fields
    • monitor_idstringrequired
    • monitor_namestringrequired
    • checksobject[]required
    • checks[].[].idinteger
    • checks[].[].checked_atstring (date-time)
    • checks[].[].successboolean
    • checks[].[].response_time_msinteger | null
    • checks[].[].status_codeinteger | null
    • checks[].[].error_messagestring | null
    • checks[].[].error_codestring | null
    • checks[].[].tls_versionstring | null
    • checks[].[].tls_cipherstring | null
    • checks[].[].tls_cert_expires_atstring | null (date-time)
    • checks[].[].regions_queriedinteger | null
    • checks[].[].regions_succeededinteger | null
    • checks[].[].regionsobject[]

      Present only with include_regions=true

    • checks[].[].regions[].[].regionstring
    • checks[].[].regions[].[].successboolean
    • checks[].[].regions[].[].response_time_msinteger | null
    • checks[].[].regions[].[].status_codeinteger | null
    • checks[].[].regions[].[].error_messagestring | null
    • statsobjectrequired
    • stats.totalinteger
    • stats.successfulinteger
    • stats.failedinteger
    • stats.avg_response_msinteger | null
    • stats.min_response_msinteger | null
    • stats.max_response_msinteger | null
    • stats.p50_response_msinteger | null
    • stats.p95_response_msinteger | null
    • stats.p99_response_msinteger | null
    • metaobjectrequired
    • meta.pageinteger
    • meta.per_pageinteger
    • meta.totalinteger
    • meta.total_pagesinteger
  • 400Error
  • 401Error
  • 403Error
  • 404Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/monitors/$MONITOR_ID/checks" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Pause

Pause a monitor (400 when already paused)

POST/v1/relays/monitors/{monitorId}/pause

relays:writeTested with an API keyrelays_pauseMonitor

Genesis scope: relays:write. Local scope: monitors:write. The body is optional. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Parameters

  • monitorIdpath · stringrequired

Request body application/json

  • reasonstring

    max length 500

Responses

  • 200Paused
    Response fields
    • messagestringrequired
    • idstringrequired
    • status"paused"required
    • paused_atstring (date-time)required
    • reasonstring
  • 400Error
  • 401Error
  • 403Error
  • 404Error
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/relays/monitors/$MONITOR_ID/pause" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Resume

Resume a paused monitor (400 when not paused)

POST/v1/relays/monitors/{monitorId}/resume

relays:writeTested with an API keyrelays_resumeMonitor

Genesis scope: relays:write. Local scope: monitors:write. No body. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Parameters

  • monitorIdpath · stringrequired

Responses

  • 200Resumed
    Response fields
    • messagestringrequired
    • idstringrequired
    • status"active"required
    • resumed_atstring (date-time)required
  • 400Error
  • 401Error
  • 403Error
  • 404Error
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/relays/monitors/$MONITOR_ID/resume" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Test

Run one immediate check against the monitor target and return the result

POST/v1/relays/monitors/{monitorId}/test

relays:writeTested with an API keyrelays_testMonitor

Genesis scope: relays:write. Local scope: monitors:write. No body. Makes the service connect to the monitor target and returns what it saw. HTTP(S), SSL, API sequence and UDP checks run from Relays over sockets pinned to the checked addresses; TCP and ping go through the Relays probe with the checked address. Targets that resolve to a private, loopback, link-local, shared, reserved, multicast or cloud metadata address answer 400 before any connection. HTTP(S) redirects are followed only when the monitor says so (at most five, every hop checked again); API sequence steps never follow redirects. Response bodies are not returned; TCP and ping return only the outcome. Heartbeat and keyword monitors answer 500 unsupported. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Parameters

  • monitorIdpath · stringrequired

Responses

  • 200Test result (a probe timeout is also a 200 with success false)
    Response fields
    • monitor_idstringrequired
    • monitor_namestring
    • target_typestring
    • target_urlstring
    • test_resultobjectrequired
    • test_result.successboolean
    • test_result.status_codeinteger | null
    • test_result.response_time_msinteger | null
    • test_result.errorany

      String, or {code, message} on a probe timeout

    • full_resultobject
    • tested_atstring (date-time)required
  • 400Error
  • 401Error
  • 403Error
  • 404Error
  • 500Error
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/relays/monitors/$MONITOR_ID/test" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Mtls

List your mTLS certificate authorities

GET/v1/relays/mtls/cas

relays:readrelays_listMtlsCas

Genesis scope: relays:read. Local scope: certificates:read. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Responses

  • 200Certificate authorities
    Response fields

    A JSON object.

  • 400Error
  • 404Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/mtls/cas" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Create a private mTLS CA, or bring your own CA certificate for verification

POST/v1/relays/mtls/cas

relays:writerelays_createMtlsCa

Genesis scope: relays:write. Local scope: certificates:write. With certificate_pem the CA is trusted for verification only (no key). Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Request body application/json

  • namestring
  • descriptionstring
  • yearsinteger

    min 1 · max 20

  • certificate_pemstring

Responses

  • 201Certificate authority
    Response fields

    A JSON object.

  • 400Error
  • 404Error
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/relays/mtls/cas" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Get an mTLS certificate authority

GET/v1/relays/mtls/cas/{caId}

relays:readrelays_getMtlsCa

Genesis scope: relays:read. Local scope: certificates:read. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Parameters

  • caIdpath · stringrequired

Responses

  • 200Certificate authority
    Response fields

    A JSON object.

  • 400Error
  • 404Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/mtls/cas/$CA_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Get the CAs signed certificate revocation list

GET/v1/relays/mtls/cas/{caId}/crl

relays:readrelays_getMtlsCaCrl

Genesis scope: relays:read. Local scope: certificates:read. JSON with crl_pem, crl_number, this_update, next_update; ?format=pem answers application/pkix-crl. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Parameters

  • caIdpath · stringrequired
  • formatquery · "json" | "pem"

Responses

  • 200CRL
    Response fields

    A JSON object.

  • 400Error
  • 404Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/mtls/cas/$CA_ID/crl" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Check whether this CA would accept a client certificate now

POST/v1/relays/mtls/cas/{caId}/verify

relays:writerelays_verifyMtlsClientCertificate

Genesis scope: relays:write. Local scope: certificates:read. Read only: signature, validity window, clientAuth and revocation. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Parameters

  • caIdpath · stringrequired

Request body application/json

  • certificate_pemstring

Responses

  • 200Verdict
    Response fields

    A JSON object.

  • 400Error
  • 404Error
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/relays/mtls/cas/$CA_ID/verify" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

List your mTLS client certificates

GET/v1/relays/mtls/client-certificates

relays:readrelays_listMtlsClientCertificates

Genesis scope: relays:read. Local scope: certificates:read. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Parameters

  • ca_idquery · string (uuid)

Responses

  • 200Client certificates
    Response fields

    A JSON object.

  • 400Error
  • 404Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/mtls/client-certificates" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Issue a client certificate from your Relays CA (private key returned once)

POST/v1/relays/mtls/client-certificates

relays:writerelays_createMtlsClientCertificate

Genesis scope: relays:write. Local scope: certificates:write. The private key is in this answer only and is not stored. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Request body application/json

  • ca_idstring (uuid)
  • namestring
  • common_namestring
  • organizationstring
  • emailstring
  • daysinteger

    min 1 · max 825

  • descriptionstring

Responses

  • 201Client certificate with private_key_pem
    Response fields

    A JSON object.

  • 400Error
  • 404Error
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/relays/mtls/client-certificates" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Get an mTLS client certificate

GET/v1/relays/mtls/client-certificates/{clientId}

relays:readrelays_getMtlsClientCertificate

Genesis scope: relays:read. Local scope: certificates:read. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Parameters

  • clientIdpath · stringrequired

Responses

  • 200Client certificate
    Response fields

    A JSON object.

  • 400Error
  • 404Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/mtls/client-certificates/$CLIENT_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Revoke a client certificate (listed on the CAs next CRL)

POST/v1/relays/mtls/client-certificates/{clientId}/revoke

relays:writerelays_revokeMtlsClientCertificate

Genesis scope: relays:write. Local scope: certificates:write. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Parameters

  • clientIdpath · stringrequired

Request body application/json

  • reason"unspecified" | "keyCompromise" | "affiliationChanged" | "superseded" | "cessationOfOperation" | "privilegeWithdrawn"

Responses

  • 200Revoked client certificate
    Response fields

    A JSON object.

  • 400Error
  • 404Error
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/relays/mtls/client-certificates/$CLIENT_ID/revoke" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Status of a client certificate (good, revoked or expired; the OCSP question as JSON)

GET/v1/relays/mtls/client-certificates/{clientId}/status

relays:readrelays_getMtlsClientCertificateStatus

Genesis scope: relays:read. Local scope: certificates:read. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Parameters

  • clientIdpath · stringrequired

Responses

  • 200Status
    Response fields

    A JSON object.

  • 400Error
  • 404Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/mtls/client-certificates/$CLIENT_ID/status" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Nameservers

List the default Relays nameservers to delegate a zone to

GET/v1/relays/nameservers

relays:readTested with an API keyrelays_listNameservers

Requires Genesis scope relays:read; relays-web checks local scope nameservers:read. Acts on the selected project's existing Relays account; never provisions it (403 RELAYS_NOT_PROVISIONED until an owner or admin opens Relays). Custom (vanity) nameservers are not implemented; custom_nameservers is always null.

Responses

  • 200Default nameservers
    Response fields
    • default_nameserversobject[]required
    • default_nameservers[].[].hostnamestring
    • default_nameservers[].[].ipv4string
    • default_nameservers[].[].ipv6string
    • custom_nameserversnull

      Always null; custom nameservers are not implemented

    • custom_nameservers_statusstring
    • custom_nameservers_trackingstring
    • notestring
  • 401Error
  • 403Error
  • 500Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/nameservers" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Oncall

Detect on-call coverage gaps across up to 100 schedules

GET/v1/relays/oncall/coverage

relays:readTested with an API keyrelays_getOncallCoverage

Genesis scope: relays:read. Local scope: oncall:read. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Responses

  • 200Coverage report
    Response fields
    • summaryobjectrequired
    • summary.total_schedulesinteger
    • summary.active_schedulesinteger
    • summary.total_membersinteger
    • summary.schedules_with_gapsinteger
    • summary.critical_gapsinteger
    • summary.warning_gapsinteger
    • gapsobject[]required
    • gaps[].[].schedule_idstring
    • gaps[].[].schedule_namestring
    • gaps[].[].type"no_members" | "unassigned" | "disabled" | "missing_next_rotation"
    • gaps[].[].severity"critical" | "warning"
    • gaps[].[].messagestring
  • 401Error
  • 403Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/oncall/coverage" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

List on-call schedules

GET/v1/relays/oncall/schedules

relays:readTested with an API keyrelays_listOncallSchedules

Genesis scope: relays:read. Local scope: oncall:read. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Parameters

  • pagequery · integer
  • limitquery · integer
  • enabledquery · "true" | "false"
  • searchquery · string

Responses

  • 200Schedules
    Response fields
    • schedulesobject[]required
    • schedules[].[].idstring (uuid)required
    • schedules[].[].tenant_idstringrequired
    • schedules[].[].namestringrequired
    • schedules[].[].descriptionstring | null
    • schedules[].[].timezonestring
    • schedules[].[].rotation_typestring
    • schedules[].[].rotation_length_daysinteger
    • schedules[].[].handoff_timestring
    • schedules[].[].handoff_dayinteger
    • schedules[].[].current_oncall_user_idstring | null
    • schedules[].[].next_oncall_user_idstring | null
    • schedules[].[].rotation_starts_atstring | null (date-time)
    • schedules[].[].next_rotation_atstring | null (date-time)
    • schedules[].[].allow_self_coverageboolean
    • schedules[].[].require_acknowledgementboolean
    • schedules[].[].acknowledgement_timeout_minutesinteger
    • schedules[].[].auto_escalateboolean
    • schedules[].[].alert_channel_idsstring[]
    • schedules[].[].enabledboolean
    • schedules[].[].created_atstring (date-time)
    • schedules[].[].updated_atstring (date-time)
    • schedules[].[].membersobject[]required
    • schedules[].[].members[].[].user_idstring
    • schedules[].[].members[].[].positioninteger
    • schedules[].[].members[].[].userobject | null
    • schedules[].[].member_countintegerrequired
    • metaobjectrequired
    • meta.pageinteger
    • meta.per_pageinteger
    • meta.totalinteger
    • meta.total_pagesinteger
  • 400Error
  • 401Error
  • 403Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/oncall/schedules" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Create an on-call schedule with its rotation members

POST/v1/relays/oncall/schedules

relays:writeTested with an API keyrelays_createOncallSchedule

Genesis scope: relays:write. Local scope: oncall:write. members are Relays user ids of the tenant, in rotation order; members and escalation_policy_id outside the tenant answer 400. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Request body application/json

  • namestringrequired

    min length 1 · max length 255

  • descriptionstring | null

    max length 2000

  • timezonestring

    min length 1 · max length 64 · default "UTC"

  • rotation_type"daily" | "weekly" | "custom"

    default "weekly"

  • rotation_length_daysinteger

    Accepted but not stored min 1 · max 365

  • handoff_timestring

    default "09:00:00" · pattern ^\d{2}:\d{2}(:\d{2})?$

  • handoff_dayinteger

    min 0 · max 6 · default 1

  • escalation_policy_idstring | null (uuid)
  • enabledboolean

    default true

  • membersstring (uuid)[]

    Tenant user ids, at least one for a signed-in caller. An org API key has no users row: it must send [] (or omit members) and gets 400 for any user id; a signed-in member adds people later.

  • allow_self_coverageboolean

    Accepted but not stored

  • require_acknowledgementboolean

    Accepted but not stored

  • acknowledgement_timeout_minutesinteger

    Accepted but not stored min 1 · max 1440

  • auto_escalateboolean

    Accepted but not stored

  • alert_channel_idsstring (uuid)[]

    Not supported on on-call schedules: send [] or omit it; a non-empty list is 400 (relays#53)

Responses

  • 201Created (no override fields)
    Response fields
    • idstring (uuid)required
    • tenant_idstringrequired
    • namestringrequired
    • descriptionstring | null
    • timezonestring
    • rotation_typestring
    • rotation_length_daysinteger
    • handoff_timestring
    • handoff_dayinteger
    • current_oncall_user_idstring | null
    • next_oncall_user_idstring | null
    • rotation_starts_atstring | null (date-time)
    • next_rotation_atstring | null (date-time)
    • allow_self_coverageboolean
    • require_acknowledgementboolean
    • acknowledgement_timeout_minutesinteger
    • auto_escalateboolean
    • alert_channel_idsstring[]
    • enabledboolean
    • created_atstring (date-time)
    • updated_atstring (date-time)
    • membersobject[]required
    • members[].[].user_idstring
    • members[].[].positioninteger
    • members[].[].userobject | null
    • member_countintegerrequired
  • 400Error
  • 401Error
  • 403Error
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/relays/oncall/schedules" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "string"
  }'

Get a schedule with members and upcoming overrides

GET/v1/relays/oncall/schedules/{scheduleId}

relays:readTested with an API keyrelays_getOncallSchedule

Genesis scope: relays:read. Local scope: oncall:read. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Parameters

  • scheduleIdpath · stringrequired

Responses

  • 200Schedule
    Response fields
    • idstring (uuid)required
    • tenant_idstringrequired
    • namestringrequired
    • descriptionstring | null
    • timezonestring
    • rotation_typestring
    • rotation_length_daysinteger
    • handoff_timestring
    • handoff_dayinteger
    • current_oncall_user_idstring | null
    • next_oncall_user_idstring | null
    • rotation_starts_atstring | null (date-time)
    • next_rotation_atstring | null (date-time)
    • allow_self_coverageboolean
    • require_acknowledgementboolean
    • acknowledgement_timeout_minutesinteger
    • auto_escalateboolean
    • alert_channel_idsstring[]
    • enabledboolean
    • created_atstring (date-time)
    • updated_atstring (date-time)
    • membersobject[]required
    • members[].[].user_idstring
    • members[].[].positioninteger
    • members[].[].userobject | null
    • member_countintegerrequired
    • effective_oncall_user_idstring | null
    • effective_oncall_userobject | null
    • active_overrideobject | null
    • upcoming_overridesobject[]
    • upcoming_overrides[].[].idstring
    • upcoming_overrides[].[].user_idstring
    • upcoming_overrides[].[].userobject | null
    • upcoming_overrides[].[].starts_atstring (date-time)
    • upcoming_overrides[].[].ends_atstring (date-time)
    • upcoming_overrides[].[].reasonstring | null
  • 401Error
  • 403Error
  • 404Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/oncall/schedules/$SCHEDULE_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Delete an on-call schedule

DELETE/v1/relays/oncall/schedules/{scheduleId}

relays:writeTested with an API keyrelays_deleteOncallSchedule

Genesis scope: relays:write. Local scope: oncall:delete. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Parameters

  • scheduleIdpath · stringrequired

Responses

curl -X DELETE "https://os.one.ml/api/v1/relays/oncall/schedules/$SCHEDULE_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Update a schedule, or create or delete an override (create_override and delete_override_id are mutually exclusive actions)

PATCH/v1/relays/oncall/schedules/{scheduleId}

relays:writeTested with an API keyrelays_updateOncallSchedule

Genesis scope: relays:write. Local scope: oncall:write (also covers override deletion). create_override answers 201 {override}; delete_override_id answers {deleted:true} (404 when the schedule is not the tenant's or the override is not on it); otherwise the updated schedule. members, create_override.user_id and escalation_policy_id must be the tenant's (400 otherwise). Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Parameters

  • scheduleIdpath · stringrequired

Request body application/json

  • namestring

    min length 1 · max length 255

  • descriptionstring | null

    max length 2000

  • timezonestring

    min length 1 · max length 64

  • rotation_type"daily" | "weekly" | "custom"
  • handoff_timestring

    pattern ^\d{2}:\d{2}(:\d{2})?$

  • handoff_dayinteger

    min 0 · max 6

  • escalation_policy_idstring | null (uuid)
  • enabledboolean
  • membersstring (uuid)[]

    Replaces the whole rotation (at least one member). Signed-in callers only: an org API key gets 400 for members (even []) and for create_override.

  • create_overrideobject
  • create_override.user_idstring (uuid)required
  • create_override.starts_atstring (date-time)required
  • create_override.ends_atstring (date-time)required
  • create_override.reasonstring

    max length 2000

  • delete_override_idstring (uuid)

Responses

  • 200Updated schedule, or {deleted: true} for an override delete
    Response fields

    A JSON object.

  • 201Override created
    Response fields
    • overrideobjectrequired
    • override.idstring
    • override.user_idstring
    • override.userobject | null
    • override.starts_atstring (date-time)
    • override.ends_atstring (date-time)
    • override.reasonstring | null
  • 400Error
  • 401Error
  • 403Error
  • 404Error
  • 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/relays/oncall/schedules/$SCHEDULE_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Validate

Validate a provider connection, optionally with a live provider call

POST/v1/relays/provider-connections/{connectionId}/validate

relays:writeTested with an API keyrelays_validateProviderConnection

Genesis scope relays:write; local scope dns:write. Acts on the selected project's existing Relays account and never provisions it. Without live (or live false) it only reports metadata_valid. live true lists the provider's zones as a credential check and marks the connection active. Manual-bridge providers answer manual_bridge.

Parameters

  • connectionIdpath · stringrequired

Request body application/json

  • liveboolean

    true runs a provider API call default false

Responses

  • 200Validation result
    Response fields
    • connectionIdstring
    • providerstring
    • liveboolean
    • status"metadata_valid" | "active" | "manual_bridge"
    • messagestring
    • zonesDiscoveredinteger
  • 400Error
  • 401Error
  • 403Error
  • 404Error
  • 500Provider credential error
  • 501No runtime implemented for this provider
  • 502Provider API error
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/relays/provider-connections/$CONNECTION_ID/validate" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Registrar

List what the person's domains need from them

GET/v1/relays/registrar/attention

relays:readrelays_listDomainAttention

Nothing is charged. The person's own session only (One or the Console; API keys, agents and fleets are refused with 403 PERSON_ONLY). Genesis scope relays:read. Renewals due (with their open quote), registrant email verification the registry is waiting for, orders under review and disputed charges.

Responses

  • 200Items needing the person
    Response fields
    • itemsobject[]required
    • items[].[].domainstringrequired
    • items[].[].kind"renewal_due" | "verify_registrant_email" | "needs_review" | "disputed"required
    • items[].[].quote_idstring
    • items[].[].due_atstring (date-time)
  • 401Error
  • 403Error
  • 500Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/registrar/attention" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

List the account's domains and their registration state

GET/v1/relays/registrar/domains

relays:readTested with an API keyrelays_listRegistrarDomains

Genesis scope relays:read; local scope registrar:read. Acts on the selected project's existing Relays account and never provisions it. Lists every zone the account holds; registered is false and registration null for a zone with no registration through Relays.

Parameters

  • pagequery · integer
  • limitquery · integer

    Capped at 100

Responses

  • 200Domains
    Response fields
    • domainsobject[]
    • domains[].[].idinteger
    • domains[].[].namestring
    • domains[].[].registeredboolean

      True when Relays holds a registration for the domain

    • domains[].[].statusstring
    • domains[].[].registrationobject | null

      null when the zone has no registration through Relays

    • domains[].[].registration.order_idstring | null
    • domains[].[].registration.expiration_datestring | null (date-time)
    • domains[].[].registration.auto_renewboolean
    • domains[].[].registration.whois_privacyboolean
    • domains[].[].registration.lock_statusboolean
    • domains[].[].created_atstring (date-time)
    • metaobject
    • meta.pageinteger
    • meta.per_pageinteger
    • meta.totalinteger
    • meta.total_pagesinteger
  • 400Error
  • 401Error
  • 403Error
  • 500Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/registrar/domains" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Get one domain's registration state

GET/v1/relays/registrar/domains/{domain}

relays:readTested with an API keyrelays_getRegistrarDomain

Genesis scope relays:read; local scope registrar:read. Acts on the selected project's existing Relays account and never provisions it. 404 when the account holds no such zone.

Parameters

  • domainpath · stringrequired

Responses

  • 200Domain
    Response fields
    • idinteger
    • namestring
    • registeredboolean

      True when Relays holds a registration for the domain

    • statusstring
    • registrationobject | null

      null when the zone has no registration through Relays

    • registration.order_idstring | null
    • registration.expiration_datestring | null (date-time)
    • registration.auto_renewboolean
    • registration.whois_privacyboolean
    • registration.lock_statusboolean
    • created_atstring (date-time)
    • updated_atstring (date-time)
  • 401Error
  • 403Error
  • 404Error
  • 500Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/registrar/domains/$DOMAIN" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Reveal the transfer auth code of one of the person's domains

POST/v1/relays/registrar/domains/{domain}/auth-code

relays:writerelays_revealDomainAuthCode

Reveals the auth code that moves the domain to another registrar. Only the person's One session, with the person's approval for this exact request (x-one-approval, a Taps item claimed once and bound to it); the Console, API keys, agents and fleets are refused (403). The code goes to the person only: it is never logged and never in events.

Parameters

  • domainpath · stringrequired
  • x-one-approvalheader · stringrequired

    The approved Taps item for this exact request

Request body application/json

A JSON object; see the description above.

Responses

  • 200The auth code
    Response fields
    • auth_codestringrequired
  • 401Error
  • 403Error
  • 404Error
  • 500Error
  • 502Error
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/relays/registrar/domains/$DOMAIN/auth-code" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Quote a renewal of one of the person's domains

POST/v1/relays/registrar/domains/{domain}/renew-quotes

relays:writerelays_createDomainRenewQuote

Nothing is charged. The person's own session only (One or the Console; API keys, agents and fleets are refused with 403 PERSON_ONLY). Genesis scope relays:write (every POST). The domain must be one of the person's own registrations. One open renewal quote per domain and current expiry: a new one voids the previous (state: void).

Parameters

  • domainpath · stringrequired

Request body application/json

A JSON object; see the description above.

Responses

  • 201The renewal quote
    Response fields
    • quoteobjectrequired
    • quote.idstringrequired

      pattern ^dq_[A-Za-z0-9]{26}$

    • quote.operation"register" | "renew"required
    • quote.state"open" | "used" | "void" | "expired"required
    • quote.domainstringrequired

      ASCII (xn-- for IDN)

    • quote.domain_unicodestringrequired
    • quote.periodintegerrequired

      Years

    • quote.amount_minorintegerrequired

      Registrar cost for the period rounded up to the cent; what the card is charged

    • quote.currency"usd"required
    • quote.renew_amount_minor_per_yearinteger | null
    • quote.registered_untilstring | null (date-time)

      Best estimate

    • quote.expires_atstring (date-time)required

      The quote's own expiry (15 minutes)

    • quote.whois_privacy"on" | "unavailable"required

      unavailable: this ending shows the owner publicly

    • quote.registrantstringrequired

      Opaque id of the person's registrant pattern ^rh_[0-9a-f]{16}$

    • quote.approval_bodyobjectrequired

      What the person approves and the purchase body: the quote's approval_body, exactly

    • quote.approval_body.quote_idstringrequired

      pattern ^dq_[A-Za-z0-9]{26}$

    • quote.approval_body.domainstringrequired

      ASCII (xn-- for IDN)

    • quote.approval_body.periodintegerrequired

      min 1 · max 10

    • quote.approval_body.amount_minorintegerrequired

      Amount charged to the card, in cents min 0

    • quote.approval_body.currency"usd"required
    • quote.approval_body.registrantstringrequired

      pattern ^rh_[0-9a-f]{16}$

  • 400Error
  • 401Error
  • 403Error
  • 404Error
  • 429Error
  • 500Error
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/relays/registrar/domains/$DOMAIN/renew-quotes" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Quote a domain registration for the person

POST/v1/relays/registrar/quotes

relays:writerelays_createDomainQuote

Nothing is charged. The person's own session only (One or the Console; API keys, agents and fleets are refused with 403 PERSON_ONLY). Genesis scope relays:write (every POST); acts on the selected project's existing Relays account and never provisions it. Checks availability, premium status and the registrar's cost now and answers a quote bound to the person, open for 15 minutes. amount_minor is the registrar's cost for the period, rounded up to the cent, in USD. contact is needed only when the person has no registrant yet; registrant details live only at the registrar, and the quote names them by an opaque registrant id. WHOIS privacy is on wherever the ending allows it (whois_privacy).

Request body application/json

  • domainstringrequired

    Domain name, Unicode or xn-- min length 3 · max length 253

  • periodinteger

    Years min 1 · max 10 · default 1

  • contactobject

    The v1 registrant contact shape; held only at the registrar, never stored by Relays

  • contact.first_namestringrequired
  • contact.last_namestringrequired
  • contact.organizationstring
  • contact.emailstring (email)required
  • contact.phonestringrequired

    E.164-style, e.g. +1.2145550100

  • contact.address1stringrequired
  • contact.address2string
  • contact.citystringrequired
  • contact.statestring
  • contact.postal_codestringrequired
  • contact.countrystringrequired

    ISO 3166-1 alpha-2 min length 2 · max length 2

Responses

  • 201The quote
    Response fields
    • quoteobjectrequired
    • quote.idstringrequired

      pattern ^dq_[A-Za-z0-9]{26}$

    • quote.operation"register" | "renew"required
    • quote.state"open" | "used" | "void" | "expired"required
    • quote.domainstringrequired

      ASCII (xn-- for IDN)

    • quote.domain_unicodestringrequired
    • quote.periodintegerrequired

      Years

    • quote.amount_minorintegerrequired

      Registrar cost for the period rounded up to the cent; what the card is charged

    • quote.currency"usd"required
    • quote.renew_amount_minor_per_yearinteger | null
    • quote.registered_untilstring | null (date-time)

      Best estimate

    • quote.expires_atstring (date-time)required

      The quote's own expiry (15 minutes)

    • quote.whois_privacy"on" | "unavailable"required

      unavailable: this ending shows the owner publicly

    • quote.registrantstringrequired

      Opaque id of the person's registrant pattern ^rh_[0-9a-f]{16}$

    • quote.approval_bodyobjectrequired

      What the person approves and the purchase body: the quote's approval_body, exactly

    • quote.approval_body.quote_idstringrequired

      pattern ^dq_[A-Za-z0-9]{26}$

    • quote.approval_body.domainstringrequired

      ASCII (xn-- for IDN)

    • quote.approval_body.periodintegerrequired

      min 1 · max 10

    • quote.approval_body.amount_minorintegerrequired

      Amount charged to the card, in cents min 0

    • quote.approval_body.currency"usd"required
    • quote.approval_body.registrantstringrequired

      pattern ^rh_[0-9a-f]{16}$

  • 400Error
  • 401Error
  • 403Error
  • 409Error
  • 429Error
  • 500Error
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/relays/registrar/quotes" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "domain": "string"
  }'

Get one of the person's domain quotes

GET/v1/relays/registrar/quotes/{quoteId}

relays:readrelays_getDomainQuote

Nothing is charged. The person's own session only (One or the Console; API keys, agents and fleets are refused with 403 PERSON_ONLY). Genesis scope relays:read. A quote is the person's own: another person's quote is 404. state is open, used, void (replaced by a newer renewal quote) or expired.

Parameters

  • quoteIdpath · stringrequired

Responses

  • 200The quote
    Response fields
    • quoteobjectrequired
    • quote.idstringrequired

      pattern ^dq_[A-Za-z0-9]{26}$

    • quote.operation"register" | "renew"required
    • quote.state"open" | "used" | "void" | "expired"required
    • quote.domainstringrequired

      ASCII (xn-- for IDN)

    • quote.domain_unicodestringrequired
    • quote.periodintegerrequired

      Years

    • quote.amount_minorintegerrequired

      Registrar cost for the period rounded up to the cent; what the card is charged

    • quote.currency"usd"required
    • quote.renew_amount_minor_per_yearinteger | null
    • quote.registered_untilstring | null (date-time)

      Best estimate

    • quote.expires_atstring (date-time)required

      The quote's own expiry (15 minutes)

    • quote.whois_privacy"on" | "unavailable"required

      unavailable: this ending shows the owner publicly

    • quote.registrantstringrequired

      Opaque id of the person's registrant pattern ^rh_[0-9a-f]{16}$

    • quote.approval_bodyobjectrequired

      What the person approves and the purchase body: the quote's approval_body, exactly

    • quote.approval_body.quote_idstringrequired

      pattern ^dq_[A-Za-z0-9]{26}$

    • quote.approval_body.domainstringrequired

      ASCII (xn-- for IDN)

    • quote.approval_body.periodintegerrequired

      min 1 · max 10

    • quote.approval_body.amount_minorintegerrequired

      Amount charged to the card, in cents min 0

    • quote.approval_body.currency"usd"required
    • quote.approval_body.registrantstringrequired

      pattern ^rh_[0-9a-f]{16}$

  • 401Error
  • 403Error
  • 404Error
  • 500Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/registrar/quotes/$QUOTE_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Buy the quoted domain, charging the person's card

POST/v1/relays/registrar/quotes/{quoteId}/purchase

relays:writerelays_purchaseDomainQuote

Charges the person's card for the quoted amount through Pay, then registers or renews the domain at the registrar in the person's name; if the registrar refuses or the price moved, the charge is refunded. Only the person's One session, with the person's approval for this exact purchase (x-one-approval, a Taps item claimed once and bound to this request and body); the Console, API keys, agents and fleets are refused (403). The body is the quote's approval_body exactly. Availability, premium status and the registrar's cost are checked again before any charge. A quote is used once: a replay answers the same order.

Parameters

  • quoteIdpath · stringrequired
  • x-one-approvalheader · stringrequired

    The approved Taps item for this exact purchase

Request body application/json

  • quote_idstringrequired

    pattern ^dq_[A-Za-z0-9]{26}$

  • domainstringrequired

    ASCII (xn-- for IDN)

  • periodintegerrequired

    min 1 · max 10

  • amount_minorintegerrequired

    Amount charged to the card, in cents min 0

  • currency"usd"required
  • registrantstringrequired

    pattern ^rh_[0-9a-f]{16}$

Responses

  • 200The order
    Response fields
    • orderobjectrequired
    • order.idstringrequired
    • order.quote_idstringrequired
    • order.operation"register" | "renew"required
    • order.domainstringrequired
    • order.domain_unicodestringrequired
    • order.periodintegerrequired
    • order.amount_minorintegerrequired
    • order.currency"usd"required
    • order.status"registered" | "renewed" | "refunded" | "declined" | "checking" | "needs_review"required
    • order.registered_untilstring | null (date-time)
    • order.paymentobject | null
    • order.payment.refstring

      chg_…

    • order.payment.statusstring
    • order.refundobject
    • order.refund.status"refunded" | "refunding" | "released"
    • order.messagestring
  • 400Error
  • 401Error
  • 402Error
  • 403Error
  • 404Error
  • 409Error
  • 410Error
  • 429Error
  • 500Error
  • 502Error
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/relays/registrar/quotes/$QUOTE_ID/purchase" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "quote_id": "string",
    "domain": "string",
    "period": 1,
    "amount_minor": 0,
    "currency": "usd",
    "registrant": "string"
  }'

Search domain availability across TLDs

GET/v1/relays/registrar/search

relays:readTested with an API keyrelays_searchRegistrarDomains

Genesis scope relays:read; local scope registrar:read. Acts on the selected project's existing Relays account and never provisions it. Availability lookups only; nothing is bought. source says where availability came from: opensrs (the registrar) or unconfigured (a built-in sample, outside production only; production answers 503 REGISTRAR_NOT_CONFIGURED). Prices are Relays list prices for the TLD (price.basis: list), not a registrar quote. A TLD whose lookup failed has checked: false.

Parameters

  • qquery · stringrequired

    Name to search, at least 2 characters; the part before the first dot is used

  • tldsquery · string

    Up to 10 comma-separated TLDs, default com,net,org,io,dev,ai,co,app

  • suggestionsquery · boolean

    true returns available variations of the name instead of per-TLD results

Responses

  • 200Search results or suggestions
    Response fields
    • querystringrequired
    • source"opensrs" | "unconfigured"required

      opensrs: the registrar answered; unconfigured: a built-in sample (never in production)

    • resultsobject[]
    • results[].[].domainstring
    • results[].[].checkedboolean

      false when the lookup failed; available is then false but unknown

    • results[].[].availableboolean
    • results[].[].premiumboolean
    • results[].[].priceobject
    • results[].[].price.amountnumber
    • results[].[].price.currencystring
    • results[].[].price.periodinteger

      Years

    • results[].[].price.basis"list"

      Relays list price for the TLD, not a registrar quote

    • suggestionsobject[]
    • suggestions[].[].domainstring
    • suggestions[].[].availableboolean
    • suggestions[].[].priceobject
    • suggestions[].[].price.amountnumber
    • suggestions[].[].price.currencystring
    • suggestions[].[].price.periodinteger

      Years

    • suggestions[].[].price.basis"list"

      Relays list price for the TLD, not a registrar quote

  • 400Error
  • 401Error
  • 403Error
  • 500Error
  • 503The registrar is not configured (REGISTRAR_NOT_CONFIGURED)
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/registrar/search?q=$Q" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Status pages

List status pages with component and subscriber counts

GET/v1/relays/status-pages

relays:readTested with an API keyrelays_listStatusPages

Genesis scope: relays:read. Local scope: status-pages:read. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Parameters

  • pagequery · integer
  • limitquery · integer
  • searchquery · string
  • is_publicquery · "true" | "false"

Responses

  • 200Status pages
    Response fields
    • status_pagesobject[]required
    • status_pages[].[].idstring (uuid)required
    • status_pages[].[].tenant_idstringrequired
    • status_pages[].[].namestringrequired
    • status_pages[].[].subdomainstringrequired
    • status_pages[].[].custom_domainstring | null
    • status_pages[].[].custom_domain_verifiedboolean | null
    • status_pages[].[].custom_domain_sslboolean
    • status_pages[].[].logo_urlstring | null
    • status_pages[].[].favicon_urlstring | null
    • status_pages[].[].brand_colorstring | null
    • status_pages[].[].background_colorstring | null
    • status_pages[].[].text_colorstring | null
    • status_pages[].[].header_textstring | null
    • status_pages[].[].footer_textstring | null
    • status_pages[].[].page_titlestring | null
    • status_pages[].[].page_descriptionstring | null
    • status_pages[].[].custom_cssstring | null
    • status_pages[].[].support_urlstring | null
    • status_pages[].[].support_emailstring | null
    • status_pages[].[].is_publicboolean
    • status_pages[].[].visibility"public" | "private" | "password"required
    • status_pages[].[].allowed_ip_cidrsstring[]
    • status_pages[].[].allow_subscriptionsboolean
    • status_pages[].[].allow_email_subscriptionsboolean
    • status_pages[].[].allow_sms_subscriptionsboolean
    • status_pages[].[].allow_webhook_subscriptionsboolean
    • status_pages[].[].allow_rssboolean
    • status_pages[].[].show_uptime_graphboolean
    • status_pages[].[].show_response_time_graphboolean
    • status_pages[].[].uptime_days_to_showinteger
    • status_pages[].[].enable_dark_modeboolean
    • status_pages[].[].default_dark_modeboolean
    • status_pages[].[].overall_statusstring | nullrequired
    • status_pages[].[].timezonestring
    • status_pages[].[].google_analytics_idstring | null
    • status_pages[].[].created_atstring (date-time)required
    • status_pages[].[].updated_atstring (date-time)required
    • status_pages[].[].component_countinteger
    • status_pages[].[].subscriber_countinteger
    • metaobjectrequired
    • meta.pageinteger
    • meta.per_pageinteger
    • meta.totalinteger
    • meta.total_pagesinteger
  • 400Error
  • 401Error
  • 403Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/status-pages" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Create a status page

POST/v1/relays/status-pages

relays:writeTested with an API keyrelays_createStatusPage

Genesis scope: relays:write. Local scope: status-pages:write. subdomain is globally unique (409). background_color, text_color, header_text, footer_text, allow_rss, timezone and the per-channel allow_*_subscriptions are accepted but not stored. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Request body application/json

  • namestringrequired

    min length 1 · max length 255

  • subdomainstringrequired

    min length 3 · max length 63 · pattern ^[a-z0-9-]+$

  • custom_domainstring

    max length 255

  • logo_urlstring (uri)

    max length 2048

  • favicon_urlstring (uri)

    max length 2048

  • brand_colorstring

    default "#000000" · pattern ^#[0-9A-Fa-f]{6}$

  • background_colorstring

    Accepted but not stored default "#ffffff" · pattern ^#[0-9A-Fa-f]{6}$

  • text_colorstring

    Accepted but not stored default "#111111" · pattern ^#[0-9A-Fa-f]{6}$

  • header_textstring

    Accepted but not stored max length 500

  • footer_textstring

    Accepted but not stored max length 500

  • custom_cssstring | null

    max length 20000

  • support_urlstring (uri)

    max length 2048

  • support_emailstring (email)

    max length 255

  • page_titlestring

    max length 255

  • page_descriptionstring

    max length 1000

  • is_publicboolean

    default true

  • visibility"public" | "private" | "password"

    default "public"

  • password_hashstring

    max length 255

  • allowed_ip_cidrsstring[]
  • allow_subscriptionsboolean

    default true

  • allow_email_subscriptionsboolean

    Folded into allow_subscriptions default true

  • allow_sms_subscriptionsboolean

    Folded into allow_subscriptions default false

  • allow_webhook_subscriptionsboolean

    Folded into allow_subscriptions default true

  • allow_rssboolean

    Accepted but not stored default true

  • show_uptime_graphboolean

    default true

  • show_response_time_graphboolean

    default true

  • uptime_days_to_showinteger

    min 7 · max 365 · default 90

  • enable_dark_modeboolean

    default true

  • default_dark_modeboolean

    default false

  • timezonestring

    Accepted but not stored max length 64 · default "UTC"

  • google_analytics_idstring

    max length 50

Responses

  • 201Created
    Response fields
    • idstring (uuid)required
    • tenant_idstringrequired
    • namestringrequired
    • subdomainstringrequired
    • custom_domainstring | null
    • custom_domain_verifiedboolean | null
    • custom_domain_sslboolean
    • logo_urlstring | null
    • favicon_urlstring | null
    • brand_colorstring | null
    • background_colorstring | null
    • text_colorstring | null
    • header_textstring | null
    • footer_textstring | null
    • page_titlestring | null
    • page_descriptionstring | null
    • custom_cssstring | null
    • support_urlstring | null
    • support_emailstring | null
    • is_publicboolean
    • visibility"public" | "private" | "password"required
    • allowed_ip_cidrsstring[]
    • allow_subscriptionsboolean
    • allow_email_subscriptionsboolean
    • allow_sms_subscriptionsboolean
    • allow_webhook_subscriptionsboolean
    • allow_rssboolean
    • show_uptime_graphboolean
    • show_response_time_graphboolean
    • uptime_days_to_showinteger
    • enable_dark_modeboolean
    • default_dark_modeboolean
    • overall_statusstring | nullrequired
    • timezonestring
    • google_analytics_idstring | null
    • created_atstring (date-time)required
    • updated_atstring (date-time)required
    • component_countinteger
    • subscriber_countinteger
    • public_urlstring
  • 400Error
  • 401Error
  • 403Error
  • 409Error
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/relays/status-pages" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "string",
    "subdomain": "string"
  }'

Get a status page with component groups, subscriber counts and recent incidents

GET/v1/relays/status-pages/{pageId}

relays:readTested with an API keyrelays_getStatusPage

Genesis scope: relays:read. Local scope: status-pages:read. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Parameters

  • pageIdpath · stringrequired

Responses

  • 200Status page
    Response fields
    • idstring (uuid)required
    • tenant_idstringrequired
    • namestringrequired
    • subdomainstringrequired
    • custom_domainstring | null
    • custom_domain_verifiedboolean | null
    • custom_domain_sslboolean
    • logo_urlstring | null
    • favicon_urlstring | null
    • brand_colorstring | null
    • background_colorstring | null
    • text_colorstring | null
    • header_textstring | null
    • footer_textstring | null
    • page_titlestring | null
    • page_descriptionstring | null
    • custom_cssstring | null
    • support_urlstring | null
    • support_emailstring | null
    • is_publicboolean
    • visibility"public" | "private" | "password"required
    • allowed_ip_cidrsstring[]
    • allow_subscriptionsboolean
    • allow_email_subscriptionsboolean
    • allow_sms_subscriptionsboolean
    • allow_webhook_subscriptionsboolean
    • allow_rssboolean
    • show_uptime_graphboolean
    • show_response_time_graphboolean
    • uptime_days_to_showinteger
    • enable_dark_modeboolean
    • default_dark_modeboolean
    • overall_statusstring | nullrequired
    • timezonestring
    • google_analytics_idstring | null
    • created_atstring (date-time)required
    • updated_atstring (date-time)required
    • public_urlstring
    • component_groupsobject[]
    • component_groups[].[].idstring
    • component_groups[].[].namestring
    • component_groups[].[].descriptionstring | null
    • component_groups[].[].is_collapsedboolean
    • component_groups[].[].display_orderinteger
    • component_groups[].[].created_atstring (date-time)
    • component_groups[].[].componentsobject[]
    • component_groups[].[].components[].[].idstring
    • component_groups[].[].components[].[].namestring
    • component_groups[].[].components[].[].descriptionstring | null
    • component_groups[].[].components[].[].group_idstring | null
    • component_groups[].[].components[].[].monitor_idstring | null
    • component_groups[].[].components[].[].current_status"operational" | "degraded_performance" | "partial_outage" | "major_outage" | "maintenance" | "unknown" | null
    • component_groups[].[].components[].[].show_uptimeboolean
    • component_groups[].[].components[].[].display_orderinteger
    • component_groups[].[].components[].[].start_datestring | null
    • component_groups[].[].components[].[].created_atstring (date-time)
    • component_groups[].[].components[].[].updated_atstring (date-time)
    • ungrouped_componentsobject[]
    • ungrouped_components[].[].idstring
    • ungrouped_components[].[].namestring
    • ungrouped_components[].[].descriptionstring | null
    • ungrouped_components[].[].group_idstring | null
    • ungrouped_components[].[].monitor_idstring | null
    • ungrouped_components[].[].current_status"operational" | "degraded_performance" | "partial_outage" | "major_outage" | "maintenance" | "unknown" | null
    • ungrouped_components[].[].show_uptimeboolean
    • ungrouped_components[].[].display_orderinteger
    • ungrouped_components[].[].start_datestring | null
    • ungrouped_components[].[].created_atstring (date-time)
    • ungrouped_components[].[].updated_atstring (date-time)
    • component_countinteger
    • subscribersobject
    • subscribers.totalinteger
    • subscribers.emailinteger
    • subscribers.smsinteger
    • subscribers.webhookinteger
    • subscribers.rssinteger
    • recent_incidentsobject[]
  • 401Error
  • 403Error
  • 404Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/status-pages/$PAGE_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Delete a status page with its components, groups, subscribers and incidents

DELETE/v1/relays/status-pages/{pageId}

relays:writeTested with an API keyrelays_deleteStatusPage

Genesis scope: relays:write. Local scope: status-pages:delete. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Parameters

  • pageIdpath · stringrequired

Responses

  • 200Deleted
    Response fields
    • messagestringrequired
    • idstringrequired
  • 401Error
  • 403Error
  • 404Error
  • 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/relays/status-pages/$PAGE_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Update a status page (strict body)

PATCH/v1/relays/status-pages/{pageId}

relays:writeTested with an API keyrelays_updateStatusPage

Genesis scope: relays:write. Local scope: status-pages:write. Changing custom_domain resets custom_domain_verified. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Parameters

  • pageIdpath · stringrequired

Request body application/json

  • namestring

    min length 1 · max length 255

  • custom_domainstring | null

    max length 255

  • logo_urlstring | null (uri)

    max length 2048

  • favicon_urlstring | null (uri)

    max length 2048

  • brand_colorstring

    pattern ^#[0-9A-Fa-f]{6}$

  • background_colorstring

    Accepted but not stored pattern ^#[0-9A-Fa-f]{6}$

  • text_colorstring

    Accepted but not stored pattern ^#[0-9A-Fa-f]{6}$

  • header_textstring | null

    Accepted but not stored max length 500

  • footer_textstring | null

    Accepted but not stored max length 500

  • custom_cssstring | null

    max length 20000

  • support_urlstring | null (uri)

    max length 2048

  • support_emailstring | null (email)

    max length 255

  • page_titlestring | null

    max length 255

  • page_descriptionstring | null

    max length 1000

  • is_publicboolean
  • visibility"public" | "private" | "password"
  • password_hashstring | null

    max length 255

  • allowed_ip_cidrsstring[]
  • allow_subscriptionsboolean
  • allow_email_subscriptionsboolean
  • allow_sms_subscriptionsboolean
  • allow_webhook_subscriptionsboolean
  • allow_rssboolean

    Accepted but not stored

  • show_uptime_graphboolean
  • show_response_time_graphboolean
  • uptime_days_to_showinteger

    min 7 · max 365

  • enable_dark_modeboolean
  • default_dark_modeboolean
  • timezonestring

    Accepted but not stored max length 64

  • google_analytics_idstring | null

    max length 50

Responses

  • 200Updated
    Response fields
    • idstring (uuid)required
    • tenant_idstringrequired
    • namestringrequired
    • subdomainstringrequired
    • custom_domainstring | null
    • custom_domain_verifiedboolean | null
    • custom_domain_sslboolean
    • logo_urlstring | null
    • favicon_urlstring | null
    • brand_colorstring | null
    • background_colorstring | null
    • text_colorstring | null
    • header_textstring | null
    • footer_textstring | null
    • page_titlestring | null
    • page_descriptionstring | null
    • custom_cssstring | null
    • support_urlstring | null
    • support_emailstring | null
    • is_publicboolean
    • visibility"public" | "private" | "password"required
    • allowed_ip_cidrsstring[]
    • allow_subscriptionsboolean
    • allow_email_subscriptionsboolean
    • allow_sms_subscriptionsboolean
    • allow_webhook_subscriptionsboolean
    • allow_rssboolean
    • show_uptime_graphboolean
    • show_response_time_graphboolean
    • uptime_days_to_showinteger
    • enable_dark_modeboolean
    • default_dark_modeboolean
    • overall_statusstring | nullrequired
    • timezonestring
    • google_analytics_idstring | null
    • created_atstring (date-time)required
    • updated_atstring (date-time)required
  • 400Error
  • 401Error
  • 403Error
  • 404Error
  • 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/relays/status-pages/$PAGE_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Component groups

Delete a component group of a status page; its components become ungrouped

DELETE/v1/relays/status-pages/{pageId}/component-groups/{groupId}

relays:writeTested with an API keyrelays_deleteStatusPageComponentGroup

Genesis scope: relays:write. Local scope: status-pages:write. The path form of DELETE /status-pages/{pageId}/components?id=&is_group=true. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Parameters

  • groupIdpath · stringrequired
  • pageIdpath · stringrequired

Responses

  • 200Deleted
    Response fields
    • messagestringrequired
    • idstringrequired
  • 400Error
  • 401Error
  • 403Error
  • 404The status page is not the tenant's, or the group is not on it
  • 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/relays/status-pages/$PAGE_ID/component-groups/$GROUP_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Components

List component groups and components of a status page

GET/v1/relays/status-pages/{pageId}/components

relays:readTested with an API keyrelays_listStatusPageComponents

Genesis scope: relays:read. Local scope: status-pages:read. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Parameters

  • pageIdpath · stringrequired

Responses

  • 200Groups and components
    Response fields
    • groupsobject[]required
    • groups[].[].idstring
    • groups[].[].namestring
    • groups[].[].descriptionstring | null
    • groups[].[].is_collapsedboolean
    • groups[].[].display_orderinteger
    • groups[].[].created_atstring (date-time)
    • componentsobject[]required
    • components[].[].idstring
    • components[].[].namestring
    • components[].[].descriptionstring | null
    • components[].[].group_idstring | null
    • components[].[].monitor_idstring | null
    • components[].[].current_status"operational" | "degraded_performance" | "partial_outage" | "major_outage" | "maintenance" | "unknown" | null
    • components[].[].show_uptimeboolean
    • components[].[].display_orderinteger
    • components[].[].start_datestring | null
    • components[].[].created_atstring (date-time)
    • components[].[].updated_atstring (date-time)
  • 401Error
  • 403Error
  • 404Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/status-pages/$PAGE_ID/components" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Add a component, or a component group when is_group is true

POST/v1/relays/status-pages/{pageId}/components

relays:writeTested with an API keyrelays_createStatusPageComponent

Genesis scope: relays:write. Local scope: status-pages:write. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Parameters

  • pageIdpath · stringrequired

Request body application/json

  • is_groupboolean
  • namestringrequired

    min length 1 · max length 255

  • descriptionstring

    max length 1000

  • group_idstring (uuid)
  • monitor_idstring (uuid)
  • current_status"operational" | "degraded_performance" | "partial_outage" | "major_outage" | "maintenance" | "unknown"

    default "operational"

  • show_uptimeboolean

    default true

  • is_collapsedboolean

    Groups only default false

  • display_orderinteger

    min 0

  • start_datestring (date-time)

    Accepted but not stored

Responses

  • 201Created component or group (type discriminates)
    Response fields

    A JSON object.

  • 400Error
  • 401Error
  • 403Error
  • 404Error
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/relays/status-pages/$PAGE_ID/components" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "string"
  }'

Update a component or group; the target id travels in the body

PATCH/v1/relays/status-pages/{pageId}/components

relays:writeTested with an API keyrelays_updateStatusPageComponent

Genesis scope: relays:write. Local scope: status-pages:write. Body is {id, is_group?, ...fields}. A group takes name, description, is_collapsed and display_order; a component the other fields. group_id must be a group on this page and monitor_id a monitor of the tenant (400 otherwise). Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Parameters

  • pageIdpath · stringrequired

Request body application/json

  • idstring (uuid)required
  • is_groupboolean
  • namestring

    min length 1 · max length 255

  • descriptionstring | null

    max length 1000

  • group_idstring | null (uuid)
  • monitor_idstring | null (uuid)
  • current_status"operational" | "degraded_performance" | "partial_outage" | "major_outage" | "maintenance" | "unknown"
  • show_uptimeboolean
  • display_orderinteger

    min 0

  • is_collapsedboolean

    Groups only (stored as collapsed_by_default)

  • start_datestring | null (date-time)

    Accepted but not stored

Responses

  • 200Updated
    Response fields
    • messagestringrequired
    • idstringrequired
  • 400Error
  • 401Error
  • 403Error
  • 404Error
  • 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/relays/status-pages/$PAGE_ID/components" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "id": "00000000-0000-4000-8000-000000000000"
  }'

Delete a component of a status page

DELETE/v1/relays/status-pages/{pageId}/components/{componentId}

relays:writeTested with an API keyrelays_deleteStatusPageComponent

Genesis scope: relays:write. Local scope: status-pages:write. The path form of DELETE /status-pages/{pageId}/components?id= (the handler checks write, not delete). Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Parameters

  • componentIdpath · stringrequired
  • pageIdpath · stringrequired

Responses

  • 200Deleted
    Response fields
    • messagestringrequired
    • idstringrequired
  • 400Error
  • 401Error
  • 403Error
  • 404The status page is not the tenant's, or the component is not on it
  • 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/relays/status-pages/$PAGE_ID/components/$COMPONENT_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Subscribers

List subscribers of a status page (phone numbers and webhook URLs masked)

GET/v1/relays/status-pages/{pageId}/subscribers

relays:readTested with an API keyrelays_listStatusPageSubscribers

Genesis scope: relays:read. Local scope: status-pages:read. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Parameters

  • pageIdpath · stringrequired
  • pagequery · integer
  • limitquery · integer
  • subscription_typequery · "email" | "sms" | "webhook" | "rss"
  • is_activequery · "true" | "false"
  • searchquery · string

    Case-insensitive email substring

Responses

  • 200Subscribers
    Response fields
    • subscribersobject[]required
    • subscribers[].[].idstring
    • subscribers[].[].subscription_type"email" | "sms" | "webhook" | "rss"
    • subscribers[].[].emailstring | null
    • subscribers[].[].phonestring | null

      Masked as ***last4

    • subscribers[].[].webhook_urlstring | null

      Only the origin, then /*** when the URL has a path or query

    • subscribers[].[].component_idsarray | null
    • subscribers[].[].is_activeboolean
    • subscribers[].[].is_confirmedboolean | null
    • subscribers[].[].notify_on_incidentboolean | null
    • subscribers[].[].notify_on_maintenanceboolean | null
    • subscribers[].[].notify_on_updateboolean | null
    • subscribers[].[].last_notified_atstring | null
    • subscribers[].[].created_atstring (date-time)
    • statsobjectrequired
    • stats.totalinteger
    • stats.activeinteger
    • stats.emailinteger
    • stats.smsinteger
    • stats.webhookinteger
    • stats.rssinteger
    • metaobjectrequired
    • meta.pageinteger
    • meta.per_pageinteger
    • meta.totalinteger
    • meta.total_pagesinteger
  • 400Error
  • 401Error
  • 403Error
  • 404Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/status-pages/$PAGE_ID/subscribers" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Add a subscriber to a status page; one added by a key stays pending until the recipient agrees

POST/v1/relays/status-pages/{pageId}/subscribers

relays:writerelays_createStatusPageSubscriber

Genesis scope: relays:write. Local scope: status-pages:write. A subscriber added by an org API key is stored unconfirmed with status pending, and nothing is sent to it until the recipient confirms (notifications go only to active, verified subscribers); a signed-in admin's subscriber is confirmed. One email per page (400 for a duplicate). component_ids must be components of this page (400 otherwise). Remove it with DELETE /status-pages/{pageId}/subscribers/{subscriberId}. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Parameters

  • pageIdpath · stringrequired

Request body application/json

  • subscription_type"email" | "sms" | "webhook" | "rss"required
  • emailstring (email)

    max length 255

  • phonestring

    max length 20

  • webhook_urlstring (uri)

    max length 2048

  • component_idsstring (uuid)[]

    Components of this page to watch; empty means all

  • notify_on_incidentboolean

    default true

  • notify_on_maintenanceboolean

    default true

  • notify_on_updateboolean

    default true

Responses

  • 201Created (pending for a key)
    Response fields
    • idstring (uuid)required
    • subscription_type"email" | "sms" | "webhook" | "rss"required
    • emailstring | null
    • component_idsstring[]
    • status"pending" | "active"required

      pending for a subscriber added by a key, until the recipient confirms

    • is_activebooleanrequired
    • is_confirmedbooleanrequired
    • created_atstring (date-time)required
  • 400Error
  • 401Error
  • 403Error
  • 404Error
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/relays/status-pages/$PAGE_ID/subscribers" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "subscription_type": "email"
  }'

Remove a subscriber from a status page

DELETE/v1/relays/status-pages/{pageId}/subscribers/{subscriberId}

relays:writeTested with an API keyrelays_deleteStatusPageSubscriber

Genesis scope: relays:write. Local scope: status-pages:write. The path form of DELETE /status-pages/{pageId}/subscribers?id=. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED).

Parameters

  • subscriberIdpath · stringrequired
  • pageIdpath · stringrequired

Responses

  • 200Deleted
    Response fields
    • messagestringrequired
    • idstringrequired
  • 400Error
  • 401Error
  • 403Error
  • 404The status page is not the tenant's, or the subscriber is not on it
  • 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/relays/status-pages/$PAGE_ID/subscribers/$SUBSCRIBER_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Traces

Query tenant trace spans with a waterfall

GET/v1/relays/traces

relays:readTested with an API keyrelays_listTraces

Genesis scope relays:read. Local scope analytics:read. Acts on the selected project's existing Relays account and never provisions it (403 RELAYS_NOT_PROVISIONED). Only the account's own warehouse spans, never the server's in-process span buffer; no matching rows answers an empty list.

Parameters

  • trace_idquery · string

    32 hex characters

  • servicequery · string
  • statusquery · string
  • limitquery · integer

Responses

  • 200Spans
    Response fields
    • spansobject[]required
    • spans[].[].namestring
    • spans[].[].trace_idstring
    • spans[].[].span_idstring
    • spans[].[].parent_span_idstring
    • spans[].[].duration_msnumber
    • spans[].[].attributesobject
    • spans[].[].ended_atstring
    • summaryobjectrequired
    • summary.total_spansinteger
    • summary.trace_countinteger
    • summary.error_countinteger
    • summary.avg_duration_msnumber
    • waterfallobjectrequired
    • metaobjectrequired
    • meta.source"warehouse"
    • meta.totalinteger
    • meta.limitinteger
    • meta.fallbackboolean
    • meta.elapsed_msnumber
    • meta.cachedboolean
  • 400Error
  • 401Error
  • 500Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/traces" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Caa

List CAA records for a zone, with recommended Let's Encrypt records

GET/v1/relays/zones/{zone}/caa

relays:readTested with an API keyrelays_listCaaRecords

Requires Genesis scope relays:read; relays-web checks local scope dns:read. Acts on the selected project's existing Relays account; never provisions it (403 RELAYS_NOT_PROVISIONED until an owner or admin opens Relays).

Parameters

  • zonepath · stringrequired

Responses

  • 200CAA records and static recommendations
    Response fields
    • zonestringrequired
    • caa_recordsobject[]required
    • caa_records[].[].idstring (uuid)
    • caa_records[].[].domain_idinteger
    • caa_records[].[].domain_namestring
    • caa_records[].[].hostnamestring
    • caa_records[].[].flagsinteger
    • caa_records[].[].tagstring
    • caa_records[].[].valuestring
    • caa_records[].[].parametersobject | null
    • caa_records[].[].dns_record_idinteger | null
    • caa_records[].[].synced_atstring | null
    • caa_records[].[].sync_errorstring | null
    • caa_records[].[].auto_managedboolean
    • caa_records[].[].enabledboolean
    • caa_records[].[].created_atstring
    • caa_records[].[].updated_atstring
    • caa_records[].[].recordstring

      Presentation form: hostname flags tag "value"

    • recommendationsobject[]required
    • recommendations[].[].hostnamestring
    • recommendations[].[].flagsinteger
    • recommendations[].[].tagstring
    • recommendations[].[].valuestring
    • recommendations[].[].descriptionstring
  • 401Error
  • 403Error
  • 404Error
  • 500Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/zones/$ZONE/caa" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Create a CAA record, and by default publish it in the zone

POST/v1/relays/zones/{zone}/caa

relays:writeTested with an API keyrelays_createCaaRecord

Requires Genesis scope relays:write; relays-web checks local scope dns:write. Acts on the selected project's existing Relays account; never provisions it (403 RELAYS_NOT_PROVISIONED until an owner or admin opens Relays). The value is validated for its tag and written to the zone as a quoted, escaped character-string. Duplicates are not rejected. A failed DNS sync is reported in sync_error with a 201.

Parameters

  • zonepath · stringrequired

Request body application/json

  • hostnamestringrequired

    Owner name within the zone (letters, digits, hyphens, underscores); a bare label is prefixed with the zone min length 1 · max length 253

  • flagsinteger

    128 sets the issuer-critical bit min 0 · max 255 · default 0

  • tag"issue" | "issuewild" | "iodef" | "contactemail" | "contactphone"required
  • valuestringrequired

    Printable ASCII. issue/issuewild: an issuer domain (e.g. letsencrypt.org), optionally followed by "; key=value" parameters, or ";" to forbid issuance. iodef: a mailto:, http: or https: URL. contactemail: an email address. contactphone: a phone number. min length 1 · max length 512

  • parametersobject

    Stored with the record; not published in DNS

  • auto_managedboolean

    default false

  • sync_to_dnsboolean

    Also write the CAA record into the zone default true

Responses

  • 201Created
    Response fields
    • idstring (uuid)
    • domain_idinteger
    • domain_namestring
    • hostnamestring
    • flagsinteger
    • tagstring
    • valuestring
    • parametersobject | null
    • dns_record_idinteger | null
    • synced_atstring | null
    • sync_errorstring | null
    • auto_managedboolean
    • enabledboolean
    • created_atstring
    • updated_atstring
    • recordstring

      Presentation form: hostname flags tag "value"

  • 400Error
  • 401Error
  • 403Error
  • 404Error
  • 500Error
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/relays/zones/$ZONE/caa" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "hostname": "string",
    "tag": "issue",
    "value": "string"
  }'

Dnssec

Read owned DNSSEC status; unavailable public key details return 503

GET/v1/relays/zones/{zone}/dnssec

relays:readAPI keys refusedrelays_getDnssec

Parameters

  • zonepath · stringrequired

Responses

  • 200Stored DNSSEC state
    Response fields
    • zonestringrequired
    • enabledbooleanrequired
    • keysobject[]required
    • ds_recordsobject[]required
    • settingsobjectrequired
    • settings.nsec3object | nullrequired
    • settings.nsec3.algorithminteger
    • settings.nsec3.flagsinteger
    • settings.nsec3.iterationsinteger
    • settings.nsec3.saltstring
    • settings.auto_publish_cdsbooleanrequired
    • settings.auto_publish_cdnskeybooleanrequired
  • 401Error
  • 403Error
  • 404Error
  • 503Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/zones/$ZONE/dnssec" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Disable DNSSEC for a zone (hard-deletes its signing keys)

DELETE/v1/relays/zones/{zone}/dnssec

relays:writeTested with an API keyrelays_disableDnssec

Requires Genesis scope relays:write; relays-web checks local scope dnssec:write. Acts on the selected project's existing Relays account; never provisions it (403 RELAYS_NOT_PROVISIONED until an owner or admin opens Relays). Irreversible: the zone's signing keys and DNSSEC metadata are deleted. Remove the DS record at the registrar first, or validating resolvers will treat the zone as bogus. Zones family (relays-routes/zones.ts); kept here because getDnssec shares the path.

Parameters

  • zonepath · stringrequired

Responses

  • 200Disabled
    Response fields
    • successboolean
    • zonestring
    • messagestring
    • warningstring
  • 401Error
  • 403Error
  • 404Error
  • 500Error
  • 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/relays/zones/$ZONE/dnssec" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Export

Export a zone's records as a BIND zone file or as JSON

GET/v1/relays/zones/{zone}/export

relays:readTested with an API keyrelays_exportZone

Requires Genesis scope relays:read; relays-web checks local scope dns:read. Acts on the selected project's existing Relays account; never provisions it (403 RELAYS_NOT_PROVISIONED until an owner or admin opens Relays). The default answer wraps the BIND zone file in JSON ({ zone, format: bind, truncated, total, zone_file }); with format=json it lists the records. At most 10000 records are returned; truncated is true when the zone has more (total is the zone's record count). SOA and NS records managed by Relays are included as stored. The zone is a numeric id (all digits) or the zone's fully qualified name; one that is not the account's own answers 404.

Parameters

  • zonepath · stringrequired
  • formatquery · "bind" | "json"

Responses

  • 200The zone file or the record list
    Response fields
    • zonestringrequired
    • format"bind"

      Present on the BIND answer

    • truncatedboolean

      True when the zone has more than the 10000 records returned

    • totalinteger

      The zone's record count

    • zone_filestring

      The BIND zone file (format=bind)

    • recordsobject[]

      The records (format=json)

    • records[].[].namestring
    • records[].[].typestring
    • records[].[].contentstring
    • records[].[].ttlinteger
    • records[].[].priointeger | null
  • 401Error
  • 403Error
  • 404Error
  • 500Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/zones/$ZONE/export" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Import

Import records from a BIND zone file into an existing zone

POST/v1/relays/zones/{zone}/import

relays:writeTested with an API keyrelays_importZone

Requires Genesis scope relays:write; relays-web checks local scope dns:write. Acts on the selected project's existing Relays account; never provisions it (403 RELAYS_NOT_PROVISIONED until an owner or admin opens Relays). Additive only: each record joins its RRset beside the records already there, a record whose content is already present is reported as existing, and nothing is replaced or deleted (there is no replace mode). New records take the RRset's existing TTL. SOA records and apex NS records are never written, in any spelling (relative, absolute, with or without the trailing dot); they and any name outside the zone are returned in skipped with a reason. An $ORIGIN outside the zone is refused (400). $TTL is honoured and $INCLUDE ignored. Each RRset succeeds or fails on its own; the answer reports the counts and a result per record. At most 1000 records per import (413 TOO_MANY_RECORDS); the request body is limited to 256 KiB. The zone is a numeric id (all digits) or the zone's fully qualified name.

Parameters

  • zonepath · stringrequired

Request body application/json

  • zone_filestringrequired

    BIND zone file text min length 1

  • format"bind"

    default "bind"

Responses

  • 200Import results
    Response fields
    • messagestring
    • importedintegerrequired

      Records added

    • existingintegerrequired

      Records already present with the same content; not written again

    • failedintegerrequired
    • skippedobject[]required

      Records never written (SOA, apex NS, names outside the zone)

    • skipped[].[].namestring
    • skipped[].[].typestring
    • skipped[].[].reasonstring
    • resultsobject[]required
    • results[].[].successboolean
    • results[].[].status"created" | "exists" | "failed"
    • results[].[].recordobject
    • results[].[].record.namestring
    • results[].[].record.typestring
    • results[].[].record.contentstring
    • results[].[].errorstring
  • 400Error
  • 401Error
  • 403Error
  • 404Error
  • 413Error
  • 500Error
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/relays/zones/$ZONE/import" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "zone_file": "string"
  }'

Records

List records in a zone

GET/v1/relays/zones/{zone}/records

relays:readTested with an API keyrelays_listRecords

Parameters

  • zonepath · stringrequired
  • typequery · string
  • namequery · string
  • pagequery · integer
  • limitquery · integer

Responses

  • 200Records
    Response fields
    • zonestring
    • recordsobject[]
    • records[].[].namestringrequired
    • records[].[].type"A" | "AAAA" | "CNAME" | "MX" | "TXT" | "NS" | "SOA" | "SRV" | "CAA" | "PTR" | "DS" | "DNSKEY" | "SSHFP" | "TLSA" | "HTTPS" | "SVCB" | "NAPTR" | "ALIAS"required

      The 13 documented types plus TLSA, HTTPS, SVCB, NAPTR and ALIAS; any case on input (stored upper-case). Anything else answers 400 listing the valid types.

    • records[].[].contentstringrequired
    • records[].[].ttlobject

      Seconds (300 or "300") or a duration ("5m", "1h", "1d"); 60 seconds to 1 day. Read back as seconds. default 3600

    • records[].[].priorityinteger

      min 0 · max 65535

    • records[].[].disabledboolean

      default false

    • records[].[].commentstring

      max length 1000

    • records[].[].tagsstring[]
    • records[].[].idinteger
    • records[].[].zonestring
    • records[].[].created_atstring
    • records[].[].updated_atstring
    • metaobject
    • meta.pageinteger
    • meta.per_pageinteger
    • meta.totalinteger
    • meta.total_pagesinteger
  • 404Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/zones/$ZONE/records" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Create one record, or up to 100 with {records:[...]}

POST/v1/relays/zones/{zone}/records

relays:writeTested with an API keyrelays_createRecord

Requires relays:write. Acts on the selected project's existing Relays account; never provisions it (403 RELAYS_NOT_PROVISIONED until an owner or admin opens Relays).

Parameters

  • zonepath · stringrequired

Request body application/json

Type: object | object

Responses

  • 201Created: the record (one input) or {success, zone, records} (batch input)
    Response fields

    A JSON object.

  • 400Error
  • 401Error
  • 403Error
  • 404Error
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/relays/zones/$ZONE/records" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "string",
    "type": "A",
    "content": "string"
  }'

Get a record

GET/v1/relays/zones/{zone}/records/{recordId}

relays:readTested with an API keyrelays_getRecord

Requires relays:read.

Parameters

  • recordIdpath · stringrequired
  • zonepath · stringrequired

Responses

  • 200Record
    Response fields
    • namestringrequired
    • type"A" | "AAAA" | "CNAME" | "MX" | "TXT" | "NS" | "SOA" | "SRV" | "CAA" | "PTR" | "DS" | "DNSKEY" | "SSHFP" | "TLSA" | "HTTPS" | "SVCB" | "NAPTR" | "ALIAS"required

      The 13 documented types plus TLSA, HTTPS, SVCB, NAPTR and ALIAS; any case on input (stored upper-case). Anything else answers 400 listing the valid types.

    • contentstringrequired
    • ttlobject

      Seconds (300 or "300") or a duration ("5m", "1h", "1d"); 60 seconds to 1 day. Read back as seconds. default 3600

    • priorityinteger

      min 0 · max 65535

    • disabledboolean

      default false

    • commentstring

      max length 1000

    • tagsstring[]
    • idinteger
    • zonestring
    • created_atstring
    • updated_atstring
  • 401Error
  • 403Error
  • 404Error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/zones/$ZONE/records/$RECORD_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Delete a record

DELETE/v1/relays/zones/{zone}/records/{recordId}

relays:writeTested with an API keyrelays_deleteRecord

Requires relays:write. Acts on the selected project's existing Relays account; never provisions it (403 RELAYS_NOT_PROVISIONED until an owner or admin opens Relays).

Parameters

  • recordIdpath · stringrequired
  • zonepath · stringrequired

Responses

  • 200Deleted
    Response fields
    • successboolean
    • messagestring
  • 401Error
  • 403Error
  • 404Error
  • 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/relays/zones/$ZONE/records/$RECORD_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Update a record

PATCH/v1/relays/zones/{zone}/records/{recordId}

relays:writeTested with an API keyrelays_updateRecord

Requires relays:write. Acts on the selected project's existing Relays account; never provisions it (403 RELAYS_NOT_PROVISIONED until an owner or admin opens Relays).

Parameters

  • recordIdpath · stringrequired
  • zonepath · stringrequired

Request body application/json

  • namestring
  • type"A" | "AAAA" | "CNAME" | "MX" | "TXT" | "NS" | "SOA" | "SRV" | "CAA" | "PTR" | "DS" | "DNSKEY" | "SSHFP" | "TLSA" | "HTTPS" | "SVCB" | "NAPTR" | "ALIAS"

    The 13 documented types plus TLSA, HTTPS, SVCB, NAPTR and ALIAS; any case on input (stored upper-case). Anything else answers 400 listing the valid types.

  • contentstring
  • ttlinteger | string

    Seconds (300 or "300") or a duration ("5m", "1h", "1d"); 60 seconds to 1 day. Read back as seconds.

  • priorityinteger

    min 0 · max 65535

  • disabledboolean
  • commentstring

    max length 1000

  • tagsstring[]

Responses

  • 200Updated
    Response fields
    • namestringrequired
    • type"A" | "AAAA" | "CNAME" | "MX" | "TXT" | "NS" | "SOA" | "SRV" | "CAA" | "PTR" | "DS" | "DNSKEY" | "SSHFP" | "TLSA" | "HTTPS" | "SVCB" | "NAPTR" | "ALIAS"required

      The 13 documented types plus TLSA, HTTPS, SVCB, NAPTR and ALIAS; any case on input (stored upper-case). Anything else answers 400 listing the valid types.

    • contentstringrequired
    • ttlobject

      Seconds (300 or "300") or a duration ("5m", "1h", "1d"); 60 seconds to 1 day. Read back as seconds. default 3600

    • priorityinteger

      min 0 · max 65535

    • disabledboolean

      default false

    • commentstring

      max length 1000

    • tagsstring[]
    • idinteger
    • zonestring
    • created_atstring
    • updated_atstring
  • 400Error
  • 401Error
  • 403Error
  • 404Error
  • 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/relays/zones/$ZONE/records/$RECORD_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Create, update and delete records in one request

POST/v1/relays/zones/{zone}/records/bulk

relays:writeTested with an API keyrelays_bulkRecords

Requires Genesis scope relays:write; relays-web checks local scope dns:write (deletes included). Acts on the selected project's existing Relays account; never provisions it (403 RELAYS_NOT_PROVISIONED until an owner or admin opens Relays). Operations run in order and are not atomic: each succeeds or fails on its own, and the answer has a result per operation and a summary. Every write keeps the rest of its RRset: create adds beside the existing records (content already present is reported as existing), update and delete touch only the record named by id (a TTL change applies to the whole RRset). create needs name, type and content; update and delete need the record id. SOA and apex NS records are never created, updated or deleted, and names outside the zone are refused. Deletes are permanent. At most 500 operations per request (413 TOO_MANY_OPERATIONS); the request body is limited to 256 KiB.

Parameters

  • zonepath · stringrequired

Request body application/json

  • operationsobject[]required
  • operations[].[].action"create" | "update" | "delete"required
  • operations[].[].recordobjectrequired
  • operations[].[].record.idinteger

    Required for update and delete

  • operations[].[].record.namestring

    Required for create

  • operations[].[].record.typestring

    Required for create

  • operations[].[].record.contentstring

    Required for create

  • operations[].[].record.ttlinteger
  • operations[].[].record.priointeger
  • operations[].[].record.disabledboolean

    update only

Responses

  • 200Per-operation results
    Response fields
    • resultsobject[]required
    • results[].[].actionstring
    • results[].[].successboolean
    • results[].[].status"created" | "exists" | "failed"

      create only

    • results[].[].recordobject | null
    • results[].[].errorstring
    • summaryobjectrequired
    • summary.totalinteger
    • summary.succeededinteger
    • summary.failedinteger
  • 400Error
  • 401Error
  • 403Error
  • 404Error
  • 413Error
  • 500Error
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/relays/zones/$ZONE/records/bulk" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "operations": []
  }'

L1fe AI Inc. · Built from Genesis 0.3.3 and the live gateway on 2026-10-25. Support