{"openapi":"3.1.0","servers":[{"url":"https://api.servur.com"}],"info":{"title":"Servur API","description":"Version 1 of the Servur API, for scripts and integrations. Every request carries a workspace's API key and sees that workspace only. Amounts are whole cents. Lists come a page at a time: pass `nextCursor` as `cursor` for the next one.","version":"1.0.0"},"tags":[{"name":"Workspace","description":"The key and the workspace it belongs to."},{"name":"Services","description":"Every service the workspace holds."},{"name":"DNS","description":"Zones on our nameservers and their records."},{"name":"Domains","description":"Domain names and their registrations."},{"name":"Ordering","description":"Products and their prices, ordering and paying for them, and paying renewals."},{"name":"Email","description":"Email packages and their mailboxes."},{"name":"Webhooks","description":"Events Servur posts to the workspace's webhooks; set them up in the dashboard."},{"name":"Invoices","description":"Invoices, credit notes and the balance."},{"name":"Subscriptions","description":"What a service costs and how long it runs: cancelling, plans, periods."},{"name":"Transfers","description":"Moving services from one workspace to another."},{"name":"Webhosting","description":"Webhosting packages."},{"name":"VoIP","description":"Telephony and its numbers."},{"name":"Billing","description":"Paying invoices, topping up the balance and direct-debit mandates."},{"name":"Account","description":"Domain holders, domain claims and billing details."},{"name":"Members","description":"The people in the workspace and their invitations."}],"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","description":"An API key of the workspace, `srv_` and 40 characters, made in its settings."}},"schemas":{"WorkspaceWithKey":{"type":"object","properties":{"workspace":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"apiKey":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"permissions":{"type":"array","items":{"type":"string","enum":["services:manage","services:transfer","billing:manage","account:manage","members:invite","members:manage"]}},"expiresAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]}},"required":["id","name","permissions","expiresAt"],"additionalProperties":false}},"required":["workspace","apiKey"],"additionalProperties":false},"ValidationError":{"type":"object","properties":{"error":{"type":"string","const":"validation"},"target":{"type":"string","description":"Where the invalid input was: `json`, `query` or `param`."},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"array","items":{"type":["string","number"]}},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error","target","issues"],"additionalProperties":false},"Error":{"type":"object","properties":{"error":{"type":"string","description":"What went wrong, such as `not-found` or `forbidden`."},"message":{"description":"The precise reason, such as `API_KEY_PERMISSION_MISSING`.","type":"string"}},"required":["error"],"additionalProperties":false},"RateLimitError":{"type":"object","properties":{"error":{"type":"string","const":"too-many-requests"},"retryAfterSeconds":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["error","retryAfterSeconds"],"additionalProperties":false},"ServicePage":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Service"}},"nextCursor":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["items","nextCursor"],"additionalProperties":false},"Service":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"type":{"type":"string","enum":["general","domainname","dnszone","webhosting","email","voip"]},"name":{"type":"string","description":"The domain it is for where it has one, the product otherwise."},"product":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"status":{"type":"string","enum":["pending","active","suspended","cancelled","expired"]},"suspensionReason":{"anyOf":[{"type":"string","enum":["admin","lapsed","unpaid","unverified"]},{"type":"null"}]},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currentPeriod":{"type":"object","properties":{"start":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"end":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["start","end"],"additionalProperties":false},"autoRenew":{"type":"boolean"},"cancelAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"price":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"interval":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["day","week","month","year"]},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["unit","count"],"additionalProperties":false},{"type":"null"}]}},"required":["amount","currency","interval"],"additionalProperties":false,"description":"Per unit and period, without VAT."},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","type","name","product","status","suspensionReason","quantity","currentPeriod","autoRenew","cancelAt","price","createdAt"],"additionalProperties":false},"DnsZonePage":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/DnsZoneSummary"}},"nextCursor":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["items","nextCursor"],"additionalProperties":false},"DnsZoneSummary":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"dnssec":{"type":"boolean"},"publishedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","name","dnssec","publishedAt","createdAt"],"additionalProperties":false},"DnsZone":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"nameservers":{"type":"array","items":{"type":"string"}},"records":{"type":"array","items":{"$ref":"#/components/schemas/DnsRecord"}},"versionId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}],"description":"The current version, to pass as `baseVersionId` when replacing the records; null on a zone never changed."}},"required":["id","name","nameservers","records","versionId"],"additionalProperties":false},"DnsRecord":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"type":{"type":"string","enum":["A","AAAA","CNAME","MX","TXT","NS","SRV","CAA","HTTPS","SVCB","TLSA","NAPTR","SSHFP","DS"]},"name":{"type":"string","description":"`@` for the zone itself."},"value":{"type":"string"},"ttl":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"priority":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"MX and SRV only."},"managedBy":{"anyOf":[{"type":"object","properties":{"service":{"anyOf":[{"type":"string","enum":["general","domainname","dnszone","webhosting","email","voip"]},{"type":"string","const":"domainclaim"},{"type":"string","const":"redirect"}]},"serviceId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"domain":{"type":["string","null"]}},"required":["service","serviceId","domain"],"additionalProperties":false},{"type":"null"}],"description":"The service that keeps this record in place, which may put it back when it is changed."}},"required":["id","type","name","value","ttl","priority","managedBy"],"additionalProperties":false},"Created":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["id"],"additionalProperties":false},"DnsZoneVersionRef":{"type":"object","properties":{"versionId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}],"description":"The version the change left behind; null when nothing changed on a zone never changed."}},"required":["versionId"],"additionalProperties":false},"DnsZoneVersionPage":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/DnsZoneVersionSummary"}},"nextCursor":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["items","nextCursor"],"additionalProperties":false},"DnsZoneVersionSummary":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"source":{"type":"string","enum":["initial","saved","record","template","rollback","claim","service","sync"],"description":"What made it: a save of all records, one record, a template, a rollback, Servur itself, or Servur putting the zone back in step with its DNS servers."},"added":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"removed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"changed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"recordCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"restoredVersionId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"madeBy":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["user","api-key"]},"name":{"type":"string"}},"required":["kind","name"],"additionalProperties":false},{"type":"null"}],"description":"Who made it: a person, or an API key by its name. Null when Servur did."},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","source","added","removed","changed","recordCount","restoredVersionId","madeBy","createdAt"],"additionalProperties":false},"DnsZoneVersion":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"records":{"type":"array","items":{"$ref":"#/components/schemas/DnsRecordValues"}},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","records","createdAt"],"additionalProperties":false},"DnsRecordValues":{"type":"object","properties":{"type":{"type":"string","enum":["A","AAAA","CNAME","MX","TXT","NS","SRV","CAA","HTTPS","SVCB","TLSA","NAPTR","SSHFP","DS"]},"name":{"type":"string"},"value":{"type":"string"},"ttl":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"priority":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["type","name","value","ttl","priority"],"additionalProperties":false},"Domain":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"status":{"type":"string","enum":["pending","active","suspended","cancelled","expired"]},"registeredAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"nameservers":{"type":"array","items":{"type":"string"}},"usesServurDns":{"type":"boolean"},"dnsZoneId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"dnssecMode":{"type":"string","enum":["off","automatic","manual"]}},"required":["id","name","status","registeredAt","expiresAt","nameservers","usesServurDns","dnsZoneId","dnssecMode"],"additionalProperties":false},"NameserversResult":{"type":"object","properties":{"nameservers":{"type":"array","items":{"type":"string"}},"dnssecCleared":{"type":"boolean","description":"Whether DNSSEC was turned off for the move."}},"required":["nameservers","dnssecCleared"],"additionalProperties":false},"AuthCode":{"type":"object","properties":{"authCode":{"type":"string"}},"required":["authCode"],"additionalProperties":false},"InvoicePage":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceSummary"}},"nextCursor":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["items","nextCursor"],"additionalProperties":false},"InvoiceSummary":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"number":{"type":["string","null"]},"kind":{"type":"string","enum":["invoice","credit-note"]},"status":{"type":"string","enum":["open","paid","void"],"description":"Of a credit note: `open` while the refund is on its way, `paid` once it arrived."},"currency":{"type":"string"},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"With VAT."},"issuedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"dueAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"paidAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]}},"required":["id","number","kind","status","currency","total","issuedAt","dueAt","paidAt"],"additionalProperties":false},"Invoice":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"number":{"type":["string","null"]},"kind":{"type":"string","enum":["invoice","credit-note"]},"status":{"type":"string","enum":["open","paid","void"],"description":"Of a credit note: `open` while the refund is on its way, `paid` once it arrived."},"currency":{"type":"string"},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"With VAT."},"issuedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"dueAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"paidAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"subtotal":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"taxAmount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"amountPaid":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"amountDue":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"vatTreatment":{"type":"string","enum":["standard","reverse-charge","export"]},"reference":{"type":["string","null"]},"credited":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"number":{"type":["string","null"]}},"required":["id","number"],"additionalProperties":false},{"type":"null"}],"description":"On a credit note: the invoice it credits."},"lines":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":["string","null"]},"quantity":{"type":"number"},"unitPrice":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"subtotal":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"taxRate":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"In hundredths of a percent: 2100 is 21%."},"taxAmount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"servicePeriodStartAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"servicePeriodEndAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"serviceId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["name","description","quantity","unitPrice","subtotal","taxRate","taxAmount","total","servicePeriodStartAt","servicePeriodEndAt","serviceId"],"additionalProperties":false}}},"required":["id","number","kind","status","currency","total","issuedAt","dueAt","paidAt","subtotal","taxAmount","amountPaid","amountDue","vatTreatment","reference","credited","lines"],"additionalProperties":false},"Balance":{"type":"object","properties":{"balance":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Without VAT: it was invoiced with VAT when topped up, so it pays the subtotal of an order."},"currency":{"type":"string"}},"required":["balance","currency"],"additionalProperties":false},"Availability":{"type":"object","properties":{"domain":{"type":"string"},"status":{"type":"string","enum":["available","registered","premium","invalid","unknown"],"description":"`registered` can be transferred in; `unknown` is a registry that did not answer in time."},"premiumPrice":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}],"description":"The registry's price of a premium name, which Servur does not register through the API."},"price":{"anyOf":[{"type":"object","properties":{"register":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"renew":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"transfer":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"type":"string"}},"required":["register","renew","transfer","currency"],"additionalProperties":false},{"type":"null"}],"description":"The workspace's prices for one year, without VAT; null for an extension Servur does not sell."}},"required":["domain","status","premiumPrice","price"],"additionalProperties":false},"DomainSearch":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","description":"The name searched for, without its extension."},"domains":{"type":"array","items":{"type":"object","properties":{"tld":{"type":"string"},"domain":{"type":"string"},"availability":{"type":"string","enum":["subscribed","pending","unknown"],"description":"`subscribed` is held at Servur already; `pending` is answered through the query URLs; `unknown` could not be asked."},"price":{"anyOf":[{"type":"object","properties":{"register":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"renew":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"transfer":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"type":"string"}},"required":["register","renew","transfer","currency"],"additionalProperties":false},{"type":"null"}],"description":"The workspace's prices for one year, without VAT."}},"required":["tld","domain","availability","price"],"additionalProperties":false}},"query":{"anyOf":[{"type":"object","properties":{"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","description":"The URLs are refused after this, about 30 seconds on."},"urls":{"type":"object","properties":{"sync":{"type":"string","format":"uri","description":"GET answers once every extension is checked: `{ name, results: [DomainCheckResult] }`."},"stream":{"type":"string","format":"uri","description":"GET as server-sent events: a `result` event per extension with a DomainCheckResult as it is answered, then `done`."},"socket":{"type":"string","format":"uri","description":"A WebSocket that sends `{ type: \"result\", result: DomainCheckResult }` per extension as it is answered, then `{ type: \"done\" }`, and closes."}},"required":["sync","stream","socket"],"additionalProperties":false}},"required":["expiresAt","urls"],"additionalProperties":false},{"type":"null"}],"description":"Null when no extension is `pending`."}},"required":["id","name","domains","query"],"additionalProperties":false},"DomainHolderList":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/DomainHolder"}}},"required":["items"],"additionalProperties":false},"DomainHolder":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"organization":{"type":["string","null"]},"email":{"type":"string"},"country":{"type":"string"}},"required":["id","name","organization","email","country"],"additionalProperties":false},"ProductList":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Product"}}},"required":["items"],"additionalProperties":false},"Product":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"type":{"type":"string","enum":["general","domainname","dnszone","webhosting","email","voip"]},"slug":{"type":"string"},"name":{"type":"string"},"description":{"type":["string","null"]},"tld":{"description":"The extension, for a domain name product.","type":["string","null"]},"prices":{"type":"array","items":{"$ref":"#/components/schemas/ProductPrice"}}},"required":["id","type","slug","name","description","tld","prices"],"additionalProperties":false},"ProductPrice":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"purpose":{"type":"string","enum":["default","setup","register","renew","transfer","restore","owner-change","credits"],"description":"`default` per period and `setup` once for most products; `register`, `renew`, `transfer` and `restore` for domain names, and `owner-change` once for naming another holder of one (none is free); `credits` once per pack of 100 AI credits for a VoIP product."},"unit":{"type":"string","enum":["item","hour"]},"interval":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["day","week","month","year"]},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["unit","count"],"additionalProperties":false},{"type":"null"}],"description":"The period the price is for; null for a one-time price. Pass it as `interval` to order."},"currency":{"type":"string"},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"In cents, without VAT."},"workspaceRate":{"type":"boolean","description":"True when it is a rate agreed with this workspace, not the list price."}},"required":["id","purpose","unit","interval","currency","amount","workspaceRate"],"additionalProperties":false},"Order":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"number":{"type":"string"},"status":{"type":"string","enum":["pending","paid","cancelled"]},"source":{"type":"string","enum":["checkout","admin","renewal","plan-change","transfer","restore","credits"],"description":"What made it: an order placed (`checkout`, also through the API), a renewal, a plan change, a domain restored from quarantine, AI credits for a VoIP service."},"currency":{"type":"string"},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"With VAT."},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"subtotal":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"taxAmount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"paidAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"cancelledAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"lines":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["product","discount","fee","credit"],"description":"`credit` is what the balance paid: it takes the subtotal and VAT off again, as the top-up was invoiced with VAT, so an order paid from the balance comes to nothing."},"name":{"type":"string"},"description":{"type":["string","null"]},"quantity":{"type":"number"},"unitPrice":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"subtotal":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"taxRate":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"In hundredths of a percent: 2100 is 21%."},"taxAmount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"serviceId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}],"description":"The service the line made or renews, once the order is paid."}},"required":["kind","name","description","quantity","unitPrice","subtotal","taxRate","taxAmount","total","serviceId"],"additionalProperties":false}}},"required":["id","number","status","source","currency","total","createdAt","subtotal","taxAmount","paidAt","cancelledAt","lines"],"additionalProperties":false},"DomainOrderItem":{"type":"object","properties":{"type":{"type":"string","const":"domain"},"domain":{"type":"string","pattern":"^(?=.{3,253}$)(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z0-9-]{2,63}$"},"holderId":{"description":"From `GET /v1/domain-holders`. The workspace's default holder when left out.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"adminHolderId":{"description":"The admin contact, another domain holder. The holder itself when left out.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"techHolderId":{"description":"The technical contact, another domain holder. The holder itself when left out.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"billingHolderId":{"description":"The billing contact, another domain holder. The holder itself when left out.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"transferCode":{"description":"To transfer a registered domain in rather than register a free one.","type":"string","minLength":1,"maxLength":100},"transferAt":{"description":"With `transferCode`: the day (`YYYY-MM-DD`, Amsterdam) to start the transfer, from tomorrow up to 90 days ahead, such as just before the domain renews where it is now. Paid now, set up on that day; its service period starts then. Left out, the transfer starts as soon as it is paid. Out of range is the problem `transfer-date`.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"nameservers":{"description":"Our nameservers, with a DNS zone here, unless said otherwise.","oneOf":[{"type":"object","properties":{"mode":{"type":"string","const":"servur"}},"required":["mode"]},{"type":"object","properties":{"mode":{"type":"string","const":"custom"},"nameservers":{"minItems":2,"maxItems":6,"type":"array","items":{"type":"string","pattern":"^(?=.{3,253}$)(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z0-9-]{2,63}$"}}},"required":["mode","nameservers"]}]}},"required":["type","domain"]},"WebhostingOrderItem":{"type":"object","properties":{"type":{"type":"string","const":"webhosting"},"productId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$","description":"From `GET /v1/products`, of the same `type`."},"interval":{"description":"One of the product's price intervals; its shortest when left out.","type":"object","properties":{"unit":{"type":"string","enum":["day","week","month","year"]},"count":{"type":"integer","minimum":1,"maximum":60}},"required":["unit","count"]},"domain":{"type":"string","pattern":"^(?=.{3,253}$)(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z0-9-]{2,63}$","description":"The domain the website is for; it need not be registered here."},"start":{"default":"empty","description":"An empty site, or WordPress installed.","type":"string","enum":["empty","wordpress"]},"migrate":{"default":false,"description":"True to have an existing site moved in.","type":"boolean"}},"required":["type","productId","domain"]},"EmailOrderItem":{"type":"object","properties":{"type":{"type":"string","const":"email"},"productId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$","description":"From `GET /v1/products`, of the same `type`."},"interval":{"description":"One of the product's price intervals; its shortest when left out.","type":"object","properties":{"unit":{"type":"string","enum":["day","week","month","year"]},"count":{"type":"integer","minimum":1,"maximum":60}},"required":["unit","count"]},"domain":{"type":"string","pattern":"^(?=.{3,253}$)(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z0-9-]{2,63}$","description":"The domain the addresses are at; it need not be registered here."},"mailboxes":{"default":1,"type":"integer","minimum":1,"maximum":1000},"addresses":{"default":[],"description":"Names for some or all mailboxes; the rest are chosen later in the dashboard.","maxItems":1000,"type":"array","items":{"type":"string","pattern":"^[a-z0-9]([a-z0-9._-]{0,62}[a-z0-9])?$"}},"migrate":{"default":false,"description":"True to have existing mail moved in.","type":"boolean"}},"required":["type","productId","domain"]},"DnsZoneOrderItem":{"type":"object","properties":{"type":{"type":"string","const":"dnszone"},"productId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$","description":"From `GET /v1/products`, of the same `type`."},"interval":{"description":"One of the product's price intervals; its shortest when left out.","type":"object","properties":{"unit":{"type":"string","enum":["day","week","month","year"]},"count":{"type":"integer","minimum":1,"maximum":60}},"required":["unit","count"]},"domain":{"type":"string","pattern":"^(?=.{3,253}$)(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z0-9-]{2,63}$","description":"The domain to host the DNS of; it need not be registered here."}},"required":["type","productId","domain"]},"VoipOrderItem":{"type":"object","properties":{"type":{"type":"string","const":"voip"},"productId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$","description":"From `GET /v1/products`, of the same `type`."},"interval":{"description":"One of the product's price intervals; its shortest when left out.","type":"object","properties":{"unit":{"type":"string","enum":["day","week","month","year"]},"count":{"type":"integer","minimum":1,"maximum":60}},"required":["unit","count"]}},"required":["type","productId"]},"GeneralOrderItem":{"type":"object","properties":{"type":{"type":"string","const":"general"},"productId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$","description":"From `GET /v1/products`, of the same `type`."},"interval":{"description":"One of the product's price intervals; its shortest when left out.","type":"object","properties":{"unit":{"type":"string","enum":["day","week","month","year"]},"count":{"type":"integer","minimum":1,"maximum":60}},"required":["unit","count"]},"quantity":{"default":1,"description":"Items or hours.","type":"integer","minimum":1,"maximum":1000}},"required":["type","productId"]},"OrderPage":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/OrderSummary"}},"nextCursor":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["items","nextCursor"],"additionalProperties":false},"OrderSummary":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"number":{"type":"string"},"status":{"type":"string","enum":["pending","paid","cancelled"]},"source":{"type":"string","enum":["checkout","admin","renewal","plan-change","transfer","restore","credits"],"description":"What made it: an order placed (`checkout`, also through the API), a renewal, a plan change, a domain restored from quarantine, AI credits for a VoIP service."},"currency":{"type":"string"},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"With VAT."},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","number","status","source","currency","total","createdAt"],"additionalProperties":false},"EmailPackage":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"domain":{"type":"string"},"status":{"type":"string","enum":["pending","active","suspended","cancelled","expired"]},"maxMailboxes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"mailboxes":{"type":"array","items":{"$ref":"#/components/schemas/Mailbox"}}},"required":["id","domain","status","maxMailboxes","mailboxes"],"additionalProperties":false},"Mailbox":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"address":{"type":"string"},"localPart":{"type":"string"},"displayName":{"type":["string","null"]},"usedBytes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Null when the mail server did not say."},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","address","localPart","displayName","usedBytes","createdAt"],"additionalProperties":false},"CreatedMailbox":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"address":{"type":"string"}},"required":["id","address"],"additionalProperties":false},"Subscription":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The same id as the service in `GET /v1/services`."},"product":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"type":{"type":"string","enum":["general","domainname","dnszone","webhosting","email","voip"]}},"required":["id","name","type"],"additionalProperties":false},"label":{"type":["string","null"]},"status":{"type":"string","enum":["pending","active","suspended","cancelled","expired"]},"suspensionReason":{"anyOf":[{"type":"string","enum":["admin","lapsed","unpaid","unverified"]},{"type":"null"}]},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"price":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"interval":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["day","week","month","year"]},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["unit","count"],"additionalProperties":false},{"type":"null"}]}},"required":["amount","currency","interval"],"additionalProperties":false,"description":"Per unit and period, without VAT, as it last renewed or was bought."},"renewalAmount":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"What the next period costs per unit, without VAT; null when nothing renews it."},"currentPeriod":{"type":"object","properties":{"start":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"end":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["start","end"],"additionalProperties":false},"autoRenew":{"type":"boolean"},"cancelAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}],"description":"When a cancelled subscription stops."},"cancelledAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"startedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"scheduledChange":{"anyOf":[{"type":"object","properties":{"product":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"interval":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["day","week","month","year"]},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["unit","count"],"additionalProperties":false},{"type":"null"}]},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"effectiveAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["product","interval","quantity","effectiveAt"],"additionalProperties":false},{"type":"null"}],"description":"Another plan, period or fewer units, taking effect when the current period ends."},"pendingRenewal":{"anyOf":[{"type":"object","properties":{"orderId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"number":{"type":"string"},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["orderId","number","total","currency"],"additionalProperties":false},{"type":"null"}],"description":"The renewal order waiting to be paid; pay it with `POST /v1/orders/{orderId}/payment`."}},"required":["id","product","label","status","suspensionReason","quantity","price","renewalAmount","currentPeriod","autoRenew","cancelAt","cancelledAt","startedAt","createdAt","scheduledChange","pendingRenewal"],"additionalProperties":false},"PlanOptions":{"type":"object","properties":{"changeable":{"type":"boolean","description":"Whether the plan can change at all: running, not cancelled, billed by a period."},"current":{"type":"object","properties":{"product":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Per unit and period, without VAT."},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"interval":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["day","week","month","year"]},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["unit","count"],"additionalProperties":false},{"type":"null"}]},"periodEnd":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["product","amount","quantity","interval","periodEnd"],"additionalProperties":false},"scheduled":{"anyOf":[{"type":"object","properties":{"product":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"interval":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["day","week","month","year"]},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["unit","count"],"additionalProperties":false},{"type":"null"}]},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"effectiveAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["product","interval","quantity","effectiveAt"],"additionalProperties":false},{"type":"null"}]},"options":{"type":"array","items":{"type":"object","properties":{"product":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"description":{"type":["string","null"]}},"required":["id","name","description"],"additionalProperties":false},"price":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"workspaceRate":{"type":"boolean"}},"required":["amount","currency","workspaceRate"],"additionalProperties":false},"kind":{"type":"string","enum":["upgrade","downgrade"]},"dueNow":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Without VAT: what an upgrade costs for the rest of this period."},"effectiveAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["product","price","kind","dueNow","effectiveAt"],"additionalProperties":false},"description":"The other plans it can move to; pass `product.id` to `POST .../plan`."},"quantity":{"type":"object","properties":{"adjustable":{"type":"boolean"},"current":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"dueNowPerUnit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Without VAT: what one more unit costs for the rest of this period."}},"required":["adjustable","current","dueNowPerUnit"],"additionalProperties":false},"periods":{"type":"array","items":{"type":"object","properties":{"price":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"workspaceRate":{"type":"boolean"}},"required":["id","amount","currency","workspaceRate"],"additionalProperties":false},"interval":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["day","week","month","year"]},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["unit","count"],"additionalProperties":false},{"type":"null"}]},"effectiveAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["price","interval","effectiveAt"],"additionalProperties":false},"description":"The other billing periods; pass `price.id` to `POST .../period`."}},"required":["changeable","current","scheduled","options","quantity","periods"],"additionalProperties":false},"Cancellation":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"cancelAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","description":"It runs until here, and is not renewed."}},"required":["id","cancelAt"],"additionalProperties":false},"PlanChange":{"type":"object","properties":{"kind":{"type":"string","enum":["upgrade","downgrade"],"description":"`upgrade` takes effect once its order is paid (at once when nothing is due); `downgrade` at the end of the period."},"effectiveAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}],"description":"When a downgrade takes effect."},"order":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"number":{"type":"string"},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["id","number","total","currency"],"additionalProperties":false},{"type":"null"}],"description":"The order to pay before the change takes effect; pay it with `POST /v1/orders/{orderId}/payment`."}},"required":["kind","effectiveAt","order"],"additionalProperties":false},"PeriodChange":{"type":"object","properties":{"kind":{"type":"string","enum":["scheduled","kept"],"description":"`scheduled`: the new period starts when the current one ends. `kept`: the current period, which withdraws a move waiting."},"effectiveAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["kind","effectiveAt"],"additionalProperties":false},"QuantityChange":{"type":"object","properties":{"kind":{"type":"string","enum":["ordered","applied","scheduled","kept"],"description":"`ordered`: more units, added once `order` is paid. `applied`: more units with nothing due. `scheduled`: fewer units from the next period. `kept`: the current number, which withdraws a reduction waiting."},"effectiveAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}],"description":"When fewer units take effect."},"order":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"number":{"type":"string"},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["id","number","total","currency"],"additionalProperties":false},{"type":"null"}],"description":"The order to pay before the change takes effect; pay it with `POST /v1/orders/{orderId}/payment`."}},"required":["kind","effectiveAt","order"],"additionalProperties":false},"TransferPage":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Transfer"}},"nextCursor":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["items","nextCursor"],"additionalProperties":false},"Transfer":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["open","claimed","accepted","completed","cancelled","expired"],"description":"`open`: the code is out. `claimed`: another workspace entered it. `accepted`: that workspace's owner accepted, waiting for this one's owner to confirm. Accepting and confirming are done by owners in the dashboard."},"direction":{"type":"string","enum":["outgoing","incoming"],"description":"Whether services leave or arrive in the key's workspace."},"source":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"target":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},{"type":"null"}]},"acceptedBy":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"email":{"type":"string"}},"required":["name","email"],"additionalProperties":false},{"type":"null"}]},"order":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"number":{"type":"string"}},"required":["id","number"],"additionalProperties":false},{"type":"null"}],"description":"For an incoming transfer: the order that took the services on."},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"claimedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"acceptedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"completedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"cancelledAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"items":{"type":"array","items":{"type":"object","properties":{"subscriptionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"here":{"type":"boolean","description":"Whether the service is in the key's workspace now."},"product":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"type":{"type":"string","enum":["general","domainname","dnszone","webhosting","email","voip"]}},"required":["id","name","type"],"additionalProperties":false},"label":{"type":["string","null"]},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string","enum":["pending","active","suspended","cancelled","expired"]},"currentPeriodStart":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"currentPeriodEnd":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"registryExpiresAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"autoRenew":{"type":"boolean"},"cancelAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"scheduledProductName":{"type":["string","null"]},"renewal":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"intervalUnit":{"type":"string","enum":["day","week","month","year"]},"intervalCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["amount","currency","intervalUnit","intervalCount"],"additionalProperties":false},{"type":"null"}],"description":"What it renews for in the receiving workspace, per unit and period, without VAT."}},"required":["subscriptionId","here","product","label","quantity","status","currentPeriodStart","currentPeriodEnd","registryExpiresAt","autoRenew","cancelAt","scheduledProductName","renewal"],"additionalProperties":false}}},"required":["id","status","direction","source","target","acceptedBy","order","createdAt","claimedAt","acceptedAt","completedAt","cancelledAt","expiresAt","items"],"additionalProperties":false},"CreatedTransfer":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"code":{"type":"string","description":"Shown once: give it to the receiving workspace."},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","code","expiresAt"],"additionalProperties":false},"DsRecordList":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/DsRecord"}}},"required":["items"],"additionalProperties":false},"DsRecord":{"type":"object","properties":{"keyTag":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"algorithm":{"type":"number","enum":[8,10,13,14,15,16]},"digestType":{"type":"number","enum":[2,4]},"digest":{"type":"string"},"dnskey":{"description":"The key the record was made from, as `dig DNSKEY` prints it (`257 3 13 <base64>`), for a registrar that asks for keys; null when not known.","type":["string","null"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["keyTag","algorithm","digestType","digest","dnskey","id"],"additionalProperties":false},"DnssecMode":{"type":"object","properties":{"mode":{"type":"string","enum":["off","automatic","manual"]},"dsRecords":{"type":"array","items":{"$ref":"#/components/schemas/DsRecordValues"},"description":"What the registry has for the domain now: ours with `automatic`, yours with `manual`."}},"required":["mode","dsRecords"],"additionalProperties":false},"DsRecordValues":{"type":"object","properties":{"keyTag":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"algorithm":{"type":"number","enum":[8,10,13,14,15,16]},"digestType":{"type":"number","enum":[2,4]},"digest":{"type":"string"},"dnskey":{"description":"The key the record was made from, as `dig DNSKEY` prints it (`257 3 13 <base64>`), for a registrar that asks for keys; null when not known.","type":["string","null"]}},"required":["keyTag","algorithm","digestType","digest","dnskey"],"additionalProperties":false},"ZoneDnssec":{"type":"object","properties":{"enabled":{"type":"boolean"},"dsRecords":{"type":"array","items":{"$ref":"#/components/schemas/DsRecordValues"},"description":"The zone's DS records; none while unsigned."},"dsSent":{"type":"boolean","description":"Whether they went to the registry as well: for a domain registered here on our nameservers with DNSSEC off."}},"required":["enabled","dsRecords","dsSent"],"additionalProperties":false},"DnsRedirectList":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/DnsRedirect"}}},"required":["items"],"additionalProperties":false},"DnsRedirect":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","description":"`@` for the zone itself, or a name under it such as `www`."},"path":{"type":"string","description":"The path it answers, with `{name}` for one segment or `{name*}` for the rest, to carry over into `destination` as `{name}`."},"destination":{"type":"string"},"statusCode":{"anyOf":[{"type":"number","const":301},{"type":"number","const":302}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","name","path","destination","statusCode","createdAt"],"additionalProperties":false},"DnsTemplateList":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/DnsTemplate"}}},"required":["items"],"additionalProperties":false},"DnsTemplate":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"servur":{"type":"boolean","description":"True for one of Servur's own, which can be applied but not changed."},"name":{"type":"string"},"description":{"type":["string","null"]},"registrationDefault":{"type":"boolean","description":"Whether a new registration on our nameservers gets these records."},"records":{"type":"array","items":{"$ref":"#/components/schemas/DnsRecordValues"},"description":"`{domain}` in a value stands for the zone the template is applied to."},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","servur","name","description","registrationDefault","records","createdAt","updatedAt"],"additionalProperties":false},"DnsTemplatePlan":{"type":"object","properties":{"mode":{"type":"string","enum":["replace","merge"]},"added":{"type":"array","items":{"$ref":"#/components/schemas/DnsRecordValues"}},"removed":{"type":"array","items":{"$ref":"#/components/schemas/DnsRecordValues"}},"updated":{"type":"array","items":{"$ref":"#/components/schemas/DnsRecordValues"},"description":"Records kept with another TTL or priority."},"skipped":{"type":"array","items":{"type":"object","properties":{"reason":{"type":"string","enum":["exists","conflict"]},"record":{"$ref":"#/components/schemas/DnsRecordValues"}},"required":["reason","record"],"additionalProperties":false},"description":"Records a merge leaves out: there already, or next to a CNAME."},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["email-removed","website-removed","verification-removed","records-removed","address-added","mail-added","spf-added"]},"records":{"type":"array","items":{"$ref":"#/components/schemas/DnsRecordValues"}}},"required":["code","records"],"additionalProperties":false},"description":"What may stop working: what a replace takes away, or what a merge puts beside its like."},"ttlRaised":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many of the template's records had their TTL raised to the plan's minimum."},"overLimit":{"type":"boolean","description":"Whether the zone would grow past its plan's record limit, which applying refuses."}},"required":["mode","added","removed","updated","skipped","warnings","ttlRaised","overLimit"],"additionalProperties":false},"WebhostingPackage":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["pending","active","suspended","cancelled","expired"]},"username":{"type":"string"},"domain":{"type":"string"},"serverHostname":{"type":["string","null"]},"provisionedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"usage":{"anyOf":[{"type":"object","properties":{"diskSpace":{"$ref":"#/components/schemas/HostingUsageItem"},"bandwidth":{"$ref":"#/components/schemas/HostingUsageItem"},"emailAccounts":{"$ref":"#/components/schemas/HostingUsageItem"},"databases":{"$ref":"#/components/schemas/HostingUsageItem"},"domains":{"$ref":"#/components/schemas/HostingUsageItem"}},"required":["diskSpace","bandwidth","emailAccounts","databases","domains"],"additionalProperties":false},{"type":"null"}],"description":"In megabytes where it is a size; null when the control panel did not answer."},"signInAvailable":{"type":"boolean","description":"Whether `POST .../sign-in` can make a sign-in link."},"dns":{"$ref":"#/components/schemas/ServiceDns"}},"required":["id","status","username","domain","serverHostname","provisionedAt","usage","signInAvailable","dns"],"additionalProperties":false},"HostingUsageItem":{"type":"object","properties":{"used":{"type":"number"},"limit":{"description":"Null for unlimited.","type":["number","null"]}},"required":["used","limit"],"additionalProperties":false},"ServiceDns":{"type":"object","properties":{"zone":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},{"type":"null"}],"description":"The workspace's zone here that holds the domain; null when there is none to apply them to."},"valid":{"description":"Whether the zone has every record and nothing in their way; null without a zone.","type":["boolean","null"]},"records":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["A","AAAA","CNAME","MX","TXT","NS","SRV","CAA","HTTPS","SVCB","TLSA","NAPTR","SSHFP","DS"]},"name":{"type":"string","description":"Relative to the zone, `@` for its apex."},"value":{"type":"string"},"priority":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"status":{"anyOf":[{"type":"string","enum":["present","missing"]},{"type":"null"}],"description":"Whether the zone has it; null without a zone."}},"required":["type","name","value","priority","status"],"additionalProperties":false},"description":"The records the service needs."},"conflicts":{"type":"array","items":{"$ref":"#/components/schemas/ServiceDnsRecord"},"description":"Records in the zone that applying the service's records replaces."}},"required":["zone","valid","records","conflicts"],"additionalProperties":false},"ServiceDnsRecord":{"type":"object","properties":{"type":{"type":"string","enum":["A","AAAA","CNAME","MX","TXT","NS","SRV","CAA","HTTPS","SVCB","TLSA","NAPTR","SSHFP","DS"]},"name":{"type":"string","description":"Relative to the zone, `@` for its apex."},"value":{"type":"string"},"priority":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["type","name","value","priority"],"additionalProperties":false},"HostingPassword":{"type":"object","properties":{"password":{"type":"string"}},"required":["password"],"additionalProperties":false},"SignInLink":{"type":"object","properties":{"signInUrl":{"type":"string","description":"Opens the control panel signed in; use it at once."}},"required":["signInUrl"],"additionalProperties":false},"UpdatedMailbox":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["id"],"additionalProperties":false},"VoipPackage":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["pending","active","suspended","cancelled","expired"]},"sipDomain":{"type":"string"},"plan":{"type":"string","enum":["start","pro","business"]},"seats":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"usedSeats":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Null when the provider did not answer."},"maxNumbers":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"numbers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"e164":{"type":"string","description":"Such as `+31850020001`."},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","e164","createdAt"],"additionalProperties":false}}},"required":["id","status","sipDomain","plan","seats","usedSeats","maxNumbers","numbers"],"additionalProperties":false},"AvailableNumberList":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The provider's id: pass it as `numberId` to take the number."},"e164":{"type":"string"}},"required":["id","e164"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false},"VoipNumber":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"e164":{"type":"string","description":"Such as `+31850020001`."}},"required":["id","e164"],"additionalProperties":false},"InvoicePayment":{"type":"object","properties":{"paymentId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}],"description":"Null when nothing was left to pay."},"checkoutUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}],"description":"Where a person pays, for a checkout method; null when paid from the balance."},"invoiceStatus":{"type":"string","enum":["paid","open"],"description":"`open` until the checkout is paid."}},"required":["paymentId","checkoutUrl","invoiceStatus"],"additionalProperties":false},"TopUp":{"type":"object","properties":{"paymentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"checkoutUrl":{"type":"string","format":"uri","description":"Where a person pays; the balance goes up once they have."},"taxAmount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The workspace's VAT on the amount, charged on top and invoiced."},"fee":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The method's transaction costs, with VAT, charged on top and invoiced."},"charged":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"What the checkout charges: the amount, its VAT and the fee."}},"required":["paymentId","checkoutUrl","taxAmount","fee","charged"],"additionalProperties":false},"Payment":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"purpose":{"type":"string","enum":["order","invoice","top-up","mandate"]},"order":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"number":{"type":"string"},"status":{"type":"string","enum":["pending","paid","cancelled"]}},"required":["id","number","status"],"additionalProperties":false},{"type":"null"}]},"invoice":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"number":{"type":"string"},"status":{"type":"string","enum":["draft","open","paid","void"]}},"required":["id","number","status"],"additionalProperties":false},{"type":"null"}]},"status":{"type":"string","enum":["pending","authorized","paid","failed","cancelled","expired","charged-back"]},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"With VAT and any transaction costs."},"currency":{"type":"string"},"method":{"anyOf":[{"type":"string","enum":["ideal","bancontact","creditcard","bank-transfer","direct-debit","paypal","apple-pay","credit","dummy"]},{"type":"null"}],"description":"How it was paid in the end; `credit` is the balance. Null until the provider says."},"failureMessage":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"paidAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]}},"required":["id","purpose","order","invoice","status","amount","currency","method","failureMessage","createdAt","paidAt"],"additionalProperties":false},"PaymentMethodList":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"method":{"type":"string","enum":["ideal","bancontact","creditcard","paypal","bank-transfer","direct-debit"],"description":"`direct-debit` pays orders only, on the mandate an iDEAL or Bancontact payment left."},"fee":{"type":"object","properties":{"fixedAmount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Cents without VAT, per payment."},"rate":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Hundredths of a percent of what is charged, VAT included: 180 is 1.8%."}},"required":["fixedAmount","rate"],"additionalProperties":false},"allowed":{"type":"boolean","description":"Whether the workspace may pay with it. `creditcard`, `paypal` and `direct-debit` need an admin to allow them; `direct-debit` also a mandate."},"available":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"For an allowed `creditcard`, `paypal` or `direct-debit`: the most one payment can be right now, within its limit per payment and what is left of the month. Null for a method without limits."}},"required":["method","fee","allowed","available"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false},"InvoiceTerms":{"type":"object","properties":{"terms":{"anyOf":[{"type":"object","properties":{"interval":{"type":"string","enum":["week","half-month","month","quarter"]},"pendingLimit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Invoiced at once when what waits to be invoiced reaches this, with VAT."},"grantedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["interval","pendingLimit","grantedAt","updatedAt"],"additionalProperties":false},{"type":"null"}],"description":"Null for a workspace invoiced weekly, as every workspace is without terms."},"pendingOwed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"What is billed and not invoiced yet."},"request":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"interval":{"type":"string","enum":["week","half-month","month","quarter"]},"motivation":{"type":"string"},"status":{"type":"string","enum":["pending","approved","rejected"]},"decisionNote":{"type":["string","null"]},"decidedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","interval","motivation","status","decisionNote","decidedAt","createdAt"],"additionalProperties":false},{"type":"null"}],"description":"The latest request for other terms, if any."}},"required":["terms","pendingOwed","request"],"additionalProperties":false},"MandateList":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["pending","valid","invalid","revoked"]},"method":{"type":"string","enum":["direct-debit","creditcard","paypal","dummy"]},"label":{"description":"Such as the last digits of the card or account.","type":["string","null"]},"isDefault":{"type":"boolean","description":"Charged first, for renewals and orders paid by direct debit. Without one, the newest valid mandate is. Chosen in the dashboard."},"cardExpiresOn":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"null"}],"description":"A card's last valid day; null for an account."},"revokedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","status","method","label","isDefault","cardExpiresOn","revokedAt","createdAt"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false},"Discount":{"type":"object","properties":{"code":{"type":"string"},"kind":{"type":"string","enum":["percentage","fixed"]},"percentage":{"description":"For a `percentage` code.","type":["number","null"]},"amount":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"For a `fixed` code, without VAT."},"currency":{"type":["string","null"]},"productIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"The products it applies to; empty for every product."},"endsAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]}},"required":["code","kind","percentage","amount","currency","productIds","endsAt"],"additionalProperties":false},"DomainHolderDetails":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"organization":{"type":["string","null"]},"email":{"type":"string"},"phone":{"type":"string","description":"E.164, such as `+31201234567`."},"addressLine1":{"type":"string"},"postalCode":{"type":"string"},"city":{"type":"string"},"country":{"type":"string","description":"ISO 3166-1 alpha-2, such as `NL`."},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","name","organization","email","phone","addressLine1","postalCode","city","country","createdAt","updatedAt"],"additionalProperties":false},"BillingDetailsResult":{"type":"object","properties":{"billingDetails":{"anyOf":[{"$ref":"#/components/schemas/BillingDetails"},{"type":"null"}],"description":"Null until they are filled in."}},"required":["billingDetails"],"additionalProperties":false},"BillingDetails":{"type":"object","properties":{"kind":{"type":"string","enum":["personal","business"]},"companyName":{"type":["string","null"]},"contactName":{"type":"string"},"email":{"type":"string"},"phone":{"description":"E.164, such as `+31201234567`; null on details saved before a phone number was required.","type":["string","null"]},"addressLine1":{"type":"string"},"addressLine2":{"type":["string","null"]},"postalCode":{"type":"string"},"city":{"type":"string"},"country":{"type":"string"},"vatNumber":{"type":["string","null"]},"vatNumberCheck":{"anyOf":[{"type":"object","properties":{"status":{"type":"string","enum":["unchecked","valid","invalid"]},"checkedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"registeredName":{"type":["string","null"]}},"required":["status","checkedAt","registeredName"],"additionalProperties":false},{"type":"null"}],"description":"What VIES said about the VAT number, where it decides the VAT: null when the number does not matter (none, Dutch, or outside the EU). `valid` means invoices are reverse-charged."},"cocNumber":{"description":"Chamber of Commerce (KvK) number.","type":["string","null"]},"language":{"type":"string","enum":["en","nl"],"description":"Of the billing mails."},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["kind","companyName","contactName","email","phone","addressLine1","addressLine2","postalCode","city","country","vatNumber","vatNumberCheck","cocNumber","language","updatedAt"],"additionalProperties":false},"DomainClaimPage":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"domain":{"type":"string"},"purpose":{"type":"string","enum":["email","dnszone","webhosting"],"description":"The kind of service it is claimed for."},"status":{"type":"string","enum":["pending","verified","lapsed"]},"record":{"type":"object","properties":{"type":{"type":"string","const":"TXT"},"name":{"type":"string"},"relativeName":{"type":"string","description":"The name within the domain’s own zone."},"value":{"type":"string"}},"required":["type","name","relativeName","value"],"additionalProperties":false,"description":"The record that proves the claim, to publish at the domain’s DNS and leave there."},"automatic":{"type":"boolean","description":"True when the domain’s zone is here and Servur adds the record."},"registeredHere":{"type":"boolean","description":"True when the domain is registered here, proof enough."},"verifiedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"checkedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"seenAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"failingSince":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}],"description":"Set while a verified claim’s proof is missing."},"lapsesAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}],"description":"When it lapses unless the proof comes back."},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"services":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"type":{"type":"string","enum":["email","dnszone","webhosting"]}},"required":["id","name","type"],"additionalProperties":false},"description":"The services that lapse with it."}},"required":["id","domain","purpose","status","record","automatic","registeredHere","verifiedAt","checkedAt","seenAt","failingSince","lapsesAt","createdAt","services"],"additionalProperties":false}},"nextCursor":{"type":["string","null"]}},"required":["items","nextCursor"],"additionalProperties":false},"DomainClaim":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"domain":{"type":"string"},"purpose":{"type":"string","enum":["email","dnszone","webhosting"],"description":"The kind of service it is claimed for."},"status":{"type":"string","enum":["pending","verified","lapsed"]},"record":{"type":"object","properties":{"type":{"type":"string","const":"TXT"},"name":{"type":"string"},"relativeName":{"type":"string","description":"The name within the domain’s own zone."},"value":{"type":"string"}},"required":["type","name","relativeName","value"],"additionalProperties":false,"description":"The record that proves the claim, to publish at the domain’s DNS and leave there."},"automatic":{"type":"boolean","description":"True when the domain’s zone is here and Servur adds the record."},"registeredHere":{"type":"boolean","description":"True when the domain is registered here, proof enough."},"verifiedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"checkedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"seenAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"failingSince":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}],"description":"Set while a verified claim’s proof is missing."},"lapsesAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}],"description":"When it lapses unless the proof comes back."},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","domain","purpose","status","record","automatic","registeredHere","verifiedAt","checkedAt","seenAt","failingSince","lapsesAt","createdAt"],"additionalProperties":false},"DomainClaimCheck":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"domain":{"type":"string"},"purpose":{"type":"string","enum":["email","dnszone","webhosting"],"description":"The kind of service it is claimed for."},"status":{"type":"string","enum":["pending","verified","lapsed"]},"record":{"type":"object","properties":{"type":{"type":"string","const":"TXT"},"name":{"type":"string"},"relativeName":{"type":"string","description":"The name within the domain’s own zone."},"value":{"type":"string"}},"required":["type","name","relativeName","value"],"additionalProperties":false,"description":"The record that proves the claim, to publish at the domain’s DNS and leave there."},"automatic":{"type":"boolean","description":"True when the domain’s zone is here and Servur adds the record."},"registeredHere":{"type":"boolean","description":"True when the domain is registered here, proof enough."},"verifiedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"checkedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"seenAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"failingSince":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}],"description":"Set while a verified claim’s proof is missing."},"lapsesAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}],"description":"When it lapses unless the proof comes back."},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"change":{"anyOf":[{"type":"string","enum":["verified","restored","failing","lapsed"]},{"type":"null"}],"description":"What this check changed; null when nothing did."}},"required":["id","domain","purpose","status","record","automatic","registeredHere","verifiedAt","checkedAt","seenAt","failingSince","lapsesAt","createdAt","change"],"additionalProperties":false},"MemberPage":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Member"}},"nextCursor":{"type":["string","null"]}},"required":["items","nextCursor"],"additionalProperties":false},"Member":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"userId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}],"description":"Null for an invitation not accepted yet."},"name":{"type":["string","null"]},"email":{"type":"string"},"status":{"type":"string","enum":["joined","invited","expired"]},"permissions":{"type":"array","items":{"type":"string"},"description":"`*` is the owner."},"invitedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"joinedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}],"description":"When an open invitation lapses."},"accessEndsAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}],"description":"Set for Servur support given temporary access, until when."}},"required":["id","userId","name","email","status","permissions","invitedAt","joinedAt","expiresAt","accessEndsAt"],"additionalProperties":false},"Invitation":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"email":{"type":"string"},"expiresAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]}},"required":["id","email","expiresAt"],"additionalProperties":false},"MemberPermissions":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"permissions":{"type":"array","items":{"type":"string"}}},"required":["id","permissions"],"additionalProperties":false},"WebhookEvent":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The event's id: the same for every webhook and every try. Deduplicate on it."},"type":{"type":"string","enum":["service.activated","service.renewal-due","service.renewed","service.suspended","service.unsuspended","service.cancelled","service.expired","order.paid","invoice.issued","invoice.paid","dns-zone.changed","domain.transferred","domain.nameservers-changed","mailbox.created","mailbox.deleted","webhook.ping"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"workspaceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"data":{"type":"object","properties":{"serviceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"orderId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"invoiceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"zoneId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"versionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"mailboxId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"additionalProperties":false,"description":"The ids the event is about; read the rest through the API."}},"required":["id","type","createdAt","workspaceId","data"],"additionalProperties":false},"DomainCheckResult":{"type":"object","properties":{"tld":{"type":"string"},"domain":{"type":"string"},"status":{"type":"string","enum":["available","registered","premium","invalid","unknown"],"description":"`registered` can be transferred in; `premium` is priced by the registry; `invalid` is refused by the registry; `unknown` did not answer in time."},"premiumPrice":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}],"description":"The registry's price of a premium name, in its currency."},"source":{"anyOf":[{"type":"string","enum":["realtime-register","adac","rdap"]},{"type":"null"}]}},"required":["tld","domain","status","premiumPrice","source"],"additionalProperties":false}}},"paths":{"/v1/workspace":{"get":{"operationId":"getV1Workspace","tags":["Workspace"],"summary":"The key and its workspace","description":"Which workspace the key belongs to and what it may do. The first call to try a new key with.","security":[{"apiKey":[]}],"responses":{"200":{"description":"The workspace and the key.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceWithKey"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The request comes from an address the key does not allow (`API_KEY_IP_NOT_ALLOWED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}}}},"/v1/services":{"get":{"operationId":"getV1Services","tags":["Services"],"summary":"List services","description":"Every kind of service the workspace holds, newest first, a page at a time.","security":[{"apiKey":[]}],"responses":{"200":{"description":"A page of services.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServicePage"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The request comes from an address the key does not allow (`API_KEY_IP_NOT_ALLOWED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}},"parameters":[{"in":"query","name":"type","schema":{"type":"string","enum":["general","domainname","dnszone","webhosting","email","voip"]}},{"in":"query","name":"status","schema":{"type":"string","enum":["pending","active","suspended","cancelled","expired"]}},{"in":"query","name":"cursor","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},{"in":"query","name":"limit","schema":{"default":50,"type":"integer","minimum":1,"maximum":100}}]}},"/v1/services/{serviceId}":{"get":{"operationId":"getV1ServicesByServiceId","tags":["Services"],"summary":"Get a service","security":[{"apiKey":[]}],"responses":{"200":{"description":"The service.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Service"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The request comes from an address the key does not allow (`API_KEY_IP_NOT_ALLOWED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}},"parameters":[{"in":"path","name":"serviceId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}]}},"/v1/dns-zones":{"get":{"operationId":"getV1DnsZones","tags":["DNS"],"summary":"List DNS zones","description":"The zones on our nameservers, newest first: the ones whose records the API can change.","security":[{"apiKey":[]}],"responses":{"200":{"description":"A page of zones.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DnsZonePage"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The request comes from an address the key does not allow (`API_KEY_IP_NOT_ALLOWED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}},"parameters":[{"in":"query","name":"cursor","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},{"in":"query","name":"limit","schema":{"default":50,"type":"integer","minimum":1,"maximum":100}}]}},"/v1/dns-zones/{zoneId}":{"get":{"operationId":"getV1DnsZonesByZoneId","tags":["DNS"],"summary":"Get a DNS zone with its records","security":[{"apiKey":[]}],"responses":{"200":{"description":"The zone and its records.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DnsZone"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The request comes from an address the key does not allow (`API_KEY_IP_NOT_ALLOWED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}},"parameters":[{"in":"path","name":"zoneId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}]}},"/v1/dns-zones/{zoneId}/records":{"post":{"operationId":"postV1DnsZonesByZoneIdRecords","tags":["DNS"],"summary":"Add a DNS record","description":"Checked against the zone's plan, kept as a new version of the zone, and published to the nameservers.","security":[{"apiKey":[]}],"x-permission":"services:manage","parameters":[{"in":"header","name":"Idempotency-Key","required":false,"description":"Any unique string up to 255 characters. The same request sent again with it within a day gets the first answer, with `Idempotent-Replayed: true`, instead of being done twice. Another request with the same key is refused.","schema":{"type":"string","maxLength":255}},{"in":"path","name":"zoneId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}],"responses":{"201":{"description":"The new record.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Created"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the `services:manage` permission, or the request comes from an address it does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The record exists already, or the plan holds no more records. The `Idempotency-Key` was used for another request (`IDEMPOTENCY_KEY_REUSED`), or its first request is still running (`IDEMPOTENCY_KEY_IN_PROGRESS`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"502":{"description":"The nameservers did not take the change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["A","AAAA","CNAME","MX","TXT","NS","SRV","CAA","HTTPS","SVCB","TLSA","NAPTR","SSHFP","DS"]},"name":{"type":"string","minLength":1,"maxLength":253,"pattern":"^(?:@|\\*|(?:[a-z0-9_*](?:[a-z0-9_-]*[a-z0-9])?)(?:\\.[a-z0-9_](?:[a-z0-9_-]*[a-z0-9])?)*)$"},"value":{"type":"string","minLength":1,"maxLength":4096},"ttl":{"type":"integer","minimum":60,"maximum":604800},"priority":{"anyOf":[{"type":"integer","minimum":0,"maximum":65535},{"type":"null"}]}},"required":["type","name","value","ttl","priority"]}}}}},"put":{"operationId":"putV1DnsZonesByZoneIdRecords","tags":["DNS"],"summary":"Replace all DNS records","description":"Sets the zone's records to exactly this set, in one version. Pass the zone's `versionId` as `baseVersionId`: when the zone changed since, nothing is changed and the answer is 409. Records Servur manages for a service may be put back by that service.","security":[{"apiKey":[]}],"x-permission":"services:manage","parameters":[{"in":"header","name":"Idempotency-Key","required":false,"description":"Any unique string up to 255 characters. The same request sent again with it within a day gets the first answer, with `Idempotent-Replayed: true`, instead of being done twice. Another request with the same key is refused.","schema":{"type":"string","maxLength":255}},{"in":"path","name":"zoneId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}],"responses":{"200":{"description":"The version the records are now.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DnsZoneVersionRef"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the `services:manage` permission, or the request comes from an address it does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The zone changed since `baseVersionId`, the set has a record twice, or it holds more than the plan allows. The `Idempotency-Key` was used for another request (`IDEMPOTENCY_KEY_REUSED`), or its first request is still running (`IDEMPOTENCY_KEY_IN_PROGRESS`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"502":{"description":"The nameservers did not take the change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"baseVersionId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},{"type":"null"}]},"records":{"maxItems":1000,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["A","AAAA","CNAME","MX","TXT","NS","SRV","CAA","HTTPS","SVCB","TLSA","NAPTR","SSHFP","DS"]},"name":{"type":"string","minLength":1,"maxLength":253,"pattern":"^(?:@|\\*|(?:[a-z0-9_*](?:[a-z0-9_-]*[a-z0-9])?)(?:\\.[a-z0-9_](?:[a-z0-9_-]*[a-z0-9])?)*)$"},"value":{"type":"string","minLength":1,"maxLength":4096},"ttl":{"type":"integer","minimum":60,"maximum":604800},"priority":{"anyOf":[{"type":"integer","minimum":0,"maximum":65535},{"type":"null"}]}},"required":["type","name","value","ttl","priority"]}}},"required":["baseVersionId","records"]}}}}}},"/v1/dns-zones/{zoneId}/records/{recordId}":{"put":{"operationId":"putV1DnsZonesByZoneIdRecordsByRecordId","tags":["DNS"],"summary":"Replace a DNS record","description":"The whole record, as adding one takes it.","security":[{"apiKey":[]}],"x-permission":"services:manage","parameters":[{"in":"header","name":"Idempotency-Key","required":false,"description":"Any unique string up to 255 characters. The same request sent again with it within a day gets the first answer, with `Idempotent-Replayed: true`, instead of being done twice. Another request with the same key is refused.","schema":{"type":"string","maxLength":255}},{"in":"path","name":"zoneId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true},{"in":"path","name":"recordId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}],"responses":{"200":{"description":"The record.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Created"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the `services:manage` permission, or the request comes from an address it does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"An identical record exists already. The `Idempotency-Key` was used for another request (`IDEMPOTENCY_KEY_REUSED`), or its first request is still running (`IDEMPOTENCY_KEY_IN_PROGRESS`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"502":{"description":"The nameservers did not take the change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["A","AAAA","CNAME","MX","TXT","NS","SRV","CAA","HTTPS","SVCB","TLSA","NAPTR","SSHFP","DS"]},"name":{"type":"string","minLength":1,"maxLength":253,"pattern":"^(?:@|\\*|(?:[a-z0-9_*](?:[a-z0-9_-]*[a-z0-9])?)(?:\\.[a-z0-9_](?:[a-z0-9_-]*[a-z0-9])?)*)$"},"value":{"type":"string","minLength":1,"maxLength":4096},"ttl":{"type":"integer","minimum":60,"maximum":604800},"priority":{"anyOf":[{"type":"integer","minimum":0,"maximum":65535},{"type":"null"}]}},"required":["type","name","value","ttl","priority"]}}}}},"delete":{"operationId":"deleteV1DnsZonesByZoneIdRecordsByRecordId","tags":["DNS"],"summary":"Delete a DNS record","security":[{"apiKey":[]}],"x-permission":"services:manage","parameters":[{"in":"header","name":"Idempotency-Key","required":false,"description":"Any unique string up to 255 characters. The same request sent again with it within a day gets the first answer, with `Idempotent-Replayed: true`, instead of being done twice. Another request with the same key is refused.","schema":{"type":"string","maxLength":255}},{"in":"path","name":"zoneId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true},{"in":"path","name":"recordId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}],"responses":{"204":{"description":"The record is gone."},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the `services:manage` permission, or the request comes from an address it does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The `Idempotency-Key` was used for another request (`IDEMPOTENCY_KEY_REUSED`), or its first request is still running (`IDEMPOTENCY_KEY_IN_PROGRESS`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"502":{"description":"The nameservers did not take the change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/dns-zones/{zoneId}/versions":{"get":{"operationId":"getV1DnsZonesByZoneIdVersions","tags":["DNS"],"summary":"List versions of a DNS zone","description":"Every change to the records left a version, newest first. Older ones are cleaned up after a while.","security":[{"apiKey":[]}],"responses":{"200":{"description":"A page of versions.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DnsZoneVersionPage"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The request comes from an address the key does not allow (`API_KEY_IP_NOT_ALLOWED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}},"parameters":[{"in":"path","name":"zoneId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true},{"in":"query","name":"cursor","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},{"in":"query","name":"limit","schema":{"default":50,"type":"integer","minimum":1,"maximum":100}}]}},"/v1/dns-zones/{zoneId}/versions/{versionId}":{"get":{"operationId":"getV1DnsZonesByZoneIdVersionsByVersionId","tags":["DNS"],"summary":"Get a version of a DNS zone","description":"The records as they were in that version.","security":[{"apiKey":[]}],"responses":{"200":{"description":"The version.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DnsZoneVersion"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The request comes from an address the key does not allow (`API_KEY_IP_NOT_ALLOWED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}},"parameters":[{"in":"path","name":"zoneId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true},{"in":"path","name":"versionId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}]}},"/v1/dns-zones/{zoneId}/versions/{versionId}/restore":{"post":{"operationId":"postV1DnsZonesByZoneIdVersionsByVersionIdRestore","tags":["DNS"],"summary":"Roll a DNS zone back to a version","description":"Puts the records back as they were in that version, as a new version. Pass the zone's current `versionId` as `baseVersionId`.","security":[{"apiKey":[]}],"x-permission":"services:manage","parameters":[{"in":"header","name":"Idempotency-Key","required":false,"description":"Any unique string up to 255 characters. The same request sent again with it within a day gets the first answer, with `Idempotent-Replayed: true`, instead of being done twice. Another request with the same key is refused.","schema":{"type":"string","maxLength":255}},{"in":"path","name":"zoneId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true},{"in":"path","name":"versionId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}],"responses":{"200":{"description":"The new version.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DnsZoneVersionRef"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the `services:manage` permission, or the request comes from an address it does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The zone changed since `baseVersionId`, or the version holds more than the plan allows now. The `Idempotency-Key` was used for another request (`IDEMPOTENCY_KEY_REUSED`), or its first request is still running (`IDEMPOTENCY_KEY_IN_PROGRESS`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"502":{"description":"The nameservers did not take the change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"baseVersionId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},{"type":"null"}]}},"required":["baseVersionId"]}}}}}},"/v1/domains":{"get":{"operationId":"getV1Domains","tags":["Domains"],"summary":"List domain names","description":"The domain names of the workspace, as services. Get one for its registration details.","security":[{"apiKey":[]}],"responses":{"200":{"description":"A page of domain names.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServicePage"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The request comes from an address the key does not allow (`API_KEY_IP_NOT_ALLOWED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}},"parameters":[{"in":"query","name":"status","schema":{"type":"string","enum":["pending","active","suspended","cancelled","expired"]}},{"in":"query","name":"cursor","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},{"in":"query","name":"limit","schema":{"default":50,"type":"integer","minimum":1,"maximum":100}}]}},"/v1/domains/{domainId}":{"get":{"operationId":"getV1DomainsByDomainId","tags":["Domains"],"summary":"Get a domain name","description":"Its registration dates, where it is delegated, and the zone that holds it here, if any.","security":[{"apiKey":[]}],"responses":{"200":{"description":"The domain name.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Domain"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The request comes from an address the key does not allow (`API_KEY_IP_NOT_ALLOWED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}},"parameters":[{"in":"path","name":"domainId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}]}},"/v1/domains/{domainId}/nameservers":{"put":{"operationId":"putV1DomainsByDomainIdNameservers","tags":["Domains"],"summary":"Change the nameservers","description":"`{ \"mode\": \"servur\" }` for our nameservers, or `{ \"mode\": \"custom\", \"nameservers\": [...] }` for two to six others. A move between ours and anybody else's turns DNSSEC off first.","security":[{"apiKey":[]}],"x-permission":"services:manage","parameters":[{"in":"header","name":"Idempotency-Key","required":false,"description":"Any unique string up to 255 characters. The same request sent again with it within a day gets the first answer, with `Idempotent-Replayed: true`, instead of being done twice. Another request with the same key is refused.","schema":{"type":"string","maxLength":255}},{"in":"path","name":"domainId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}],"responses":{"200":{"description":"The nameservers now set.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NameserversResult"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the `services:manage` permission, or the request comes from an address it does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The domain is not registered yet, or its zone is held elsewhere. The `Idempotency-Key` was used for another request (`IDEMPOTENCY_KEY_REUSED`), or its first request is still running (`IDEMPOTENCY_KEY_IN_PROGRESS`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"502":{"description":"The registry or the nameservers did not take the change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","const":"servur"}},"required":["mode"]},{"type":"object","properties":{"mode":{"type":"string","const":"custom"},"nameservers":{"minItems":2,"maxItems":6,"type":"array","items":{"type":"string"}}},"required":["mode","nameservers"]}]}}}}}},"/v1/domains/{domainId}/auth-code":{"post":{"operationId":"postV1DomainsByDomainIdAuthCode","tags":["Domains"],"summary":"Get the auth code","description":"The code that moves the domain to another registrar. Written to the workspace's activity log every time.","security":[{"apiKey":[]}],"x-permission":"services:transfer","parameters":[{"in":"header","name":"Idempotency-Key","required":false,"description":"Any unique string up to 255 characters. The same request sent again with it within a day gets the first answer, with `Idempotent-Replayed: true`, instead of being done twice. Another request with the same key is refused.","schema":{"type":"string","maxLength":255}},{"in":"path","name":"domainId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}],"responses":{"200":{"description":"The auth code.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthCode"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the `services:transfer` permission, or the request comes from an address it does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The domain is not registered yet. The `Idempotency-Key` was used for another request (`IDEMPOTENCY_KEY_REUSED`), or its first request is still running (`IDEMPOTENCY_KEY_IN_PROGRESS`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"502":{"description":"The registry did not answer.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/invoices":{"get":{"operationId":"getV1Invoices","tags":["Invoices"],"summary":"List invoices","description":"Invoices and credit notes that were sent, newest first. `status` filters with `credit-` in front for credit notes.","security":[{"apiKey":[]}],"responses":{"200":{"description":"A page of invoices.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoicePage"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The request comes from an address the key does not allow (`API_KEY_IP_NOT_ALLOWED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}},"parameters":[{"in":"query","name":"status","schema":{"type":"string","enum":["open","paid","void","credit-open","credit-paid","credit-void"]}},{"in":"query","name":"cursor","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},{"in":"query","name":"limit","schema":{"default":50,"type":"integer","minimum":1,"maximum":100}}]}},"/v1/invoices/{invoiceId}":{"get":{"operationId":"getV1InvoicesByInvoiceId","tags":["Invoices"],"summary":"Get an invoice with its lines","security":[{"apiKey":[]}],"responses":{"200":{"description":"The invoice.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Invoice"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The request comes from an address the key does not allow (`API_KEY_IP_NOT_ALLOWED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}},"parameters":[{"in":"path","name":"invoiceId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}]}},"/v1/invoices/{invoiceId}/pdf":{"get":{"operationId":"getV1InvoicesByInvoiceIdPdf","tags":["Invoices"],"summary":"Download an invoice as PDF","security":[{"apiKey":[]}],"responses":{"200":{"description":"The PDF.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/pdf":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The request comes from an address the key does not allow (`API_KEY_IP_NOT_ALLOWED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}},"parameters":[{"in":"path","name":"invoiceId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}]}},"/v1/balance":{"get":{"operationId":"getV1Balance","tags":["Invoices"],"summary":"Get the balance","description":"What the workspace has on its balance, without VAT, to pay orders and renewals with. The balance pays what an order costs without VAT, as its VAT was invoiced with the top-up.","security":[{"apiKey":[]}],"responses":{"200":{"description":"The balance.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Balance"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The request comes from an address the key does not allow (`API_KEY_IP_NOT_ALLOWED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}}}},"/v1/availability":{"get":{"operationId":"getV1Availability","tags":["Ordering"],"summary":"Check whether a domain name is available","description":"Asks the registries, as the search on the website does, with the workspace's prices. `invalid` also for an extension Servur does not sell.","security":[{"apiKey":[]}],"responses":{"200":{"description":"The availability.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Availability"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The request comes from an address the key does not allow (`API_KEY_IP_NOT_ALLOWED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}},"parameters":[{"in":"query","name":"domain","schema":{"type":"string","minLength":3,"maxLength":253},"required":true}]}},"/v1/domain-searches":{"post":{"operationId":"postV1DomainSearches","tags":["Ordering"],"summary":"Search a domain name under every extension","description":"The search on the website: a bare name is tried under every extension on sale, one with an extension only under that one. Names held at Servur are answered at once; the rest are `pending`, and their status comes from one of the signed `query.urls`, whichever fits the client: plain JSON, server-sent events or a WebSocket. The URLs need no API key and expire after about 30 seconds. At most 20 searches per key a minute.","security":[{"apiKey":[]}],"responses":{"201":{"description":"The search, with the URLs to get its statuses from.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainSearch"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The request comes from an address the key does not allow (`API_KEY_IP_NOT_ALLOWED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","minLength":1,"maxLength":253}},"required":["query"]}}}}}},"/v1/domain-holders":{"get":{"operationId":"getV1DomainHolders","tags":["Ordering"],"summary":"List domain holders","description":"The people and organisations a domain name can be registered to. Pass one as `holderId` when ordering, or leave it out for the default holder of the workspace; add them in the dashboard.","security":[{"apiKey":[]}],"responses":{"200":{"description":"The holders.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainHolderList"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The request comes from an address the key does not allow (`API_KEY_IP_NOT_ALLOWED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}}},"post":{"operationId":"postV1DomainHolders","tags":["Account"],"summary":"Add a domain holder","description":"A person or organisation domain names can be registered to. `phone` with its country code, stored as E.164: `+31201234567`; `country` as two letters.","security":[{"apiKey":[]}],"x-permission":"account:manage","parameters":[{"in":"header","name":"Idempotency-Key","required":false,"description":"Any unique string up to 255 characters. The same request sent again with it within a day gets the first answer, with `Idempotent-Replayed: true`, instead of being done twice. Another request with the same key is refused.","schema":{"type":"string","maxLength":255}}],"responses":{"201":{"description":"The new holder.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainHolderDetails"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the `account:manage` permission, or the request comes from an address it does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The `Idempotency-Key` was used for another request (`IDEMPOTENCY_KEY_REUSED`), or its first request is still running (`IDEMPOTENCY_KEY_IN_PROGRESS`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"organization":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"phone":{"type":"string"},"addressLine1":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20},"city":{"type":"string","minLength":1,"maxLength":120},"country":{"type":"string","pattern":"^[A-Z]{2}$"}},"required":["name","organization","email","phone","addressLine1","postalCode","city","country"]}}}}}},"/v1/products":{"get":{"operationId":"getV1Products","tags":["Ordering"],"summary":"List products","description":"Everything for sale, with this workspace's prices: its own rates where it has them, list prices otherwise. Pass a product's `id` as `productId` when ordering; domain names are ordered by name instead. Names and descriptions are in the language `Accept-Language` asks for, Dutch or English, and English otherwise.","security":[{"apiKey":[]}],"responses":{"200":{"description":"The products.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductList"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The request comes from an address the key does not allow (`API_KEY_IP_NOT_ALLOWED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}},"parameters":[{"in":"query","name":"type","schema":{"type":"string","enum":["general","domainname","dnszone","webhosting","email","voip"]}}]}},"/v1/orders":{"post":{"operationId":"postV1Orders","tags":["Ordering"],"summary":"Order products","description":"Orders anything for sale and pays at once: from the balance (its subtotal without VAT, see `POST /v1/orders/{orderId}/payment`) or by direct debit for a workspace allowed it (also as the fallback when the balance is too little). Nothing is set up before it is paid, or charged by direct debit. Domain names by name (registered when free, or transferred in with their `transferCode`); everything else by its `productId` from `GET /v1/products`, with the `type` of that product. Needs both `services:manage` and `billing:manage`. Nothing is ordered when anything is refused. The services are set up after the answer; follow them with the `service.activated` webhook or `GET /v1/services`. A 400 with `ORDER_INCOMPLETE_ERROR` carries `problems`: per item, what is missing, such as `holder`, `domain`, `addresses`, or `unavailable` for an interval the product has no price for. `PRODUCT_NOT_SOLD_ERROR` is a product that is not for sale or not of the item's type; `DISCOUNT_NOT_FOUND_ERROR` a `discountCode` that does not work now.","security":[{"apiKey":[]}],"x-permission":"billing:manage","parameters":[{"in":"header","name":"Idempotency-Key","required":false,"description":"Any unique string up to 255 characters. The same request sent again with it within a day gets the first answer, with `Idempotent-Replayed: true`, instead of being done twice. Another request with the same key is refused.","schema":{"type":"string","maxLength":255}}],"responses":{"201":{"description":"The order, paid.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Order"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the `billing:manage` permission, or the request comes from an address it does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Not enough balance (and no direct debit to fall back on), direct debit not allowed, over its limits or without a mandate, a domain that is not free, the price is not `expectedTotal`, a `discountCode` that is used up or for none of the products (`DISCOUNT_NOT_APPLICABLE_ERROR`), or no billing details yet. The `Idempotency-Key` was used for another request (`IDEMPOTENCY_KEY_REUSED`), or its first request is still running (`IDEMPOTENCY_KEY_IN_PROGRESS`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"items":{"minItems":1,"maxItems":20,"type":"array","items":{"oneOf":[{"$ref":"#/components/schemas/DomainOrderItem"},{"$ref":"#/components/schemas/WebhostingOrderItem"},{"$ref":"#/components/schemas/EmailOrderItem"},{"$ref":"#/components/schemas/DnsZoneOrderItem"},{"$ref":"#/components/schemas/VoipOrderItem"},{"$ref":"#/components/schemas/GeneralOrderItem"}]}},"payment":{"type":"string","enum":["balance","direct-debit"],"description":"`balance` pays the subtotal without VAT, as the balance was invoiced with VAT when topped up, and falls back on direct debit when the balance is too little and the workspace may pay orders that way. `direct-debit` only for a workspace Servur allowed it, within its limits and with a mandate; the order starts at once and its invoice is collected."},"discountCode":{"description":"A discount code, checked against this order as at checkout in the dashboard.","type":"string","minLength":1,"maxLength":64},"expectedTotal":{"description":"The total you expect, with VAT: when the price is another, nothing is ordered.","type":"integer","minimum":0,"maximum":9007199254740991}},"required":["items","payment"]}}}}},"get":{"operationId":"getV1Orders","tags":["Ordering"],"summary":"List orders","description":"The workspace's orders, newest first. `status=pending` lists what waits to be paid, renewals among them.","security":[{"apiKey":[]}],"responses":{"200":{"description":"A page of orders.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderPage"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The request comes from an address the key does not allow (`API_KEY_IP_NOT_ALLOWED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}},"parameters":[{"in":"query","name":"status","schema":{"type":"string","enum":["pending","paid","cancelled"]}},{"in":"query","name":"cursor","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},{"in":"query","name":"limit","schema":{"default":50,"type":"integer","minimum":1,"maximum":100}}]}},"/v1/orders/{orderId}":{"get":{"operationId":"getV1OrdersByOrderId","tags":["Ordering"],"summary":"Get an order with its lines","security":[{"apiKey":[]}],"responses":{"200":{"description":"The order.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Order"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The request comes from an address the key does not allow (`API_KEY_IP_NOT_ALLOWED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}},"parameters":[{"in":"path","name":"orderId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}]}},"/v1/orders/{orderId}/payment":{"post":{"operationId":"postV1OrdersByOrderIdPayment","tags":["Ordering"],"summary":"Pay a pending order","description":"Pays an order that waits to be paid, from the balance or by direct debit. `balance` pays the subtotal without VAT, as the balance was invoiced with VAT when topped up, and the order gets a `credit` line taking it and its VAT off again; it falls back on direct debit when the balance is too little and the workspace may pay orders that way. Renewals are not orders: they are billed two weeks before the period ends and come on an invoice, see `POST /v1/invoices/{invoiceId}/payment`.","security":[{"apiKey":[]}],"x-permission":"billing:manage","parameters":[{"in":"header","name":"Idempotency-Key","required":false,"description":"Any unique string up to 255 characters. The same request sent again with it within a day gets the first answer, with `Idempotent-Replayed: true`, instead of being done twice. Another request with the same key is refused.","schema":{"type":"string","maxLength":255}},{"in":"path","name":"orderId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}],"responses":{"200":{"description":"The order, paid.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Order"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the `billing:manage` permission, or the request comes from an address it does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The order is paid or cancelled already, not enough balance (and no direct debit to fall back on), direct debit not allowed, over its limits or or without a mandate. The `Idempotency-Key` was used for another request (`IDEMPOTENCY_KEY_REUSED`), or its first request is still running (`IDEMPOTENCY_KEY_IN_PROGRESS`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"payment":{"type":"string","enum":["balance","direct-debit"]}},"required":["payment"]}}}}}},"/v1/email/{serviceId}":{"get":{"operationId":"getV1EmailByServiceId","tags":["Email"],"summary":"Get an email package with its mailboxes","description":"The service id is one of type `email` from `GET /v1/services`.","security":[{"apiKey":[]}],"responses":{"200":{"description":"The package and its mailboxes.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailPackage"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The request comes from an address the key does not allow (`API_KEY_IP_NOT_ALLOWED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"502":{"description":"The mail server did not answer.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"in":"path","name":"serviceId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}]}},"/v1/email/{serviceId}/mailboxes":{"post":{"operationId":"postV1EmailByServiceIdMailboxes","tags":["Email"],"summary":"Create a mailbox","description":"As many as the package holds. The password, at least 12 characters, goes to the mail server and is never stored by Servur.","security":[{"apiKey":[]}],"x-permission":"services:manage","parameters":[{"in":"header","name":"Idempotency-Key","required":false,"description":"Any unique string up to 255 characters. The same request sent again with it within a day gets the first answer, with `Idempotent-Replayed: true`, instead of being done twice. Another request with the same key is refused.","schema":{"type":"string","maxLength":255}},{"in":"path","name":"serviceId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}],"responses":{"201":{"description":"The new mailbox.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatedMailbox"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the `services:manage` permission, or the request comes from an address it does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The address exists already, the package holds no more mailboxes, or it is not active. The `Idempotency-Key` was used for another request (`IDEMPOTENCY_KEY_REUSED`), or its first request is still running (`IDEMPOTENCY_KEY_IN_PROGRESS`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"502":{"description":"The mail server did not take it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"localPart":{"type":"string","pattern":"^[a-z0-9](?:[a-z0-9._-]{0,62}[a-z0-9])?$"},"displayName":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"password":{"type":"string","minLength":12,"maxLength":256}},"required":["localPart","displayName","password"]}}}}}},"/v1/email/{serviceId}/mailboxes/{mailboxId}":{"delete":{"operationId":"deleteV1EmailByServiceIdMailboxesByMailboxId","tags":["Email"],"summary":"Delete a mailbox","description":"With all mail in it, for good.","security":[{"apiKey":[]}],"x-permission":"services:manage","parameters":[{"in":"header","name":"Idempotency-Key","required":false,"description":"Any unique string up to 255 characters. The same request sent again with it within a day gets the first answer, with `Idempotent-Replayed: true`, instead of being done twice. Another request with the same key is refused.","schema":{"type":"string","maxLength":255}},{"in":"path","name":"serviceId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true},{"in":"path","name":"mailboxId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}],"responses":{"204":{"description":"The mailbox is gone."},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the `services:manage` permission, or the request comes from an address it does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The `Idempotency-Key` was used for another request (`IDEMPOTENCY_KEY_REUSED`), or its first request is still running (`IDEMPOTENCY_KEY_IN_PROGRESS`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"502":{"description":"The mail server did not take it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"put":{"operationId":"putV1EmailByServiceIdMailboxesByMailboxId","tags":["Email"],"summary":"Change a mailbox","description":"Its display name (null or empty for none), and its password when `password` is sent, at least 12 characters. Left out, the password stays.","security":[{"apiKey":[]}],"x-permission":"services:manage","parameters":[{"in":"header","name":"Idempotency-Key","required":false,"description":"Any unique string up to 255 characters. The same request sent again with it within a day gets the first answer, with `Idempotent-Replayed: true`, instead of being done twice. Another request with the same key is refused.","schema":{"type":"string","maxLength":255}},{"in":"path","name":"serviceId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true},{"in":"path","name":"mailboxId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}],"responses":{"200":{"description":"The mailbox is changed.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatedMailbox"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the `services:manage` permission, or the request comes from an address it does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The package is not active. The `Idempotency-Key` was used for another request (`IDEMPOTENCY_KEY_REUSED`), or its first request is still running (`IDEMPOTENCY_KEY_IN_PROGRESS`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"502":{"description":"The mail server did not take it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"displayName":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"password":{"type":"string","minLength":12,"maxLength":256}},"required":["displayName"]}}}}}},"/v1/subscriptions/{subscriptionId}":{"get":{"operationId":"getV1SubscriptionsBySubscriptionId","tags":["Subscriptions"],"summary":"Get a subscription","description":"A service's billing: its period, renewal, and any cancellation or plan change waiting. Every service is one; its id is the service's.","security":[{"apiKey":[]}],"responses":{"200":{"description":"The subscription.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Subscription"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The request comes from an address the key does not allow (`API_KEY_IP_NOT_ALLOWED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}},"parameters":[{"in":"path","name":"subscriptionId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}]}},"/v1/subscriptions/{subscriptionId}/plan-options":{"get":{"operationId":"getV1SubscriptionsBySubscriptionIdPlanOptions","tags":["Subscriptions"],"summary":"List plan options","description":"What the subscription can change to, at the prices this workspace pays: other plans of the same kind, other billing periods, and whether the number of units can change.","security":[{"apiKey":[]}],"responses":{"200":{"description":"The options.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanOptions"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The request comes from an address the key does not allow (`API_KEY_IP_NOT_ALLOWED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}},"parameters":[{"in":"path","name":"subscriptionId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}]}},"/v1/subscriptions/{subscriptionId}/cancel":{"post":{"operationId":"postV1SubscriptionsBySubscriptionIdCancel","tags":["Subscriptions"],"summary":"Cancel a subscription","description":"Stops the subscription at the end of its current period: it is not renewed, and runs until `cancelAt`. Take it back with `POST .../resume` before then.","security":[{"apiKey":[]}],"x-permission":"services:manage","parameters":[{"in":"header","name":"Idempotency-Key","required":false,"description":"Any unique string up to 255 characters. The same request sent again with it within a day gets the first answer, with `Idempotent-Replayed: true`, instead of being done twice. Another request with the same key is refused.","schema":{"type":"string","maxLength":255}},{"in":"path","name":"subscriptionId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}],"responses":{"200":{"description":"When it stops.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Cancellation"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the `services:manage` permission, or the request comes from an address it does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"It has ended already (`SUBSCRIPTION_ENDED_ERROR`), or a payment for it is under way. The `Idempotency-Key` was used for another request (`IDEMPOTENCY_KEY_REUSED`), or its first request is still running (`IDEMPOTENCY_KEY_IN_PROGRESS`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}}}},"/v1/subscriptions/{subscriptionId}/resume":{"post":{"operationId":"postV1SubscriptionsBySubscriptionIdResume","tags":["Subscriptions"],"summary":"Withdraw a cancellation","description":"Takes back a cancellation while the subscription still runs: it renews again.","security":[{"apiKey":[]}],"x-permission":"services:manage","parameters":[{"in":"header","name":"Idempotency-Key","required":false,"description":"Any unique string up to 255 characters. The same request sent again with it within a day gets the first answer, with `Idempotent-Replayed: true`, instead of being done twice. Another request with the same key is refused.","schema":{"type":"string","maxLength":255}},{"in":"path","name":"subscriptionId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}],"responses":{"204":{"description":"It renews again."},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the `services:manage` permission, or the request comes from an address it does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"It has ended already (`SUBSCRIPTION_ENDED_ERROR`). The `Idempotency-Key` was used for another request (`IDEMPOTENCY_KEY_REUSED`), or its first request is still running (`IDEMPOTENCY_KEY_IN_PROGRESS`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}}}},"/v1/subscriptions/{subscriptionId}/plan":{"post":{"operationId":"postV1SubscriptionsBySubscriptionIdPlan","tags":["Subscriptions"],"summary":"Change the plan","description":"Moves the subscription to another plan from `GET .../plan-options`. An upgrade comes back with the order for the rest of this period: it takes effect once that is paid (`POST /v1/orders/{orderId}/payment`), or at once when nothing is due. A downgrade takes effect at the end of the period. Needs both `services:manage` and `billing:manage`. A 404 with `PLAN_NOT_AVAILABLE_ERROR` for a plan it cannot move to; a 400 with `BILLING_PROFILE_REQUIRED_ERROR` without billing details.","security":[{"apiKey":[]}],"x-permission":"billing:manage","parameters":[{"in":"header","name":"Idempotency-Key","required":false,"description":"Any unique string up to 255 characters. The same request sent again with it within a day gets the first answer, with `Idempotent-Replayed: true`, instead of being done twice. Another request with the same key is refused.","schema":{"type":"string","maxLength":255}},{"in":"path","name":"subscriptionId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}],"responses":{"200":{"description":"The change.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanChange"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the `billing:manage` permission, or the request comes from an address it does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The plan cannot change now: not running, cancelled, too close to its renewal, or a payment for it is under way. The `Idempotency-Key` was used for another request (`IDEMPOTENCY_KEY_REUSED`), or its first request is still running (`IDEMPOTENCY_KEY_IN_PROGRESS`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"productId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["productId"]}}}}}},"/v1/subscriptions/{subscriptionId}/period":{"post":{"operationId":"postV1SubscriptionsBySubscriptionIdPeriod","tags":["Subscriptions"],"summary":"Change the billing period","description":"Bills the subscription by another period from `GET .../plan-options` (`periods[].price.id`), from the end of the current one. Passing the price it renews at now withdraws a move waiting. A 404 with `PLAN_NOT_AVAILABLE_ERROR` for a price it cannot move to.","security":[{"apiKey":[]}],"x-permission":"services:manage","parameters":[{"in":"header","name":"Idempotency-Key","required":false,"description":"Any unique string up to 255 characters. The same request sent again with it within a day gets the first answer, with `Idempotent-Replayed: true`, instead of being done twice. Another request with the same key is refused.","schema":{"type":"string","maxLength":255}},{"in":"path","name":"subscriptionId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}],"responses":{"200":{"description":"The change.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PeriodChange"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the `services:manage` permission, or the request comes from an address it does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The period cannot change now: not running, cancelled, too close to its renewal, or a payment for it is under way. The `Idempotency-Key` was used for another request (`IDEMPOTENCY_KEY_REUSED`), or its first request is still running (`IDEMPOTENCY_KEY_IN_PROGRESS`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"productPriceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["productPriceId"]}}}}}},"/v1/subscriptions/{subscriptionId}/quantity":{"post":{"operationId":"postV1SubscriptionsBySubscriptionIdQuantity","tags":["Subscriptions"],"summary":"Change the number of units","description":"More or fewer units, such as mailboxes, where `GET .../plan-options` says `quantity.adjustable`. More come back with the order for the rest of this period and are added once it is paid (`POST /v1/orders/{orderId}/payment`); fewer take effect from the next period. The current number withdraws a reduction waiting. Needs both `services:manage` and `billing:manage`. A 400 with `BILLING_PROFILE_REQUIRED_ERROR` without billing details.","security":[{"apiKey":[]}],"x-permission":"billing:manage","parameters":[{"in":"header","name":"Idempotency-Key","required":false,"description":"Any unique string up to 255 characters. The same request sent again with it within a day gets the first answer, with `Idempotent-Replayed: true`, instead of being done twice. Another request with the same key is refused.","schema":{"type":"string","maxLength":255}},{"in":"path","name":"subscriptionId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}],"responses":{"200":{"description":"The change.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuantityChange"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the `billing:manage` permission, or the request comes from an address it does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The number cannot change now: not running, cancelled, too close to its renewal, or a payment for it is under way. The `Idempotency-Key` was used for another request (`IDEMPOTENCY_KEY_REUSED`), or its first request is still running (`IDEMPOTENCY_KEY_IN_PROGRESS`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quantity":{"type":"integer","minimum":1,"maximum":1000}},"required":["quantity"]}}}}}},"/v1/subscriptions/{subscriptionId}/scheduled-change":{"delete":{"operationId":"deleteV1SubscriptionsBySubscriptionIdScheduledChange","tags":["Subscriptions"],"summary":"Withdraw a scheduled change","description":"Takes back every change waiting for the next period (another plan, another period, fewer units): it renews as it is now. A 404 with `NO_SCHEDULED_CHANGE_ERROR` when nothing waits.","security":[{"apiKey":[]}],"x-permission":"services:manage","parameters":[{"in":"header","name":"Idempotency-Key","required":false,"description":"Any unique string up to 255 characters. The same request sent again with it within a day gets the first answer, with `Idempotent-Replayed: true`, instead of being done twice. Another request with the same key is refused.","schema":{"type":"string","maxLength":255}},{"in":"path","name":"subscriptionId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}],"responses":{"204":{"description":"Nothing waits any more."},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the `services:manage` permission, or the request comes from an address it does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"A payment for it is under way. The `Idempotency-Key` was used for another request (`IDEMPOTENCY_KEY_REUSED`), or its first request is still running (`IDEMPOTENCY_KEY_IN_PROGRESS`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}}}},"/v1/transfers":{"get":{"operationId":"getV1Transfers","tags":["Transfers"],"summary":"List transfers","description":"Transfers of services out of this workspace and into it, newest first.","security":[{"apiKey":[]}],"responses":{"200":{"description":"A page of transfers.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransferPage"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The request comes from an address the key does not allow (`API_KEY_IP_NOT_ALLOWED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}},"parameters":[{"in":"query","name":"cursor","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},{"in":"query","name":"limit","schema":{"default":50,"type":"integer","minimum":1,"maximum":100}}]},"post":{"operationId":"postV1Transfers","tags":["Transfers"],"summary":"Start a transfer","description":"Issues a transfer code for services of this workspace (the services they depend on come along). The receiving workspace enters it with `POST /v1/transfers/claim`; then its owner accepts and an owner here confirms, in the dashboard, as taking on or giving away services is theirs to decide.","security":[{"apiKey":[]}],"x-permission":"services:transfer","parameters":[{"in":"header","name":"Idempotency-Key","required":false,"description":"Any unique string up to 255 characters. The same request sent again with it within a day gets the first answer, with `Idempotent-Replayed: true`, instead of being done twice. Another request with the same key is refused.","schema":{"type":"string","maxLength":255}}],"responses":{"201":{"description":"The code, shown once.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatedTransfer"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the `services:transfer` permission, or the request comes from an address it does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"A service cannot move (`TRANSFER_NOT_ELIGIBLE_ERROR`), or is in another transfer already (`TRANSFER_ALREADY_PENDING_ERROR`). The `Idempotency-Key` was used for another request (`IDEMPOTENCY_KEY_REUSED`), or its first request is still running (`IDEMPOTENCY_KEY_IN_PROGRESS`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"serviceIds":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"description":"From `GET /v1/services`."}},"required":["serviceIds"]}}}}}},"/v1/transfers/claim":{"post":{"operationId":"postV1TransfersClaim","tags":["Transfers"],"summary":"Enter a transfer code","description":"Enters another workspace's transfer code here, which shows what the services renew for in this workspace. An owner here then accepts it in the dashboard, as taking services on means paying for them. At most 10 tries a key per 15 minutes, so codes cannot be guessed. A 404 with `TRANSFER_CODE_INVALID_ERROR` for a code that is wrong, used or expired.","security":[{"apiKey":[]}],"x-permission":"services:transfer","parameters":[{"in":"header","name":"Idempotency-Key","required":false,"description":"Any unique string up to 255 characters. The same request sent again with it within a day gets the first answer, with `Idempotent-Replayed: true`, instead of being done twice. Another request with the same key is refused.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"The transfer, now claimed.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Transfer"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the `services:transfer` permission, or the request comes from an address it does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The code is from this workspace itself (`TRANSFER_SAME_WORKSPACE_ERROR`). The `Idempotency-Key` was used for another request (`IDEMPOTENCY_KEY_REUSED`), or its first request is still running (`IDEMPOTENCY_KEY_IN_PROGRESS`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","minLength":1,"maxLength":64}},"required":["code"]}}}}}},"/v1/transfers/{transferId}":{"get":{"operationId":"getV1TransfersByTransferId","tags":["Transfers"],"summary":"Get a transfer","description":"A transfer out of this workspace or into it, with its services and what they renew for.","security":[{"apiKey":[]}],"responses":{"200":{"description":"The transfer.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Transfer"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The request comes from an address the key does not allow (`API_KEY_IP_NOT_ALLOWED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}},"parameters":[{"in":"path","name":"transferId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}]}},"/v1/transfers/{transferId}/cancel":{"post":{"operationId":"postV1TransfersByTransferIdCancel","tags":["Transfers"],"summary":"Cancel a transfer","description":"Stops a transfer that is not done yet, from either side. The code no longer works.","security":[{"apiKey":[]}],"x-permission":"services:transfer","parameters":[{"in":"header","name":"Idempotency-Key","required":false,"description":"Any unique string up to 255 characters. The same request sent again with it within a day gets the first answer, with `Idempotent-Replayed: true`, instead of being done twice. Another request with the same key is refused.","schema":{"type":"string","maxLength":255}},{"in":"path","name":"transferId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}],"responses":{"200":{"description":"The transfer, now cancelled.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Transfer"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the `services:transfer` permission, or the request comes from an address it does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"It is done or cancelled already (`TRANSFER_NOT_OPEN_ERROR`). The `Idempotency-Key` was used for another request (`IDEMPOTENCY_KEY_REUSED`), or its first request is still running (`IDEMPOTENCY_KEY_IN_PROGRESS`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}}}},"/v1/domains/{domainId}/ds-records":{"get":{"operationId":"getV1DomainsByDomainIdDsRecords","tags":["Domains"],"summary":"List DS records","description":"The DS records at the registry for the domain: Servur's own with DNSSEC `automatic`, the ones added with `manual`.","security":[{"apiKey":[]}],"responses":{"200":{"description":"The DS records.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DsRecordList"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The request comes from an address the key does not allow (`API_KEY_IP_NOT_ALLOWED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}},"parameters":[{"in":"path","name":"domainId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}]},"post":{"operationId":"postV1DomainsByDomainIdDsRecords","tags":["Domains"],"summary":"Add a DNSSEC key","description":"For a zone signed somewhere else: give the DNSKEY of its key-signing key, as `dig DNSKEY` prints it. It is sent to the registry at once and kept as its SHA-256 DS record, and DNSSEC becomes `manual`. Refused while it is `automatic`, where Servur's own records are kept. The answer holds all the domain's DS records, the new one with its id.","security":[{"apiKey":[]}],"x-permission":"services:manage","parameters":[{"in":"header","name":"Idempotency-Key","required":false,"description":"Any unique string up to 255 characters. The same request sent again with it within a day gets the first answer, with `Idempotent-Replayed: true`, instead of being done twice. Another request with the same key is refused.","schema":{"type":"string","maxLength":255}},{"in":"path","name":"domainId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}],"responses":{"201":{"description":"The domain's DS records now.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DsRecordList"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the `services:manage` permission, or the request comes from an address it does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The domain is not registered (any more), DNSSEC is `automatic`, the record is there already, or the domain has the most DS records it can. The `Idempotency-Key` was used for another request (`IDEMPOTENCY_KEY_REUSED`), or its first request is still running (`IDEMPOTENCY_KEY_IN_PROGRESS`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"502":{"description":"The registry did not take the record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"flags":{"type":"number","enum":[256,257]},"algorithm":{"type":"number","enum":[8,10,13,14,15,16]},"publicKey":{"type":"string","maxLength":4096}},"required":["flags","algorithm","publicKey"]}}}}}},"/v1/domains/{domainId}/dnssec":{"put":{"operationId":"putV1DomainsByDomainIdDnssec","tags":["Domains"],"summary":"Set how DNSSEC is done","description":"`automatic` signs the zone here and sends its DS records to the registry, for a domain on our nameservers whose plan allows DNSSEC. `manual` keeps the DS records you add with `POST /v1/domains/{domainId}/ds-records`. `off` takes them all away.","security":[{"apiKey":[]}],"x-permission":"services:manage","parameters":[{"in":"header","name":"Idempotency-Key","required":false,"description":"Any unique string up to 255 characters. The same request sent again with it within a day gets the first answer, with `Idempotent-Replayed: true`, instead of being done twice. Another request with the same key is refused.","schema":{"type":"string","maxLength":255}},{"in":"path","name":"domainId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}],"responses":{"200":{"description":"The mode and the DS records now.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DnssecMode"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the `services:manage` permission, or the request comes from an address it does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The domain is not registered (any more), or `automatic` is not possible for it. The `Idempotency-Key` was used for another request (`IDEMPOTENCY_KEY_REUSED`), or its first request is still running (`IDEMPOTENCY_KEY_IN_PROGRESS`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"502":{"description":"The registry or the nameservers did not take the change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":"string","enum":["off","automatic","manual"]}},"required":["mode"]}}}}}},"/v1/domains/{domainId}/ds-records/{recordId}":{"delete":{"operationId":"deleteV1DomainsByDomainIdDsRecordsByRecordId","tags":["Domains"],"summary":"Delete a DS record","description":"Takes the record away at the registry at once. Refused while DNSSEC is `automatic`; switch it to `off` instead.","security":[{"apiKey":[]}],"x-permission":"services:manage","parameters":[{"in":"header","name":"Idempotency-Key","required":false,"description":"Any unique string up to 255 characters. The same request sent again with it within a day gets the first answer, with `Idempotent-Replayed: true`, instead of being done twice. Another request with the same key is refused.","schema":{"type":"string","maxLength":255}},{"in":"path","name":"domainId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true},{"in":"path","name":"recordId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}],"responses":{"204":{"description":"Deleted."},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the `services:manage` permission, or the request comes from an address it does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The domain is not registered (any more), or DNSSEC is `automatic`. The `Idempotency-Key` was used for another request (`IDEMPOTENCY_KEY_REUSED`), or its first request is still running (`IDEMPOTENCY_KEY_IN_PROGRESS`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"502":{"description":"The registry did not take the change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/dns-zones/{zoneId}/dnssec":{"put":{"operationId":"putV1DnsZonesByZoneIdDnssec","tags":["DNS"],"summary":"Sign a DNS zone or stop signing it","description":"Turns DNSSEC signing of the zone on or off, when its plan allows it. For a domain registered here on our nameservers, turning it on also sends the DS records to the registry; for one elsewhere, put the returned `dsRecords` at its registrar yourself. Turning it off is refused while the registry still holds DS records for it: set the domain's DNSSEC to `off` first.","security":[{"apiKey":[]}],"x-permission":"services:manage","parameters":[{"in":"header","name":"Idempotency-Key","required":false,"description":"Any unique string up to 255 characters. The same request sent again with it within a day gets the first answer, with `Idempotent-Replayed: true`, instead of being done twice. Another request with the same key is refused.","schema":{"type":"string","maxLength":255}},{"in":"path","name":"zoneId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}],"responses":{"200":{"description":"The signing now.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZoneDnssec"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the `services:manage` permission, or the request comes from an address it does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The zone's plan has no DNSSEC, or the registry still holds DS records for it. The `Idempotency-Key` was used for another request (`IDEMPOTENCY_KEY_REUSED`), or its first request is still running (`IDEMPOTENCY_KEY_IN_PROGRESS`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"502":{"description":"The nameservers or the registry did not take the change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"]}}}}}},"/v1/dns-zones/{zoneId}/redirects":{"get":{"operationId":"getV1DnsZonesByZoneIdRedirects","tags":["DNS"],"summary":"List the redirects of a DNS zone","description":"The web addresses in the zone that Servur answers with a redirect elsewhere.","security":[{"apiKey":[]}],"responses":{"200":{"description":"The redirects.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DnsRedirectList"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The request comes from an address the key does not allow (`API_KEY_IP_NOT_ALLOWED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}},"parameters":[{"in":"path","name":"zoneId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}]},"post":{"operationId":"postV1DnsZonesByZoneIdRedirects","tags":["DNS"],"summary":"Add a redirect to a DNS zone","description":"`name` is `@` or a name under the zone; `path` a path such as `/` or `/blog/{slug*}`, with `{name}` for one segment or `{name*}` for the rest of the path, which `destination` writes as `{name}`: `/blog/{slug*}` to `https://blog.example.com/{slug}`.","security":[{"apiKey":[]}],"x-permission":"services:manage","parameters":[{"in":"header","name":"Idempotency-Key","required":false,"description":"Any unique string up to 255 characters. The same request sent again with it within a day gets the first answer, with `Idempotent-Replayed: true`, instead of being done twice. Another request with the same key is refused.","schema":{"type":"string","maxLength":255}},{"in":"path","name":"zoneId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}],"responses":{"201":{"description":"The new redirect.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Created"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the `services:manage` permission, or the request comes from an address it does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The zone has a redirect for this name and path already. The `Idempotency-Key` was used for another request (`IDEMPOTENCY_KEY_REUSED`), or its first request is still running (`IDEMPOTENCY_KEY_IN_PROGRESS`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":253,"pattern":"^(?:@|[a-z0-9](?:[a-z0-9-]*[a-z0-9])?(?:\\.[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)*)$"},"path":{"type":"string","minLength":1,"maxLength":512},"destination":{"type":"string","minLength":1,"maxLength":2048},"statusCode":{"anyOf":[{"type":"number","const":301},{"type":"number","const":302}]}},"required":["name","path","destination","statusCode"]}}}}}},"/v1/dns-zones/{zoneId}/redirects/{redirectId}":{"put":{"operationId":"putV1DnsZonesByZoneIdRedirectsByRedirectId","tags":["DNS"],"summary":"Replace a redirect of a DNS zone","description":"`name` is `@` or a name under the zone; `path` a path such as `/` or `/blog/{slug*}`, with `{name}` for one segment or `{name*}` for the rest of the path, which `destination` writes as `{name}`: `/blog/{slug*}` to `https://blog.example.com/{slug}`.","security":[{"apiKey":[]}],"x-permission":"services:manage","parameters":[{"in":"header","name":"Idempotency-Key","required":false,"description":"Any unique string up to 255 characters. The same request sent again with it within a day gets the first answer, with `Idempotent-Replayed: true`, instead of being done twice. Another request with the same key is refused.","schema":{"type":"string","maxLength":255}},{"in":"path","name":"zoneId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true},{"in":"path","name":"redirectId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}],"responses":{"200":{"description":"The redirect.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Created"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the `services:manage` permission, or the request comes from an address it does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The zone has another redirect for this name and path. The `Idempotency-Key` was used for another request (`IDEMPOTENCY_KEY_REUSED`), or its first request is still running (`IDEMPOTENCY_KEY_IN_PROGRESS`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":253,"pattern":"^(?:@|[a-z0-9](?:[a-z0-9-]*[a-z0-9])?(?:\\.[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)*)$"},"path":{"type":"string","minLength":1,"maxLength":512},"destination":{"type":"string","minLength":1,"maxLength":2048},"statusCode":{"anyOf":[{"type":"number","const":301},{"type":"number","const":302}]}},"required":["name","path","destination","statusCode"]}}}}},"delete":{"operationId":"deleteV1DnsZonesByZoneIdRedirectsByRedirectId","tags":["DNS"],"summary":"Delete a redirect of a DNS zone","security":[{"apiKey":[]}],"x-permission":"services:manage","parameters":[{"in":"header","name":"Idempotency-Key","required":false,"description":"Any unique string up to 255 characters. The same request sent again with it within a day gets the first answer, with `Idempotent-Replayed: true`, instead of being done twice. Another request with the same key is refused.","schema":{"type":"string","maxLength":255}},{"in":"path","name":"zoneId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true},{"in":"path","name":"redirectId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}],"responses":{"204":{"description":"Deleted."},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the `services:manage` permission, or the request comes from an address it does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The `Idempotency-Key` was used for another request (`IDEMPOTENCY_KEY_REUSED`), or its first request is still running (`IDEMPOTENCY_KEY_IN_PROGRESS`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}}}},"/v1/dns-templates":{"get":{"operationId":"getV1DnsTemplates","tags":["DNS"],"summary":"List DNS templates","description":"The workspace's own DNS templates and Servur's, with their records. Apply one to a zone with `POST /v1/dns-zones/{zoneId}/template`.","security":[{"apiKey":[]}],"responses":{"200":{"description":"The templates.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DnsTemplateList"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The request comes from an address the key does not allow (`API_KEY_IP_NOT_ALLOWED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}}},"post":{"operationId":"postV1DnsTemplates","tags":["DNS"],"summary":"Create a DNS template","description":"A set of records to apply to zones, for this workspace. `{domain}` in a value stands for the zone the template is applied to, such as `mail.{domain}`. No apex NS records.","security":[{"apiKey":[]}],"x-permission":"services:manage","parameters":[{"in":"header","name":"Idempotency-Key","required":false,"description":"Any unique string up to 255 characters. The same request sent again with it within a day gets the first answer, with `Idempotent-Replayed: true`, instead of being done twice. Another request with the same key is refused.","schema":{"type":"string","maxLength":255}}],"responses":{"201":{"description":"The new template.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Created"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the `services:manage` permission, or the request comes from an address it does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The workspace has a template with this name already. The `Idempotency-Key` was used for another request (`IDEMPOTENCY_KEY_REUSED`), or its first request is still running (`IDEMPOTENCY_KEY_IN_PROGRESS`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"description":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"records":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["A","AAAA","CNAME","MX","TXT","NS","SRV","CAA","HTTPS","SVCB","TLSA","NAPTR","SSHFP","DS"]},"name":{"type":"string","minLength":1,"maxLength":253,"pattern":"^(?:@|\\*|(?:[a-z0-9_*](?:[a-z0-9_-]*[a-z0-9])?)(?:\\.[a-z0-9_](?:[a-z0-9_-]*[a-z0-9])?)*)$"},"value":{"type":"string","minLength":1,"maxLength":4096},"ttl":{"default":3600,"type":"integer","minimum":60,"maximum":604800},"priority":{"default":null,"anyOf":[{"type":"integer","minimum":0,"maximum":65535},{"type":"null"}]}},"required":["type","name","value"]}}},"required":["name","description","records"]}}}}}},"/v1/dns-templates/{templateId}":{"put":{"operationId":"putV1DnsTemplatesByTemplateId","tags":["DNS"],"summary":"Replace a DNS template","description":"Its name, description and records at once. Zones it was applied to keep their records. Servur's own templates cannot be changed. `{domain}` in a value stands for the zone the template is applied to, such as `mail.{domain}`. No apex NS records.","security":[{"apiKey":[]}],"x-permission":"services:manage","parameters":[{"in":"header","name":"Idempotency-Key","required":false,"description":"Any unique string up to 255 characters. The same request sent again with it within a day gets the first answer, with `Idempotent-Replayed: true`, instead of being done twice. Another request with the same key is refused.","schema":{"type":"string","maxLength":255}},{"in":"path","name":"templateId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}],"responses":{"200":{"description":"The template.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Created"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the `services:manage` permission, or the request comes from an address it does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The workspace has another template with this name. The `Idempotency-Key` was used for another request (`IDEMPOTENCY_KEY_REUSED`), or its first request is still running (`IDEMPOTENCY_KEY_IN_PROGRESS`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"description":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"records":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["A","AAAA","CNAME","MX","TXT","NS","SRV","CAA","HTTPS","SVCB","TLSA","NAPTR","SSHFP","DS"]},"name":{"type":"string","minLength":1,"maxLength":253,"pattern":"^(?:@|\\*|(?:[a-z0-9_*](?:[a-z0-9_-]*[a-z0-9])?)(?:\\.[a-z0-9_](?:[a-z0-9_-]*[a-z0-9])?)*)$"},"value":{"type":"string","minLength":1,"maxLength":4096},"ttl":{"default":3600,"type":"integer","minimum":60,"maximum":604800},"priority":{"default":null,"anyOf":[{"type":"integer","minimum":0,"maximum":65535},{"type":"null"}]}},"required":["type","name","value"]}}},"required":["name","description","records"]}}}}},"delete":{"operationId":"deleteV1DnsTemplatesByTemplateId","tags":["DNS"],"summary":"Delete a DNS template","description":"Zones it was applied to keep their records. Servur's own templates cannot be deleted.","security":[{"apiKey":[]}],"x-permission":"services:manage","parameters":[{"in":"header","name":"Idempotency-Key","required":false,"description":"Any unique string up to 255 characters. The same request sent again with it within a day gets the first answer, with `Idempotent-Replayed: true`, instead of being done twice. Another request with the same key is refused.","schema":{"type":"string","maxLength":255}},{"in":"path","name":"templateId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}],"responses":{"204":{"description":"Deleted."},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the `services:manage` permission, or the request comes from an address it does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The `Idempotency-Key` was used for another request (`IDEMPOTENCY_KEY_REUSED`), or its first request is still running (`IDEMPOTENCY_KEY_IN_PROGRESS`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}}}},"/v1/dns-zones/{zoneId}/template-preview":{"post":{"operationId":"postV1DnsZonesByZoneIdTemplatePreview","tags":["DNS"],"summary":"Preview a DNS template on a zone","description":"What applying the template would change, without changing anything. `replace` makes the zone exactly the template; `merge` adds what is missing and leaves the rest.","security":[{"apiKey":[]}],"responses":{"200":{"description":"What would change.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DnsTemplatePlan"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The request comes from an address the key does not allow (`API_KEY_IP_NOT_ALLOWED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}},"parameters":[{"in":"path","name":"zoneId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"templateId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"mode":{"type":"string","enum":["replace","merge"]}},"required":["templateId","mode"]}}}}}},"/v1/dns-zones/{zoneId}/template":{"post":{"operationId":"postV1DnsZonesByZoneIdTemplate","tags":["DNS"],"summary":"Apply a DNS template to a zone","description":"`replace` makes the zone exactly the template; `merge` adds what is missing and leaves the rest. Kept as a new version of the zone and published to the nameservers. See what it would do first with `POST /v1/dns-zones/{zoneId}/template-preview`.","security":[{"apiKey":[]}],"x-permission":"services:manage","parameters":[{"in":"header","name":"Idempotency-Key","required":false,"description":"Any unique string up to 255 characters. The same request sent again with it within a day gets the first answer, with `Idempotent-Replayed: true`, instead of being done twice. Another request with the same key is refused.","schema":{"type":"string","maxLength":255}},{"in":"path","name":"zoneId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}],"responses":{"200":{"description":"What changed.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DnsTemplatePlan"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the `services:manage` permission, or the request comes from an address it does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The zone would hold more records than its plan allows. The `Idempotency-Key` was used for another request (`IDEMPOTENCY_KEY_REUSED`), or its first request is still running (`IDEMPOTENCY_KEY_IN_PROGRESS`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"502":{"description":"The nameservers did not take the change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"templateId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"mode":{"type":"string","enum":["replace","merge"]}},"required":["templateId","mode"]}}}}}},"/v1/webhosting/{serviceId}":{"get":{"operationId":"getV1WebhostingByServiceId","tags":["Webhosting"],"summary":"Get a webhosting package","description":"The service id is one of type `webhosting` from `GET /v1/services`. With what the account uses, as the control panel says, and the DNS records its domain needs.","security":[{"apiKey":[]}],"responses":{"200":{"description":"The package.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhostingPackage"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The request comes from an address the key does not allow (`API_KEY_IP_NOT_ALLOWED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}},"parameters":[{"in":"path","name":"serviceId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}]}},"/v1/webhosting/{serviceId}/password":{"put":{"operationId":"putV1WebhostingByServiceIdPassword","tags":["Webhosting"],"summary":"Change the account's password","description":"The password of the control panel and FTP account, at least 12 characters. Kept encrypted so it can be shown again.","security":[{"apiKey":[]}],"x-permission":"services:manage","parameters":[{"in":"header","name":"Idempotency-Key","required":false,"description":"Any unique string up to 255 characters. The same request sent again with it within a day gets the first answer, with `Idempotent-Replayed: true`, instead of being done twice. Another request with the same key is refused.","schema":{"type":"string","maxLength":255}},{"in":"path","name":"serviceId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}],"responses":{"204":{"description":"The password is changed."},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the `services:manage` permission, or the request comes from an address it does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The package is not active. The `Idempotency-Key` was used for another request (`IDEMPOTENCY_KEY_REUSED`), or its first request is still running (`IDEMPOTENCY_KEY_IN_PROGRESS`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"502":{"description":"The control panel did not take it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"password":{"type":"string","minLength":12,"maxLength":128}},"required":["password"]}}}}},"post":{"operationId":"postV1WebhostingByServiceIdPassword","tags":["Webhosting"],"summary":"Show the account's password","description":"The current password of the control panel and FTP account. Every time it is shown is audited.","security":[{"apiKey":[]}],"x-permission":"services:manage","parameters":[{"in":"header","name":"Idempotency-Key","required":false,"description":"Any unique string up to 255 characters. The same request sent again with it within a day gets the first answer, with `Idempotent-Replayed: true`, instead of being done twice. Another request with the same key is refused.","schema":{"type":"string","maxLength":255}},{"in":"path","name":"serviceId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}],"responses":{"200":{"description":"The password.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HostingPassword"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the `services:manage` permission, or the request comes from an address it does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The package is not active. The `Idempotency-Key` was used for another request (`IDEMPOTENCY_KEY_REUSED`), or its first request is still running (`IDEMPOTENCY_KEY_IN_PROGRESS`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}}}},"/v1/webhosting/{serviceId}/sign-in":{"post":{"operationId":"postV1WebhostingByServiceIdSignIn","tags":["Webhosting"],"summary":"Make a sign-in link to the control panel","description":"A link that opens the control panel signed in as the account, for a short while. Only where `signInAvailable` is true.","security":[{"apiKey":[]}],"x-permission":"services:manage","parameters":[{"in":"header","name":"Idempotency-Key","required":false,"description":"Any unique string up to 255 characters. The same request sent again with it within a day gets the first answer, with `Idempotent-Replayed: true`, instead of being done twice. Another request with the same key is refused.","schema":{"type":"string","maxLength":255}},{"in":"path","name":"serviceId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}],"responses":{"200":{"description":"The link.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignInLink"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the `services:manage` permission, or the request comes from an address it does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The package is not active, or its control panel cannot make sign-in links. The `Idempotency-Key` was used for another request (`IDEMPOTENCY_KEY_REUSED`), or its first request is still running (`IDEMPOTENCY_KEY_IN_PROGRESS`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"502":{"description":"The control panel did not make one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/webhosting/{serviceId}/dns-records":{"post":{"operationId":"postV1WebhostingByServiceIdDnsRecords","tags":["Webhosting"],"summary":"Apply the package's DNS records","description":"Puts the records under `dns` of `GET /v1/webhosting/{serviceId}` in the workspace's zone for the domain, as one new version, replacing the records under `conflicts`. Needs a zone here: a 404 with `DNS_ZONE_NOT_FOUND_ERROR` without one.","security":[{"apiKey":[]}],"x-permission":"services:manage","parameters":[{"in":"header","name":"Idempotency-Key","required":false,"description":"Any unique string up to 255 characters. The same request sent again with it within a day gets the first answer, with `Idempotent-Replayed: true`, instead of being done twice. Another request with the same key is refused.","schema":{"type":"string","maxLength":255}},{"in":"path","name":"serviceId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}],"responses":{"204":{"description":"The records are in the zone."},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the `services:manage` permission, or the request comes from an address it does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The `Idempotency-Key` was used for another request (`IDEMPOTENCY_KEY_REUSED`), or its first request is still running (`IDEMPOTENCY_KEY_IN_PROGRESS`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}}}},"/v1/email/{serviceId}/dns-records":{"get":{"operationId":"getV1EmailByServiceIdDnsRecords","tags":["Email"],"summary":"Get the package's DNS records","description":"The records the mail server needs for the package's domain (MX, SPF, DKIM, DMARC), and whether the workspace's zone for it has them.","security":[{"apiKey":[]}],"responses":{"200":{"description":"The records and their state.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceDns"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The request comes from an address the key does not allow (`API_KEY_IP_NOT_ALLOWED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"502":{"description":"The mail server did not give the records.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"in":"path","name":"serviceId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}]},"post":{"operationId":"postV1EmailByServiceIdDnsRecords","tags":["Email"],"summary":"Apply the package's DNS records","description":"Puts the records of `GET /v1/email/{serviceId}/dns-records` in the workspace's zone for the domain, as one new version, replacing the records under `conflicts`. Needs a zone here: a 404 with `DNS_ZONE_NOT_FOUND_ERROR` without one.","security":[{"apiKey":[]}],"x-permission":"services:manage","parameters":[{"in":"header","name":"Idempotency-Key","required":false,"description":"Any unique string up to 255 characters. The same request sent again with it within a day gets the first answer, with `Idempotent-Replayed: true`, instead of being done twice. Another request with the same key is refused.","schema":{"type":"string","maxLength":255}},{"in":"path","name":"serviceId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}],"responses":{"204":{"description":"The records are in the zone."},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the `services:manage` permission, or the request comes from an address it does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The `Idempotency-Key` was used for another request (`IDEMPOTENCY_KEY_REUSED`), or its first request is still running (`IDEMPOTENCY_KEY_IN_PROGRESS`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"502":{"description":"The mail server did not give the records.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/voip/{serviceId}":{"get":{"operationId":"getV1VoipByServiceId","tags":["VoIP"],"summary":"Get a VoIP organisation with its numbers","description":"The service id is one of type `voip` from `GET /v1/services`. Phones, users and queues are set up in the provider's own dashboard; invite its owners with `POST .../owners`.","security":[{"apiKey":[]}],"responses":{"200":{"description":"The organisation.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoipPackage"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The request comes from an address the key does not allow (`API_KEY_IP_NOT_ALLOWED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}},"parameters":[{"in":"path","name":"serviceId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}]}},"/v1/voip/{serviceId}/available-numbers":{"get":{"operationId":"getV1VoipByServiceIdAvailableNumbers","tags":["VoIP"],"summary":"List numbers that can be taken","description":"Numbers in the provider's stock. `search` matches digits anywhere in the number; a leading 0 stands for +31.","security":[{"apiKey":[]}],"x-permission":"services:manage","parameters":[{"in":"header","name":"Idempotency-Key","required":false,"description":"Any unique string up to 255 characters. The same request sent again with it within a day gets the first answer, with `Idempotent-Replayed: true`, instead of being done twice. Another request with the same key is refused.","schema":{"type":"string","maxLength":255}},{"in":"path","name":"serviceId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true},{"in":"query","name":"search","schema":{"type":"string","pattern":"^\\d{0,15}$"}}],"responses":{"200":{"description":"The numbers.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AvailableNumberList"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the `services:manage` permission, or the request comes from an address it does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The organisation is not active. The `Idempotency-Key` was used for another request (`IDEMPOTENCY_KEY_REUSED`), or its first request is still running (`IDEMPOTENCY_KEY_IN_PROGRESS`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"502":{"description":"The provider did not answer.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/voip/{serviceId}/numbers":{"post":{"operationId":"postV1VoipByServiceIdNumbers","tags":["VoIP"],"summary":"Take a number","description":"One from `GET .../available-numbers`, by its `id`, up to the numbers the product includes (`maxNumbers`).","security":[{"apiKey":[]}],"x-permission":"services:manage","parameters":[{"in":"header","name":"Idempotency-Key","required":false,"description":"Any unique string up to 255 characters. The same request sent again with it within a day gets the first answer, with `Idempotent-Replayed: true`, instead of being done twice. Another request with the same key is refused.","schema":{"type":"string","maxLength":255}},{"in":"path","name":"serviceId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}],"responses":{"201":{"description":"The number, now taken.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoipNumber"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the `services:manage` permission, or the request comes from an address it does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The organisation is not active, has all the numbers it includes (`VOIP_NUMBER_LIMIT_ERROR`), or the number was taken meanwhile. The `Idempotency-Key` was used for another request (`IDEMPOTENCY_KEY_REUSED`), or its first request is still running (`IDEMPOTENCY_KEY_IN_PROGRESS`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"502":{"description":"The provider did not take it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"numberId":{"type":"string","minLength":1,"maxLength":100}},"required":["numberId"]}}}}}},"/v1/voip/{serviceId}/numbers/{numberId}":{"delete":{"operationId":"deleteV1VoipByServiceIdNumbersByNumberId","tags":["VoIP"],"summary":"Release a number","description":"Back to the provider's stock at once: calls to it stop, and somebody else may take it. The id is the one under `numbers`.","security":[{"apiKey":[]}],"x-permission":"services:manage","parameters":[{"in":"header","name":"Idempotency-Key","required":false,"description":"Any unique string up to 255 characters. The same request sent again with it within a day gets the first answer, with `Idempotent-Replayed: true`, instead of being done twice. Another request with the same key is refused.","schema":{"type":"string","maxLength":255}},{"in":"path","name":"serviceId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true},{"in":"path","name":"numberId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}],"responses":{"204":{"description":"The number is released."},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the `services:manage` permission, or the request comes from an address it does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The organisation is not active. The `Idempotency-Key` was used for another request (`IDEMPOTENCY_KEY_REUSED`), or its first request is still running (`IDEMPOTENCY_KEY_IN_PROGRESS`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"502":{"description":"The provider did not take it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/voip/{serviceId}/owners":{"post":{"operationId":"postV1VoipByServiceIdOwners","tags":["VoIP"],"summary":"Invite an owner to the provider's dashboard","description":"The provider mails the address an invitation to own the organisation in its own dashboard, where phones, users and queues are set up. The invitation takes a seat until it is answered.","security":[{"apiKey":[]}],"x-permission":"services:manage","parameters":[{"in":"header","name":"Idempotency-Key","required":false,"description":"Any unique string up to 255 characters. The same request sent again with it within a day gets the first answer, with `Idempotent-Replayed: true`, instead of being done twice. Another request with the same key is refused.","schema":{"type":"string","maxLength":255}},{"in":"path","name":"serviceId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}],"responses":{"204":{"description":"The invitation is sent."},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the `services:manage` permission, or the request comes from an address it does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The organisation is not active, or the provider refused the address. The `Idempotency-Key` was used for another request (`IDEMPOTENCY_KEY_REUSED`), or its first request is still running (`IDEMPOTENCY_KEY_IN_PROGRESS`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"502":{"description":"The provider did not take it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["email"]}}}}}},"/v1/invoices/{invoiceId}/payment":{"post":{"operationId":"postV1InvoicesByInvoiceIdPayment","tags":["Billing"],"summary":"Pay an invoice","description":"Pays what an open invoice still owes. The balance does not pay invoices: it is without VAT, and pays orders and renewals. A checkout method answers with a `checkoutUrl` for a person to pay at; the invoice stays `open` until they have, and the method's transaction costs are added and invoiced on their own. `saveMandate` leaves a mandate behind once paid, so later invoices and renewals are charged without a checkout.","security":[{"apiKey":[]}],"x-permission":"billing:manage","parameters":[{"in":"header","name":"Idempotency-Key","required":false,"description":"Any unique string up to 255 characters. The same request sent again with it within a day gets the first answer, with `Idempotent-Replayed: true`, instead of being done twice. Another request with the same key is refused.","schema":{"type":"string","maxLength":255}},{"in":"path","name":"invoiceId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}],"responses":{"201":{"description":"Paid, or a checkout opened.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoicePayment"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the `billing:manage` permission, or the request comes from an address it does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The invoice is paid or void already, a payment for it is under way, no billing details yet, a method the workspace may not use or over its limits, or the payment provider did not answer. The `Idempotency-Key` was used for another request (`IDEMPOTENCY_KEY_REUSED`), or its first request is still running (`IDEMPOTENCY_KEY_IN_PROGRESS`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"method":{"type":"string","enum":["ideal","bancontact","creditcard","paypal","bank-transfer"]},"saveMandate":{"default":false,"type":"boolean"}},"required":["method"]}}}}}},"/v1/balance/top-ups":{"post":{"operationId":"postV1BalanceTopUps","tags":["Billing"],"summary":"Top up the balance","description":"Opens a checkout to add `amount` cents without VAT (10.00 to 1000.00 EUR) to the balance. A person pays at `checkoutUrl`; the balance goes up once they have. The workspace's VAT and the method's transaction costs are charged on top, and invoiced together once paid; the balance then pays orders and renewals without VAT.","security":[{"apiKey":[]}],"x-permission":"billing:manage","parameters":[{"in":"header","name":"Idempotency-Key","required":false,"description":"Any unique string up to 255 characters. The same request sent again with it within a day gets the first answer, with `Idempotent-Replayed: true`, instead of being done twice. Another request with the same key is refused.","schema":{"type":"string","maxLength":255}}],"responses":{"201":{"description":"The checkout.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TopUp"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the `billing:manage` permission, or the request comes from an address it does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"No billing details yet, a method the workspace may not use or over its limits, or the payment provider did not answer. The `Idempotency-Key` was used for another request (`IDEMPOTENCY_KEY_REUSED`), or its first request is still running (`IDEMPOTENCY_KEY_IN_PROGRESS`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"amount":{"type":"integer","minimum":1000,"maximum":100000},"method":{"type":"string","enum":["ideal","bancontact","creditcard","paypal"]}},"required":["amount","method"]}}}}}},"/v1/payments/{paymentId}":{"get":{"operationId":"getV1PaymentsByPaymentId","tags":["Billing"],"summary":"Get a payment","description":"A payment and what it paid for. One still `pending` is checked at the payment provider before answering, so polling this shows when a checkout was paid.","security":[{"apiKey":[]}],"responses":{"200":{"description":"The payment.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Payment"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The request comes from an address the key does not allow (`API_KEY_IP_NOT_ALLOWED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}},"parameters":[{"in":"path","name":"paymentId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}]}},"/v1/payment-methods":{"get":{"operationId":"getV1PaymentMethods","tags":["Billing"],"summary":"List payment methods","description":"The methods a checkout offers, with the transaction costs each adds and whether the workspace may use them. Paying from the balance costs nothing and is not among them. A workspace asks for `creditcard` or `paypal` in the dashboard.","security":[{"apiKey":[]}],"responses":{"200":{"description":"The methods.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentMethodList"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The request comes from an address the key does not allow (`API_KEY_IP_NOT_ALLOWED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}}}},"/v1/invoice-terms":{"get":{"operationId":"getV1InvoiceTerms","tags":["Billing"],"summary":"Get the invoice terms","description":"How often the workspace is invoiced for its renewals (weekly without terms), the amount at which it is invoiced sooner, what waits to be invoiced now, and its latest request for terms.","security":[{"apiKey":[]}],"responses":{"200":{"description":"The terms.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceTerms"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The request comes from an address the key does not allow (`API_KEY_IP_NOT_ALLOWED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}}}},"/v1/invoice-terms/requests":{"post":{"operationId":"postV1InvoiceTermsRequests","tags":["Billing"],"summary":"Ask for another invoice interval","description":"Asks Servur to invoice the workspace's renewals every `interval` (`half-month`, `month` or `quarter`) rather than weekly. Servur decides and sets a limit at which it invoices sooner; follow it with `GET /v1/invoice-terms`. One request at a time.","security":[{"apiKey":[]}],"x-permission":"billing:manage","parameters":[{"in":"header","name":"Idempotency-Key","required":false,"description":"Any unique string up to 255 characters. The same request sent again with it within a day gets the first answer, with `Idempotent-Replayed: true`, instead of being done twice. Another request with the same key is refused.","schema":{"type":"string","maxLength":255}}],"responses":{"201":{"description":"The request.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Created"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the `billing:manage` permission, or the request comes from an address it does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"A request is waiting for an answer already. The `Idempotency-Key` was used for another request (`IDEMPOTENCY_KEY_REUSED`), or its first request is still running (`IDEMPOTENCY_KEY_IN_PROGRESS`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"interval":{"type":"string","enum":["half-month","month","quarter"]},"motivation":{"type":"string","minLength":1,"maxLength":2000}},"required":["interval","motivation"]}}}}}},"/v1/mandates":{"get":{"operationId":"getV1Mandates","tags":["Billing"],"summary":"List direct-debit mandates","description":"The cards and accounts invoices and renewals are charged to without a checkout, left behind by a payment with `saveMandate`.","security":[{"apiKey":[]}],"responses":{"200":{"description":"The mandates.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MandateList"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The request comes from an address the key does not allow (`API_KEY_IP_NOT_ALLOWED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}}}},"/v1/mandates/{mandateId}":{"delete":{"operationId":"deleteV1MandatesByMandateId","tags":["Billing"],"summary":"Revoke a mandate","description":"Stops charging the card or account without a checkout. Renewals then wait to be paid, by a person or `POST /v1/orders/{orderId}/payment`.","security":[{"apiKey":[]}],"x-permission":"billing:manage","parameters":[{"in":"header","name":"Idempotency-Key","required":false,"description":"Any unique string up to 255 characters. The same request sent again with it within a day gets the first answer, with `Idempotent-Replayed: true`, instead of being done twice. Another request with the same key is refused.","schema":{"type":"string","maxLength":255}},{"in":"path","name":"mandateId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}],"responses":{"204":{"description":"Revoked."},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the `billing:manage` permission, or the request comes from an address it does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The `Idempotency-Key` was used for another request (`IDEMPOTENCY_KEY_REUSED`), or its first request is still running (`IDEMPOTENCY_KEY_IN_PROGRESS`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}}}},"/v1/discounts/{code}":{"get":{"operationId":"getV1DiscountsByCode","tags":["Ordering"],"summary":"Check a discount code","description":"What a code takes off, and on which products, while it can be used. Ordering checks it again against the order, with how often it was used. At most 20 checks per key in 10 minutes.","security":[{"apiKey":[]}],"responses":{"200":{"description":"The discount.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Discount"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The request comes from an address the key does not allow (`API_KEY_IP_NOT_ALLOWED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}},"parameters":[{"in":"path","name":"code","schema":{"type":"string","minLength":1,"maxLength":64},"required":true}]}},"/v1/domain-holders/{holderId}":{"get":{"operationId":"getV1DomainHoldersByHolderId","tags":["Account"],"summary":"Get a domain holder","description":"With every detail the registries get.","security":[{"apiKey":[]}],"responses":{"200":{"description":"The holder.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainHolderDetails"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The request comes from an address the key does not allow (`API_KEY_IP_NOT_ALLOWED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}},"parameters":[{"in":"path","name":"holderId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}]},"put":{"operationId":"putV1DomainHoldersByHolderId","tags":["Account"],"summary":"Change a domain holder","description":"Every domain registered to the holder takes the change: the registries are updated after the answer, and tried again while they refuse.","security":[{"apiKey":[]}],"x-permission":"account:manage","parameters":[{"in":"header","name":"Idempotency-Key","required":false,"description":"Any unique string up to 255 characters. The same request sent again with it within a day gets the first answer, with `Idempotent-Replayed: true`, instead of being done twice. Another request with the same key is refused.","schema":{"type":"string","maxLength":255}},{"in":"path","name":"holderId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}],"responses":{"200":{"description":"The holder as it is now.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainHolderDetails"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the `account:manage` permission, or the request comes from an address it does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"A new name, organisation or email while the holder owns a domain on an extension that charges for a change of owner (`DOMAIN_HOLDER_OWNER_CHANGE_COSTS_ERROR`): create a new holder for the domains meant instead. The `Idempotency-Key` was used for another request (`IDEMPOTENCY_KEY_REUSED`), or its first request is still running (`IDEMPOTENCY_KEY_IN_PROGRESS`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"organization":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"phone":{"type":"string"},"addressLine1":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20},"city":{"type":"string","minLength":1,"maxLength":120},"country":{"type":"string","pattern":"^[A-Z]{2}$"}},"required":["name","organization","email","phone","addressLine1","postalCode","city","country"]}}}}},"delete":{"operationId":"deleteV1DomainHoldersByHolderId","tags":["Account"],"summary":"Remove a domain holder","security":[{"apiKey":[]}],"x-permission":"account:manage","parameters":[{"in":"header","name":"Idempotency-Key","required":false,"description":"Any unique string up to 255 characters. The same request sent again with it within a day gets the first answer, with `Idempotent-Replayed: true`, instead of being done twice. Another request with the same key is refused.","schema":{"type":"string","maxLength":255}},{"in":"path","name":"holderId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}],"responses":{"204":{"description":"Removed."},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the `account:manage` permission, or the request comes from an address it does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"A domain in an order that is not cancelled names the holder (`DOMAIN_HOLDER_IN_USE_ERROR`). The `Idempotency-Key` was used for another request (`IDEMPOTENCY_KEY_REUSED`), or its first request is still running (`IDEMPOTENCY_KEY_IN_PROGRESS`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}}}},"/v1/billing-details":{"get":{"operationId":"getV1BillingDetails","tags":["Account"],"summary":"Get the billing details","description":"Who invoices are made out to, and whether the VAT number makes them reverse-charged.","security":[{"apiKey":[]}],"responses":{"200":{"description":"The billing details.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingDetailsResult"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The request comes from an address the key does not allow (`API_KEY_IP_NOT_ALLOWED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}}},"put":{"operationId":"putV1BillingDetails","tags":["Account"],"summary":"Change the billing details","description":"Written in full: a `personal` kind clears the company fields. A Dutch business needs its eight-digit `cocNumber`. `phone` is required, with its country code, and stored as E.164: `+31201234567`. A changed VAT number is checked with VIES at once; when VIES does not answer, it is checked later and the details are saved all the same.","security":[{"apiKey":[]}],"x-permission":"account:manage","parameters":[{"in":"header","name":"Idempotency-Key","required":false,"description":"Any unique string up to 255 characters. The same request sent again with it within a day gets the first answer, with `Idempotent-Replayed: true`, instead of being done twice. Another request with the same key is refused.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"The billing details as they are now.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingDetailsResult"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the `account:manage` permission, or the request comes from an address it does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The `Idempotency-Key` was used for another request (`IDEMPOTENCY_KEY_REUSED`), or its first request is still running (`IDEMPOTENCY_KEY_IN_PROGRESS`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"personal"},"contactName":{"type":"string","minLength":1,"maxLength":120},"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"phone":{"type":"string"},"addressLine1":{"type":"string","minLength":1,"maxLength":200},"addressLine2":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"postalCode":{"type":"string","minLength":1,"maxLength":20},"city":{"type":"string","minLength":1,"maxLength":120},"country":{"type":"string","pattern":"^[A-Z]{2}$"},"language":{"type":"string","enum":["en","nl"]}},"required":["kind","contactName","email","phone","addressLine1","addressLine2","postalCode","city","country"]},{"type":"object","properties":{"kind":{"type":"string","const":"business"},"companyName":{"type":"string","minLength":1,"maxLength":200},"contactName":{"type":"string","minLength":1,"maxLength":120},"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"phone":{"type":"string"},"addressLine1":{"type":"string","minLength":1,"maxLength":200},"addressLine2":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"postalCode":{"type":"string","minLength":1,"maxLength":20},"city":{"type":"string","minLength":1,"maxLength":120},"country":{"type":"string","pattern":"^[A-Z]{2}$"},"language":{"type":"string","enum":["en","nl"]},"vatNumber":{"type":["string","null"]},"cocNumber":{"type":["string","null"]}},"required":["kind","companyName","contactName","email","phone","addressLine1","addressLine2","postalCode","city","country","vatNumber","cocNumber"]}]}}}}}},"/v1/domain-claims":{"get":{"operationId":"getV1DomainClaims","tags":["Account"],"summary":"List domain claims","description":"The workspace’s claims on domains registered elsewhere, newest first, each with the services that lapse with it. Email, DNS zones and webhosting for such a domain need a verified claim.","security":[{"apiKey":[]}],"responses":{"200":{"description":"A page of claims.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainClaimPage"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The request comes from an address the key does not allow (`API_KEY_IP_NOT_ALLOWED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}},"parameters":[{"in":"query","name":"domain","schema":{"type":"string"}},{"in":"query","name":"purpose","schema":{"type":"string","enum":["email","dnszone","webhosting"]}},{"in":"query","name":"cursor","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},{"in":"query","name":"limit","schema":{"default":50,"type":"integer","minimum":1,"maximum":100}}]},"post":{"operationId":"postV1DomainClaims","tags":["Account"],"summary":"Claim a domain","description":"For a domain registered elsewhere, ahead of ordering email, a DNS zone or webhosting for it. Publish the `record` at the domain’s DNS and leave it there; it is looked for at once and then daily. Claiming one the workspace already has returns it, checked again. At most 30 an hour per key.","security":[{"apiKey":[]}],"x-permission":"services:manage","parameters":[{"in":"header","name":"Idempotency-Key","required":false,"description":"Any unique string up to 255 characters. The same request sent again with it within a day gets the first answer, with `Idempotent-Replayed: true`, instead of being done twice. Another request with the same key is refused.","schema":{"type":"string","maxLength":255}}],"responses":{"201":{"description":"The claim.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainClaim"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the `services:manage` permission, or the request comes from an address it does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Another workspace holds a verified claim on it (`DOMAINCLAIM_TAKEN_ERROR`), or the workspace has 100 claims (`DOMAINCLAIM_LIMIT_ERROR`). The `Idempotency-Key` was used for another request (`IDEMPOTENCY_KEY_REUSED`), or its first request is still running (`IDEMPOTENCY_KEY_IN_PROGRESS`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"domain":{"type":"string"},"purpose":{"type":"string","enum":["email"]}},"required":["domain","purpose"]}}}}}},"/v1/domain-claims/{domainclaimId}/verify":{"post":{"operationId":"postV1DomainClaimsByDomainclaimIdVerify","tags":["Account"],"summary":"Check a domain claim now","description":"Looks for the record now rather than at the next daily round. Not finding it is an answer, not an error: `change` is null and the claim stays as it was. At most 20 a minute per key.","security":[{"apiKey":[]}],"x-permission":"services:manage","parameters":[{"in":"header","name":"Idempotency-Key","required":false,"description":"Any unique string up to 255 characters. The same request sent again with it within a day gets the first answer, with `Idempotent-Replayed: true`, instead of being done twice. Another request with the same key is refused.","schema":{"type":"string","maxLength":255}},{"in":"path","name":"domainclaimId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}],"responses":{"200":{"description":"The claim after the check.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainClaimCheck"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the `services:manage` permission, or the request comes from an address it does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The `Idempotency-Key` was used for another request (`IDEMPOTENCY_KEY_REUSED`), or its first request is still running (`IDEMPOTENCY_KEY_IN_PROGRESS`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}}}},"/v1/members":{"get":{"operationId":"getV1Members","tags":["Members"],"summary":"List members","description":"The people in the workspace and the invitations out, in the order they were invited. `role=owner` gives the owners only.","security":[{"apiKey":[]}],"responses":{"200":{"description":"A page of members.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemberPage"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The request comes from an address the key does not allow (`API_KEY_IP_NOT_ALLOWED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}},"parameters":[{"in":"query","name":"status","schema":{"type":"string","enum":["joined","invited","expired"]}},{"in":"query","name":"role","schema":{"type":"string","enum":["owner"]}},{"in":"query","name":"search","schema":{"type":"string","maxLength":100}},{"in":"query","name":"cursor","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},{"in":"query","name":"limit","schema":{"default":50,"type":"integer","minimum":1,"maximum":100}}]},"post":{"operationId":"postV1Members","tags":["Members"],"summary":"Invite somebody","description":"Mails an invitation to the address, valid for 14 days, in the name of the workspace. The invitee answers it signed in to that address, and joins without permissions; give them some with `PUT /v1/members/{memberId}/permissions`. At most 20 an hour per key.","security":[{"apiKey":[]}],"x-permission":"members:invite","parameters":[{"in":"header","name":"Idempotency-Key","required":false,"description":"Any unique string up to 255 characters. The same request sent again with it within a day gets the first answer, with `Idempotent-Replayed: true`, instead of being done twice. Another request with the same key is refused.","schema":{"type":"string","maxLength":255}}],"responses":{"201":{"description":"The invitation.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Invitation"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the `members:invite` permission, or the request comes from an address it does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The address is a member already (`ALREADY_A_MEMBER_ERROR`) or has an invitation that is still open (`INVITE_ALREADY_SENT_ERROR`). The `Idempotency-Key` was used for another request (`IDEMPOTENCY_KEY_REUSED`), or its first request is still running (`IDEMPOTENCY_KEY_IN_PROGRESS`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["email"]}}}}}},"/v1/members/{memberId}/resend":{"post":{"operationId":"postV1MembersByMemberIdResend","tags":["Members"],"summary":"Send an invitation again","description":"Mails it again and gives it 14 days from now, also when it had lapsed. At most 10 an hour per key.","security":[{"apiKey":[]}],"x-permission":"members:invite","parameters":[{"in":"header","name":"Idempotency-Key","required":false,"description":"Any unique string up to 255 characters. The same request sent again with it within a day gets the first answer, with `Idempotent-Replayed: true`, instead of being done twice. Another request with the same key is refused.","schema":{"type":"string","maxLength":255}},{"in":"path","name":"memberId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}],"responses":{"200":{"description":"The invitation.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Invitation"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the `members:invite` permission, or the request comes from an address it does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The address has joined already (`ALREADY_A_MEMBER_ERROR`). The `Idempotency-Key` was used for another request (`IDEMPOTENCY_KEY_REUSED`), or its first request is still running (`IDEMPOTENCY_KEY_IN_PROGRESS`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}}}},"/v1/members/{memberId}":{"delete":{"operationId":"deleteV1MembersByMemberId","tags":["Members"],"summary":"Remove a member or withdraw an invitation","description":"A member is told by mail; a withdrawn invitation is not. An owner is never removed with a key: `403` with `MEMBER_IS_OWNER_ERROR`; owners do that in the dashboard.","security":[{"apiKey":[]}],"x-permission":"members:manage","parameters":[{"in":"header","name":"Idempotency-Key","required":false,"description":"Any unique string up to 255 characters. The same request sent again with it within a day gets the first answer, with `Idempotent-Replayed: true`, instead of being done twice. Another request with the same key is refused.","schema":{"type":"string","maxLength":255}},{"in":"path","name":"memberId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}],"responses":{"200":{"description":"Removed.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Created"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the `members:manage` permission, or the request comes from an address it does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The `Idempotency-Key` was used for another request (`IDEMPOTENCY_KEY_REUSED`), or its first request is still running (`IDEMPOTENCY_KEY_IN_PROGRESS`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}}}},"/v1/members/{memberId}/permissions":{"put":{"operationId":"putV1MembersByMemberIdPermissions","tags":["Members"],"summary":"Change what a member may do","description":"Replaces the member’s permissions with these: `members:invite`, `members:manage`, `services:manage`, `services:transfer`, `billing:manage`. A key cannot give `*`, `workspace:manage` or `api:manage` to somebody who does not hold it (`PERMISSION_NOT_GRANTABLE_ERROR`), and cannot change an owner (`MEMBER_IS_OWNER_ERROR`); owners do that in the dashboard. The member is told by mail when something changed.","security":[{"apiKey":[]}],"x-permission":"members:manage","parameters":[{"in":"header","name":"Idempotency-Key","required":false,"description":"Any unique string up to 255 characters. The same request sent again with it within a day gets the first answer, with `Idempotent-Replayed: true`, instead of being done twice. Another request with the same key is refused.","schema":{"type":"string","maxLength":255}},{"in":"path","name":"memberId","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"required":true}],"responses":{"200":{"description":"The permissions as they are now.","headers":{"X-RateLimit-Limit":{"description":"Requests the key may make a minute (120).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count starts over.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemberPermissions"}}}},"400":{"description":"The request does not fit: see `issues`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"401":{"description":"No API key, or one that is revoked, expired or unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the `members:manage` permission, or the request comes from an address it does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in the key's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The `Idempotency-Key` was used for another request (`IDEMPOTENCY_KEY_REUSED`), or its first request is still running (`IDEMPOTENCY_KEY_IN_PROGRESS`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"The workspace is locked until the questions Servur asked are answered in the dashboard (`WORKSPACE_LOCKED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: try again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"permissions":{"maxItems":8,"type":"array","items":{"type":"string","enum":["*","workspace:manage","members:invite","members:manage","services:manage","services:transfer","billing:manage","api:manage"]}}},"required":["permissions"]}}}}}}},"webhooks":{"service.activated":{"post":{"summary":"A service was set up and is running.","description":"Sent with `Servur-Event: service.activated`. Signed with the webhook's secret: `Servur-Signature: t=<unix seconds>,v1=<hex>`, where `v1` is the HMAC-SHA256 of `<t>.<raw body>`. Compare it in constant time, and refuse a `t` more than five minutes old. Answer with any 2xx within 10 seconds; anything else is tried again for about a day, and a webhook that only fails for three days is switched off.","tags":["Webhooks"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"}}}},"responses":{"200":{"description":"Received."}}}},"service.renewal-due":{"post":{"summary":"The next period of a service was billed and goes on the next invoice: `subscriptionId`.","description":"Sent with `Servur-Event: service.renewal-due`. Signed with the webhook's secret: `Servur-Signature: t=<unix seconds>,v1=<hex>`, where `v1` is the HMAC-SHA256 of `<t>.<raw body>`. Compare it in constant time, and refuse a `t` more than five minutes old. Answer with any 2xx within 10 seconds; anything else is tried again for about a day, and a webhook that only fails for three days is switched off.","tags":["Webhooks"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"}}}},"responses":{"200":{"description":"Received."}}}},"service.renewed":{"post":{"summary":"A service runs for another period.","description":"Sent with `Servur-Event: service.renewed`. Signed with the webhook's secret: `Servur-Signature: t=<unix seconds>,v1=<hex>`, where `v1` is the HMAC-SHA256 of `<t>.<raw body>`. Compare it in constant time, and refuse a `t` more than five minutes old. Answer with any 2xx within 10 seconds; anything else is tried again for about a day, and a webhook that only fails for three days is switched off.","tags":["Webhooks"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"}}}},"responses":{"200":{"description":"Received."}}}},"service.suspended":{"post":{"summary":"A service was stopped, such as for an unpaid invoice.","description":"Sent with `Servur-Event: service.suspended`. Signed with the webhook's secret: `Servur-Signature: t=<unix seconds>,v1=<hex>`, where `v1` is the HMAC-SHA256 of `<t>.<raw body>`. Compare it in constant time, and refuse a `t` more than five minutes old. Answer with any 2xx within 10 seconds; anything else is tried again for about a day, and a webhook that only fails for three days is switched off.","tags":["Webhooks"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"}}}},"responses":{"200":{"description":"Received."}}}},"service.unsuspended":{"post":{"summary":"A stopped service runs again.","description":"Sent with `Servur-Event: service.unsuspended`. Signed with the webhook's secret: `Servur-Signature: t=<unix seconds>,v1=<hex>`, where `v1` is the HMAC-SHA256 of `<t>.<raw body>`. Compare it in constant time, and refuse a `t` more than five minutes old. Answer with any 2xx within 10 seconds; anything else is tried again for about a day, and a webhook that only fails for three days is switched off.","tags":["Webhooks"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"}}}},"responses":{"200":{"description":"Received."}}}},"service.cancelled":{"post":{"summary":"A service was cancelled and stopped.","description":"Sent with `Servur-Event: service.cancelled`. Signed with the webhook's secret: `Servur-Signature: t=<unix seconds>,v1=<hex>`, where `v1` is the HMAC-SHA256 of `<t>.<raw body>`. Compare it in constant time, and refuse a `t` more than five minutes old. Answer with any 2xx within 10 seconds; anything else is tried again for about a day, and a webhook that only fails for three days is switched off.","tags":["Webhooks"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"}}}},"responses":{"200":{"description":"Received."}}}},"service.expired":{"post":{"summary":"A service ran out without being renewed.","description":"Sent with `Servur-Event: service.expired`. Signed with the webhook's secret: `Servur-Signature: t=<unix seconds>,v1=<hex>`, where `v1` is the HMAC-SHA256 of `<t>.<raw body>`. Compare it in constant time, and refuse a `t` more than five minutes old. Answer with any 2xx within 10 seconds; anything else is tried again for about a day, and a webhook that only fails for three days is switched off.","tags":["Webhooks"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"}}}},"responses":{"200":{"description":"Received."}}}},"order.paid":{"post":{"summary":"An order was paid, from the balance, by card or on account.","description":"Sent with `Servur-Event: order.paid`. Signed with the webhook's secret: `Servur-Signature: t=<unix seconds>,v1=<hex>`, where `v1` is the HMAC-SHA256 of `<t>.<raw body>`. Compare it in constant time, and refuse a `t` more than five minutes old. Answer with any 2xx within 10 seconds; anything else is tried again for about a day, and a webhook that only fails for three days is switched off.","tags":["Webhooks"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"}}}},"responses":{"200":{"description":"Received."}}}},"invoice.issued":{"post":{"summary":"An invoice or credit note was sent.","description":"Sent with `Servur-Event: invoice.issued`. Signed with the webhook's secret: `Servur-Signature: t=<unix seconds>,v1=<hex>`, where `v1` is the HMAC-SHA256 of `<t>.<raw body>`. Compare it in constant time, and refuse a `t` more than five minutes old. Answer with any 2xx within 10 seconds; anything else is tried again for about a day, and a webhook that only fails for three days is switched off.","tags":["Webhooks"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"}}}},"responses":{"200":{"description":"Received."}}}},"invoice.paid":{"post":{"summary":"An invoice was paid.","description":"Sent with `Servur-Event: invoice.paid`. Signed with the webhook's secret: `Servur-Signature: t=<unix seconds>,v1=<hex>`, where `v1` is the HMAC-SHA256 of `<t>.<raw body>`. Compare it in constant time, and refuse a `t` more than five minutes old. Answer with any 2xx within 10 seconds; anything else is tried again for about a day, and a webhook that only fails for three days is switched off.","tags":["Webhooks"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"}}}},"responses":{"200":{"description":"Received."}}}},"dns-zone.changed":{"post":{"summary":"A zone's records changed: by a person, a key, a template or a service.","description":"Sent with `Servur-Event: dns-zone.changed`. Signed with the webhook's secret: `Servur-Signature: t=<unix seconds>,v1=<hex>`, where `v1` is the HMAC-SHA256 of `<t>.<raw body>`. Compare it in constant time, and refuse a `t` more than five minutes old. Answer with any 2xx within 10 seconds; anything else is tried again for about a day, and a webhook that only fails for three days is switched off.","tags":["Webhooks"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"}}}},"responses":{"200":{"description":"Received."}}}},"domain.transferred":{"post":{"summary":"A domain transferred in has arrived.","description":"Sent with `Servur-Event: domain.transferred`. Signed with the webhook's secret: `Servur-Signature: t=<unix seconds>,v1=<hex>`, where `v1` is the HMAC-SHA256 of `<t>.<raw body>`. Compare it in constant time, and refuse a `t` more than five minutes old. Answer with any 2xx within 10 seconds; anything else is tried again for about a day, and a webhook that only fails for three days is switched off.","tags":["Webhooks"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"}}}},"responses":{"200":{"description":"Received."}}}},"domain.nameservers-changed":{"post":{"summary":"A domain's nameservers were changed.","description":"Sent with `Servur-Event: domain.nameservers-changed`. Signed with the webhook's secret: `Servur-Signature: t=<unix seconds>,v1=<hex>`, where `v1` is the HMAC-SHA256 of `<t>.<raw body>`. Compare it in constant time, and refuse a `t` more than five minutes old. Answer with any 2xx within 10 seconds; anything else is tried again for about a day, and a webhook that only fails for three days is switched off.","tags":["Webhooks"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"}}}},"responses":{"200":{"description":"Received."}}}},"mailbox.created":{"post":{"summary":"A mailbox was created.","description":"Sent with `Servur-Event: mailbox.created`. Signed with the webhook's secret: `Servur-Signature: t=<unix seconds>,v1=<hex>`, where `v1` is the HMAC-SHA256 of `<t>.<raw body>`. Compare it in constant time, and refuse a `t` more than five minutes old. Answer with any 2xx within 10 seconds; anything else is tried again for about a day, and a webhook that only fails for three days is switched off.","tags":["Webhooks"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"}}}},"responses":{"200":{"description":"Received."}}}},"mailbox.deleted":{"post":{"summary":"A mailbox was deleted.","description":"Sent with `Servur-Event: mailbox.deleted`. Signed with the webhook's secret: `Servur-Signature: t=<unix seconds>,v1=<hex>`, where `v1` is the HMAC-SHA256 of `<t>.<raw body>`. Compare it in constant time, and refuse a `t` more than five minutes old. Answer with any 2xx within 10 seconds; anything else is tried again for about a day, and a webhook that only fails for three days is switched off.","tags":["Webhooks"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"}}}},"responses":{"200":{"description":"Received."}}}}}}