Validations
Field validations are applied to the request body when creating or updating a namespace, team, user, zone or RRset. The following rules are enforced:
Namespace Validations
name: Must be a non-empty string, unique within the tenant, and cannot exceed 255 characters.name: Leading and trailing whitespace is removed before the name is checked and stored, so a name made only of whitespace is rejected.name: Must be unique within the tenant among those that are not deleted, ignoring letter case:Productionandproductioncount as the same name.name: Can not bedefaultor any case variants.description: Optional string, cannot exceed 255 characters.nameanddescription: Can not contain control characters, such as NUL, tab, or line breaks.
Team Validations
name: Must be a non-empty string and cannot exceed 255 characters.name: Leading and trailing whitespace is removed before the name is checked and stored, so a name made only of whitespace is rejected.name: Must be unique within the tenant among those that are not deleted, ignoring letter case:Platformandplatformcount as the same name.name: Can not bedefaultor any case variants.name: Can not contain control characters, such as NUL, tab, or line breaks.email: Optional. When set, it must be a single email address such asteam@example.com, without a display name, and cannot exceed 255 characters. Leading and trailing whitespace is removed. An empty string clears it.
User Validations
first_nameandlast_name: Must be non-empty strings and cannot exceed 255 characters. Leading and trailing whitespace is removed before they are checked and stored.first_nameandlast_name: Can not contain control characters, such as NUL, tab, or line breaks.email: Required. Must be a single email address such asuser@example.com, without a display name, and cannot exceed 255 characters. Leading and trailing whitespace is removed.email: Must be unique within the tenant among users that are not deleted, ignoring letter case:Ada@example.comandada@example.comcount as the same address.avatar_url: Optional. When set, it must be anhttporhttpsURL and cannot exceed 255 characters. An empty string clears it.team_id: Optional on create; the user joins theDefaultteam when it is omitted. When set, it must be a team of your tenant.role: Optional on create; the user is amemberwhen it is omitted. When set, it must beownerormember.
Zone Validations
namespace_id: Required on create. Must be a namespace of your tenant. A zone stays in its namespace.name: Required on create and cannot be changed. A domain name such asexample.internal, of at most 253 characters, with labels of 1 to 63 letters, digits and hyphens that do not start or end with a hyphen. Internationalized names must be given in theirxn--form.name: Leading and trailing whitespace and one trailing dot are removed, and the name is stored in lower case.name: Must be unique within the namespace among zones that are not deleted.description: Optional string, cannot exceed 255 characters or contain control characters.soa.primary_nsandsoa.hostmaster: Domain names. The hostmaster is written in DNS form, such ashostmaster.example.com. They default tons1.<zone>andhostmaster.<zone>.soa.refresh,soa.retryandsoa.expire: Between 1 and 2147483647 seconds.soa.minimumandsoa.ttl: between 0 and 2147483647.soa.serial: Set by Valgrid. It starts at the namespace'sconfig_versionwhen the zone is created and increases on every change to the zone or its RRsets.
RRset Validations
name: Relative to the zone, such aswwwor_sip._tcp.@or an empty name is the zone apex. A name ending in a dot, such aswww.example.internal., must be in the zone.*can be used as the leftmost label for a wildcard. The name is stored in lower case and cannot be changed.type: Required on create and cannot be changed. One ofA,AAAA,CAA,CNAME,MX,NS,PTR,SRVandTXT, in any letter case.type: An RRset of the same name and type must not exist in the zone. ACNAMEcannot share its name with any other RRset and cannot be at the apex.ttl: Optional, between 0 and 2147483647 seconds. Defaults to 300.records: 1 to 100 records with different contents; aCNAMEhas exactly one. On update, the records replace the existing ones.records[].content: At most 2048 characters without control characters, written as in a zone file:A: an IPv4 address, such as192.0.2.1.AAAA: an IPv6 address, such as2001:db8::1.CNAME,NS,PTR: a domain name. A name ending in a dot is absolute; one without is relative to the zone.MX: a preference and a mail server, such as10 mail.example.com..SRV: priority, weight, port and target, such as10 60 5060 sip.example.com..CAA: flags, tag and value, such as0 issue "letsencrypt.org".TXT: any text.records[].disabled: Optional. A disabled record is kept but not served.
Pagination
List endpoints accept two query parameters:
limit: Optional integer between 1 and 100. Defaults to 20.after: Optional token copied from theLink: <...>; rel="next"header of the previous page. Follow that link as is, rather than building it yourself.
Error Responses
A failed validation returns 400 Bad Request with the VALIDATION_FAILED error code. This includes an invalid limit or after value.