API reference
Relays
DNS: zones and records.
- Operations
- 150
- Base path
https://os.one.ml/api/v1/relays- Scopes
relays:readrelays: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 undergenesis.relays- MCP
- 101 tools; the other 49 through
genesis_call
Operations
Analytics
Account-wide DNS query analytics (totals, by type, hourly timeline)
GET/v1/relays/analytics
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 · stringOne of the account's zones (case-insensitive, trailing dot optional)
Responses
- 200Analytics
Response fields
periodstringzonestringtime_rangeobjecttime_range.startstringtime_range.endstringsummaryobjectqueriesobjectqueries.by_typeobject[]queries.by_type[].[].query_typestringqueries.by_type[].[].cntintegerqueries.by_response_codeany[]queries.by_countryany[]performanceobjecttop_recordsany[]timelineobject[]timeline[].[].tsstringtimeline[].[].queriesinteger
- 400Error
- 401Error
- 404Error
- 500Error
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/analytics" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_getAnalytics'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_getAnalytics",
"arguments": {}
}
}Audit logs
Query tenant audit log events with filters and pagination
GET/v1/relays/audit-logs
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 · stringapiKeyIdquery · stringactionquery · stringresourceTypequery · stringresourceIdquery · stringoutcomequery · stringseverityquery · stringipAddressquery · stringstartDatequery · string (date-time)endDatequery · string (date-time)searchquery · stringpagequery · integerlimitquery · integer
Responses
- 200Audit logs
Response fields
dataobject[]requireddata[].[].idintegerdata[].[].timestampstring (date-time)data[].[].actorobjectdata[].[].actor.userIdstring | nulldata[].[].actor.apiKeyIdstring | nulldata[].[].actor.ipAddressstring | nulldata[].[].actor.userAgentstring | nulldata[].[].eventobjectdata[].[].event.actionstringdata[].[].event.categorystringdata[].[].event.severitystringdata[].[].event.outcomestringdata[].[].resourceobjectdata[].[].resource.typestringdata[].[].resource.idstring | nulldata[].[].contextobjectdata[].[].changesanydata[].[].errorMessageanydata[].[].metadataobjectpaginationobjectrequiredpagination.pageintegerpagination.limitintegerpagination.totalintegerpagination.totalPagesintegerpagination.hasNextbooleanpagination.hasPrevboolean
- 401Error
- 403Error
- 500Error
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/audit-logs" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_listAuditLogs'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_listAuditLogs",
"arguments": {}
}
}Export the account audit log as JSON
GET/v1/relays/audit-logs/export
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 · integerstartDatequery · string (date-time)endDatequery · string (date-time)
Responses
- 200Export file
Response fields
exportedAtstring (date-time)tenantIdstringdateRangeobjectdateRange.startstringdateRange.endstringrecordCountintegerdataobject[]
- 401Error
- 403Error
- 500Error
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/audit-logs/export" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_exportAuditLogs'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "relays_exportAuditLogs",
"arguments": {}
}
}
}Certificates
List certificates with filters, stats and pagination
GET/v1/relays/certificates
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 · integerlimitquery · integerstatusquery · "pending" | "validating" | "issued" | "expired" | "revoked" | "failed"cert_typequery · "single" | "wildcard" | "multi"searchquery · stringSubstring of the common name, or an exact SAN
expiring_within_daysquery · integerIssued certificates expiring within this many days
domain_idquery · integerauto_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_idstringcertificates[].[].domain_idinteger | nullcertificates[].[].common_namestringcertificates[].[].san_domainsstring[]certificates[].[].cert_typestringcertificates[].[].providerstringcertificates[].[].status"pending" | "validating" | "issued" | "expired" | "revoked" | "failed"certificates[].[].auto_renewbooleancertificates[].[].renew_before_daysintegercertificates[].[].validation_methodstringcertificates[].[].key_typestringcertificates[].[].is_custombooleancertificates[].[].custom_ca_namestring | nullcertificates[].[].serial_numberstring | nullcertificates[].[].fingerprint_sha256string | nullcertificates[].[].public_key_pin_sha256string | nullcertificates[].[].issuerstring | nullcertificates[].[].signature_algorithmstring | nullcertificates[].[].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_failuresintegercertificates[].[].last_errorstring | nullcertificates[].[].notify_emailstring | nullcertificates[].[].notify_webhookstring | nullScheme and host only (scheme://host/***); the full URL is never returned.
certificates[].[].notify_before_expiryinteger[]certificates[].[].ct_log_monitoredbooleancertificates[].[].deployed_toarray | object | nullcertificates[].[].tagsstring[]certificates[].[].created_atstring (date-time)certificates[].[].updated_atstring (date-time)statsobjectstats.totalintegerstats.issuedintegerstats.pendingintegerstats.expiring_soonintegerstats.expiredintegerstats.failedintegerstats.customintegerstats.wildcardintegermetaobjectmeta.pageintegermeta.per_pageintegermeta.totalintegermeta.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_listCertificates'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_listCertificates",
"arguments": {}
}
}Request a new ACME certificate (issued asynchronously)
POST/v1/relays/certificates
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_namestringrequiredDomain 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_renewbooleandefault
truerenew_before_daysnumbermin 7 · max 90 · default
30notify_emailstring (email)notify_webhookstring (uri)notify_before_expirynumber[]default
[30,14,7,1]tagsstring[]default
[]
Responses
- 202Accepted; status pending
Response fields
idstring (uuid)tenant_idstringdomain_idinteger | nullcommon_namestringsan_domainsstring[]cert_typestringproviderstringstatus"pending" | "validating" | "issued" | "expired" | "revoked" | "failed"auto_renewbooleanrenew_before_daysintegervalidation_methodstringkey_typestringis_custombooleancustom_ca_namestring | nullserial_numberstring | nullfingerprint_sha256string | nullpublic_key_pin_sha256string | nullissuerstring | nullsignature_algorithmstring | nullissued_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_failuresintegerlast_errorstring | nullnotify_emailstring | nullnotify_webhookstring | nullScheme and host only (scheme://host/***); the full URL is never returned.
notify_before_expiryinteger[]ct_log_monitoredbooleandeployed_toarray | object | nulltagsstring[]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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_createCertificate', {
body: {
common_name: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_createCertificate",
"arguments": {
"body": {
"common_name": "string"
}
}
}
}Get a certificate with its validation challenges and recent events
GET/v1/relays/certificates/{certId}
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_idstringdomain_idinteger | nullcommon_namestringsan_domainsstring[]cert_typestringproviderstringstatus"pending" | "validating" | "issued" | "expired" | "revoked" | "failed"auto_renewbooleanrenew_before_daysintegervalidation_methodstringkey_typestringis_custombooleancustom_ca_namestring | nullserial_numberstring | nullfingerprint_sha256string | nullpublic_key_pin_sha256string | nullissuerstring | nullsignature_algorithmstring | nullissued_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_failuresintegerlast_errorstring | nullnotify_emailstring | nullnotify_webhookstring | nullScheme and host only (scheme://host/***); the full URL is never returned.
notify_before_expiryinteger[]ct_log_monitoredbooleandeployed_toarray | object | nulltagsstring[]created_atstring (date-time)updated_atstring (date-time)key_algorithmstring | nullvalidationobjectvalidation.methodstringvalidation.statusstring | nullvalidation.challengesobject[]validation.challenges[].[].domainstringvalidation.challenges[].[].statusstringvalidation.challenges[].[].challenge_typestringvalidation.challenges[].[].dns_recordobject | nullvalidation.challenges[].[].dns_record.namestringvalidation.challenges[].[].dns_record.typestringvalidation.challenges[].[].dns_record.valuestringvalidation.challenges[].[].http_challengeobject | nullvalidation.challenges[].[].http_challenge.pathstringvalidation.challenges[].[].http_challenge.contentstringvalidation.challenges[].[].errorstring | nullvalidation.challenges[].[].last_attemptstring | null (date-time)validation.challenges[].[].attemptsintegerrecent_eventsobject[]recent_events[].[].typestringrecent_events[].[].dataobjectAny 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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_getCertificate', {
certId: '<certId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_getCertificate",
"arguments": {
"certId": "<certId>"
}
}
}Delete a certificate and its private key
DELETE/v1/relays/certificates/{certId}
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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_deleteCertificate', {
certId: '<certId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "relays_deleteCertificate",
"arguments": {
"certId": "<certId>"
}
}
}
}Update renewal, notification, CT monitoring and tag settings
PATCH/v1/relays/certificates/{certId}
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_renewbooleanrenew_before_daysnumbermin 7 · max 90
notify_emailstring | null (email)notify_webhookstring | null (uri)notify_before_expirynumber[]ct_log_monitoredbooleantagsstring[]
Responses
- 200Updated certificate (no challenges or events)
Response fields
idstring (uuid)tenant_idstringdomain_idinteger | nullcommon_namestringsan_domainsstring[]cert_typestringproviderstringstatus"pending" | "validating" | "issued" | "expired" | "revoked" | "failed"auto_renewbooleanrenew_before_daysintegervalidation_methodstringkey_typestringis_custombooleancustom_ca_namestring | nullserial_numberstring | nullfingerprint_sha256string | nullpublic_key_pin_sha256string | nullissuerstring | nullsignature_algorithmstring | nullissued_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_failuresintegerlast_errorstring | nullnotify_emailstring | nullnotify_webhookstring | nullScheme and host only (scheme://host/***); the full URL is never returned.
notify_before_expiryinteger[]ct_log_monitoredbooleandeployed_toarray | object | nulltagsstring[]created_atstring (date-time)updated_atstring (date-time)key_algorithmstring | nullvalidationobjectvalidation.methodstringvalidation.statusstring | nullvalidation.challengesobject[]validation.challenges[].[].domainstringvalidation.challenges[].[].statusstringvalidation.challenges[].[].challenge_typestringvalidation.challenges[].[].dns_recordobject | nullvalidation.challenges[].[].dns_record.namestringvalidation.challenges[].[].dns_record.typestringvalidation.challenges[].[].dns_record.valuestringvalidation.challenges[].[].http_challengeobject | nullvalidation.challenges[].[].http_challenge.pathstringvalidation.challenges[].[].http_challenge.contentstringvalidation.challenges[].[].errorstring | nullvalidation.challenges[].[].last_attemptstring | null (date-time)validation.challenges[].[].attemptsintegerrecent_eventsobject[]recent_events[].[].typestringrecent_events[].[].dataobjectAny 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 '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_updateCertificate', {
certId: '<certId>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_updateCertificate",
"arguments": {
"certId": "<certId>",
"body": {}
}
}
}List Certificate Transparency monitors
GET/v1/relays/certificates/ct-monitors
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_idstringmonitors[].[].domain_patternstringmonitors[].[].include_subdomainsbooleanmonitors[].[].alert_on_any_issuancebooleanmonitors[].[].alert_on_unknown_cabooleanmonitors[].[].allowed_casstring[]monitors[].[].alert_emailstring | nullmonitors[].[].alert_webhookstring | nullScheme and host only (scheme://host/***); the full URL is never returned.
monitors[].[].alert_slack_webhookstring | nullScheme and host only (scheme://host/***); the full URL is never returned.
monitors[].[].last_check_atstring | null (date-time)monitors[].[].certificates_foundintegermonitors[].[].alerts_sentintegermonitors[].[].enabledbooleanmonitors[].[].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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_listCtMonitors'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "relays_listCtMonitors",
"arguments": {}
}
}
}Create a Certificate Transparency monitor for a domain pattern
POST/v1/relays/certificates/ct-monitors
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_patternstringrequiredDomain or *.domain max length 253
include_subdomainsbooleandefault
truealert_on_any_issuancebooleandefault
falsealert_on_unknown_cabooleandefault
trueallowed_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_idstringdomain_patternstringinclude_subdomainsbooleanalert_on_any_issuancebooleanalert_on_unknown_cabooleanallowed_casstring[]alert_emailstring | nullalert_webhookstring | nullScheme and host only (scheme://host/***); the full URL is never returned.
alert_slack_webhookstring | nullScheme and host only (scheme://host/***); the full URL is never returned.
last_check_atstring | null (date-time)certificates_foundintegeralerts_sentintegerenabledbooleancreated_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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_createCtMonitor', {
body: {
domain_pattern: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "relays_createCtMonitor",
"arguments": {
"body": {
"domain_pattern": "string"
}
}
}
}
}Get a CT monitor with the log entries it found
GET/v1/relays/certificates/ct-monitors/{monitorId}
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 · stringrequiredpagequery · integerlimitquery · integer
Responses
- 200Monitor with entries
Response fields
idstring (uuid)tenant_idstringdomain_patternstringinclude_subdomainsbooleanalert_on_any_issuancebooleanalert_on_unknown_cabooleanallowed_casstring[]alert_emailstring | nullalert_webhookstring | nullScheme and host only (scheme://host/***); the full URL is never returned.
alert_slack_webhookstring | nullScheme and host only (scheme://host/***); the full URL is never returned.
last_check_atstring | null (date-time)certificates_foundintegeralerts_sentintegerenabledbooleancreated_atstring (date-time)updated_atstring (date-time)entriesobject[]entries[].[].idstring | integerentries[].[].log_namestringentries[].[].log_urlstringentries[].[].log_indexinteger | stringentries[].[].common_namestring | nullentries[].[].san_domainsstring[]entries[].[].issuerstring | nullentries[].[].serial_numberstring | nullentries[].[].not_beforestring (date-time)entries[].[].not_afterstring (date-time)entries[].[].is_known_certbooleanentries[].[].known_cert_idstring | nullentries[].[].is_from_allowed_caboolean | nullentries[].[].alert_sentbooleanentries[].[].alert_acknowledgedbooleanentries[].[].discovered_atstring (date-time)entries_pageintegerentries_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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_getCtMonitor', {
monitorId: '<monitorId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "relays_getCtMonitor",
"arguments": {
"monitorId": "<monitorId>"
}
}
}
}Delete a CT monitor and its log entries
DELETE/v1/relays/certificates/ct-monitors/{monitorId}
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
messagestringidstring (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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_deleteCtMonitor', {
monitorId: '<monitorId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "relays_deleteCtMonitor",
"arguments": {
"monitorId": "<monitorId>"
}
}
}
}Update a CT monitor (the domain pattern cannot change)
PATCH/v1/relays/certificates/ct-monitors/{monitorId}
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_subdomainsbooleanalert_on_any_issuancebooleanalert_on_unknown_cabooleanallowed_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_idstringdomain_patternstringinclude_subdomainsbooleanalert_on_any_issuancebooleanalert_on_unknown_cabooleanallowed_casstring[]alert_emailstring | nullalert_webhookstring | nullScheme and host only (scheme://host/***); the full URL is never returned.
alert_slack_webhookstring | nullScheme and host only (scheme://host/***); the full URL is never returned.
last_check_atstring | null (date-time)certificates_foundintegeralerts_sentintegerenabledbooleancreated_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 '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_updateCtMonitor', {
monitorId: '<monitorId>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "relays_updateCtMonitor",
"arguments": {
"monitorId": "<monitorId>",
"body": {}
}
}
}
}List the tenant's zones with their Total TLS status
GET/v1/relays/certificates/total-tls
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_idintegerzones[].[].domain_namestringzones[].[].total_tls_enabledbooleanzones[].[].addressable_recordsintegerzones[].[].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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_listTotalTlsZones'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_listTotalTlsZones",
"arguments": {}
}
}Enable Total TLS for a zone (request a certificate for every uncovered A/AAAA name)
POST/v1/relays/certificates/total-tls
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_idintegerrequiredmin 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_scannedintegercertificates_issuedintegeralready_coveredintegerexcludedintegerdetailsobject[]details[].[].domainstringdetails[].[].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
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_enableTotalTls', {
body: {
domain_id: 1,
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "relays_enableTotalTls",
"arguments": {
"body": {
"domain_id": 1
}
}
}
}
}Disable Total TLS for a zone (stops automatic renewal; revokes nothing)
DELETE/v1/relays/certificates/total-tls/{domainId}
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
messagestringdomain_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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_disableTotalTls', {
domainId: '<domainId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "relays_disableTotalTls",
"arguments": {
"domainId": "<domainId>"
}
}
}
}Upload your own certificate (key must match, chain must sign it)
POST/v1/relays/certificates/upload
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_pemstringprivate_key_pemstringchain_pemstringca_namestringauto_renewbooleannotify_emailstringtagsstring[]
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 '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_uploadCertificate', {
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "relays_uploadCertificate",
"arguments": {
"body": {}
}
}
}
}Download
Download the certificate, chain and private key
GET/v1/relays/certificates/{certId}/download
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 · stringrequiredformatquery · "pem" | "pkcs12" | "fullchain" | "separate"X-Certificate-Passwordheader · stringPKCS12 export password; required when format=pkcs12
Responses
- 200Material (shape depends on format)
Response fields
certificatestringprivate_keystringchainstringfullchainstringpkcs12_base64stringfilenamestringsize_bytesintegercommon_namestringexpires_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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_downloadCertificate', {
certId: '<certId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "relays_downloadCertificate",
"arguments": {
"certId": "<certId>"
}
}
}
}Events
List the events recorded for a certificate
GET/v1/relays/certificates/{certId}/events
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 · stringrequiredpagequery · integerlimitquery · integerevent_typequery · stringFor 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_namestringeventsobject[]events[].[].idstringevents[].[].event_typestringevents[].[].event_dataobjectAny webhook URL in the event data is shown as scheme and host only (scheme://host/***).
events[].[].created_atstring (date-time)metaobjectmeta.pageintegermeta.per_pageintegermeta.totalintegermeta.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_listCertificateEvents', {
certId: '<certId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_listCertificateEvents",
"arguments": {
"certId": "<certId>"
}
}
}Poll the account's platform events (zone, record, certificate, monitor, incident and domain changes)
GET/v1/relays/events
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 · stringComma-separated event types (default all)
last_event_idquery · string (uuid)Cursor: the previous meta.last_event_id
limitquery · integerDefault 50, clamped 1..100
Responses
- 200Snapshot
Response fields
eventsobject[]requiredevents[].[].idstring (uuid)requiredevents[].[].typestringrequiredFor example zone.created, record.updated, certificate.issued, monitor.down, incident.created, domain.renewed
events[].[].timestampstring (date-time)requiredevents[].[].resource_typestringrequiredevents[].[].resource_idstringrequiredevents[].[].tenant_idstringrequiredevents[].[].dataobjectrequiredmetaobjectrequiredmeta.limitintegerrequiredmeta.has_morebooleanrequiredMore events after last_event_id are waiting (cursor mode only)
meta.last_event_idstring | nullrequiredPass back as last_event_id to read the events after it
filtersobjectrequiredfilters.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_listEvents'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_listEvents",
"arguments": {}
}
}History
List the archived previous versions of a certificate
GET/v1/relays/certificates/{certId}/history
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 · stringrequiredpagequery · integerlimitquery · integer
Responses
- 200History
Response fields
certificate_idstring (uuid)common_namestringhistoryobject[]history[].[].idstring | integerhistory[].[].common_namestringhistory[].[].san_domainsstring[]history[].[].serial_numberstring | nullhistory[].[].fingerprint_sha256string | nullhistory[].[].issuerstring | nullhistory[].[].issued_atstring (date-time)history[].[].expires_atstring (date-time)history[].[].replaced_reasonstring | nullhistory[].[].replaced_atstring (date-time)history[].[].replaced_by_user_idstring | nullmetaobjectmeta.pageintegermeta.per_pageintegermeta.totalintegermeta.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_listCertificateHistory', {
certId: '<certId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_listCertificateHistory",
"arguments": {
"certId": "<certId>"
}
}
}Renew
Renew (re-issue) an issued, failed or expired certificate now
POST/v1/relays/certificates/{certId}/renew
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
messagestringcertificate_idstring (uuid)statusstringcommon_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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_renewCertificate', {
certId: '<certId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "relays_renewCertificate",
"arguments": {
"certId": "<certId>"
}
}
}
}Dns provider connections
List external DNS provider connections
GET/v1/relays/dns-provider-connections
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 · booleantrue includes revoked connections
Responses
- 200Connections
Response fields
connectionsobject[]connections[].[].idstring (uuid)connections[].[].providerobjectconnections[].[].labelstringconnections[].[].accountRefstring | nullconnections[].[].authModelstringconnections[].[].statusstringpending_validation, active, manual_bridge, revoked
connections[].[].scopesstring[]connections[].[].capabilitiesSnapshotobjectconnections[].[].metadataobjectConnection 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)metaobjectmeta.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_listDnsProviderConnections'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_listDnsProviderConnections",
"arguments": {}
}
}Connect an external DNS provider account with its API credentials
POST/v1/relays/dns-provider-connections
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
providerstringrequiredCatalog slug or alias min length 1
labelstringrequiredmin length 1 · max length 255
account_refstringmax length 255
auth_modelstringrequiredMust be one of the provider authModels min length 1 · max length 64
credentialsobjectrequiredProvider secrets; sealed at rest
metadataobject
Responses
- 201Created
Response fields
connectionobjectconnection.idstring (uuid)connection.providerobjectconnection.labelstringconnection.accountRefstring | nullconnection.authModelstringconnection.statusstringpending_validation, active, manual_bridge, revoked
connection.scopesstring[]connection.capabilitiesSnapshotobjectconnection.metadataobjectConnection 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": {}
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_createDnsProviderConnection', {
body: {
provider: 'string',
label: 'string',
auth_model: 'string',
credentials: {},
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "relays_createDnsProviderConnection",
"arguments": {
"body": {
"provider": "string",
"label": "string",
"auth_model": "string",
"credentials": {}
}
}
}
}
}Disconnect a provider connection and remove its imported zones
DELETE/v1/relays/dns-provider-connections/{connectionId}
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
connectionobjectconnection.idstring (uuid)connection.providerobjectconnection.labelstringconnection.accountRefstring | nullconnection.authModelstringconnection.statusstringpending_validation, active, manual_bridge, revoked
connection.scopesstring[]connection.capabilitiesSnapshotobjectconnection.metadataobjectConnection 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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_deleteDnsProviderConnection', {
connectionId: '<connectionId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "relays_deleteDnsProviderConnection",
"arguments": {
"connectionId": "<connectionId>"
}
}
}
}Sync
Import the provider's zone list for a connection
POST/v1/relays/dns-provider-connections/{connectionId}/sync
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
syncedintegerremovedintegerzonesobject[]zones[].[].idstringzones[].[].zoneNamestringzones[].[].providerZoneIdstring | nullzones[].[].statusstringzones[].[].nameserversstring[]zones[].[].dnssecStatusstringzones[].[].dsRecordsany[]zones[].[].recordCountintegerzones[].[].metadataobjectzones[].[].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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_syncDnsProviderConnection', {
connectionId: '<connectionId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_syncDnsProviderConnection",
"arguments": {
"connectionId": "<connectionId>"
}
}
}Zones
List the zones imported for a provider connection
GET/v1/relays/dns-provider-connections/{connectionId}/zones
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
connectionobjectzonesobject[]zones[].[].idstringzones[].[].zoneNamestringzones[].[].providerZoneIdstring | nullzones[].[].statusstringzones[].[].nameserversstring[]zones[].[].dnssecStatusstringzones[].[].dsRecordsany[]zones[].[].recordCountintegerzones[].[].metadataobjectzones[].[].lastSyncedAtstring | null (date-time)zones[].[].createdAtstring (date-time)zones[].[].updatedAtstring (date-time)metaobjectmeta.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_listDnsProviderZones', {
connectionId: '<connectionId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_listDnsProviderZones",
"arguments": {
"connectionId": "<connectionId>"
}
}
}Apply record changes to a zone at the external provider
POST/v1/relays/dns-provider-connections/{connectionId}/zones/{zone}/apply
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 · stringrequiredconnectionIdpath · stringrequired
Request body application/json
currentobject[]requiredcurrent[].[].idstringcurrent[].[].providerRecordIdstringcurrent[].[].namestringrequiredmin length 1
current[].[].typestringrequiredmin length 1
current[].[].contentstringrequiredmin length 1
current[].[].ttlintegermin 1
current[].[].priorityintegercurrent[].[].priointegercurrent[].[].proxiedbooleancurrent[].[].commentstringcurrent[].[].tagsstring[]current[].[].disabledbooleandesiredobject[]requireddesired[].[].idstringdesired[].[].providerRecordIdstringdesired[].[].namestringrequiredmin length 1
desired[].[].typestringrequiredmin length 1
desired[].[].contentstringrequiredmin length 1
desired[].[].ttlintegermin 1
desired[].[].priorityintegerdesired[].[].priointegerdesired[].[].proxiedbooleandesired[].[].commentstringdesired[].[].tagsstring[]desired[].[].disabledbooleanconfirmFullZoneReplacementboolean
Responses
- 200Applied
Response fields
planobjectplan.idstringplan.mode"dry_run"plan.zonestringplan.providerobjectplan.summaryobjectplan.summary.createsintegerplan.summary.updatesintegerplan.summary.deletesintegerplan.summary.unchangedintegerplan.summary.blockedintegerplan.changesobject[]plan.changes[].[].action"create" | "update" | "delete" | "unchanged"plan.changes[].[].keystringplan.changes[].[].currentobjectplan.changes[].[].current.idstringplan.changes[].[].current.providerRecordIdstringplan.changes[].[].current.namestringrequiredmin length 1
plan.changes[].[].current.typestringrequiredmin length 1
plan.changes[].[].current.contentstringrequiredmin length 1
plan.changes[].[].current.ttlintegermin 1
plan.changes[].[].current.priorityintegerplan.changes[].[].current.priointegerplan.changes[].[].current.proxiedbooleanplan.changes[].[].current.commentstringplan.changes[].[].current.tagsstring[]plan.changes[].[].current.disabledbooleanplan.changes[].[].desiredobjectplan.changes[].[].desired.idstringplan.changes[].[].desired.providerRecordIdstringplan.changes[].[].desired.namestringrequiredmin length 1
plan.changes[].[].desired.typestringrequiredmin length 1
plan.changes[].[].desired.contentstringrequiredmin length 1
plan.changes[].[].desired.ttlintegermin 1
plan.changes[].[].desired.priorityintegerplan.changes[].[].desired.priointegerplan.changes[].[].desired.proxiedbooleanplan.changes[].[].desired.commentstringplan.changes[].[].desired.tagsstring[]plan.changes[].[].desired.disabledbooleanplan.changes[].[].warningsstring[]plan.blockersobject[]plan.blockers[].[].code"FULL_ZONE_REPLACEMENT_REQUIRED" | "UNKNOWN_PROVIDER"plan.blockers[].[].messagestringplan.requiresRollbackSnapshotbooleanplan.capabilityWarningsstring[]resultobjectresult.appliedintegerresult.providerRequestIdstringresult.rollbackSnapshotIdstringresult.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": []
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_applyDnsProviderZoneChanges', {
connectionId: '<connectionId>',
zone: '<zone>',
body: {
current: [],
desired: [],
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "relays_applyDnsProviderZoneChanges",
"arguments": {
"connectionId": "<connectionId>",
"zone": "<zone>",
"body": {
"current": [],
"desired": []
}
}
}
}
}List a zone's live records at the external provider
GET/v1/relays/dns-provider-connections/{connectionId}/zones/{zone}/records
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 · stringrequiredconnectionIdpath · stringrequired
Responses
- 200Records
Response fields
connectionobjectzoneobjectrecordsobject[]records[].[].idstringrecords[].[].providerRecordIdstringrecords[].[].namestringrequiredmin length 1
records[].[].typestringrequiredmin length 1
records[].[].contentstringrequiredmin length 1
records[].[].ttlintegermin 1
records[].[].priorityintegerrecords[].[].priointegerrecords[].[].proxiedbooleanrecords[].[].commentstringrecords[].[].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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_listDnsProviderZoneRecords', {
connectionId: '<connectionId>',
zone: '<zone>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_listDnsProviderZoneRecords",
"arguments": {
"connectionId": "<connectionId>",
"zone": "<zone>"
}
}
}List DNS zones for the tenant
GET/v1/relays/zones
Parameters
pagequery · integerlimitquery · integersearchquery · string
Responses
- 200Zones
Response fields
zonesobject[]zones[].[].idintegerzones[].[].namestringzones[].[].type"NATIVE" | "MASTER" | "SLAVE"zones[].[].record_countintegerzones[].[].dnssec_enabledbooleanzones[].[].statusstringzones[].[].serialintegerzones[].[].nameserversstring[]zones[].[].soaobjectzones[].[].created_atstringzones[].[].updated_atstringmetaobjectmeta.pageintegermeta.per_pageintegermeta.totalintegermeta.total_pagesinteger
- 401Error
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/zones" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_listZones'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_listZones",
"arguments": {}
}
}Create a DNS zone
POST/v1/relays/zones
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
namestringrequiredmax length 253
type"NATIVE" | "MASTER" | "SLAVE"default
"NATIVE"create_default_recordsbooleandefault
true
Responses
- 201Created
Response fields
idintegernamestringtype"NATIVE" | "MASTER" | "SLAVE"record_countintegerdnssec_enabledbooleanstatusstringserialintegernameserversstring[]soaobjectcreated_atstringupdated_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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_createZone', {
body: {
name: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_createZone",
"arguments": {
"body": {
"name": "string"
}
}
}
}Get zone details
GET/v1/relays/zones/{zone}
Parameters
zonepath · stringrequired
Responses
- 200Zone
Response fields
idintegernamestringtype"NATIVE" | "MASTER" | "SLAVE"record_countintegerdnssec_enabledbooleanstatusstringserialintegernameserversstring[]soaobjectcreated_atstringupdated_atstring
- 404Error
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/zones/$ZONE" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_getZone', {
zone: '<zone>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_getZone",
"arguments": {
"zone": "<zone>"
}
}
}Delete a zone and all its records
DELETE/v1/relays/zones/{zone}
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
successbooleanmessagestring
- 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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_deleteZone', {
zone: '<zone>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_deleteZone",
"arguments": {
"zone": "<zone>"
}
}
}Update zone settings (type, SOA)
PATCH/v1/relays/zones/{zone}
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"soaobjectsoa.primary_nsstringsoa.hostmasterstring (email)soa.refreshintegermin 60
soa.retryintegermin 60
soa.expireintegermin 3600
soa.ttlintegermin 60
Responses
- 200Updated: id, name, type, updated_at
Response fields
idintegernamestringtype"NATIVE" | "MASTER" | "SLAVE"record_countintegerdnssec_enabledbooleanstatusstringserialintegernameserversstring[]soaobjectcreated_atstringupdated_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 '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_updateZone', {
zone: '<zone>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_updateZone",
"arguments": {
"zone": "<zone>",
"body": {}
}
}
}Dns providers
List the external DNS provider catalog
GET/v1/relays/dns-providers
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 | 3searchquery · string
Responses
- 200Providers
Response fields
providersobject[]providers[].[].slugstringproviders[].[].namestringproviders[].[].aliasesstring[]providers[].[].tier1 | 2 | 3providers[].[].prioritystringproviders[].[].categorystringproviders[].[].badgeobjectproviders[].[].authModelsstring[]providers[].[].oauthStatus"yes" | "partial" | "no" | "unknown"providers[].[].primaryOnboardingstringproviders[].[].dnsWritesstringproviders[].[].registrarActionsstringproviders[].[].capabilitiesobjectproviders[].[].recordSemanticsobjectproviders[].[].observabilityobjectproviders[].[].migrationobjectproviders[].[].capabilityWarningsstring[]metaobjectmeta.totalintegermeta.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_listDnsProviders'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_listDnsProviders",
"arguments": {}
}
}Plan record changes between current and desired records (dry run)
POST/v1/relays/dns-providers/plan
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
providerstringrequiredmin length 1
zonestringrequiredmin length 1
currentobject[]requiredcurrent[].[].idstringcurrent[].[].providerRecordIdstringcurrent[].[].namestringrequiredmin length 1
current[].[].typestringrequiredmin length 1
current[].[].contentstringrequiredmin length 1
current[].[].ttlintegermin 1
current[].[].priorityintegercurrent[].[].priointegercurrent[].[].proxiedbooleancurrent[].[].commentstringcurrent[].[].tagsstring[]current[].[].disabledbooleandesiredobject[]requireddesired[].[].idstringdesired[].[].providerRecordIdstringdesired[].[].namestringrequiredmin length 1
desired[].[].typestringrequiredmin length 1
desired[].[].contentstringrequiredmin length 1
desired[].[].ttlintegermin 1
desired[].[].priorityintegerdesired[].[].priointegerdesired[].[].proxiedbooleandesired[].[].commentstringdesired[].[].tagsstring[]desired[].[].disabledbooleanconfirmFullZoneReplacementboolean
Responses
- 200Plan
Response fields
planobjectplan.idstringplan.mode"dry_run"plan.zonestringplan.providerobjectplan.summaryobjectplan.summary.createsintegerplan.summary.updatesintegerplan.summary.deletesintegerplan.summary.unchangedintegerplan.summary.blockedintegerplan.changesobject[]plan.changes[].[].action"create" | "update" | "delete" | "unchanged"plan.changes[].[].keystringplan.changes[].[].currentobjectplan.changes[].[].current.idstringplan.changes[].[].current.providerRecordIdstringplan.changes[].[].current.namestringrequiredmin length 1
plan.changes[].[].current.typestringrequiredmin length 1
plan.changes[].[].current.contentstringrequiredmin length 1
plan.changes[].[].current.ttlintegermin 1
plan.changes[].[].current.priorityintegerplan.changes[].[].current.priointegerplan.changes[].[].current.proxiedbooleanplan.changes[].[].current.commentstringplan.changes[].[].current.tagsstring[]plan.changes[].[].current.disabledbooleanplan.changes[].[].desiredobjectplan.changes[].[].desired.idstringplan.changes[].[].desired.providerRecordIdstringplan.changes[].[].desired.namestringrequiredmin length 1
plan.changes[].[].desired.typestringrequiredmin length 1
plan.changes[].[].desired.contentstringrequiredmin length 1
plan.changes[].[].desired.ttlintegermin 1
plan.changes[].[].desired.priorityintegerplan.changes[].[].desired.priointegerplan.changes[].[].desired.proxiedbooleanplan.changes[].[].desired.commentstringplan.changes[].[].desired.tagsstring[]plan.changes[].[].desired.disabledbooleanplan.changes[].[].warningsstring[]plan.blockersobject[]plan.blockers[].[].code"FULL_ZONE_REPLACEMENT_REQUIRED" | "UNKNOWN_PROVIDER"plan.blockers[].[].messagestringplan.requiresRollbackSnapshotbooleanplan.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": []
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_planDnsProviderChanges', {
body: {
provider: 'string',
zone: 'string',
current: [],
desired: [],
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_planDnsProviderChanges",
"arguments": {
"body": {
"provider": "string",
"zone": "string",
"current": [],
"desired": []
}
}
}
}Dns
Check whether a domain's public nameservers point at Relays
GET/v1/relays/dns/propagation
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 · stringrequiredDomain to check, e.g. example.com
Responses
- 200Nameserver delegation status
Response fields
domainstringstatus"pending" | "propagating" | "complete" | "error"currentNameserversstring[]expectedNameserversstring[]matchCountintegertotalExpectedintegerpercentagenumbercheckedAtstringmessagestring
- 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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_checkDnsPropagation', {
domain: '<domain>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_checkDnsPropagation",
"arguments": {
"domain": "<domain>"
}
}
}Look a name up from every global probe region
GET/v1/relays/dns/propagation/global
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 · stringrequiredDomain 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
domainstringrecordTypestringresultsobject[]summaryobjectsummary.totalProbesintegersummary.successCountintegersummary.errorCountintegersummary.pendingCountintegersummary.averageLatencyMsnumbersummary.consensusValuestring[]summary.consensusPercentagenumberstartedAtstringcompletedAtstring
- 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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_checkGlobalDnsPropagation', {
domain: '<domain>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_checkGlobalDnsPropagation",
"arguments": {
"domain": "<domain>"
}
}
}Domain assets
List the account's domains across Relays DNS and connected providers
GET/v1/relays/domain-assets
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 · stringCase-insensitive substring of the domain
Responses
- 200Domain assets
Response fields
domainAssetsobject[]domainAssets[].[].idstringdomainAssets[].[].domainstringdomainAssets[].[].sources"relays_dns" | "external_dns" | "registrar"[]domainAssets[].[].registrarAuthorityobjectdomainAssets[].[].registrarAuthority.idstringdomainAssets[].[].registrarAuthority.kind"relays" | "external" | "manual_bridge" | "unknown"domainAssets[].[].registrarAuthority.providerSlugstringdomainAssets[].[].registrarAuthority.providerNamestringdomainAssets[].[].registrarAuthority.connectionIdstringdomainAssets[].[].registrarAuthority.accountRefstring | nulldomainAssets[].[].registrarAuthority.zoneNamestringdomainAssets[].[].registrarAuthority.statusstringdomainAssets[].[].registrarAuthority.supportedActionsstring[]domainAssets[].[].registrarAuthority.warningsstring[]domainAssets[].[].dnsAuthorityobjectdomainAssets[].[].dnsAuthority.idstringdomainAssets[].[].dnsAuthority.kind"relays" | "external" | "manual_bridge" | "unknown"domainAssets[].[].dnsAuthority.providerSlugstringdomainAssets[].[].dnsAuthority.providerNamestringdomainAssets[].[].dnsAuthority.connectionIdstringdomainAssets[].[].dnsAuthority.accountRefstring | nulldomainAssets[].[].dnsAuthority.zoneNamestringdomainAssets[].[].dnsAuthority.statusstringdomainAssets[].[].dnsAuthority.supportedActionsstring[]domainAssets[].[].dnsAuthority.warningsstring[]domainAssets[].[].recordCountintegerdomainAssets[].[].dnssecStatusstringdomainAssets[].[].nameserversstring[]domainAssets[].[].lastSyncedAtstring | null (date-time)metaobjectmeta.totalinteger
- 401Error
- 403Error
- 500Error
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/domain-assets" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_listDomainAssets'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_listDomainAssets",
"arguments": {}
}
}Get one domain's DNS and registration authorities
GET/v1/relays/domain-assets/{domain}
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
domainAssetobjectdomainAsset.idstringdomainAsset.domainstringdomainAsset.sources"relays_dns" | "external_dns" | "registrar"[]domainAsset.registrarAuthorityobjectdomainAsset.registrarAuthority.idstringdomainAsset.registrarAuthority.kind"relays" | "external" | "manual_bridge" | "unknown"domainAsset.registrarAuthority.providerSlugstringdomainAsset.registrarAuthority.providerNamestringdomainAsset.registrarAuthority.connectionIdstringdomainAsset.registrarAuthority.accountRefstring | nulldomainAsset.registrarAuthority.zoneNamestringdomainAsset.registrarAuthority.statusstringdomainAsset.registrarAuthority.supportedActionsstring[]domainAsset.registrarAuthority.warningsstring[]domainAsset.dnsAuthorityobjectdomainAsset.dnsAuthority.idstringdomainAsset.dnsAuthority.kind"relays" | "external" | "manual_bridge" | "unknown"domainAsset.dnsAuthority.providerSlugstringdomainAsset.dnsAuthority.providerNamestringdomainAsset.dnsAuthority.connectionIdstringdomainAsset.dnsAuthority.accountRefstring | nulldomainAsset.dnsAuthority.zoneNamestringdomainAsset.dnsAuthority.statusstringdomainAsset.dnsAuthority.supportedActionsstring[]domainAsset.dnsAuthority.warningsstring[]domainAsset.recordCountintegerdomainAsset.dnssecStatusstringdomainAsset.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_getDomainAsset', {
domain: '<domain>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_getDomainAsset",
"arguments": {
"domain": "<domain>"
}
}
}Domains
Analyze a domain for confusability, brand collision, language and deliverability risk
POST/v1/relays/domains/analyze
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
domainstringrequiredmin length 3 · max length 253 · pattern
^[a-zA-Z0-9]([a-zA-Z0-9-]*[a-zA-Z0-9])?(\.[a-zA-Z]{2,})+$include_defensivebooleandefault
false
Responses
- 200Analysis
Response fields
domainstringanalysisobjectanalysis.confusabilityobjectanalysis.confusability.level"low" | "medium" | "high"analysis.confusability.typosstring[]analysis.confusability.homophonesstring[]analysis.confusability.reasonstringanalysis.brand_collisionobjectanalysis.brand_collision.level"low" | "medium" | "high"analysis.brand_collision.reasonstringanalysis.language_pitfallsobjectanalysis.language_pitfalls.level"low" | "medium" | "high"analysis.language_pitfalls.issuesobject[]analysis.language_pitfalls.issues[].[].languagestringanalysis.language_pitfalls.issues[].[].meaningstringanalysis.language_pitfalls.issues[].[].severity"minor" | "moderate" | "severe"analysis.language_pitfalls.reasonstringanalysis.deliverabilityobjectanalysis.deliverability.level"low" | "medium" | "high"analysis.deliverability.spamScorenumberanalysis.deliverability.reasonstringanalysis.overall_risk"low" | "medium" | "high"analysis.recommendationstringdefensive_setobject[]defensive_set[].[].domainstringdefensive_set[].[].reasonstringdefensive_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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_analyzeDomain', {
body: {
domain: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_analyzeDomain",
"arguments": {
"body": {
"domain": "string"
}
}
}
}List forwarding rules for a domain
GET/v1/relays/domains/forwarding
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 · stringrequiredHostname, e.g. example.com
Responses
- 200Rules
Response fields
rulesobject[]rules[].[].idstring (uuid)rules[].[].domainstringrules[].[].type"url" | "email"rules[].[].sourcestringrules[].[].destinationstringrules[].[].code301 | 302 | nullrules[].[].enabledbooleanrules[].[].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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_listDomainForwardingRules', {
domain: '<domain>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_listDomainForwardingRules",
"arguments": {
"domain": "<domain>"
}
}
}Create a URL or email forwarding rule
POST/v1/relays/domains/forwarding
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
domainstringrequiredHostname
type"url" | "email"requiredsourcestringrequiredurl: path starting with /; email: local part without @
destinationstringrequiredurl: http(s) URL; email: address
redirect_code301 | 302default
301enabledbooleandefault
true
Responses
- 201Created
Response fields
successbooleanruleobjectrule.idstring (uuid)rule.domainstringrule.type"url" | "email"rule.sourcestringrule.destinationstringrule.code301 | 302 | nullrule.enabledbooleanrule.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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_createDomainForwardingRule', {
body: {
domain: 'string',
type: 'url',
source: 'string',
destination: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_createDomainForwardingRule",
"arguments": {
"body": {
"domain": "string",
"type": "url",
"source": "string",
"destination": "string"
}
}
}
}Delete a forwarding rule
DELETE/v1/relays/domains/forwarding/{ruleId}
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
successbooleandeletedobjectdeleted.idstringdeleted.domainstringdeleted.typestringdeleted.sourcestringdeleted.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_deleteDomainForwardingRule', {
ruleId: '<ruleId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "relays_deleteDomainForwardingRule",
"arguments": {
"ruleId": "<ruleId>"
}
}
}
}List TLDs priced below their 24-hour mean
GET/v1/relays/domains/specials
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[]requiredspecials[].[].tldstringrequiredThe TLD without a leading dot, e.g. com
specials[].[].latestPriceCentsintegerrequiredCheapest current registration price, in cents
specials[].[].trailingMeanCentsintegerrequiredMean registration price over the last 24 hours, in cents
specials[].[].deltaPercentnumberrequiredFractional change from the mean; -0.25 is 25% below
specials[].[].currencystringrequiredspecials[].[].narrativestringA recent pricing note for the TLD, when one exists
cachedbooleanTrue 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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_listDomainSpecials'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_listDomainSpecials",
"arguments": {}
}
}Suggest domain names for an intent
POST/v1/relays/domains/suggest
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
intentstringrequiredmin length 2 · max length 500
tonesstring[]constraintsobjectconstraints.maxLengthintegermin 2 · max 63
constraints.noHyphensbooleantldsstring[]check_availabilitybooleandefault
falselimitintegermin 1 · max 100 · default
30
Responses
- 200Suggestions
Response fields
suggestionsobject[]suggestions[].[].namestringsuggestions[].[].tldstringsuggestions[].[].fqdnstringsuggestions[].[].rationalestringsuggestions[].[].scoresobjectsuggestions[].[].scores.memorabilitynumbersuggestions[].[].scores.pronounceabilitynumbersuggestions[].[].scores.brandFitnumbersuggestions[].[].cluster"literal" | "abstract" | "compound" | "invented" | "category"suggestions[].[].availabilityobjectPresent on the first 20 names when check_availability is true.
suggestions[].[].availability.checkedbooleanrequiredtrue only when the registrar answered; false means unknown, not taken
suggestions[].[].availability.source"openprovider" | "sample"requiredsuggestions[].[].availability.availablebooleanPresent only when checked is true
suggestions[].[].availability.premiumbooleanPresent only when checked is true
suggestions[].[].availability.priceobjectsuggestions[].[].availability.price.amountnumbersuggestions[].[].availability.price.currencystringmetaobjectmeta.intentstringmeta.totalintegermeta.availability_checkedbooleananalyzed_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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_suggestDomains', {
body: {
intent: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_suggestDomains",
"arguments": {
"body": {
"intent": "string"
}
}
}
}Errors
List release artifacts (source maps, debug symbols)
GET/v1/relays/errors/artifacts
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 · stringreleasequery · stringartifact_typequery · "source_map" | "debug_symbols"limitquery · integer
Responses
- 200Artifacts
Response fields
artifactsobject[]requiredartifacts[].[].idstringartifacts[].[].tenant_idstringartifacts[].[].project_keystringartifacts[].[].releasestringartifacts[].[].diststring | nullartifacts[].[].artifact_type"source_map" | "debug_symbols"artifacts[].[].artifact_pathstringartifacts[].[].debug_idstring | nullartifacts[].[].content_typestring | nullartifacts[].[].content_sha256stringartifacts[].[].size_bytesintegerartifacts[].[].storage_urlstring | nullartifacts[].[].created_atstringartifacts[].[].updated_atstringmetaobjectrequiredmeta.limitintegermeta.returnedinteger
- 400Error
- 401Error
- 500Error
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/errors/artifacts" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_listErrorArtifacts'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_listErrorArtifacts",
"arguments": {}
}
}Register a source map or debug symbols for a release
POST/v1/relays/errors/artifacts
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_keystringrequiredmin length 1 · max length 128 · pattern
^[A-Za-z0-9._-]+$releasestringrequiredmin length 1 · max length 255
diststringmax length 128
artifact_type"source_map" | "debug_symbols"requiredartifact_pathstringrequiredmin length 1 · max length 2048
debug_idstringmax length 128
content_typestringmax length 128
storage_urlstringmax length 2048
contentanyInline artifact body, any JSON
Responses
- 201Created
Response fields
artifactobjectrequiredartifact.idstringartifact.tenant_idstringartifact.project_keystringartifact.releasestringartifact.diststring | nullartifact.artifact_type"source_map" | "debug_symbols"artifact.artifact_pathstringartifact.debug_idstring | nullartifact.content_typestring | nullartifact.content_sha256stringartifact.size_bytesintegerartifact.storage_urlstring | nullartifact.created_atstringartifact.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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_createErrorArtifact', {
body: {
project_key: 'string',
release: 'string',
artifact_type: 'source_map',
artifact_path: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "relays_createErrorArtifact",
"arguments": {
"body": {
"project_key": "string",
"release": "string",
"artifact_type": "source_map",
"artifact_path": "string"
}
}
}
}
}List release deploy markers
GET/v1/relays/errors/deployments
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 · stringreleasequery · stringenvironmentquery · stringlimitquery · integer
Responses
- 200Deployments
Response fields
deploymentsobject[]requireddeployments[].[].idstringdeployments[].[].tenant_idstringdeployments[].[].project_keystringdeployments[].[].releasestringdeployments[].[].environmentstring | nulldeployments[].[].commit_shastring | nulldeployments[].[].repositorystring | nulldeployments[].[].branchstring | nulldeployments[].[].deployed_bystring | nulldeployments[].[].deployed_atstringdeployments[].[].metadataobjectdeployments[].[].created_bystring | nulldeployments[].[].created_atstringdeployments[].[].updated_atstringmetaobjectrequiredmeta.limitintegermeta.returnedinteger
- 400Error
- 401Error
- 500Error
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/errors/deployments" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_listErrorDeployments'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_listErrorDeployments",
"arguments": {}
}
}Register a release deploy marker
POST/v1/relays/errors/deployments
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_keystringrequiredmin length 1 · max length 128 · pattern
^[A-Za-z0-9._-]+$releasestringrequiredmin length 1 · max length 255
environmentstringmax length 128
commit_shastringmax length 128
repositorystringmax length 255
branchstringmax length 255
deployed_bystringmax length 255
deployed_atstring (date-time)metadataobjectdefault
{}
Responses
- 201Created
Response fields
deploymentobjectrequireddeployment.idstringdeployment.tenant_idstringdeployment.project_keystringdeployment.releasestringdeployment.environmentstring | nulldeployment.commit_shastring | nulldeployment.repositorystring | nulldeployment.branchstring | nulldeployment.deployed_bystring | nulldeployment.deployed_atstringdeployment.metadataobjectdeployment.created_bystring | nulldeployment.created_atstringdeployment.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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_createErrorDeployment', {
body: {
project_key: 'string',
release: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_createErrorDeployment",
"arguments": {
"body": {
"project_key": "string",
"release": "string"
}
}
}
}Ingest one Sentry-shaped application error event
POST/v1/relays/errors/events
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_idstringproject_keystringmessagestringtitlestringlevel"fatal" | "error" | "warning" | "info" | "debug"platformstringenvironmentstringreleasestringdiststringtransactionstringtrace_idstringspan_idstringtimestampstringfingerprintstring[]exceptionobjecttagsobjectuserobjectrequestobjectcontextsobject
Responses
- 202Accepted
Response fields
issueobjectrequiredissue.idstringissue.tenant_idstringissue.project_keystringissue.fingerprintstringissue.titlestringissue.culpritstring | nullissue.levelstringissue.status"unresolved" | "resolved" | "ignored"issue.platformstring | nullissue.environmentstring | nullissue.releasestring | nullissue.event_countintegerissue.user_countintegerissue.first_seen_atstringissue.last_seen_atstringissue.last_event_idstring | nullissue.tagsobjectissue.metadataobjectissue.assigned_tostring | nullissue.resolved_atstring | nullissue.created_atstringissue.updated_atstringeventobjectrequiredevent.idstringevent.tenant_idstringevent.issue_idstringevent.event_idstring | nullevent.project_keystringevent.fingerprintstringevent.titlestringevent.messagestring | nullevent.levelstringevent.platformstring | nullevent.environmentstring | nullevent.releasestring | nullevent.transactionstring | nullevent.trace_idstring | nullevent.span_idstring | nullevent.exception_typestring | nullevent.exception_valuestring | nullevent.culpritstring | nullevent.tagsobjectevent.occurred_atstringevent.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 '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_ingestErrorEvent', {
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_ingestErrorEvent",
"arguments": {
"body": {}
}
}
}List grouped error issues
GET/v1/relays/errors/issues
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 · stringenvironmentquery · stringlevelquery · "fatal" | "error" | "warning" | "info" | "debug"limitquery · integer
Responses
- 200Issues
Response fields
issuesobject[]requiredissues[].[].idstringissues[].[].tenant_idstringissues[].[].project_keystringissues[].[].fingerprintstringissues[].[].titlestringissues[].[].culpritstring | nullissues[].[].levelstringissues[].[].status"unresolved" | "resolved" | "ignored"issues[].[].platformstring | nullissues[].[].environmentstring | nullissues[].[].releasestring | nullissues[].[].event_countintegerissues[].[].user_countintegerissues[].[].first_seen_atstringissues[].[].last_seen_atstringissues[].[].last_event_idstring | nullissues[].[].tagsobjectissues[].[].metadataobjectissues[].[].assigned_tostring | nullissues[].[].resolved_atstring | nullissues[].[].created_atstringissues[].[].updated_atstringsummaryobjectrequiredsummary.totalintegersummary.unresolvedintegersummary.resolvedintegersummary.ignoredintegersummary.criticalintegersummary.warningintegersummary.errorintegermetaobjectrequiredmeta.limitintegermeta.returnedinteger
- 400Error
- 401Error
- 500Error
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/errors/issues" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_listErrorIssues'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_listErrorIssues",
"arguments": {}
}
}Set a grouped issue's workflow status
PATCH/v1/relays/errors/issues/{issueId}
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
idstringtenant_idstringproject_keystringfingerprintstringtitlestringculpritstring | nulllevelstringstatus"unresolved" | "resolved" | "ignored"platformstring | nullenvironmentstring | nullreleasestring | nullevent_countintegeruser_countintegerfirst_seen_atstringlast_seen_atstringlast_event_idstring | nulltagsobjectmetadataobjectassigned_tostring | nullresolved_atstring | nullcreated_atstringupdated_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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_updateErrorIssue', {
issueId: '<issueId>',
body: {
status: 'unresolved',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_updateErrorIssue",
"arguments": {
"issueId": "<issueId>",
"body": {
"status": "unresolved"
}
}
}
}AI-ready issue context and heuristic fix suggestions
GET/v1/relays/errors/issues/{issueId}/context
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
contextobjectrequiredcontext.issue_idstringcontext.severitystringcontext.summarystringcontext.suspected_causestringcontext.suggested_fixesobject[]context.correlationobjectcontext.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_getErrorIssueContext', {
issueId: '<issueId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_getErrorIssueContext",
"arguments": {
"issueId": "<issueId>"
}
}
}List external work-item links on an issue
GET/v1/relays/errors/issues/{issueId}/integrations
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[]requiredintegrations[].[].idstringintegrations[].[].tenant_idstringintegrations[].[].issue_idstringintegrations[].[].provider"linear" | "jira" | "github"integrations[].[].external_keystringintegrations[].[].external_urlstringintegrations[].[].titlestringintegrations[].[].statusstringintegrations[].[].metadataobjectintegrations[].[].created_bystring | nullintegrations[].[].created_atstringintegrations[].[].updated_atstringmetaobjectrequiredmeta.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_listErrorIssueIntegrations', {
issueId: '<issueId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_listErrorIssueIntegrations",
"arguments": {
"issueId": "<issueId>"
}
}
}Record a link from an issue to an existing Linear, Jira or GitHub work item
POST/v1/relays/errors/issues/{issueId}/integrations
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"requiredexternal_keystringrequiredmin length 1 · max length 255
external_urlstring (uri)requiredtitlestringrequiredmin length 1 · max length 512
statusstringmax length 64 · default
"linked"metadataobjectdefault
{}
Responses
- 201Linked
Response fields
integrationobjectrequiredintegration.idstringintegration.tenant_idstringintegration.issue_idstringintegration.provider"linear" | "jira" | "github"integration.external_keystringintegration.external_urlstringintegration.titlestringintegration.statusstringintegration.metadataobjectintegration.created_bystring | nullintegration.created_atstringintegration.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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_linkErrorIssueIntegration', {
issueId: '<issueId>',
body: {
provider: 'linear',
external_key: 'string',
external_url: 'https://example.com',
title: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_linkErrorIssueIntegration",
"arguments": {
"issueId": "<issueId>",
"body": {
"provider": "linear",
"external_key": "string",
"external_url": "https://example.com",
"title": "string"
}
}
}
}List error tracking SDK projects (DSNs)
GET/v1/relays/errors/projects
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[]requiredprojects[].[].idstringprojects[].[].tenant_idstringprojects[].[].project_keystringprojects[].[].namestringprojects[].[].public_keystringprojects[].[].dsnstringprojects[].[].envelope_urlstringprojects[].[].store_urlstringprojects[].[].enabledbooleanprojects[].[].allowed_originsstring[]projects[].[].created_atstringprojects[].[].updated_atstring
- 401Error
- 500Error
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/errors/projects" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_listErrorProjects'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_listErrorProjects",
"arguments": {}
}
}Create an error tracking SDK project and DSN
POST/v1/relays/errors/projects
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_keystringrequiredmin length 1 · max length 128 · pattern
^[A-Za-z0-9._-]+$namestringrequiredmin length 1 · max length 255
allowed_originsstring[]enabledbooleandefault
true
Responses
- 201Created
Response fields
projectobjectrequiredproject.idstringproject.tenant_idstringproject.project_keystringproject.namestringproject.public_keystringproject.dsnstringproject.envelope_urlstringproject.store_urlstringproject.enabledbooleanproject.allowed_originsstring[]project.created_atstringproject.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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_createErrorProject', {
body: {
project_key: 'string',
name: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_createErrorProject",
"arguments": {
"body": {
"project_key": "string",
"name": "string"
}
}
}
}Aggregate grouped errors by release with trend and deploy markers
GET/v1/relays/errors/releases
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 · stringenvironmentquery · stringlimitquery · integer
Responses
- 200Releases
Response fields
releasesobject[]requiredreleases[].[].project_keystringreleases[].[].releasestringreleases[].[].environmentstring | nullreleases[].[].issue_countintegerreleases[].[].event_countintegerreleases[].[].unresolved_countintegerreleases[].[].critical_countintegerreleases[].[].user_countintegerreleases[].[].first_seen_atstringreleases[].[].last_seen_atstringreleases[].[].status"regression" | "watch" | "healthy"releases[].[].trendobject[]releases[].[].change_markersobject[]metaobjectrequiredmeta.limitintegermeta.returnedinteger
- 400Error
- 401Error
- 500Error
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/errors/releases" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_listErrorReleases'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_listErrorReleases",
"arguments": {}
}
}Escalation policies
List escalation policies with their levels
GET/v1/relays/escalation-policies
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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_listEscalationPolicies'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_listEscalationPolicies",
"arguments": {}
}
}Create an escalation policy
POST/v1/relays/escalation-policies
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
namestringdescriptionstringrepeat_enabledbooleanrepeat_countintegerrulesobject[]rules[].[].levelintegerrequiredrules[].[].delay_minutesintegerrequiredrules[].[].notify_type"channel" | "schedule" | "user"requiredrules[].[].notify_target_idstring (uuid)requiredrules[].[].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 '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_createEscalationPolicy', {
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_createEscalationPolicy",
"arguments": {
"body": {}
}
}
}Get an escalation policy
GET/v1/relays/escalation-policies/{policyId}
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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_getEscalationPolicy', {
policyId: '<policyId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_getEscalationPolicy",
"arguments": {
"policyId": "<policyId>"
}
}
}Delete an escalation policy
DELETE/v1/relays/escalation-policies/{policyId}
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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_deleteEscalationPolicy', {
policyId: '<policyId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_deleteEscalationPolicy",
"arguments": {
"policyId": "<policyId>"
}
}
}Update an escalation policy (rules replace all levels)
PATCH/v1/relays/escalation-policies/{policyId}
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
namestringdescriptionstring | nullrepeat_enabledbooleanrepeat_countintegerrulesobject[]
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 '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_updateEscalationPolicy', {
policyId: '<policyId>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_updateEscalationPolicy",
"arguments": {
"policyId": "<policyId>",
"body": {}
}
}
}Genesis
Read enrollment for the current verified human Genesis selection
GET/v1/relays/genesis/enrollment
Responses
- 200Actual enrollment status; no provisioning
Response fields
state"ready" | "not_enrolled"requiredorganizationIdstringrequiredpattern
^o_[A-Za-z0-9_-]{1,128}$projectIdstringrequiredpattern
^pr_[A-Za-z0-9_-]{1,128}$workspaceIdstringrequiredpattern
^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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_getEnrollment'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_getEnrollment",
"arguments": {}
}
}Explicitly activate an empty Relays account; read status after an unconfirmed result
POST/v1/relays/genesis/enrollment
Responses
- 200Exact mapping already exists; created false
Response fields
state"ready"requiredorganizationIdstringrequiredpattern
^o_[A-Za-z0-9_-]{1,128}$projectIdstringrequiredpattern
^pr_[A-Za-z0-9_-]{1,128}$workspaceIdstringrequiredpattern
^w_[A-Za-z0-9_-]{1,128}$resourceEnvironment"sandbox"requiredcreatedbooleanrequired
- 201Empty account created; created true
Response fields
state"ready"requiredorganizationIdstringrequiredpattern
^o_[A-Za-z0-9_-]{1,128}$projectIdstringrequiredpattern
^pr_[A-Za-z0-9_-]{1,128}$workspaceIdstringrequiredpattern
^w_[A-Za-z0-9_-]{1,128}$resourceEnvironment"sandbox"requiredcreatedbooleanrequired
- 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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_enroll'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_enroll",
"arguments": {}
}
}Incidents
List incidents with filters, stats and pagination
GET/v1/relays/incidents
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 · integerlimitquery · integerstatusquery · "investigating" | "identified" | "monitoring" | "resolved" | "scheduled" | "in_progress" | "completed"severityquery · "minor" | "major" | "critical" | "maintenance"resolvedquery · "true" | "false"searchquery · stringstatus_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[]requiredincidents[].[].idstring (uuid)requiredincidents[].[].tenant_idstringrequiredincidents[].[].titlestringrequiredincidents[].[].status"investigating" | "identified" | "monitoring" | "resolved" | "scheduled" | "in_progress" | "completed"requiredincidents[].[].severity"minor" | "major" | "critical" | "maintenance"requiredincidents[].[].impactstringrequiredincidents[].[].monitor_idstring | nullincidents[].[].status_page_idsstring[]incidents[].[].component_idsstring[]incidents[].[].is_publicbooleanincidents[].[].is_auto_createdbooleanincidents[].[].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 | nullincidents[].[].acknowledged_bystring | nullincidents[].[].acknowledged_atstring | null (date-time)incidents[].[].resolved_bystring | nullincidents[].[].postmortem_urlstring | nullincidents[].[].created_atstring (date-time)requiredincidents[].[].updated_atstring (date-time)requiredstatsobjectrequiredstats.totalintegerstats.investigatingintegerstats.identifiedintegerstats.monitoringintegerstats.resolvedintegerstats.unresolvedintegerstats.criticalintegermetaobjectrequiredmeta.pageintegermeta.per_pageintegermeta.totalintegermeta.total_pagesinteger
- 400Error
- 401Error
- 403Error
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/incidents" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_listIncidents'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_listIncidents",
"arguments": {}
}
}Create an incident with its first update
POST/v1/relays/incidents
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
titlestringrequiredmin length 1 · max length 255
messagestringrequiredmin 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)[]requiredThe first entry is stored as the incident's status page; an empty list answers 400.
is_publicbooleanAccepted but not stored default
truenotify_subscribersbooleandefault
true
Responses
- 201Created
Response fields
idstring (uuid)requiredtenant_idstringrequiredtitlestringrequiredstatus"investigating" | "identified" | "monitoring" | "resolved" | "scheduled" | "in_progress" | "completed"requiredseverity"minor" | "major" | "critical" | "maintenance"requiredimpactstringrequiredmonitor_idstring | nullstatus_page_idsstring[]component_idsstring[]is_publicbooleanis_auto_createdbooleanstarted_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 | nullacknowledged_bystring | nullacknowledged_atstring | null (date-time)resolved_bystring | nullpostmortem_urlstring | nullcreated_atstring (date-time)requiredupdated_atstring (date-time)requiredupdatesobject[]updates[].[].idstringupdates[].[].statusstringupdates[].[].messagestringupdates[].[].is_publicbooleanupdates[].[].created_bystring | nullupdates[].[].created_atstring (date-time)affected_componentsobject[]Present on GET only
affected_components[].[].idstringaffected_components[].[].namestringaffected_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"
]
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_createIncident', {
body: {
title: 'string',
message: 'string',
status_page_ids: [
'00000000-0000-4000-8000-000000000000',
],
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_createIncident",
"arguments": {
"body": {
"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}
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)requiredtenant_idstringrequiredtitlestringrequiredstatus"investigating" | "identified" | "monitoring" | "resolved" | "scheduled" | "in_progress" | "completed"requiredseverity"minor" | "major" | "critical" | "maintenance"requiredimpactstringrequiredmonitor_idstring | nullstatus_page_idsstring[]component_idsstring[]is_publicbooleanis_auto_createdbooleanstarted_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 | nullacknowledged_bystring | nullacknowledged_atstring | null (date-time)resolved_bystring | nullpostmortem_urlstring | nullcreated_atstring (date-time)requiredupdated_atstring (date-time)requiredupdatesobject[]updates[].[].idstringupdates[].[].statusstringupdates[].[].messagestringupdates[].[].is_publicbooleanupdates[].[].created_bystring | nullupdates[].[].created_atstring (date-time)affected_componentsobject[]Present on GET only
affected_components[].[].idstringaffected_components[].[].namestringaffected_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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_getIncident', {
incidentId: '<incidentId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_getIncident",
"arguments": {
"incidentId": "<incidentId>"
}
}
}Delete an incident and its updates
DELETE/v1/relays/incidents/{incidentId}
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
messagestringrequiredidstringrequired
- 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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_deleteIncident', {
incidentId: '<incidentId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "relays_deleteIncident",
"arguments": {
"incidentId": "<incidentId>"
}
}
}
}Update an incident status or fields, optionally appending an update message
PATCH/v1/relays/incidents/{incidentId}
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
titlestringmin length 1 · max length 255
status"investigating" | "identified" | "monitoring" | "resolved" | "scheduled" | "in_progress" | "completed"severity"minor" | "major" | "critical" | "maintenance"impact"none" | "minor" | "major" | "critical"messagestringAppends an incident update entry min length 1 · max length 10000
component_idsstring (uuid)[]status_page_idsstring (uuid)[]is_publicbooleanAccepted but not stored
postmortem_urlstring | null (uri)max length 2048
scheduled_forstring | null (date-time)scheduled_untilstring | null (date-time)notify_subscribersbooleanUnset means false for an org API key and true for a signed-in user
Responses
- 200Updated incident with updates
Response fields
idstring (uuid)requiredtenant_idstringrequiredtitlestringrequiredstatus"investigating" | "identified" | "monitoring" | "resolved" | "scheduled" | "in_progress" | "completed"requiredseverity"minor" | "major" | "critical" | "maintenance"requiredimpactstringrequiredmonitor_idstring | nullstatus_page_idsstring[]component_idsstring[]is_publicbooleanis_auto_createdbooleanstarted_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 | nullacknowledged_bystring | nullacknowledged_atstring | null (date-time)resolved_bystring | nullpostmortem_urlstring | nullcreated_atstring (date-time)requiredupdated_atstring (date-time)requiredupdatesobject[]updates[].[].idstringupdates[].[].statusstringupdates[].[].messagestringupdates[].[].is_publicbooleanupdates[].[].created_bystring | nullupdates[].[].created_atstring (date-time)affected_componentsobject[]Present on GET only
affected_components[].[].idstringaffected_components[].[].namestringaffected_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 '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_updateIncident', {
incidentId: '<incidentId>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_updateIncident",
"arguments": {
"incidentId": "<incidentId>",
"body": {}
}
}
}Incident counts, MTTA, MTTR, MTBF and distributions over a window
GET/v1/relays/incidents/analytics
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 · integersincequery · string (date-time)untilquery · string (date-time)status_page_idquery · string (uuid)severityquery · "minor" | "major" | "critical" | "maintenance"
Responses
- 200Analytics
Response fields
summaryobjectrequiredsummary.totalintegersummary.activeintegersummary.acknowledgedintegersummary.resolvedintegersummary.criticalintegertimingsobjectrequiredtimings.mtta_secondsinteger | nulltimings.mttr_secondsinteger | nulltimings.mtbf_secondsinteger | nulldistributionsobjectrequireddistributions.by_statusobjectdistributions.by_severityobjectdistributions.by_impactobjectwindowobjectrequiredwindow.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_getIncidentAnalytics'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_getIncidentAnalytics",
"arguments": {}
}
}List incidents of a status page with their updates
GET/v1/relays/status-pages/{pageId}/incidents
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 · stringrequiredpagequery · integerlimitquery · integerstatusquery · stringactive, resolved, scheduled, or an incident status
Responses
- 200Incidents
Response fields
incidentsobject[]requiredincidents[].[].idstringincidents[].[].titlestringincidents[].[].statusstringincidents[].[].impactstringincidents[].[].severitystringincidents[].[].affected_component_idsstring[]incidents[].[].started_atstring | null (date-time)incidents[].[].identified_atstring | null (date-time)incidents[].[].resolved_atstring | null (date-time)incidents[].[].scheduled_forstring | nullincidents[].[].scheduled_untilstring | nullincidents[].[].auto_createdbooleanincidents[].[].acknowledged_atstring | null (date-time)incidents[].[].post_mortem_urlstring | nullincidents[].[].created_bystring | nullincidents[].[].created_atstring (date-time)incidents[].[].updated_atstring (date-time)incidents[].[].updatesobject[]incidents[].[].updates[].[].idstringincidents[].[].updates[].[].statusstringincidents[].[].updates[].[].messagestringincidents[].[].updates[].[].internal_notestring | nullincidents[].[].updates[].[].auto_generatedboolean | nullincidents[].[].updates[].[].created_bystring | nullincidents[].[].updates[].[].created_atstring (date-time)metaobjectrequiredmeta.pageintegermeta.per_pageintegermeta.totalintegermeta.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_listStatusPageIncidents', {
pageId: '<pageId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_listStatusPageIncidents",
"arguments": {
"pageId": "<pageId>"
}
}
}Create an incident or scheduled maintenance on a status page
POST/v1/relays/status-pages/{pageId}/incidents
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
titlestringrequiredmin length 1 · max length 255
impact"none" | "minor" | "major" | "critical" | "maintenance"default
"minor"status"investigating" | "identified" | "monitoring" | "resolved" | "scheduled" | "in_progress" | "completed"messagestringrequiredmin length 1 · max length 5000
affected_component_idsstring (uuid)[]default
[]severity"minor" | "major" | "critical" | "maintenance"scheduled_forstring (date-time)scheduled_untilstring (date-time)internal_notestringmax length 2000
Responses
- 201Created
Response fields
idstringtitlestringstatusstringimpactstringseveritystringaffected_component_idsstring[]started_atstring | null (date-time)identified_atstring | null (date-time)resolved_atstring | null (date-time)scheduled_forstring | nullscheduled_untilstring | nullauto_createdbooleanacknowledged_atstring | null (date-time)post_mortem_urlstring | nullcreated_bystring | nullcreated_atstring (date-time)updated_atstring (date-time)updatesobject[]updates[].[].idstringupdates[].[].statusstringupdates[].[].messagestringupdates[].[].internal_notestring | nullupdates[].[].auto_generatedboolean | nullupdates[].[].created_bystring | nullupdates[].[].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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_createStatusPageIncident', {
pageId: '<pageId>',
body: {
title: 'string',
message: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_createStatusPageIncident",
"arguments": {
"pageId": "<pageId>",
"body": {
"title": "string",
"message": "string"
}
}
}
}Writeup
Draft the incident write-up from the recorded timeline
POST/v1/relays/incidents/{incidentId}/writeup
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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_draftIncidentWriteup', {
incidentId: '<incidentId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_draftIncidentWriteup",
"arguments": {
"incidentId": "<incidentId>"
}
}
}Publish the reviewed incident write-up on its status page
POST/v1/relays/incidents/{incidentId}/writeup/publish
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
writeupstringThe 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 '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_publishIncidentWriteup', {
incidentId: '<incidentId>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_publishIncidentWriteup",
"arguments": {
"incidentId": "<incidentId>",
"body": {}
}
}
}Logs
Query DNS query logs from the warehouse (tenant-filtered, retention-window enforced)
GET/v1/relays/logs
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 · stringDNS 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 · stringSubstring match on the queried name
clientquery · stringClient IP
response_codequery · "NOERROR" | "FORMERR" | "SERVFAIL" | "NXDOMAIN" | "NOTIMP" | "REFUSED"trace_idquery · stringspan_idquery · stringstartquery · string (date-time)ISO timestamp; raised to the retention cutoff if older
endquery · string (date-time)limitquery · integerDefault 100, clamped 1..1000
Responses
- 200Logs
Response fields
logsobject[]requiredmetaobjectrequiredmeta.totalintegermeta.limitintegermeta.cursorstring | nullmeta.has_morebooleanfiltersobjectrequiredretentionobjectretention.retention_daysintegerretention.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_listLogs'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_listLogs",
"arguments": {}
}
}Poll the live DNS query log tail (one JSON snapshot after a cursor)
GET/v1/relays/logs/live
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 · stringDNS 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 · stringSubstring match on the queried name
clientquery · stringClient IP
response_codequery · "NOERROR" | "FORMERR" | "SERVFAIL" | "NXDOMAIN" | "NOTIMP" | "REFUSED"trace_idquery · stringspan_idquery · stringstartquery · string (date-time)Cursor: the previous meta.cursor. Logs strictly after it are returned. Omitted: the last five minutes.
endquery · string (date-time)limitquery · integerDefault 50, clamped 1..100
Responses
- 200Snapshot
Response fields
logsobject[]requiredlogs[].[].idstringrequiredlogs[].[].timestampstringrequiredlogs[].[].zonestringlogs[].[].namestringlogs[].[].typestringlogs[].[].clientstringlogs[].[].responseCodestringlogs[].[].latencyMsnumberlogs[].[].traceIdstringlogs[].[].spanIdstringlogs[].[].rawobjectmetaobjectrequiredmeta.limitintegerrequiredmeta.has_morebooleanrequiredThe snapshot filled limit; poll again from cursor
meta.cursorstringrequiredNewest timestamp returned (the effective start when none); pass back as start
filtersobjectrequiredretentionobjectretention.retention_daysintegerretention.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_listLiveLogs'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_listLiveLogs",
"arguments": {}
}
}Detect DNS log patterns and anomaly candidates over the filtered logs
GET/v1/relays/logs/patterns
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 · stringDNS 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 · stringSubstring match on the queried name
clientquery · stringClient IP
response_codequery · "NOERROR" | "FORMERR" | "SERVFAIL" | "NXDOMAIN" | "NOTIMP" | "REFUSED"trace_idquery · stringspan_idquery · stringstartquery · string (date-time)ISO timestamp; raised to the retention cutoff if older
endquery · string (date-time)limitquery · integer
Responses
- 200Patterns
Response fields
patternsobject[]requiredpatterns[].[].idstringpatterns[].[].labelstringpatterns[].[].signaturestringpatterns[].[].severity"info" | "warning" | "critical"patterns[].[].countintegerpatterns[].[].sharenumberpatterns[].[].response_codestring | nullpatterns[].[].zonestring | nullpatterns[].[].typestring | nullpatterns[].[].sample_namestring | nullpatterns[].[].first_seenstringpatterns[].[].last_seenstringpatterns[].[].hintstringsummaryobjectrequiredsummary.total_logsintegersummary.pattern_countintegersummary.anomaly_countintegersummary.dominant_patternstring | nullsummary.error_ratenumbermetaobjectrequiredmeta.source"warehouse" | "memory"meta.totalintegermeta.limitintegermeta.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_listLogPatterns'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_listLogPatterns",
"arguments": {}
}
}Evaluate DNS log patterns and dispatch alerts to notification channels (unless dry_run)
POST/v1/relays/logs/patterns/alerts
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_runbooleandefault
falsefiltersobjectfilters.zonestringmax length 253
filters.typestringmax length 16
filters.namestringmax length 253
filters.clientstringmax length 45
filters.response_codestringmax length 32
filters.trace_idstringmin length 32 · max length 32
filters.span_idstringmin length 16 · max length 16
filters.startstring (date-time)filters.endstring (date-time)filters.limitintegermin 1 · max 1000
Responses
- 200Evaluation
Response fields
alertsobject[]requiredalerts[].[].pattern_signaturestringalerts[].[].labelstringalerts[].[].severitystringalerts[].[].dispatchedbooleanalerts[].[].dedup_keystringsummaryobjectrequiredsummary.evaluated_patternsintegersummary.triggered_alertsintegersummary.dry_runbooleanpatternsobject[]requiredpatterns[].[].idstringpatterns[].[].labelstringpatterns[].[].signaturestringpatterns[].[].severity"info" | "warning" | "critical"patterns[].[].countintegerpatterns[].[].sharenumberpatterns[].[].response_codestring | nullpatterns[].[].zonestring | nullpatterns[].[].typestring | nullpatterns[].[].sample_namestring | nullpatterns[].[].first_seenstringpatterns[].[].last_seenstringpatterns[].[].hintstringmetaobjectrequired
- 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 '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_dispatchLogPatternAlerts', {
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "relays_dispatchLogPatternAlerts",
"arguments": {
"body": {}
}
}
}
}List saved log pattern alert policies
GET/v1/relays/logs/patterns/policies
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[]requiredpolicies[].[].idstring (uuid)policies[].[].tenant_idstringpolicies[].[].namestringpolicies[].[].descriptionstring | nullpolicies[].[].enabledbooleanpolicies[].[].filtersobjectpolicies[].[].filters.zonestringmax length 253
policies[].[].filters.typestringmax length 16
policies[].[].filters.namestringmax length 253
policies[].[].filters.clientstringmax length 45
policies[].[].filters.response_codestringmax length 32
policies[].[].filters.trace_idstringmin length 32 · max length 32
policies[].[].filters.span_idstringmin length 16 · max length 16
policies[].[].filters.startstring (date-time)policies[].[].filters.endstring (date-time)policies[].[].filters.limitintegermin 1 · max 1000
policies[].[].threshold_severity"warning" | "critical"policies[].[].interval_minutesintegerpolicies[].[].channel_idsstring[]policies[].[].last_evaluated_atstring | nullpolicies[].[].last_triggered_atstring | nullpolicies[].[].last_summaryobject | nullpolicies[].[].created_atstringpolicies[].[].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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_listLogPatternPolicies'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_listLogPatternPolicies",
"arguments": {}
}
}Create a saved log pattern alert policy
POST/v1/relays/logs/patterns/policies
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
namestringrequiredmin length 1 · max length 255
descriptionstringmax length 2000
enabledbooleandefault
truefiltersobjectfilters.zonestringmax length 253
filters.typestringmax length 16
filters.namestringmax length 253
filters.clientstringmax length 45
filters.response_codestringmax length 32
filters.trace_idstringmin length 32 · max length 32
filters.span_idstringmin length 16 · max length 16
filters.startstring (date-time)filters.endstring (date-time)filters.limitintegermin 1 · max 1000
threshold_severity"warning" | "critical"default
"warning"interval_minutesintegermin 1 · max 1440 · default
15channel_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_idstringnamestringdescriptionstring | nullenabledbooleanfiltersobjectfilters.zonestringmax length 253
filters.typestringmax length 16
filters.namestringmax length 253
filters.clientstringmax length 45
filters.response_codestringmax length 32
filters.trace_idstringmin length 32 · max length 32
filters.span_idstringmin length 16 · max length 16
filters.startstring (date-time)filters.endstring (date-time)filters.limitintegermin 1 · max 1000
threshold_severity"warning" | "critical"interval_minutesintegerchannel_idsstring[]last_evaluated_atstring | nulllast_triggered_atstring | nulllast_summaryobject | nullcreated_atstringupdated_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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_createLogPatternPolicy', {
body: {
name: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_createLogPatternPolicy",
"arguments": {
"body": {
"name": "string"
}
}
}
}Evaluate a saved policy now; dispatches alerts unless dry_run
POST/v1/relays/logs/patterns/policies/{policyId}/evaluate
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_runbooleandefault
false
Responses
- 200Evaluation
Response fields
policyobjectpolicy.idstring (uuid)policy.tenant_idstringpolicy.namestringpolicy.descriptionstring | nullpolicy.enabledbooleanpolicy.filtersobjectpolicy.filters.zonestringmax length 253
policy.filters.typestringmax length 16
policy.filters.namestringmax length 253
policy.filters.clientstringmax length 45
policy.filters.response_codestringmax length 32
policy.filters.trace_idstringmin length 32 · max length 32
policy.filters.span_idstringmin length 16 · max length 16
policy.filters.startstring (date-time)policy.filters.endstring (date-time)policy.filters.limitintegermin 1 · max 1000
policy.threshold_severity"warning" | "critical"policy.interval_minutesintegerpolicy.channel_idsstring[]policy.last_evaluated_atstring | nullpolicy.last_triggered_atstring | nullpolicy.last_summaryobject | nullpolicy.created_atstringpolicy.updated_atstringalertsobject[]alerts[].[].pattern_signaturestringalerts[].[].labelstringalerts[].[].severitystringalerts[].[].dispatchedbooleanalerts[].[].dedup_keystringsummaryobjectpatternsobject[]patterns[].[].idstringpatterns[].[].labelstringpatterns[].[].signaturestringpatterns[].[].severity"info" | "warning" | "critical"patterns[].[].countintegerpatterns[].[].sharenumberpatterns[].[].response_codestring | nullpatterns[].[].zonestring | nullpatterns[].[].typestring | nullpatterns[].[].sample_namestring | nullpatterns[].[].first_seenstringpatterns[].[].last_seenstringpatterns[].[].hintstringmetaobject
- 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 '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_evaluateLogPatternPolicy', {
policyId: '<policyId>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "relays_evaluateLogPatternPolicy",
"arguments": {
"policyId": "<policyId>",
"body": {}
}
}
}
}Get the DNS query log retention policy (default 30 days when none is saved)
GET/v1/relays/logs/retention
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
policyobjectrequiredpolicy.idstring | nullpolicy.tenant_idstringpolicy.source"dns_query"policy.retention_daysintegermin 1 · max 3650
policy.archive_enabledbooleanpolicy.cold_storage"none" | "ocean"policy.created_atstring | nullpolicy.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_getLogRetention'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_getLogRetention",
"arguments": {}
}
}Set the DNS query log retention policy
PUT/v1/relays/logs/retention
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_daysintegerrequiredmin 1 · max 3650
archive_enabledbooleandefault
falsecold_storage"none" | "ocean"default
"none"
Responses
- 200Policy
Response fields
policyobjectrequiredpolicy.idstring | nullpolicy.tenant_idstringpolicy.source"dns_query"policy.retention_daysintegermin 1 · max 3650
policy.archive_enabledbooleanpolicy.cold_storage"none" | "ocean"policy.created_atstring | nullpolicy.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
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_setLogRetention', {
body: {
retention_days: 1,
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_setLogRetention",
"arguments": {
"body": {
"retention_days": 1
}
}
}
}Monitors
List uptime monitors with filters, stats and pagination
GET/v1/relays/monitors
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 · integerlimitquery · integerstatusquery · "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 · stringtagquery · stringsortquery · "created_at" | "name" | "last_check_at" | "uptime_percentage"orderquery · "asc" | "desc"
Responses
- 200Monitors
Response fields
monitorsobject[]requiredmonitors[].[].idstring (uuid)requiredmonitors[].[].tenant_idstringrequiredmonitors[].[].namestringrequiredmonitors[].[].descriptionstring | nullmonitors[].[].target_type"http" | "https" | "tcp" | "udp" | "dns" | "ping" | "ssl" | "heartbeat" | "keyword" | "api_sequence" | "domain_expiry"requiredmonitors[].[].target_urlstringmonitors[].[].api_stepsobject[]monitors[].[].api_steps[].[].namestringrequiredmin length 1 · max length 120
monitors[].[].api_steps[].[].method"GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS"default
"GET"monitors[].[].api_steps[].[].urlstring (uri)requiredmax length 2048
monitors[].[].api_steps[].[].headersobjectmonitors[].[].api_steps[].[].bodystring | nullmax length 10000
monitors[].[].api_steps[].[].expected_statusinteger[]default
[200]monitors[].[].api_steps[].[].expected_bodystring | nullmax length 1000
monitors[].[].api_steps[].[].expected_body_notstring | nullmax length 1000
monitors[].[].api_steps[].[].extractobject[]monitors[].[].api_steps[].[].extract[].[].namestringrequiredmin length 1 · max length 64
monitors[].[].api_steps[].[].extract[].[].from"json" | "header" | "body"requiredmonitors[].[].api_steps[].[].extract[].[].pathstringrequiredmin length 1 · max length 255
monitors[].[].api_steps[].[].continue_on_failurebooleanmonitors[].[].status"active" | "paused" | "disabled"requiredmonitors[].[].paused_atstring | null (date-time)monitors[].[].pause_reasonstring | nullmonitors[].[].current_state"up" | "down" | "degraded" | "unknown" | "paused"requiredmonitors[].[].current_response_msinteger | nullmonitors[].[].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_failuresintegermonitors[].[].consecutive_successesintegermonitors[].[].last_errorstring | nullmonitors[].[].ssl_expires_atstring | null (date-time)monitors[].[].ssl_issuerstring | nullmonitors[].[].ssl_gradestring | nullmonitors[].[].uptime_percentagenumber | nullmonitors[].[].avg_response_msinteger | nullmonitors[].[].p50_response_msinteger | nullmonitors[].[].p95_response_msinteger | nullmonitors[].[].p99_response_msinteger | nullmonitors[].[].total_checksintegermonitors[].[].failed_checksintegermonitors[].[].failover_triggered_atstring | null (date-time)monitors[].[].tagsstring[]monitors[].[].created_atstring (date-time)requiredmonitors[].[].updated_atstring (date-time)requiredstatsobjectrequiredstats.totalintegerstats.activeintegerstats.pausedintegerstats.upintegerstats.downintegerstats.degradedintegerstats.unknownintegermetaobjectrequiredmeta.pageintegermeta.per_pageintegermeta.totalintegermeta.total_pagesinteger
- 400Error
- 401Error
- 403Error
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/monitors" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_listMonitors'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "relays_listMonitors",
"arguments": {}
}
}
}Create an uptime monitor
POST/v1/relays/monitors
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
namestringrequiredmin length 1 · max length 255
descriptionstringmax length 2000
target_type"http" | "https" | "tcp" | "udp" | "dns" | "ping" | "ssl" | "heartbeat" | "keyword" | "api_sequence" | "domain_expiry"target_urlstringmin length 1 · max length 2048
target_portintegermin 1 · max 65535
target_hoststringmax length 255
http_method"GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS"default
"GET"http_headersobjecthttp_bodystringmax length 10000
http_expected_statusinteger[]default
[200,201,204]http_expected_bodystringmax length 1000
http_expected_body_notstringmax length 1000
http_follow_redirectsbooleandefault
truehttp_verify_sslbooleandefault
truehttp_authobjecthttp_auth.type"basic" | "bearer" | "api-key"requiredhttp_auth.usernamestringhttp_auth.passwordstringhttp_auth.tokenstringhttp_auth.header_namestringapi_stepsobject[]api_steps[].[].namestringrequiredmin length 1 · max length 120
api_steps[].[].method"GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS"default
"GET"api_steps[].[].urlstring (uri)requiredmax length 2048
api_steps[].[].headersobjectapi_steps[].[].bodystring | nullmax length 10000
api_steps[].[].expected_statusinteger[]default
[200]api_steps[].[].expected_bodystring | nullmax length 1000
api_steps[].[].expected_body_notstring | nullmax length 1000
api_steps[].[].extractobject[]api_steps[].[].extract[].[].namestringrequiredmin length 1 · max length 64
api_steps[].[].extract[].[].from"json" | "header" | "body"requiredapi_steps[].[].extract[].[].pathstringrequiredmin length 1 · max length 255
api_steps[].[].continue_on_failurebooleandns_record_typestringmax length 16
dns_expected_responsestring[]dns_resolverstringmax length 255
interval_secondsintegermin 30 · max 3600 · default
60timeout_secondsintegermin 1 · max 120 · default
30retriesintegermin 0 · max 10 · default
3retry_interval_secondsintegermin 1 · max 300 · default
30check_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_countintegermin 1 · max 18 · default
2degraded_threshold_msintegermin 100 · max 30000 · default
1000slow_threshold_msintegermin 100 · max 60000 · default
3000alert_on_failurebooleandefault
truealert_on_recoverybooleandefault
truealert_on_degradedbooleandefault
falsealert_on_ssl_expirybooleandefault
truessl_expiry_warning_daysintegermin 1 · max 90 · default
14alert_channel_idsstring (uuid)[]default
[]alert_after_failuresintegermin 1 · max 10 · default
2alert_after_minutesintegermin 0 · max 60 · default
0failover_enabledbooleandefault
falsefailover_domain_idintegerfailover_record_namestringmax length 255
failover_primary_ipstringmax length 45
failover_backup_ipstringmax length 45
failover_ttlintegermin 30 · max 86400 · default
60tagsstring[]default
[]heartbeat_interval_secondsintegermin 60 · max 86400
heartbeat_grace_secondsintegermin 60 · max 3600
dns_monitor_propagationbooleandns_monitor_dnssecbooleandns_monitor_nameserversbooleandns_domain_idinteger
Responses
- 201Created
Response fields
idstring (uuid)requiredtenant_idstringrequirednamestringrequireddescriptionstring | nulltarget_type"http" | "https" | "tcp" | "udp" | "dns" | "ping" | "ssl" | "heartbeat" | "keyword" | "api_sequence" | "domain_expiry"requiredtarget_urlstringapi_stepsobject[]api_steps[].[].namestringrequiredmin length 1 · max length 120
api_steps[].[].method"GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS"default
"GET"api_steps[].[].urlstring (uri)requiredmax length 2048
api_steps[].[].headersobjectapi_steps[].[].bodystring | nullmax length 10000
api_steps[].[].expected_statusinteger[]default
[200]api_steps[].[].expected_bodystring | nullmax length 1000
api_steps[].[].expected_body_notstring | nullmax length 1000
api_steps[].[].extractobject[]api_steps[].[].extract[].[].namestringrequiredmin length 1 · max length 64
api_steps[].[].extract[].[].from"json" | "header" | "body"requiredapi_steps[].[].extract[].[].pathstringrequiredmin length 1 · max length 255
api_steps[].[].continue_on_failurebooleanstatus"active" | "paused" | "disabled"requiredpaused_atstring | null (date-time)pause_reasonstring | nullcurrent_state"up" | "down" | "degraded" | "unknown" | "paused"requiredcurrent_response_msinteger | nulllast_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_failuresintegerconsecutive_successesintegerlast_errorstring | nullssl_expires_atstring | null (date-time)ssl_issuerstring | nullssl_gradestring | nulluptime_percentagenumber | nullavg_response_msinteger | nullp50_response_msinteger | nullp95_response_msinteger | nullp99_response_msinteger | nulltotal_checksintegerfailed_checksintegerfailover_triggered_atstring | null (date-time)tagsstring[]created_atstring (date-time)requiredupdated_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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_createMonitor', {
body: {
name: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "relays_createMonitor",
"arguments": {
"body": {
"name": "string"
}
}
}
}
}Get a monitor with recent checks, recent alerts, heartbeat and DNS monitor config
GET/v1/relays/monitors/{monitorId}
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)requiredtenant_idstringrequirednamestringrequireddescriptionstring | nulltarget_type"http" | "https" | "tcp" | "udp" | "dns" | "ping" | "ssl" | "heartbeat" | "keyword" | "api_sequence" | "domain_expiry"requiredtarget_urlstringapi_stepsobject[]api_steps[].[].namestringrequiredmin length 1 · max length 120
api_steps[].[].method"GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS"default
"GET"api_steps[].[].urlstring (uri)requiredmax length 2048
api_steps[].[].headersobjectapi_steps[].[].bodystring | nullmax length 10000
api_steps[].[].expected_statusinteger[]default
[200]api_steps[].[].expected_bodystring | nullmax length 1000
api_steps[].[].expected_body_notstring | nullmax length 1000
api_steps[].[].extractobject[]api_steps[].[].extract[].[].namestringrequiredmin length 1 · max length 64
api_steps[].[].extract[].[].from"json" | "header" | "body"requiredapi_steps[].[].extract[].[].pathstringrequiredmin length 1 · max length 255
api_steps[].[].continue_on_failurebooleanstatus"active" | "paused" | "disabled"requiredpaused_atstring | null (date-time)pause_reasonstring | nullcurrent_state"up" | "down" | "degraded" | "unknown" | "paused"requiredcurrent_response_msinteger | nulllast_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_failuresintegerconsecutive_successesintegerlast_errorstring | nullssl_expires_atstring | null (date-time)ssl_issuerstring | nullssl_gradestring | nulluptime_percentagenumber | nullavg_response_msinteger | nullp50_response_msinteger | nullp95_response_msinteger | nullp99_response_msinteger | nulltotal_checksintegerfailed_checksintegerfailover_triggered_atstring | null (date-time)tagsstring[]created_atstring (date-time)requiredupdated_atstring (date-time)requiredrecent_checksobject[]recent_alertsobject[]heartbeatobject | nulldns_monitorobject | nulllinked_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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_getMonitor', {
monitorId: '<monitorId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "relays_getMonitor",
"arguments": {
"monitorId": "<monitorId>"
}
}
}
}Delete a monitor (400 while linked to status page components)
DELETE/v1/relays/monitors/{monitorId}
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
messagestringrequiredidstringrequired
- 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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_deleteMonitor', {
monitorId: '<monitorId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "relays_deleteMonitor",
"arguments": {
"monitorId": "<monitorId>"
}
}
}
}Update monitor configuration (strict body, unknown fields rejected)
PATCH/v1/relays/monitors/{monitorId}
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
namestringmin length 1 · max length 255
descriptionstring | nullmax length 2000
target_type"http" | "https" | "tcp" | "udp" | "dns" | "ping" | "ssl" | "heartbeat" | "keyword" | "api_sequence" | "domain_expiry"target_urlstringmin length 1 · max length 2048
target_portinteger | nullmin 1 · max 65535
target_hoststring | nullmax length 255
http_method"GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS"http_headersobject | nullhttp_bodystring | nullmax length 10000
http_expected_statusinteger[]http_expected_bodystring | nullmax length 1000
http_expected_body_notstring | nullmax length 1000
http_follow_redirectsbooleanhttp_verify_sslbooleanhttp_authobject | nullapi_stepsobject[]api_steps[].[].namestringrequiredmin length 1 · max length 120
api_steps[].[].method"GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS"default
"GET"api_steps[].[].urlstring (uri)requiredmax length 2048
api_steps[].[].headersobjectapi_steps[].[].bodystring | nullmax length 10000
api_steps[].[].expected_statusinteger[]default
[200]api_steps[].[].expected_bodystring | nullmax length 1000
api_steps[].[].expected_body_notstring | nullmax length 1000
api_steps[].[].extractobject[]api_steps[].[].extract[].[].namestringrequiredmin length 1 · max length 64
api_steps[].[].extract[].[].from"json" | "header" | "body"requiredapi_steps[].[].extract[].[].pathstringrequiredmin length 1 · max length 255
api_steps[].[].continue_on_failurebooleandns_record_typestring | nullmax length 16
dns_expected_responsearray | nulldns_resolverstring | nullmax length 255
interval_secondsintegermin 30 · max 3600
timeout_secondsintegermin 1 · max 120
retriesintegermin 0 · max 10
retry_interval_secondsintegermin 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_countintegermin 1 · max 18
degraded_threshold_msintegermin 100 · max 30000
slow_threshold_msintegermin 100 · max 60000
alert_on_failurebooleanalert_on_recoverybooleanalert_on_degradedbooleanalert_on_ssl_expirybooleanssl_expiry_warning_daysintegermin 1 · max 90
alert_channel_idsstring (uuid)[]alert_after_failuresintegermin 1 · max 10
alert_after_minutesintegermin 0 · max 60
failover_enabledbooleanfailover_domain_idinteger | nullfailover_record_namestring | nullmax length 255
failover_primary_ipstring | nullmax length 45
failover_backup_ipstring | nullmax length 45
failover_ttlintegermin 30 · max 86400
tagsstring[]
Responses
- 200Updated monitor
Response fields
idstring (uuid)requiredtenant_idstringrequirednamestringrequireddescriptionstring | nulltarget_type"http" | "https" | "tcp" | "udp" | "dns" | "ping" | "ssl" | "heartbeat" | "keyword" | "api_sequence" | "domain_expiry"requiredtarget_urlstringapi_stepsobject[]api_steps[].[].namestringrequiredmin length 1 · max length 120
api_steps[].[].method"GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS"default
"GET"api_steps[].[].urlstring (uri)requiredmax length 2048
api_steps[].[].headersobjectapi_steps[].[].bodystring | nullmax length 10000
api_steps[].[].expected_statusinteger[]default
[200]api_steps[].[].expected_bodystring | nullmax length 1000
api_steps[].[].expected_body_notstring | nullmax length 1000
api_steps[].[].extractobject[]api_steps[].[].extract[].[].namestringrequiredmin length 1 · max length 64
api_steps[].[].extract[].[].from"json" | "header" | "body"requiredapi_steps[].[].extract[].[].pathstringrequiredmin length 1 · max length 255
api_steps[].[].continue_on_failurebooleanstatus"active" | "paused" | "disabled"requiredpaused_atstring | null (date-time)pause_reasonstring | nullcurrent_state"up" | "down" | "degraded" | "unknown" | "paused"requiredcurrent_response_msinteger | nulllast_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_failuresintegerconsecutive_successesintegerlast_errorstring | nullssl_expires_atstring | null (date-time)ssl_issuerstring | nullssl_gradestring | nulluptime_percentagenumber | nullavg_response_msinteger | nullp50_response_msinteger | nullp95_response_msinteger | nullp99_response_msinteger | nulltotal_checksintegerfailed_checksintegerfailover_triggered_atstring | null (date-time)tagsstring[]created_atstring (date-time)requiredupdated_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 '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_updateMonitor', {
monitorId: '<monitorId>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "relays_updateMonitor",
"arguments": {
"monitorId": "<monitorId>",
"body": {}
}
}
}
}List monitor service level objectives
GET/v1/relays/monitors/slos
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[]requiredslos[].[].idstring (uuid)requiredslos[].[].tenant_idstringrequiredslos[].[].monitor_idstring (uuid)requiredslos[].[].namestringrequiredslos[].[].descriptionstring | nullslos[].[].enabledbooleanrequiredslos[].[].target_percentagenumberrequiredslos[].[].window_daysintegerrequiredslos[].[].burn_rate_thresholdnumberrequiredslos[].[].alert_channel_idsstring[]slos[].[].last_evaluated_atstring | null (date-time)slos[].[].last_statusstring | nullslos[].[].last_burn_ratenumber | nullslos[].[].created_atstring (date-time)requiredslos[].[].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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_listMonitorSlos'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_listMonitorSlos",
"arguments": {}
}
}Create a monitor service level objective
POST/v1/relays/monitors/slos
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)requirednamestringrequiredmin length 1 · max length 255
descriptionstringmax length 2000
enabledbooleandefault
truetarget_percentagenumbermin 90 · max 99.999 · default
99.9window_daysintegermin 1 · max 365 · default
30burn_rate_thresholdnumbermin 1 · max 100 · default
4alert_channel_idsstring (uuid)[]default
[]
Responses
- 201Created
Response fields
idstring (uuid)requiredtenant_idstringrequiredmonitor_idstring (uuid)requirednamestringrequireddescriptionstring | nullenabledbooleanrequiredtarget_percentagenumberrequiredwindow_daysintegerrequiredburn_rate_thresholdnumberrequiredalert_channel_idsstring[]last_evaluated_atstring | null (date-time)last_statusstring | nulllast_burn_ratenumber | nullcreated_atstring (date-time)requiredupdated_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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_createMonitorSlo', {
body: {
monitor_id: '00000000-0000-4000-8000-000000000000',
name: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "relays_createMonitorSlo",
"arguments": {
"body": {
"monitor_id": "00000000-0000-4000-8000-000000000000",
"name": "string"
}
}
}
}
}Calculate error budget burn rates for enabled SLOs
GET/v1/relays/monitors/slos/burn-rate
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[]requiredburn_rates[].[].slo_idstringburn_rates[].[].monitor_idstringburn_rates[].[].namestringburn_rates[].[].target_percentagenumberburn_rates[].[].window_daysintegerburn_rates[].[].availability_percentagenumber | nullburn_rates[].[].error_rate_percentagenumber | nullburn_rates[].[].error_budget_percentagenumberburn_rates[].[].error_budget_consumed_percentnumber | nullburn_rates[].[].error_budget_remaining_percentnumber | nullburn_rates[].[].burn_ratenumber | nullburn_rates[].[].burn_rate_thresholdnumberburn_rates[].[].total_checksintegerburn_rates[].[].failed_checksintegerburn_rates[].[].status"healthy" | "warning" | "critical" | "no_data"summaryobjectrequiredsummary.total_slosintegersummary.healthyintegersummary.warningintegersummary.criticalintegersummary.no_dataintegermetaobjectrequiredmeta.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_getMonitorSloBurnRates'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_getMonitorSloBurnRates",
"arguments": {}
}
}Checks
Check history for a monitor with range stats
GET/v1/relays/monitors/{monitorId}/checks
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 · stringrequiredpagequery · integerlimitquery · integersuccessquery · "true" | "false"sincequery · string (date-time)untilquery · string (date-time)include_regionsquery · "true" | "false"
Responses
- 200Checks
Response fields
monitor_idstringrequiredmonitor_namestringrequiredchecksobject[]requiredchecks[].[].idintegerchecks[].[].checked_atstring (date-time)checks[].[].successbooleanchecks[].[].response_time_msinteger | nullchecks[].[].status_codeinteger | nullchecks[].[].error_messagestring | nullchecks[].[].error_codestring | nullchecks[].[].tls_versionstring | nullchecks[].[].tls_cipherstring | nullchecks[].[].tls_cert_expires_atstring | null (date-time)checks[].[].regions_queriedinteger | nullchecks[].[].regions_succeededinteger | nullchecks[].[].regionsobject[]Present only with include_regions=true
checks[].[].regions[].[].regionstringchecks[].[].regions[].[].successbooleanchecks[].[].regions[].[].response_time_msinteger | nullchecks[].[].regions[].[].status_codeinteger | nullchecks[].[].regions[].[].error_messagestring | nullstatsobjectrequiredstats.totalintegerstats.successfulintegerstats.failedintegerstats.avg_response_msinteger | nullstats.min_response_msinteger | nullstats.max_response_msinteger | nullstats.p50_response_msinteger | nullstats.p95_response_msinteger | nullstats.p99_response_msinteger | nullmetaobjectrequiredmeta.pageintegermeta.per_pageintegermeta.totalintegermeta.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_listMonitorChecks', {
monitorId: '<monitorId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_listMonitorChecks",
"arguments": {
"monitorId": "<monitorId>"
}
}
}Pause
Pause a monitor (400 when already paused)
POST/v1/relays/monitors/{monitorId}/pause
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
reasonstringmax length 500
Responses
- 200Paused
Response fields
messagestringrequiredidstringrequiredstatus"paused"requiredpaused_atstring (date-time)requiredreasonstring
- 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 '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_pauseMonitor', {
monitorId: '<monitorId>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_pauseMonitor",
"arguments": {
"monitorId": "<monitorId>",
"body": {}
}
}
}Resume
Resume a paused monitor (400 when not paused)
POST/v1/relays/monitors/{monitorId}/resume
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
messagestringrequiredidstringrequiredstatus"active"requiredresumed_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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_resumeMonitor', {
monitorId: '<monitorId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_resumeMonitor",
"arguments": {
"monitorId": "<monitorId>"
}
}
}Test
Run one immediate check against the monitor target and return the result
POST/v1/relays/monitors/{monitorId}/test
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_idstringrequiredmonitor_namestringtarget_typestringtarget_urlstringtest_resultobjectrequiredtest_result.successbooleantest_result.status_codeinteger | nulltest_result.response_time_msinteger | nulltest_result.erroranyString, or {code, message} on a probe timeout
full_resultobjecttested_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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_testMonitor', {
monitorId: '<monitorId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "relays_testMonitor",
"arguments": {
"monitorId": "<monitorId>"
}
}
}
}Mtls
List your mTLS certificate authorities
GET/v1/relays/mtls/cas
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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_listMtlsCas'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_listMtlsCas",
"arguments": {}
}
}Create a private mTLS CA, or bring your own CA certificate for verification
POST/v1/relays/mtls/cas
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
namestringdescriptionstringyearsintegermin 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 '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_createMtlsCa', {
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_createMtlsCa",
"arguments": {
"body": {}
}
}
}Get an mTLS certificate authority
GET/v1/relays/mtls/cas/{caId}
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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_getMtlsCa', {
caId: '<caId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_getMtlsCa",
"arguments": {
"caId": "<caId>"
}
}
}Get the CAs signed certificate revocation list
GET/v1/relays/mtls/cas/{caId}/crl
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 · stringrequiredformatquery · "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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_getMtlsCaCrl', {
caId: '<caId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_getMtlsCaCrl",
"arguments": {
"caId": "<caId>"
}
}
}Check whether this CA would accept a client certificate now
POST/v1/relays/mtls/cas/{caId}/verify
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 '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_verifyMtlsClientCertificate', {
caId: '<caId>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_verifyMtlsClientCertificate",
"arguments": {
"caId": "<caId>",
"body": {}
}
}
}List your mTLS client certificates
GET/v1/relays/mtls/client-certificates
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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_listMtlsClientCertificates'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_listMtlsClientCertificates",
"arguments": {}
}
}Issue a client certificate from your Relays CA (private key returned once)
POST/v1/relays/mtls/client-certificates
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)namestringcommon_namestringorganizationstringemailstringdaysintegermin 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 '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_createMtlsClientCertificate', {
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "relays_createMtlsClientCertificate",
"arguments": {
"body": {}
}
}
}
}Get an mTLS client certificate
GET/v1/relays/mtls/client-certificates/{clientId}
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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_getMtlsClientCertificate', {
clientId: '<clientId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_getMtlsClientCertificate",
"arguments": {
"clientId": "<clientId>"
}
}
}Revoke a client certificate (listed on the CAs next CRL)
POST/v1/relays/mtls/client-certificates/{clientId}/revoke
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 '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_revokeMtlsClientCertificate', {
clientId: '<clientId>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_revokeMtlsClientCertificate",
"arguments": {
"clientId": "<clientId>",
"body": {}
}
}
}Status of a client certificate (good, revoked or expired; the OCSP question as JSON)
GET/v1/relays/mtls/client-certificates/{clientId}/status
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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_getMtlsClientCertificateStatus', {
clientId: '<clientId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_getMtlsClientCertificateStatus",
"arguments": {
"clientId": "<clientId>"
}
}
}Nameservers
List the default Relays nameservers to delegate a zone to
GET/v1/relays/nameservers
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[]requireddefault_nameservers[].[].hostnamestringdefault_nameservers[].[].ipv4stringdefault_nameservers[].[].ipv6stringcustom_nameserversnullAlways null; custom nameservers are not implemented
custom_nameservers_statusstringcustom_nameservers_trackingstringnotestring
- 401Error
- 403Error
- 500Error
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/nameservers" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_listNameservers'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_listNameservers",
"arguments": {}
}
}Oncall
Detect on-call coverage gaps across up to 100 schedules
GET/v1/relays/oncall/coverage
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
summaryobjectrequiredsummary.total_schedulesintegersummary.active_schedulesintegersummary.total_membersintegersummary.schedules_with_gapsintegersummary.critical_gapsintegersummary.warning_gapsintegergapsobject[]requiredgaps[].[].schedule_idstringgaps[].[].schedule_namestringgaps[].[].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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_getOncallCoverage'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_getOncallCoverage",
"arguments": {}
}
}List on-call schedules
GET/v1/relays/oncall/schedules
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 · integerlimitquery · integerenabledquery · "true" | "false"searchquery · string
Responses
- 200Schedules
Response fields
schedulesobject[]requiredschedules[].[].idstring (uuid)requiredschedules[].[].tenant_idstringrequiredschedules[].[].namestringrequiredschedules[].[].descriptionstring | nullschedules[].[].timezonestringschedules[].[].rotation_typestringschedules[].[].rotation_length_daysintegerschedules[].[].handoff_timestringschedules[].[].handoff_dayintegerschedules[].[].current_oncall_user_idstring | nullschedules[].[].next_oncall_user_idstring | nullschedules[].[].rotation_starts_atstring | null (date-time)schedules[].[].next_rotation_atstring | null (date-time)schedules[].[].allow_self_coveragebooleanschedules[].[].require_acknowledgementbooleanschedules[].[].acknowledgement_timeout_minutesintegerschedules[].[].auto_escalatebooleanschedules[].[].alert_channel_idsstring[]schedules[].[].enabledbooleanschedules[].[].created_atstring (date-time)schedules[].[].updated_atstring (date-time)schedules[].[].membersobject[]requiredschedules[].[].members[].[].user_idstringschedules[].[].members[].[].positionintegerschedules[].[].members[].[].userobject | nullschedules[].[].member_countintegerrequiredmetaobjectrequiredmeta.pageintegermeta.per_pageintegermeta.totalintegermeta.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_listOncallSchedules'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_listOncallSchedules",
"arguments": {}
}
}Create an on-call schedule with its rotation members
POST/v1/relays/oncall/schedules
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
namestringrequiredmin length 1 · max length 255
descriptionstring | nullmax length 2000
timezonestringmin length 1 · max length 64 · default
"UTC"rotation_type"daily" | "weekly" | "custom"default
"weekly"rotation_length_daysintegerAccepted but not stored min 1 · max 365
handoff_timestringdefault
"09:00:00"· pattern^\d{2}:\d{2}(:\d{2})?$handoff_dayintegermin 0 · max 6 · default
1escalation_policy_idstring | null (uuid)enabledbooleandefault
truemembersstring (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_coveragebooleanAccepted but not stored
require_acknowledgementbooleanAccepted but not stored
acknowledgement_timeout_minutesintegerAccepted but not stored min 1 · max 1440
auto_escalatebooleanAccepted 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)requiredtenant_idstringrequirednamestringrequireddescriptionstring | nulltimezonestringrotation_typestringrotation_length_daysintegerhandoff_timestringhandoff_dayintegercurrent_oncall_user_idstring | nullnext_oncall_user_idstring | nullrotation_starts_atstring | null (date-time)next_rotation_atstring | null (date-time)allow_self_coveragebooleanrequire_acknowledgementbooleanacknowledgement_timeout_minutesintegerauto_escalatebooleanalert_channel_idsstring[]enabledbooleancreated_atstring (date-time)updated_atstring (date-time)membersobject[]requiredmembers[].[].user_idstringmembers[].[].positionintegermembers[].[].userobject | nullmember_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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_createOncallSchedule', {
body: {
name: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "relays_createOncallSchedule",
"arguments": {
"body": {
"name": "string"
}
}
}
}
}Get a schedule with members and upcoming overrides
GET/v1/relays/oncall/schedules/{scheduleId}
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)requiredtenant_idstringrequirednamestringrequireddescriptionstring | nulltimezonestringrotation_typestringrotation_length_daysintegerhandoff_timestringhandoff_dayintegercurrent_oncall_user_idstring | nullnext_oncall_user_idstring | nullrotation_starts_atstring | null (date-time)next_rotation_atstring | null (date-time)allow_self_coveragebooleanrequire_acknowledgementbooleanacknowledgement_timeout_minutesintegerauto_escalatebooleanalert_channel_idsstring[]enabledbooleancreated_atstring (date-time)updated_atstring (date-time)membersobject[]requiredmembers[].[].user_idstringmembers[].[].positionintegermembers[].[].userobject | nullmember_countintegerrequiredeffective_oncall_user_idstring | nulleffective_oncall_userobject | nullactive_overrideobject | nullupcoming_overridesobject[]upcoming_overrides[].[].idstringupcoming_overrides[].[].user_idstringupcoming_overrides[].[].userobject | nullupcoming_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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_getOncallSchedule', {
scheduleId: '<scheduleId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_getOncallSchedule",
"arguments": {
"scheduleId": "<scheduleId>"
}
}
}Delete an on-call schedule
DELETE/v1/relays/oncall/schedules/{scheduleId}
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
- 204Deleted
- 401Error
- 403Error
- 404Error
- 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/relays/oncall/schedules/$SCHEDULE_ID" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_deleteOncallSchedule', {
scheduleId: '<scheduleId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "relays_deleteOncallSchedule",
"arguments": {
"scheduleId": "<scheduleId>"
}
}
}
}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}
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
namestringmin length 1 · max length 255
descriptionstring | nullmax length 2000
timezonestringmin length 1 · max length 64
rotation_type"daily" | "weekly" | "custom"handoff_timestringpattern
^\d{2}:\d{2}(:\d{2})?$handoff_dayintegermin 0 · max 6
escalation_policy_idstring | null (uuid)enabledbooleanmembersstring (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_overrideobjectcreate_override.user_idstring (uuid)requiredcreate_override.starts_atstring (date-time)requiredcreate_override.ends_atstring (date-time)requiredcreate_override.reasonstringmax 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
overrideobjectrequiredoverride.idstringoverride.user_idstringoverride.userobject | nulloverride.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 '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_updateOncallSchedule', {
scheduleId: '<scheduleId>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "relays_updateOncallSchedule",
"arguments": {
"scheduleId": "<scheduleId>",
"body": {}
}
}
}
}Validate
Validate a provider connection, optionally with a live provider call
POST/v1/relays/provider-connections/{connectionId}/validate
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
livebooleantrue runs a provider API call default
false
Responses
- 200Validation result
Response fields
connectionIdstringproviderstringlivebooleanstatus"metadata_valid" | "active" | "manual_bridge"messagestringzonesDiscoveredinteger
- 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 '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_validateProviderConnection', {
connectionId: '<connectionId>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_validateProviderConnection",
"arguments": {
"connectionId": "<connectionId>",
"body": {}
}
}
}Registrar
List what the person's domains need from them
GET/v1/relays/registrar/attention
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[]requireditems[].[].domainstringrequireditems[].[].kind"renewal_due" | "verify_registrant_email" | "needs_review" | "disputed"requireditems[].[].quote_idstringitems[].[].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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_listDomainAttention'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "relays_listDomainAttention",
"arguments": {}
}
}
}List the account's domains and their registration state
GET/v1/relays/registrar/domains
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 · integerlimitquery · integerCapped at 100
Responses
- 200Domains
Response fields
domainsobject[]domains[].[].idintegerdomains[].[].namestringdomains[].[].registeredbooleanTrue when Relays holds a registration for the domain
domains[].[].statusstringdomains[].[].registrationobject | nullnull when the zone has no registration through Relays
domains[].[].registration.order_idstring | nulldomains[].[].registration.expiration_datestring | null (date-time)domains[].[].registration.auto_renewbooleandomains[].[].registration.whois_privacybooleandomains[].[].registration.lock_statusbooleandomains[].[].created_atstring (date-time)metaobjectmeta.pageintegermeta.per_pageintegermeta.totalintegermeta.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_listRegistrarDomains'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_listRegistrarDomains",
"arguments": {}
}
}Get one domain's registration state
GET/v1/relays/registrar/domains/{domain}
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
idintegernamestringregisteredbooleanTrue when Relays holds a registration for the domain
statusstringregistrationobject | nullnull when the zone has no registration through Relays
registration.order_idstring | nullregistration.expiration_datestring | null (date-time)registration.auto_renewbooleanregistration.whois_privacybooleanregistration.lock_statusbooleancreated_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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_getRegistrarDomain', {
domain: '<domain>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_getRegistrarDomain",
"arguments": {
"domain": "<domain>"
}
}
}Reveal the transfer auth code of one of the person's domains
POST/v1/relays/registrar/domains/{domain}/auth-code
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 · stringrequiredx-one-approvalheader · stringrequiredThe 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 '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_revealDomainAuthCode', {
domain: '<domain>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "relays_revealDomainAuthCode",
"arguments": {
"domain": "<domain>",
"body": {}
}
}
}
}Quote a renewal of one of the person's domains
POST/v1/relays/registrar/domains/{domain}/renew-quotes
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
quoteobjectrequiredquote.idstringrequiredpattern
^dq_[A-Za-z0-9]{26}$quote.operation"register" | "renew"requiredquote.state"open" | "used" | "void" | "expired"requiredquote.domainstringrequiredASCII (xn-- for IDN)
quote.domain_unicodestringrequiredquote.periodintegerrequiredYears
quote.amount_minorintegerrequiredRegistrar cost for the period rounded up to the cent; what the card is charged
quote.currency"usd"requiredquote.renew_amount_minor_per_yearinteger | nullquote.registered_untilstring | null (date-time)Best estimate
quote.expires_atstring (date-time)requiredThe quote's own expiry (15 minutes)
quote.whois_privacy"on" | "unavailable"requiredunavailable: this ending shows the owner publicly
quote.registrantstringrequiredOpaque id of the person's registrant pattern
^rh_[0-9a-f]{16}$quote.approval_bodyobjectrequiredWhat the person approves and the purchase body: the quote's approval_body, exactly
quote.approval_body.quote_idstringrequiredpattern
^dq_[A-Za-z0-9]{26}$quote.approval_body.domainstringrequiredASCII (xn-- for IDN)
quote.approval_body.periodintegerrequiredmin 1 · max 10
quote.approval_body.amount_minorintegerrequiredAmount charged to the card, in cents min 0
quote.approval_body.currency"usd"requiredquote.approval_body.registrantstringrequiredpattern
^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 '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_createDomainRenewQuote', {
domain: '<domain>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "relays_createDomainRenewQuote",
"arguments": {
"domain": "<domain>",
"body": {}
}
}
}
}Quote a domain registration for the person
POST/v1/relays/registrar/quotes
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
domainstringrequiredDomain name, Unicode or xn-- min length 3 · max length 253
periodintegerYears min 1 · max 10 · default
1contactobjectThe v1 registrant contact shape; held only at the registrar, never stored by Relays
contact.first_namestringrequiredcontact.last_namestringrequiredcontact.organizationstringcontact.emailstring (email)requiredcontact.phonestringrequiredE.164-style, e.g. +1.2145550100
contact.address1stringrequiredcontact.address2stringcontact.citystringrequiredcontact.statestringcontact.postal_codestringrequiredcontact.countrystringrequiredISO 3166-1 alpha-2 min length 2 · max length 2
Responses
- 201The quote
Response fields
quoteobjectrequiredquote.idstringrequiredpattern
^dq_[A-Za-z0-9]{26}$quote.operation"register" | "renew"requiredquote.state"open" | "used" | "void" | "expired"requiredquote.domainstringrequiredASCII (xn-- for IDN)
quote.domain_unicodestringrequiredquote.periodintegerrequiredYears
quote.amount_minorintegerrequiredRegistrar cost for the period rounded up to the cent; what the card is charged
quote.currency"usd"requiredquote.renew_amount_minor_per_yearinteger | nullquote.registered_untilstring | null (date-time)Best estimate
quote.expires_atstring (date-time)requiredThe quote's own expiry (15 minutes)
quote.whois_privacy"on" | "unavailable"requiredunavailable: this ending shows the owner publicly
quote.registrantstringrequiredOpaque id of the person's registrant pattern
^rh_[0-9a-f]{16}$quote.approval_bodyobjectrequiredWhat the person approves and the purchase body: the quote's approval_body, exactly
quote.approval_body.quote_idstringrequiredpattern
^dq_[A-Za-z0-9]{26}$quote.approval_body.domainstringrequiredASCII (xn-- for IDN)
quote.approval_body.periodintegerrequiredmin 1 · max 10
quote.approval_body.amount_minorintegerrequiredAmount charged to the card, in cents min 0
quote.approval_body.currency"usd"requiredquote.approval_body.registrantstringrequiredpattern
^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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_createDomainQuote', {
body: {
domain: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "relays_createDomainQuote",
"arguments": {
"body": {
"domain": "string"
}
}
}
}
}Get one of the person's domain quotes
GET/v1/relays/registrar/quotes/{quoteId}
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
quoteobjectrequiredquote.idstringrequiredpattern
^dq_[A-Za-z0-9]{26}$quote.operation"register" | "renew"requiredquote.state"open" | "used" | "void" | "expired"requiredquote.domainstringrequiredASCII (xn-- for IDN)
quote.domain_unicodestringrequiredquote.periodintegerrequiredYears
quote.amount_minorintegerrequiredRegistrar cost for the period rounded up to the cent; what the card is charged
quote.currency"usd"requiredquote.renew_amount_minor_per_yearinteger | nullquote.registered_untilstring | null (date-time)Best estimate
quote.expires_atstring (date-time)requiredThe quote's own expiry (15 minutes)
quote.whois_privacy"on" | "unavailable"requiredunavailable: this ending shows the owner publicly
quote.registrantstringrequiredOpaque id of the person's registrant pattern
^rh_[0-9a-f]{16}$quote.approval_bodyobjectrequiredWhat the person approves and the purchase body: the quote's approval_body, exactly
quote.approval_body.quote_idstringrequiredpattern
^dq_[A-Za-z0-9]{26}$quote.approval_body.domainstringrequiredASCII (xn-- for IDN)
quote.approval_body.periodintegerrequiredmin 1 · max 10
quote.approval_body.amount_minorintegerrequiredAmount charged to the card, in cents min 0
quote.approval_body.currency"usd"requiredquote.approval_body.registrantstringrequiredpattern
^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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_getDomainQuote', {
quoteId: '<quoteId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "relays_getDomainQuote",
"arguments": {
"quoteId": "<quoteId>"
}
}
}
}Buy the quoted domain, charging the person's card
POST/v1/relays/registrar/quotes/{quoteId}/purchase
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 · stringrequiredx-one-approvalheader · stringrequiredThe approved Taps item for this exact purchase
Request body application/json
quote_idstringrequiredpattern
^dq_[A-Za-z0-9]{26}$domainstringrequiredASCII (xn-- for IDN)
periodintegerrequiredmin 1 · max 10
amount_minorintegerrequiredAmount charged to the card, in cents min 0
currency"usd"requiredregistrantstringrequiredpattern
^rh_[0-9a-f]{16}$
Responses
- 200The order
Response fields
orderobjectrequiredorder.idstringrequiredorder.quote_idstringrequiredorder.operation"register" | "renew"requiredorder.domainstringrequiredorder.domain_unicodestringrequiredorder.periodintegerrequiredorder.amount_minorintegerrequiredorder.currency"usd"requiredorder.status"registered" | "renewed" | "refunded" | "declined" | "checking" | "needs_review"requiredorder.registered_untilstring | null (date-time)order.paymentobject | nullorder.payment.refstringchg_…
order.payment.statusstringorder.refundobjectorder.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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_purchaseDomainQuote', {
quoteId: '<quoteId>',
body: {
quote_id: 'string',
domain: 'string',
period: 1,
amount_minor: 0,
currency: 'usd',
registrant: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "relays_purchaseDomainQuote",
"arguments": {
"quoteId": "<quoteId>",
"body": {
"quote_id": "string",
"domain": "string",
"period": 1,
"amount_minor": 0,
"currency": "usd",
"registrant": "string"
}
}
}
}
}Search domain availability across TLDs
GET/v1/relays/registrar/search
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 · stringrequiredName to search, at least 2 characters; the part before the first dot is used
tldsquery · stringUp to 10 comma-separated TLDs, default com,net,org,io,dev,ai,co,app
suggestionsquery · booleantrue returns available variations of the name instead of per-TLD results
Responses
- 200Search results or suggestions
Response fields
querystringrequiredsource"opensrs" | "unconfigured"requiredopensrs: the registrar answered; unconfigured: a built-in sample (never in production)
resultsobject[]results[].[].domainstringresults[].[].checkedbooleanfalse when the lookup failed; available is then false but unknown
results[].[].availablebooleanresults[].[].premiumbooleanresults[].[].priceobjectresults[].[].price.amountnumberresults[].[].price.currencystringresults[].[].price.periodintegerYears
results[].[].price.basis"list"Relays list price for the TLD, not a registrar quote
suggestionsobject[]suggestions[].[].domainstringsuggestions[].[].availablebooleansuggestions[].[].priceobjectsuggestions[].[].price.amountnumbersuggestions[].[].price.currencystringsuggestions[].[].price.periodintegerYears
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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_searchRegistrarDomains', {
q: '<q>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_searchRegistrarDomains",
"arguments": {
"q": "<q>"
}
}
}Status pages
List status pages with component and subscriber counts
GET/v1/relays/status-pages
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 · integerlimitquery · integersearchquery · stringis_publicquery · "true" | "false"
Responses
- 200Status pages
Response fields
status_pagesobject[]requiredstatus_pages[].[].idstring (uuid)requiredstatus_pages[].[].tenant_idstringrequiredstatus_pages[].[].namestringrequiredstatus_pages[].[].subdomainstringrequiredstatus_pages[].[].custom_domainstring | nullstatus_pages[].[].custom_domain_verifiedboolean | nullstatus_pages[].[].custom_domain_sslbooleanstatus_pages[].[].logo_urlstring | nullstatus_pages[].[].favicon_urlstring | nullstatus_pages[].[].brand_colorstring | nullstatus_pages[].[].background_colorstring | nullstatus_pages[].[].text_colorstring | nullstatus_pages[].[].header_textstring | nullstatus_pages[].[].footer_textstring | nullstatus_pages[].[].page_titlestring | nullstatus_pages[].[].page_descriptionstring | nullstatus_pages[].[].custom_cssstring | nullstatus_pages[].[].support_urlstring | nullstatus_pages[].[].support_emailstring | nullstatus_pages[].[].is_publicbooleanstatus_pages[].[].visibility"public" | "private" | "password"requiredstatus_pages[].[].allowed_ip_cidrsstring[]status_pages[].[].allow_subscriptionsbooleanstatus_pages[].[].allow_email_subscriptionsbooleanstatus_pages[].[].allow_sms_subscriptionsbooleanstatus_pages[].[].allow_webhook_subscriptionsbooleanstatus_pages[].[].allow_rssbooleanstatus_pages[].[].show_uptime_graphbooleanstatus_pages[].[].show_response_time_graphbooleanstatus_pages[].[].uptime_days_to_showintegerstatus_pages[].[].enable_dark_modebooleanstatus_pages[].[].default_dark_modebooleanstatus_pages[].[].overall_statusstring | nullrequiredstatus_pages[].[].timezonestringstatus_pages[].[].google_analytics_idstring | nullstatus_pages[].[].created_atstring (date-time)requiredstatus_pages[].[].updated_atstring (date-time)requiredstatus_pages[].[].component_countintegerstatus_pages[].[].subscriber_countintegermetaobjectrequiredmeta.pageintegermeta.per_pageintegermeta.totalintegermeta.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_listStatusPages'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_listStatusPages",
"arguments": {}
}
}Create a status page
POST/v1/relays/status-pages
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
namestringrequiredmin length 1 · max length 255
subdomainstringrequiredmin length 3 · max length 63 · pattern
^[a-z0-9-]+$custom_domainstringmax length 255
logo_urlstring (uri)max length 2048
favicon_urlstring (uri)max length 2048
brand_colorstringdefault
"#000000"· pattern^#[0-9A-Fa-f]{6}$background_colorstringAccepted but not stored default
"#ffffff"· pattern^#[0-9A-Fa-f]{6}$text_colorstringAccepted but not stored default
"#111111"· pattern^#[0-9A-Fa-f]{6}$header_textstringAccepted but not stored max length 500
footer_textstringAccepted but not stored max length 500
custom_cssstring | nullmax length 20000
support_urlstring (uri)max length 2048
support_emailstring (email)max length 255
page_titlestringmax length 255
page_descriptionstringmax length 1000
is_publicbooleandefault
truevisibility"public" | "private" | "password"default
"public"password_hashstringmax length 255
allowed_ip_cidrsstring[]allow_subscriptionsbooleandefault
trueallow_email_subscriptionsbooleanFolded into allow_subscriptions default
trueallow_sms_subscriptionsbooleanFolded into allow_subscriptions default
falseallow_webhook_subscriptionsbooleanFolded into allow_subscriptions default
trueallow_rssbooleanAccepted but not stored default
trueshow_uptime_graphbooleandefault
trueshow_response_time_graphbooleandefault
trueuptime_days_to_showintegermin 7 · max 365 · default
90enable_dark_modebooleandefault
truedefault_dark_modebooleandefault
falsetimezonestringAccepted but not stored max length 64 · default
"UTC"google_analytics_idstringmax length 50
Responses
- 201Created
Response fields
idstring (uuid)requiredtenant_idstringrequirednamestringrequiredsubdomainstringrequiredcustom_domainstring | nullcustom_domain_verifiedboolean | nullcustom_domain_sslbooleanlogo_urlstring | nullfavicon_urlstring | nullbrand_colorstring | nullbackground_colorstring | nulltext_colorstring | nullheader_textstring | nullfooter_textstring | nullpage_titlestring | nullpage_descriptionstring | nullcustom_cssstring | nullsupport_urlstring | nullsupport_emailstring | nullis_publicbooleanvisibility"public" | "private" | "password"requiredallowed_ip_cidrsstring[]allow_subscriptionsbooleanallow_email_subscriptionsbooleanallow_sms_subscriptionsbooleanallow_webhook_subscriptionsbooleanallow_rssbooleanshow_uptime_graphbooleanshow_response_time_graphbooleanuptime_days_to_showintegerenable_dark_modebooleandefault_dark_modebooleanoverall_statusstring | nullrequiredtimezonestringgoogle_analytics_idstring | nullcreated_atstring (date-time)requiredupdated_atstring (date-time)requiredcomponent_countintegersubscriber_countintegerpublic_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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_createStatusPage', {
body: {
name: 'string',
subdomain: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "relays_createStatusPage",
"arguments": {
"body": {
"name": "string",
"subdomain": "string"
}
}
}
}
}Get a status page with component groups, subscriber counts and recent incidents
GET/v1/relays/status-pages/{pageId}
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)requiredtenant_idstringrequirednamestringrequiredsubdomainstringrequiredcustom_domainstring | nullcustom_domain_verifiedboolean | nullcustom_domain_sslbooleanlogo_urlstring | nullfavicon_urlstring | nullbrand_colorstring | nullbackground_colorstring | nulltext_colorstring | nullheader_textstring | nullfooter_textstring | nullpage_titlestring | nullpage_descriptionstring | nullcustom_cssstring | nullsupport_urlstring | nullsupport_emailstring | nullis_publicbooleanvisibility"public" | "private" | "password"requiredallowed_ip_cidrsstring[]allow_subscriptionsbooleanallow_email_subscriptionsbooleanallow_sms_subscriptionsbooleanallow_webhook_subscriptionsbooleanallow_rssbooleanshow_uptime_graphbooleanshow_response_time_graphbooleanuptime_days_to_showintegerenable_dark_modebooleandefault_dark_modebooleanoverall_statusstring | nullrequiredtimezonestringgoogle_analytics_idstring | nullcreated_atstring (date-time)requiredupdated_atstring (date-time)requiredpublic_urlstringcomponent_groupsobject[]component_groups[].[].idstringcomponent_groups[].[].namestringcomponent_groups[].[].descriptionstring | nullcomponent_groups[].[].is_collapsedbooleancomponent_groups[].[].display_orderintegercomponent_groups[].[].created_atstring (date-time)component_groups[].[].componentsobject[]component_groups[].[].components[].[].idstringcomponent_groups[].[].components[].[].namestringcomponent_groups[].[].components[].[].descriptionstring | nullcomponent_groups[].[].components[].[].group_idstring | nullcomponent_groups[].[].components[].[].monitor_idstring | nullcomponent_groups[].[].components[].[].current_status"operational" | "degraded_performance" | "partial_outage" | "major_outage" | "maintenance" | "unknown" | nullcomponent_groups[].[].components[].[].show_uptimebooleancomponent_groups[].[].components[].[].display_orderintegercomponent_groups[].[].components[].[].start_datestring | nullcomponent_groups[].[].components[].[].created_atstring (date-time)component_groups[].[].components[].[].updated_atstring (date-time)ungrouped_componentsobject[]ungrouped_components[].[].idstringungrouped_components[].[].namestringungrouped_components[].[].descriptionstring | nullungrouped_components[].[].group_idstring | nullungrouped_components[].[].monitor_idstring | nullungrouped_components[].[].current_status"operational" | "degraded_performance" | "partial_outage" | "major_outage" | "maintenance" | "unknown" | nullungrouped_components[].[].show_uptimebooleanungrouped_components[].[].display_orderintegerungrouped_components[].[].start_datestring | nullungrouped_components[].[].created_atstring (date-time)ungrouped_components[].[].updated_atstring (date-time)component_countintegersubscribersobjectsubscribers.totalintegersubscribers.emailintegersubscribers.smsintegersubscribers.webhookintegersubscribers.rssintegerrecent_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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_getStatusPage', {
pageId: '<pageId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_getStatusPage",
"arguments": {
"pageId": "<pageId>"
}
}
}Delete a status page with its components, groups, subscribers and incidents
DELETE/v1/relays/status-pages/{pageId}
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
messagestringrequiredidstringrequired
- 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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_deleteStatusPage', {
pageId: '<pageId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "relays_deleteStatusPage",
"arguments": {
"pageId": "<pageId>"
}
}
}
}Update a status page (strict body)
PATCH/v1/relays/status-pages/{pageId}
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
namestringmin length 1 · max length 255
custom_domainstring | nullmax length 255
logo_urlstring | null (uri)max length 2048
favicon_urlstring | null (uri)max length 2048
brand_colorstringpattern
^#[0-9A-Fa-f]{6}$background_colorstringAccepted but not stored pattern
^#[0-9A-Fa-f]{6}$text_colorstringAccepted but not stored pattern
^#[0-9A-Fa-f]{6}$header_textstring | nullAccepted but not stored max length 500
footer_textstring | nullAccepted but not stored max length 500
custom_cssstring | nullmax length 20000
support_urlstring | null (uri)max length 2048
support_emailstring | null (email)max length 255
page_titlestring | nullmax length 255
page_descriptionstring | nullmax length 1000
is_publicbooleanvisibility"public" | "private" | "password"password_hashstring | nullmax length 255
allowed_ip_cidrsstring[]allow_subscriptionsbooleanallow_email_subscriptionsbooleanallow_sms_subscriptionsbooleanallow_webhook_subscriptionsbooleanallow_rssbooleanAccepted but not stored
show_uptime_graphbooleanshow_response_time_graphbooleanuptime_days_to_showintegermin 7 · max 365
enable_dark_modebooleandefault_dark_modebooleantimezonestringAccepted but not stored max length 64
google_analytics_idstring | nullmax length 50
Responses
- 200Updated
Response fields
idstring (uuid)requiredtenant_idstringrequirednamestringrequiredsubdomainstringrequiredcustom_domainstring | nullcustom_domain_verifiedboolean | nullcustom_domain_sslbooleanlogo_urlstring | nullfavicon_urlstring | nullbrand_colorstring | nullbackground_colorstring | nulltext_colorstring | nullheader_textstring | nullfooter_textstring | nullpage_titlestring | nullpage_descriptionstring | nullcustom_cssstring | nullsupport_urlstring | nullsupport_emailstring | nullis_publicbooleanvisibility"public" | "private" | "password"requiredallowed_ip_cidrsstring[]allow_subscriptionsbooleanallow_email_subscriptionsbooleanallow_sms_subscriptionsbooleanallow_webhook_subscriptionsbooleanallow_rssbooleanshow_uptime_graphbooleanshow_response_time_graphbooleanuptime_days_to_showintegerenable_dark_modebooleandefault_dark_modebooleanoverall_statusstring | nullrequiredtimezonestringgoogle_analytics_idstring | nullcreated_atstring (date-time)requiredupdated_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 '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_updateStatusPage', {
pageId: '<pageId>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "relays_updateStatusPage",
"arguments": {
"pageId": "<pageId>",
"body": {}
}
}
}
}Component groups
Delete a component group of a status page; its components become ungrouped
DELETE/v1/relays/status-pages/{pageId}/component-groups/{groupId}
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 · stringrequiredpageIdpath · stringrequired
Responses
- 200Deleted
Response fields
messagestringrequiredidstringrequired
- 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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_deleteStatusPageComponentGroup', {
pageId: '<pageId>',
groupId: '<groupId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "relays_deleteStatusPageComponentGroup",
"arguments": {
"pageId": "<pageId>",
"groupId": "<groupId>"
}
}
}
}Components
List component groups and components of a status page
GET/v1/relays/status-pages/{pageId}/components
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[]requiredgroups[].[].idstringgroups[].[].namestringgroups[].[].descriptionstring | nullgroups[].[].is_collapsedbooleangroups[].[].display_orderintegergroups[].[].created_atstring (date-time)componentsobject[]requiredcomponents[].[].idstringcomponents[].[].namestringcomponents[].[].descriptionstring | nullcomponents[].[].group_idstring | nullcomponents[].[].monitor_idstring | nullcomponents[].[].current_status"operational" | "degraded_performance" | "partial_outage" | "major_outage" | "maintenance" | "unknown" | nullcomponents[].[].show_uptimebooleancomponents[].[].display_orderintegercomponents[].[].start_datestring | nullcomponents[].[].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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_listStatusPageComponents', {
pageId: '<pageId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_listStatusPageComponents",
"arguments": {
"pageId": "<pageId>"
}
}
}Add a component, or a component group when is_group is true
POST/v1/relays/status-pages/{pageId}/components
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_groupbooleannamestringrequiredmin length 1 · max length 255
descriptionstringmax length 1000
group_idstring (uuid)monitor_idstring (uuid)current_status"operational" | "degraded_performance" | "partial_outage" | "major_outage" | "maintenance" | "unknown"default
"operational"show_uptimebooleandefault
trueis_collapsedbooleanGroups only default
falsedisplay_orderintegermin 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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_createStatusPageComponent', {
pageId: '<pageId>',
body: {
name: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "relays_createStatusPageComponent",
"arguments": {
"pageId": "<pageId>",
"body": {
"name": "string"
}
}
}
}
}Update a component or group; the target id travels in the body
PATCH/v1/relays/status-pages/{pageId}/components
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)requiredis_groupbooleannamestringmin length 1 · max length 255
descriptionstring | nullmax length 1000
group_idstring | null (uuid)monitor_idstring | null (uuid)current_status"operational" | "degraded_performance" | "partial_outage" | "major_outage" | "maintenance" | "unknown"show_uptimebooleandisplay_orderintegermin 0
is_collapsedbooleanGroups only (stored as collapsed_by_default)
start_datestring | null (date-time)Accepted but not stored
Responses
- 200Updated
Response fields
messagestringrequiredidstringrequired
- 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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_updateStatusPageComponent', {
pageId: '<pageId>',
body: {
id: '00000000-0000-4000-8000-000000000000',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_updateStatusPageComponent",
"arguments": {
"pageId": "<pageId>",
"body": {
"id": "00000000-0000-4000-8000-000000000000"
}
}
}
}Delete a component of a status page
DELETE/v1/relays/status-pages/{pageId}/components/{componentId}
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 · stringrequiredpageIdpath · stringrequired
Responses
- 200Deleted
Response fields
messagestringrequiredidstringrequired
- 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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_deleteStatusPageComponent', {
pageId: '<pageId>',
componentId: '<componentId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "relays_deleteStatusPageComponent",
"arguments": {
"pageId": "<pageId>",
"componentId": "<componentId>"
}
}
}
}Subscribers
List subscribers of a status page (phone numbers and webhook URLs masked)
GET/v1/relays/status-pages/{pageId}/subscribers
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 · stringrequiredpagequery · integerlimitquery · integersubscription_typequery · "email" | "sms" | "webhook" | "rss"is_activequery · "true" | "false"searchquery · stringCase-insensitive email substring
Responses
- 200Subscribers
Response fields
subscribersobject[]requiredsubscribers[].[].idstringsubscribers[].[].subscription_type"email" | "sms" | "webhook" | "rss"subscribers[].[].emailstring | nullsubscribers[].[].phonestring | nullMasked as ***last4
subscribers[].[].webhook_urlstring | nullOnly the origin, then /*** when the URL has a path or query
subscribers[].[].component_idsarray | nullsubscribers[].[].is_activebooleansubscribers[].[].is_confirmedboolean | nullsubscribers[].[].notify_on_incidentboolean | nullsubscribers[].[].notify_on_maintenanceboolean | nullsubscribers[].[].notify_on_updateboolean | nullsubscribers[].[].last_notified_atstring | nullsubscribers[].[].created_atstring (date-time)statsobjectrequiredstats.totalintegerstats.activeintegerstats.emailintegerstats.smsintegerstats.webhookintegerstats.rssintegermetaobjectrequiredmeta.pageintegermeta.per_pageintegermeta.totalintegermeta.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_listStatusPageSubscribers', {
pageId: '<pageId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "relays_listStatusPageSubscribers",
"arguments": {
"pageId": "<pageId>"
}
}
}
}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
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"requiredemailstring (email)max length 255
phonestringmax length 20
webhook_urlstring (uri)max length 2048
component_idsstring (uuid)[]Components of this page to watch; empty means all
notify_on_incidentbooleandefault
truenotify_on_maintenancebooleandefault
truenotify_on_updatebooleandefault
true
Responses
- 201Created (pending for a key)
Response fields
idstring (uuid)requiredsubscription_type"email" | "sms" | "webhook" | "rss"requiredemailstring | nullcomponent_idsstring[]status"pending" | "active"requiredpending for a subscriber added by a key, until the recipient confirms
is_activebooleanrequiredis_confirmedbooleanrequiredcreated_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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_createStatusPageSubscriber', {
pageId: '<pageId>',
body: {
subscription_type: 'email',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "relays_createStatusPageSubscriber",
"arguments": {
"pageId": "<pageId>",
"body": {
"subscription_type": "email"
}
}
}
}
}Remove a subscriber from a status page
DELETE/v1/relays/status-pages/{pageId}/subscribers/{subscriberId}
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 · stringrequiredpageIdpath · stringrequired
Responses
- 200Deleted
Response fields
messagestringrequiredidstringrequired
- 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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_deleteStatusPageSubscriber', {
pageId: '<pageId>',
subscriberId: '<subscriberId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "relays_deleteStatusPageSubscriber",
"arguments": {
"pageId": "<pageId>",
"subscriberId": "<subscriberId>"
}
}
}
}Traces
Query tenant trace spans with a waterfall
GET/v1/relays/traces
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 · string32 hex characters
servicequery · stringstatusquery · stringlimitquery · integer
Responses
- 200Spans
Response fields
spansobject[]requiredspans[].[].namestringspans[].[].trace_idstringspans[].[].span_idstringspans[].[].parent_span_idstringspans[].[].duration_msnumberspans[].[].attributesobjectspans[].[].ended_atstringsummaryobjectrequiredsummary.total_spansintegersummary.trace_countintegersummary.error_countintegersummary.avg_duration_msnumberwaterfallobjectrequiredmetaobjectrequiredmeta.source"warehouse"meta.totalintegermeta.limitintegermeta.fallbackbooleanmeta.elapsed_msnumbermeta.cachedboolean
- 400Error
- 401Error
- 500Error
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/traces" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_listTraces'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_listTraces",
"arguments": {}
}
}Caa
List CAA records for a zone, with recommended Let's Encrypt records
GET/v1/relays/zones/{zone}/caa
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
zonestringrequiredcaa_recordsobject[]requiredcaa_records[].[].idstring (uuid)caa_records[].[].domain_idintegercaa_records[].[].domain_namestringcaa_records[].[].hostnamestringcaa_records[].[].flagsintegercaa_records[].[].tagstringcaa_records[].[].valuestringcaa_records[].[].parametersobject | nullcaa_records[].[].dns_record_idinteger | nullcaa_records[].[].synced_atstring | nullcaa_records[].[].sync_errorstring | nullcaa_records[].[].auto_managedbooleancaa_records[].[].enabledbooleancaa_records[].[].created_atstringcaa_records[].[].updated_atstringcaa_records[].[].recordstringPresentation form: hostname flags tag "value"
recommendationsobject[]requiredrecommendations[].[].hostnamestringrecommendations[].[].flagsintegerrecommendations[].[].tagstringrecommendations[].[].valuestringrecommendations[].[].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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_listCaaRecords', {
zone: '<zone>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_listCaaRecords",
"arguments": {
"zone": "<zone>"
}
}
}Create a CAA record, and by default publish it in the zone
POST/v1/relays/zones/{zone}/caa
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
hostnamestringrequiredOwner name within the zone (letters, digits, hyphens, underscores); a bare label is prefixed with the zone min length 1 · max length 253
flagsinteger128 sets the issuer-critical bit min 0 · max 255 · default
0tag"issue" | "issuewild" | "iodef" | "contactemail" | "contactphone"requiredvaluestringrequiredPrintable 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
parametersobjectStored with the record; not published in DNS
auto_managedbooleandefault
falsesync_to_dnsbooleanAlso write the CAA record into the zone default
true
Responses
- 201Created
Response fields
idstring (uuid)domain_idintegerdomain_namestringhostnamestringflagsintegertagstringvaluestringparametersobject | nulldns_record_idinteger | nullsynced_atstring | nullsync_errorstring | nullauto_managedbooleanenabledbooleancreated_atstringupdated_atstringrecordstringPresentation 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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_createCaaRecord', {
zone: '<zone>',
body: {
hostname: 'string',
tag: 'issue',
value: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_createCaaRecord",
"arguments": {
"zone": "<zone>",
"body": {
"hostname": "string",
"tag": "issue",
"value": "string"
}
}
}
}Dnssec
Read owned DNSSEC status; unavailable public key details return 503
GET/v1/relays/zones/{zone}/dnssec
Parameters
zonepath · stringrequired
Responses
- 200Stored DNSSEC state
Response fields
zonestringrequiredenabledbooleanrequiredkeysobject[]requiredds_recordsobject[]requiredsettingsobjectrequiredsettings.nsec3object | nullrequiredsettings.nsec3.algorithmintegersettings.nsec3.flagsintegersettings.nsec3.iterationsintegersettings.nsec3.saltstringsettings.auto_publish_cdsbooleanrequiredsettings.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_getDnssec', {
zone: '<zone>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_getDnssec",
"arguments": {
"zone": "<zone>"
}
}
}Disable DNSSEC for a zone (hard-deletes its signing keys)
DELETE/v1/relays/zones/{zone}/dnssec
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
successbooleanzonestringmessagestringwarningstring
- 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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_disableDnssec', {
zone: '<zone>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "relays_disableDnssec",
"arguments": {
"zone": "<zone>"
}
}
}
}Export
Export a zone's records as a BIND zone file or as JSON
GET/v1/relays/zones/{zone}/export
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 · stringrequiredformatquery · "bind" | "json"
Responses
- 200The zone file or the record list
Response fields
zonestringrequiredformat"bind"Present on the BIND answer
truncatedbooleanTrue when the zone has more than the 10000 records returned
totalintegerThe zone's record count
zone_filestringThe BIND zone file (format=bind)
recordsobject[]The records (format=json)
records[].[].namestringrecords[].[].typestringrecords[].[].contentstringrecords[].[].ttlintegerrecords[].[].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 { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_exportZone', {
zone: '<zone>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_exportZone",
"arguments": {
"zone": "<zone>"
}
}
}Import
Import records from a BIND zone file into an existing zone
POST/v1/relays/zones/{zone}/import
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_filestringrequiredBIND zone file text min length 1
format"bind"default
"bind"
Responses
- 200Import results
Response fields
messagestringimportedintegerrequiredRecords added
existingintegerrequiredRecords already present with the same content; not written again
failedintegerrequiredskippedobject[]requiredRecords never written (SOA, apex NS, names outside the zone)
skipped[].[].namestringskipped[].[].typestringskipped[].[].reasonstringresultsobject[]requiredresults[].[].successbooleanresults[].[].status"created" | "exists" | "failed"results[].[].recordobjectresults[].[].record.namestringresults[].[].record.typestringresults[].[].record.contentstringresults[].[].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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_importZone', {
zone: '<zone>',
body: {
zone_file: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "relays_importZone",
"arguments": {
"zone": "<zone>",
"body": {
"zone_file": "string"
}
}
}
}
}Records
List records in a zone
GET/v1/relays/zones/{zone}/records
Parameters
zonepath · stringrequiredtypequery · stringnamequery · stringpagequery · integerlimitquery · integer
Responses
- 200Records
Response fields
zonestringrecordsobject[]records[].[].namestringrequiredrecords[].[].type"A" | "AAAA" | "CNAME" | "MX" | "TXT" | "NS" | "SOA" | "SRV" | "CAA" | "PTR" | "DS" | "DNSKEY" | "SSHFP" | "TLSA" | "HTTPS" | "SVCB" | "NAPTR" | "ALIAS"requiredThe 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[].[].contentstringrequiredrecords[].[].ttlobjectSeconds (300 or "300") or a duration ("5m", "1h", "1d"); 60 seconds to 1 day. Read back as seconds. default
3600records[].[].priorityintegermin 0 · max 65535
records[].[].disabledbooleandefault
falserecords[].[].commentstringmax length 1000
records[].[].tagsstring[]records[].[].idintegerrecords[].[].zonestringrecords[].[].created_atstringrecords[].[].updated_atstringmetaobjectmeta.pageintegermeta.per_pageintegermeta.totalintegermeta.total_pagesinteger
- 404Error
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/relays/zones/$ZONE/records" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_listRecords', {
zone: '<zone>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_listRecords",
"arguments": {
"zone": "<zone>"
}
}
}Create one record, or up to 100 with {records:[...]}
POST/v1/relays/zones/{zone}/records
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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_createRecord', {
zone: '<zone>',
body: {
name: 'string',
type: 'A',
content: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_createRecord",
"arguments": {
"zone": "<zone>",
"body": {
"name": "string",
"type": "A",
"content": "string"
}
}
}
}Get a record
GET/v1/relays/zones/{zone}/records/{recordId}
Requires relays:read.
Parameters
recordIdpath · stringrequiredzonepath · stringrequired
Responses
- 200Record
Response fields
namestringrequiredtype"A" | "AAAA" | "CNAME" | "MX" | "TXT" | "NS" | "SOA" | "SRV" | "CAA" | "PTR" | "DS" | "DNSKEY" | "SSHFP" | "TLSA" | "HTTPS" | "SVCB" | "NAPTR" | "ALIAS"requiredThe 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.
contentstringrequiredttlobjectSeconds (300 or "300") or a duration ("5m", "1h", "1d"); 60 seconds to 1 day. Read back as seconds. default
3600priorityintegermin 0 · max 65535
disabledbooleandefault
falsecommentstringmax length 1000
tagsstring[]idintegerzonestringcreated_atstringupdated_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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_getRecord', {
zone: '<zone>',
recordId: '<recordId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_getRecord",
"arguments": {
"zone": "<zone>",
"recordId": "<recordId>"
}
}
}Delete a record
DELETE/v1/relays/zones/{zone}/records/{recordId}
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 · stringrequiredzonepath · stringrequired
Responses
- 200Deleted
Response fields
successbooleanmessagestring
- 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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_deleteRecord', {
zone: '<zone>',
recordId: '<recordId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_deleteRecord",
"arguments": {
"zone": "<zone>",
"recordId": "<recordId>"
}
}
}Update a record
PATCH/v1/relays/zones/{zone}/records/{recordId}
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 · stringrequiredzonepath · stringrequired
Request body application/json
namestringtype"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.
contentstringttlinteger | stringSeconds (300 or "300") or a duration ("5m", "1h", "1d"); 60 seconds to 1 day. Read back as seconds.
priorityintegermin 0 · max 65535
disabledbooleancommentstringmax length 1000
tagsstring[]
Responses
- 200Updated
Response fields
namestringrequiredtype"A" | "AAAA" | "CNAME" | "MX" | "TXT" | "NS" | "SOA" | "SRV" | "CAA" | "PTR" | "DS" | "DNSKEY" | "SSHFP" | "TLSA" | "HTTPS" | "SVCB" | "NAPTR" | "ALIAS"requiredThe 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.
contentstringrequiredttlobjectSeconds (300 or "300") or a duration ("5m", "1h", "1d"); 60 seconds to 1 day. Read back as seconds. default
3600priorityintegermin 0 · max 65535
disabledbooleandefault
falsecommentstringmax length 1000
tagsstring[]idintegerzonestringcreated_atstringupdated_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 '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_updateRecord', {
zone: '<zone>',
recordId: '<recordId>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "relays_updateRecord",
"arguments": {
"zone": "<zone>",
"recordId": "<recordId>",
"body": {}
}
}
}Create, update and delete records in one request
POST/v1/relays/zones/{zone}/records/bulk
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[]requiredoperations[].[].action"create" | "update" | "delete"requiredoperations[].[].recordobjectrequiredoperations[].[].record.idintegerRequired for update and delete
operations[].[].record.namestringRequired for create
operations[].[].record.typestringRequired for create
operations[].[].record.contentstringRequired for create
operations[].[].record.ttlintegeroperations[].[].record.priointegeroperations[].[].record.disabledbooleanupdate only
Responses
- 200Per-operation results
Response fields
resultsobject[]requiredresults[].[].actionstringresults[].[].successbooleanresults[].[].status"created" | "exists" | "failed"create only
results[].[].recordobject | nullresults[].[].errorstringsummaryobjectrequiredsummary.totalintegersummary.succeededintegersummary.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": []
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('relays_bulkRecords', {
zone: '<zone>',
body: {
operations: [],
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "relays_bulkRecords",
"arguments": {
"zone": "<zone>",
"body": {
"operations": []
}
}
}
}
}L1fe AI Inc. · Built from Genesis 0.3.3 and the live gateway on 2026-10-25. Support