LiveDNS API
https://api.gandi.net/v5/livedns
TSIG keys ¶
https://api.gandi.net/v5/livedns/axfr/tsig
get List existing TSIG keys ¶
Request
Query String
- Optional- sharing_id ⁠stringSharing ID. Organization ID used as a filter or as a billing identifier. See the reference.
 
- sharing_id ⁠string
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Responses
200
Body
- application/json⁠array- Of items of type: - objectWith the following properties: - href ⁠stringURL of the key
- id ⁠stringIdentifier of the key
- key_name ⁠stringUnique "name" for the key, based on its id
- secret ⁠stringshared secret of the key
 
- href ⁠string
 Example:- [ { "href": "https://api.test/v5/livedns/axfr/tsig/2e21af2b-3d85-4ad9-b51b-698c242a13e5", "id": "2e21af2b-3d85-4ad9-b51b-698c242a13e5", "key_name": "2e21af2b-3d85-4ad9-b51b-698c242a13e5.gandi.net", "secret": "aiG5ji3Necheisho" } ]
- object
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
401
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
post Creates a new TSIG key ¶
Request
Query String
- Optional- sharing_id ⁠stringSharing ID. Organization ID used as a filter or as a billing identifier. See the reference.
 
- sharing_id ⁠string
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Responses
201
Headers
- Location ⁠string
 
Body
- application/json⁠object- With the following properties: - href ⁠stringURL of the key
- id ⁠stringIdentifier of the key
- key_name ⁠stringUnique "name" for the key, based on its id
 Example:- { "href": "https://api.test/v5/livedns/axfr/tsig/2e21af2b-3d85-4ad9-b51b-698c242a13e5", "id": "2e21af2b-3d85-4ad9-b51b-698c242a13e5", "key_name": "2e21af2b-3d85-4ad9-b51b-698c242a13e5.gandi.net" }
- href ⁠string
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
401
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Manage TSIG keys ¶
https://api.gandi.net/v5/livedns/axfr/tsig/{id}
get GET information about a TSIG key ¶
Request
URI Parameters
- id ⁠string
 
Query String
- Optional- sharing_id ⁠stringSharing ID. Organization ID used as a filter or as a billing identifier. See the reference.
 
- sharing_id ⁠string
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Responses
200
Body
- application/json⁠object- With the following properties: - config_samples ⁠objectURL samples for each of those softwareWith the following properties: - bind ⁠string
- knot ⁠string
- nsd ⁠string
- powerdns ⁠string
 
- href ⁠stringURL of the key
- id ⁠stringIdentifier of the key
- key_name ⁠stringUnique "name" for the key, based on its id
- secret ⁠stringshared secret of the key
 Example:- { "href": "https://api.test/v5/v5/livedns/axfr/tsig/2e21af2b-3d85-4ad9-b51b-698c242a13e5", "id": "2e21af2b-3d85-4ad9-b51b-698c242a13e5", "key_name": "2e21af2b-3d85-4ad9-b51b-698c242a13e5.gandi.net", "secret": "aiG5ji3Necheisho", "config_samples": { "bind": "https://api.test/v5/v5/livedns/axfr/tsig/id-tsig-001/config/bind", "knot": "https://api.test/v5/v5/livedns/axfr/tsig/id-tsig-001/config/knot", "nsd": "https://api.test/v5/v5/livedns/axfr/tsig/id-tsig-001/config/nsd", "powerdns": "hhttps://api.test/v5/v5/livedns/axfr/tsig/id-tsig-001/config/" } }
- config_samples ⁠object
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
401
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Software configuration information ¶
https://api.gandi.net/v5/livedns/axfr/tsig/{id}/config/{software}
get Software configuration information ¶
Request
URI Parameters
- id ⁠string
- software ⁠stringOne of: "bind", "knot", "nsd", "powerdns" 
 
Query String
- Optional- sharing_id ⁠stringSharing ID. Organization ID used as a filter or as a billing identifier. See the reference.
 
- sharing_id ⁠string
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Responses
200
Body
- application/json⁠stringString representation of the configuration for that key
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
401
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
List accepted record types ¶
https://api.gandi.net/v5/livedns/dns/rrtypes
get List record types ¶
Returns the list of known record types (A, CNAME, …)
Current list (might be outdated):
- A
- AAAA
- ALIAS
- CAA
- CDS
- CNAME
- DNAME
- DS
- KEY
- LOC
- MX
- NAPTR
- NS
- OPENPGPKEY
- PTR
- RP
- SPF
- SRV
- SSHFP
- TLSA
- TXT
- WKS
Request
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Responses
200
Body
- application/json⁠array[ string ]
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
401
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Domains ¶
https://api.gandi.net/v5/livedns/domains
get List of domains handled by LiveDNS ¶
sharing_id query string filter to list domains associated with another OrganizationRequest
Query String
- Optional- page ⁠integerDefault: 1 Minimum: 1 Which result page to retrieve. If the number is greater than the last page, an empty list is returned.
- per_page ⁠integerMinimum: 1 How many items to display per page.
- sharing_id ⁠stringSharing ID. Organization ID used as a filter or as a billing identifier. See the reference.
 
- page ⁠integer
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Responses
200
Headers
- Total-Count ⁠integerTotal number of items.
 - Optional- Link ⁠stringLinks to next and last page.
 
- Total-Count ⁠integer
Body
- application/json⁠array- Of items of type: - objectWith the following properties: - domain_href ⁠string
- domain_records_href ⁠string
- fqdn ⁠string
 
 Example:- [ { "fqdn": "example.org", "domain_href": "https://api.test/v5/livedns/domains/example.org", "domain_records_href": "https://api.test/v5/livedns/domains/example.org/records" }, { "fqdn": "example.net", "domain_href": "https://api.test/v5/livedns/domains/example.net", "domain_records_href": "https://api.test/v5/livedns/domains/example.net/records" } ]
- object
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
401
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
post Add a new domain to LiveDNS ¶
Request
Query String
- Optional- sharing_id ⁠stringSharing ID. Organization ID used as a filter or as a billing identifier. See the reference.
 
- sharing_id ⁠string
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Body
- application/json⁠object- With the following properties: - Required- fqdn ⁠stringThe domain name
 - Optional- zone ⁠objectWith the following properties: Optional- items ⁠arrayOf items of type: - objectWith the following properties: Required- rrset_name ⁠stringName of the record
- rrset_type ⁠stringOne of: "A", "AAAA", "ALIAS", "CAA", "CDS", "CNAME", "DNAME", "DS", "HTTPS", "KEY", "LOC", "MX", "NAPTR", "NS", "OPENPGPKEY", "PTR", "RP", "SOA", "SPF", "SRV", "SSHFP", "SVCB", "TLSA", "TXT", "WKS" 
- rrset_values ⁠array[ string ]A list of values for this record
 Optional- rrset_ttl ⁠integerMinimum: 300 Maximum: 2592000 The time in seconds that DNS resolvers should cache this record
 
- rrset_name ⁠string
 
- object
- ttl ⁠integerMinimum: 300 Maximum: 2592000 The TTL of the SOA record. Note that this is not a default TTL that will be used for the records in the zone.
 
- items ⁠array
 Example:- { "fqdn": "example.org" }Example:- { "fqdn": "example.org", "zone": { "items": [ { "rrset_name": "@", "rrset_type": "A", "rrset_values": [ "192.0.2.1" ] } ] } }
- fqdn ⁠string
Responses
201
Headers
- Optional- Location ⁠string
 
Body
- application/json⁠object- With the following properties: - message ⁠stringConfirmation message.
 
- message ⁠string
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
401
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Domain information ¶
https://api.gandi.net/v5/livedns/domains/{fqdn}
get Show domain's properties ¶
Request
URI Parameters
- fqdn ⁠stringDomain name.
 
- fqdn ⁠string
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Responses
200
Body
- application/json⁠object- With the following properties: - automatic_snapshots ⁠booleanTrue if new snapshots are automatically created when a modification is made to this domain's records
- domain_href ⁠string
- domain_keys_href ⁠string
- domain_records_href ⁠string
- fqdn ⁠string
 Example:- { "fqdn": "example.com", "domain_href": "https://api.test/v5/livedns/domains/example.com", "domain_records_href": "https://api.test/v5/livedns/domains/example.com/records", "domain_keys_href": "https://api.test/v5/livedns/domains/example.com/keys", "automatic_snapshots": true }
- automatic_snapshots ⁠boolean
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
401
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
patch Update domain's properties ¶
automatic_snapshots can be currently be changedRequest
URI Parameters
- fqdn ⁠stringDomain name.
 
- fqdn ⁠string
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Body
- application/json⁠object- With the following properties: - Optional- automatic_snapshots ⁠booleanEnable or disable the automatic creation of new snapshots when records are changed. Disabling this will improve performance of modifications for domains with a large number of records
 Example:- { "automatic_snapshots": true }
- automatic_snapshots ⁠boolean
Responses
200
Body
- application/json⁠object- With the following properties: - message ⁠stringConfirmation message.
 
- message ⁠string
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
401
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Zone transfer slaves ¶
https://api.gandi.net/v5/livedns/domains/{fqdn}/axfr/slaves
get List current slave's IP addresses ¶
Request
URI Parameters
- fqdn ⁠stringDomain name.
 
- fqdn ⁠string
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Responses
200
Body
- application/json⁠array[ string ]A simple list of IP addressesExample:- [ "192.0.2.1", "2001:0db8:0000:0000:0000:0000:0000:0001" ]
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
401
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Zone slaves' IP ¶
https://api.gandi.net/v5/livedns/domains/{fqdn}/axfr/slaves/{ip}
put Add a new slave IP address to a domain ¶
Request
URI Parameters
- fqdn ⁠stringDomain name.
- ip ⁠stringIP address (v4 or v6)
 
- fqdn ⁠string
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Responses
201
Headers
- Optional- Location ⁠string
 
Body
- application/json⁠object- With the following properties: - message ⁠stringConfirmation message.
 
- message ⁠string
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
401
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
delete Remove a slave IP address from a domain ¶
Request
URI Parameters
- fqdn ⁠stringDomain name.
- ip ⁠stringIP address (v4 or v6)
 
- fqdn ⁠string
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Responses
202
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
401
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
TSIG keys associated with a domain ¶
https://api.gandi.net/v5/livedns/domains/{fqdn}/axfr/tsig
get List TSIG keys associated with a domain ¶
Request
URI Parameters
- fqdn ⁠stringDomain name.
 
- fqdn ⁠string
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Responses
200
Body
- application/json⁠array- Of items of type: - objectWith the following properties: - href ⁠stringURL of the key
- id ⁠stringIdentifier of the key
- key_name ⁠stringUnique "name" for the key, based on its id
 
- href ⁠string
 Example:- [ { "id": "9c87db4b-5624-4547-a006-8ac5c9343c6a", "key_name": "9c87db4b-5624-4547-a006-8ac5c9343c6a.gandi.net", "href": "https://api.test/v5/livedns/domains/example.com/axfr/tsig/9c87db4b-5624-4547-a006-8ac5c9343c6a" } ]
- object
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
401
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Manage TSIG key association ¶
https://api.gandi.net/v5/livedns/domains/{fqdn}/axfr/tsig/{id}
put Associate a domain with a TSIG key ¶
Request
URI Parameters
- fqdn ⁠stringDomain name.
- id ⁠stringTSIG identifier
 
- fqdn ⁠string
Query String
- Optional- sharing_id ⁠stringSharing ID. Organization ID used as a filter or as a billing identifier. See the reference.
 
- sharing_id ⁠string
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Responses
201
Headers
- Optional- Location ⁠string
 
Body
- application/json⁠object- With the following properties: - message ⁠stringConfirmation message.
 
- message ⁠string
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
401
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
delete Remove association between a domain and a TSIG key ¶
Request
URI Parameters
- fqdn ⁠stringDomain name.
- id ⁠stringTSIG identifier
 
- fqdn ⁠string
Query String
- Optional- sharing_id ⁠stringSharing ID. Organization ID used as a filter or as a billing identifier. See the reference.
 
- sharing_id ⁠string
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Responses
202
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
401
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
DNSSEC keys ¶
https://api.gandi.net/v5/livedns/domains/{fqdn}/keys
get List DNSSEC keys of a domain ¶
Request
URI Parameters
- fqdn ⁠stringDomain name.
 
- fqdn ⁠string
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Responses
200
Body
- application/json⁠array- Of items of type: - objectWith the following properties: - algorithm ⁠integerAlgorithm number (see IANA for full list)
- algorithm_name ⁠stringAlgorithm as "human readable" (eg:ECDSAP256SHA256)
- deleted ⁠booleanIs this key deleted? (no longer active)
- ds ⁠stringDS record as RFC1035 line (absolute)
- flags ⁠integerOne of: 256, 257 Key flags
- fqdn ⁠stringassociated domain name
- id ⁠stringIdentifier of the key
- key_href ⁠stringURL of the key
- status ⁠stringCurrent status of the key
 
- algorithm ⁠integer
 Example:- [ { "algorithm": 13, "algorithm_name": "ECDSAP256SHA256", "deleted": false, "ds": "example.com. 3600 IN DS 50651 13 2 01cc01ee6b2750339245aba473340f589356b889a360380e80a11a36824dfb0d", "flags": 257, "fqdn": "example.com", "key_href": "https://api.test/v5/livedns//domains/example.com/keys/key-001", "status": "active", "id": "key-001" } ]
- object
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
401
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
post Creates a new DNSSEC Key ¶
Request
URI Parameters
- fqdn ⁠stringDomain name.
 
- fqdn ⁠string
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Body
- application/json⁠object- With the following properties: - Required- flags ⁠integerOne of: 256, 257 Key flags (ZSK=256, KSK=257)
 Example:- { "flags": 256 }Example:- { "flags": 257 }
- flags ⁠integer
Responses
201
Headers
- Optional- Location ⁠string
 
Body
- application/json⁠object- With the following properties: - message ⁠stringConfirmation message.
 
- message ⁠string
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
401
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Manipulate a specific DNSSEC key ¶
https://api.gandi.net/v5/livedns/domains/{fqdn}/keys/{id}
get Get information about a key ¶
Request
URI Parameters
- fqdn ⁠stringDomain name.
- id ⁠stringKey identifier
 
- fqdn ⁠string
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Responses
200
Body
- application/json⁠object- With the following properties: - algorithm ⁠integerAlgorithm number (see IANA for full list)
- algorithm_name ⁠stringAlgorithm as "human readable" (eg:ECDSAP256SHA256)
- deleted ⁠booleanIs this key deleted? (no longer active)
- ds ⁠stringDS record as RFC1035 line (absolute)
- fingerprint ⁠stringThe digest of the key
- flags ⁠integerOne of: 256, 257 Key flags
- fqdn ⁠stringassociated domain name
- id ⁠stringIdentifier of the key
- key_href ⁠stringURL of the key
- public_key ⁠stringPublic part of the key
- status ⁠stringCurrent status of the key
- tag ⁠integerExtracted tag number of the key
 Example:- { "algorithm": 13, "algorithm_name": "ECDSAP256SHA256", "deleted": false, "ds": "example.com. 3600 IN DS 50651 13 2 01cc01ee6b2750339245aba473340f589356b889a360380e80a11a36824dfb0d", "fingerprint": "ed5317ae0f6726cc694332d2d636e72f7ec616b96475a0cf3dd9801d0d64f619", "flags": 257, "fqdn": "example.com", "id": "key-001", "key_href": "https://api.test/v5/livedns//domains/example.com/keys/key-001", "public_key": "rtvYYzLKH/O9IlWUyP5/eMNymj1svKZhK9PVcih019T0KyJ99eyfL6VeOVys22+JQ0Xua7b/0B0RNFfEBsIImg==", "status": "active", "tag": 33695 }
- algorithm ⁠integer
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
401
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
patch Undelete a key ¶
Request
URI Parameters
- fqdn ⁠stringDomain name.
- id ⁠stringKey identifier
 
- fqdn ⁠string
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Body
- application/json⁠object- With the following properties: - Required- deleted ⁠booleanOne of: false 
 Example:- { "deleted": false }
- deleted ⁠boolean
Responses
200
Body
- application/json⁠object- With the following properties: - message ⁠stringConfirmation message.
 
- message ⁠string
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
401
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
delete Deletes a key ¶
Request
URI Parameters
- fqdn ⁠stringDomain name.
- id ⁠stringKey identifier
 
- fqdn ⁠string
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Responses
204
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
401
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Domain's nameserver information ¶
https://api.gandi.net/v5/livedns/domains/{fqdn}/nameservers
get Retrieve this domain's nameservers ¶
This route returns the list of nameservers that this domain is using according to LiveDNS' systems.
- Either there are no NS records on @ and the 3 hashed nameservers are returned (ns-{123}-{abc}.gandi.net)
- Or some NS records exist on @ and it will return those
Request
URI Parameters
- fqdn ⁠stringDomain name.
 
- fqdn ⁠string
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Responses
200
Body
- application/json⁠array[ string ]List of nameserversExample:- [ "ns-154-a.gandi.net", "ns-232-b.gandi.net", "ns-109-c.gandi.net" ]Example:- [ "ns1.example.net", "ns2.example.net" ]
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
401
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Domain's records ¶
https://api.gandi.net/v5/livedns/domains/{fqdn}/records
get List records associated with a domain ¶
Request
URI Parameters
- fqdn ⁠stringDomain name.
 
- fqdn ⁠string
Query String
- Optional- page ⁠integerDefault: 1 Minimum: 1 Which result page to retrieve. If the number is greater than the last page, an empty list is returned.
- per_page ⁠integerMinimum: 1 How many items to display per page.
- rrset_type ⁠stringOne of: "A", "AAAA", "ALIAS", "CAA", "CDS", "CNAME", "DNAME", "DS", "HTTPS", "KEY", "LOC", "MX", "NAPTR", "NS", "OPENPGPKEY", "PTR", "RP", "SOA", "SPF", "SRV", "SSHFP", "SVCB", "TLSA", "TXT", "WKS" Filter records by type
- sort_by ⁠stringDefault: "rrset_name" 
 
- page ⁠integer
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 - Optional- Accept ⁠stringWhen passedtext/plainvalue, this route will return The contents of the zone as it would appear in a standard master zone file (see RFC1035)
 
- Authorization ⁠string
Responses
200
Headers
- Total-Count ⁠integerTotal number of items.
 - Optional- Link ⁠stringLinks to next and last page.
 
- Total-Count ⁠integer
Body
- application/json⁠array- Of items of type: - objectWith the following properties: - rrset_href ⁠stringURL for the record
- rrset_name ⁠stringName of the record
- rrset_type ⁠stringOne of: "A", "AAAA", "ALIAS", "CAA", "CDS", "CNAME", "DNAME", "DS", "HTTPS", "KEY", "LOC", "MX", "NAPTR", "NS", "OPENPGPKEY", "PTR", "RP", "SOA", "SPF", "SRV", "SSHFP", "SVCB", "TLSA", "TXT", "WKS" 
- rrset_values ⁠array[ string ]A list of values for this record
 Optional- rrset_ttl ⁠integerMinimum: 300 Maximum: 2592000 The time in seconds that DNS resolvers should cache this record
 
- rrset_href ⁠string
 Example:- [ { "rrset_name": "@", "rrset_ttl": 10800, "rrset_type": "A", "rrset_values": [ "192.0.2.1" ], "rrset_href": "https://api.test/v5/livedns/domains/example.com/records/%40/A" }, { "rrset_name": "www", "rrset_ttl": 10800, "rrset_type": "CNAME", "rrset_values": [ "www.example.net." ], "rrset_href": "https://api.test/v5/livedns/domains/example.com/records/www/CNAME" } ]
- object
- text/plain⁠stringThe contents of the zone as it would appear in a standard master zone file (see RFC1035)
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
401
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
post Creates a new record ¶
Request
URI Parameters
- fqdn ⁠stringDomain name.
 
- fqdn ⁠string
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Body
- application/json⁠object- With the following properties: - Required- rrset_name ⁠stringName of the record
- rrset_type ⁠stringOne of: "A", "AAAA", "ALIAS", "CAA", "CDS", "CNAME", "DNAME", "DS", "HTTPS", "KEY", "LOC", "MX", "NAPTR", "NS", "OPENPGPKEY", "PTR", "RP", "SOA", "SPF", "SRV", "SSHFP", "SVCB", "TLSA", "TXT", "WKS" 
- rrset_values ⁠array[ string ]A list of values for this record
 - Optional- rrset_ttl ⁠integerMinimum: 300 Maximum: 2592000 The time in seconds that DNS resolvers should cache this record
 Example:- { "rrset_name": "www", "rrset_type": "A", "rrset_values": [ "192.0.2.1" ] }Example:- { "rrset_name": "www", "rrset_type": "AAAA", "rrset_values": [ "2001:db8::1", "2001:db8::2" ] }Example:- { "rrset_name": "@", "rrset_type": "TXT", "rrset_values": [ "\"v=spf1 include:_mailcust.gandi.net ?all\"" ] }
- rrset_name ⁠string
Responses
200
Headers
- Location ⁠stringURL of record
 
- Location ⁠string
Body
- application/json⁠object- With the following properties: - message ⁠stringConfirmation message.
 
- message ⁠string
201
Headers
- Location ⁠stringURL of record
 
- Location ⁠string
Body
- application/json⁠object- With the following properties: - message ⁠stringConfirmation message.
 
- message ⁠string
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
409
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
401
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
put Replace the whole zone with new records ¶
Request
URI Parameters
- fqdn ⁠stringDomain name.
 
- fqdn ⁠string
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Body
- application/json⁠object- With the following properties: - Required- items ⁠arrayOf items of type: - objectWith the following properties: Required- rrset_name ⁠stringName of the record
- rrset_type ⁠stringOne of: "A", "AAAA", "ALIAS", "CAA", "CDS", "CNAME", "DNAME", "DS", "HTTPS", "KEY", "LOC", "MX", "NAPTR", "NS", "OPENPGPKEY", "PTR", "RP", "SOA", "SPF", "SRV", "SSHFP", "SVCB", "TLSA", "TXT", "WKS" 
- rrset_values ⁠array[ string ]A list of values for this record
 Optional- rrset_ttl ⁠integerMinimum: 300 Maximum: 2592000 The time in seconds that DNS resolvers should cache this record
 
- rrset_name ⁠string
 
- object
 - Optional- remove_apex_ns ⁠booleanDefault: false The default behavior is to keep the NS records on @ if they already exist and no NS where provided in the body. Settingremove_apex_nsto true will remove the NS records in all cases. (Note that having no NS record is a valid configuration, the default ones will be used by the current nameservers)
 Example:- { "items": [ { "rrset_name": "www", "rrset_type": "A", "rrset_values": [ "192.0.2.1" ] }, { "rrset_name": "www", "rrset_type": "AAAA", "rrset_values": [ "2001:db8::1", "2001:db8::2" ] }, { "rrset_name": "@", "rrset_type": "TXT", "rrset_values": [ "\"v=spf1 include:_mailcust.gandi.net ?all\"" ] } ] }
- items ⁠array
- text/plain⁠stringThe contents of the zone as it would appear in a standard master zone file (see RFC1035)
Responses
201
Headers
- Optional- Location ⁠string
 
Body
- application/json⁠object- With the following properties: - message ⁠stringConfirmation message.
 
- message ⁠string
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
401
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
delete Delete all records ¶
Request
URI Parameters
- fqdn ⁠stringDomain name.
 
- fqdn ⁠string
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Responses
204
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
401
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Domain's records, by name ¶
https://api.gandi.net/v5/livedns/domains/{fqdn}/records/{rrset_name}
get Zone records list {rrset_name} linked to a domain ¶
Request
URI Parameters
- fqdn ⁠stringDomain name.
- rrset_name ⁠stringName of the record.
 
- fqdn ⁠string
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Responses
200
Body
- application/json⁠array- Of items of type: - objectWith the following properties: - rrset_href ⁠stringURL for the record
- rrset_name ⁠stringName of the record
- rrset_type ⁠stringOne of: "A", "AAAA", "ALIAS", "CAA", "CDS", "CNAME", "DNAME", "DS", "HTTPS", "KEY", "LOC", "MX", "NAPTR", "NS", "OPENPGPKEY", "PTR", "RP", "SOA", "SPF", "SRV", "SSHFP", "SVCB", "TLSA", "TXT", "WKS" 
- rrset_values ⁠array[ string ]A list of values for this record
 Optional- rrset_ttl ⁠integerMinimum: 300 Maximum: 2592000 The time in seconds that DNS resolvers should cache this record
 
- rrset_href ⁠string
 Example:- [ { "rrset_name": "www", "rrset_type": "A", "rrset_values": [ "192.0.2.1" ], "rrset_ttl": 320, "rrset_href": "https://api.test/v5/livedns/domains/example.com/records/www/A" }, { "rrset_name": "www", "rrset_type": "TXT", "rrset_values": [ "some-text-value" ], "rrset_ttl": 320, "rrset_href": "https://api.test/v5/livedns/domains/example.com/records/www/TXT" } ]
- object
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
401
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
post Create a new record whose name is defined by the path ¶
Request
URI Parameters
- fqdn ⁠stringDomain name.
- rrset_name ⁠stringName of the record.
 
- fqdn ⁠string
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Body
- application/json⁠object- With the following properties: - Required- rrset_type ⁠stringOne of: "A", "AAAA", "ALIAS", "CAA", "CDS", "CNAME", "DNAME", "DS", "HTTPS", "KEY", "LOC", "MX", "NAPTR", "NS", "OPENPGPKEY", "PTR", "RP", "SOA", "SPF", "SRV", "SSHFP", "SVCB", "TLSA", "TXT", "WKS" 
- rrset_values ⁠array[ string ]A list of values for this record
 - Optional- rrset_ttl ⁠integerMinimum: 300 Maximum: 2592000 The time in seconds that DNS resolvers should cache this record
 Example:- { "rrset_type": "A", "rrset_values": [ "192.0.2.1" ] }Example:- { "rrset_type": "AAAA", "rrset_values": [ "2001:db8::1", "2001:db8::2" ] }Example:- { "rrset_type": "TXT", "rrset_values": [ "some-text-value" ] }
- rrset_type ⁠string
Responses
200
Headers
- Location ⁠stringURL of record
 
- Location ⁠string
Body
- application/json⁠object- With the following properties: - message ⁠stringConfirmation message.
 
- message ⁠string
201
Headers
- Location ⁠stringURL of record
 
- Location ⁠string
Body
- application/json⁠object- With the following properties: - message ⁠stringConfirmation message.
 
- message ⁠string
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
409
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
401
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
put Replace all records named {rrset_name} ¶
Request
URI Parameters
- fqdn ⁠stringDomain name.
- rrset_name ⁠stringName of the record.
 
- fqdn ⁠string
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Body
- application/json⁠object- With the following properties: - Required- items ⁠arrayOf items of type: - objectWith the following properties: Required- rrset_type ⁠stringOne of: "A", "AAAA", "ALIAS", "CAA", "CDS", "CNAME", "DNAME", "DS", "HTTPS", "KEY", "LOC", "MX", "NAPTR", "NS", "OPENPGPKEY", "PTR", "RP", "SOA", "SPF", "SRV", "SSHFP", "SVCB", "TLSA", "TXT", "WKS" 
- rrset_values ⁠array[ string ]A list of values for this record
 Optional- rrset_ttl ⁠integerMinimum: 300 Maximum: 2592000 The time in seconds that DNS resolvers should cache this record
 
- rrset_type ⁠string
 
- object
 Example:- { "items": [ { "rrset_type": "A", "rrset_values": [ "192.0.2.1" ] }, { "rrset_type": "AAAA", "rrset_values": [ "2001:db8::1", "2001:db8::2" ] }, { "rrset_type": "TXT", "rrset_values": [ "some-text-value" ] } ] }
- items ⁠array
Responses
201
Headers
- Optional- Location ⁠string
 
Body
- application/json⁠object- With the following properties: - message ⁠stringConfirmation message.
 
- message ⁠string
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
401
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
delete Delete all records named {rrset_name} ¶
Request
URI Parameters
- fqdn ⁠stringDomain name.
- rrset_name ⁠stringName of the record.
 
- fqdn ⁠string
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Responses
204
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
401
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Single domain's record, by name and type ¶
https://api.gandi.net/v5/livedns/domains/{fqdn}/records/{rrset_name}/{rrset_type}
get Get a single single record with its name and type ¶
Request
URI Parameters
- fqdn ⁠stringDomain name.
- rrset_name ⁠stringName of the record.
- rrset_type ⁠stringOne of: "A", "AAAA", "ALIAS", "CAA", "CDS", "CNAME", "DNAME", "DS", "HTTPS", "KEY", "LOC", "MX", "NAPTR", "NS", "OPENPGPKEY", "PTR", "RP", "SOA", "SPF", "SRV", "SSHFP", "SVCB", "TLSA", "TXT", "WKS" Type of the record
 
- fqdn ⁠string
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Responses
200
Body
- application/json⁠object- With the following properties: - rrset_href ⁠stringURL for the record
- rrset_name ⁠stringName of the record
- rrset_type ⁠stringOne of: "A", "AAAA", "ALIAS", "CAA", "CDS", "CNAME", "DNAME", "DS", "HTTPS", "KEY", "LOC", "MX", "NAPTR", "NS", "OPENPGPKEY", "PTR", "RP", "SOA", "SPF", "SRV", "SSHFP", "SVCB", "TLSA", "TXT", "WKS" 
- rrset_values ⁠array[ string ]A list of values for this record
 - Optional- rrset_ttl ⁠integerMinimum: 300 Maximum: 2592000 The time in seconds that DNS resolvers should cache this record
 Example:- { "rrset_name": "www", "rrset_type": "CNAME", "rrset_values": [ "www.example.net" ], "rrset_ttl": 10800, "rrset_href": "https://api.test/v5/livedns/domains/example.com/records/www/CNAME" }
- rrset_href ⁠string
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
401
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
patch Update a record (RRset) in the zone records linked to a domain ¶
Request
URI Parameters
- fqdn ⁠stringDomain name.
- rrset_name ⁠stringName of the record.
- rrset_type ⁠stringOne of: "A", "AAAA", "ALIAS", "CAA", "CDS", "CNAME", "DNAME", "DS", "HTTPS", "KEY", "LOC", "MX", "NAPTR", "NS", "OPENPGPKEY", "PTR", "RP", "SOA", "SPF", "SRV", "SSHFP", "SVCB", "TLSA", "TXT", "WKS" Type of the record
 
- fqdn ⁠string
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Body
- application/json⁠object- With the following properties: - Optional- add_rrset_values ⁠arrayDefault: [] Resource record set values to add in a DNS zone.Of items of type: - stringMaximum length: 16384 Pattern: ^[\x20-\x7E]+$ 
 
- string
- remove_rrset_values ⁠arrayDefault: [] Resource record set values to remove from a DNS zone.Of items of type: - stringMaximum length: 16384 Pattern: ^[\x20-\x7E]+$ 
 
- string
- rrset_ttl ⁠integerMinimum: 300 Maximum: 2592000 The time in seconds that DNS resolvers should cache this record.
 Example:- { "add_rrset_values": [ "www.example.org." ], "rrset_ttl": 11000 }
- add_rrset_values ⁠array
Responses
200
Body
- application/json⁠object- With the following properties: - rrset_href ⁠stringURL for the record
- rrset_name ⁠stringName of the record
- rrset_type ⁠stringOne of: "A", "AAAA", "ALIAS", "CAA", "CDS", "CNAME", "DNAME", "DS", "HTTPS", "KEY", "LOC", "MX", "NAPTR", "NS", "OPENPGPKEY", "PTR", "RP", "SOA", "SPF", "SRV", "SSHFP", "SVCB", "TLSA", "TXT", "WKS" 
- rrset_values ⁠array[ string ]A list of values for this record
 - Optional- rrset_ttl ⁠integerMinimum: 300 Maximum: 2592000 The time in seconds that DNS resolvers should cache this record
 Example:- { "rrset_name": "www", "rrset_type": "CNAME", "rrset_values": [ "www.example.org." ], "rrset_ttl": 11000, "rrset_href": "https://api.test/v5/livedns/domains/example.com/records/www/CNAME" }
- rrset_href ⁠string
204
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
401
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
post Create a new record whose name and type are defined by the path ¶
Request
URI Parameters
- fqdn ⁠stringDomain name.
- rrset_name ⁠stringName of the record.
- rrset_type ⁠stringOne of: "A", "AAAA", "ALIAS", "CAA", "CDS", "CNAME", "DNAME", "DS", "HTTPS", "KEY", "LOC", "MX", "NAPTR", "NS", "OPENPGPKEY", "PTR", "RP", "SOA", "SPF", "SRV", "SSHFP", "SVCB", "TLSA", "TXT", "WKS" Type of the record
 
- fqdn ⁠string
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Body
- application/json⁠object- With the following properties: - Required- rrset_values ⁠array[ string ]A list of values for this record
 - Optional- rrset_ttl ⁠integerMinimum: 300 Maximum: 2592000 The time in seconds that DNS resolvers should cache this record
 Example:- { "rrset_values": [ "www.example.org" ], "rrset_ttl": 320 }
- rrset_values ⁠array[ string ]
Responses
200
Headers
- Location ⁠stringURL of record
 
- Location ⁠string
Body
- application/json⁠object- With the following properties: - message ⁠stringConfirmation message.
 
- message ⁠string
201
Headers
- Location ⁠stringURL of record
 
- Location ⁠string
Body
- application/json⁠object- With the following properties: - message ⁠stringConfirmation message.
 
- message ⁠string
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
409
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
401
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
put Overwrites a single record with {rrset_name} and {rrset_type} ¶
Request
URI Parameters
- fqdn ⁠stringDomain name.
- rrset_name ⁠stringName of the record.
- rrset_type ⁠stringOne of: "A", "AAAA", "ALIAS", "CAA", "CDS", "CNAME", "DNAME", "DS", "HTTPS", "KEY", "LOC", "MX", "NAPTR", "NS", "OPENPGPKEY", "PTR", "RP", "SOA", "SPF", "SRV", "SSHFP", "SVCB", "TLSA", "TXT", "WKS" Type of the record
 
- fqdn ⁠string
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Body
- application/json⁠object- With the following properties: - Required- rrset_values ⁠array[ string ]A list of values for this record
 - Optional- rrset_ttl ⁠integerMinimum: 300 Maximum: 2592000 The time in seconds that DNS resolvers should cache this record
 Example:- { "rrset_values": [ "www.example.org" ], "rrset_ttl": 320 }
- rrset_values ⁠array[ string ]
Responses
201
Headers
- Optional- Location ⁠string
 
Body
- application/json⁠object- With the following properties: - message ⁠stringConfirmation message.
 
- message ⁠string
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
401
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
delete Delete record with {rrset_name} and {rrset_type} ¶
Request
URI Parameters
- fqdn ⁠stringDomain name.
- rrset_name ⁠stringName of the record.
- rrset_type ⁠stringOne of: "A", "AAAA", "ALIAS", "CAA", "CDS", "CNAME", "DNAME", "DS", "HTTPS", "KEY", "LOC", "MX", "NAPTR", "NS", "OPENPGPKEY", "PTR", "RP", "SOA", "SPF", "SRV", "SSHFP", "SVCB", "TLSA", "TXT", "WKS" Type of the record
 
- fqdn ⁠string
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Responses
204
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
401
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Snapshots of a domain ¶
https://api.gandi.net/v5/livedns/domains/{fqdn}/snapshots
get List available snapshots ¶
Request
URI Parameters
- fqdn ⁠stringDomain name.
 
- fqdn ⁠string
Query String
- Optional- automatic ⁠booleanOnly list automatic/non-automatic snapshots
- page ⁠integerDefault: 1 Minimum: 1 Which result page to retrieve. If the number is greater than the last page, an empty list is returned.
- per_page ⁠integerMinimum: 1 How many items to display per page.
- sort_by ⁠stringOne of: "date_created", "-date_created" Default: "date_created" Allow sorting result by creation date or reverse creation date
 
- automatic ⁠boolean
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Responses
200
Headers
- Total-Count ⁠integerTotal number of items.
 - Optional- Link ⁠stringLinks to next and last page.
 
- Total-Count ⁠integer
Body
- application/json⁠array- Of items of type: - objectWith the following properties: - automatic ⁠booleantrue if the snapshot was automatically created after a zone change
- created_at ⁠stringCreation date of the snapshot (UTC)
- href ⁠stringURL of the snapshot
- id ⁠stringIdentifier of the snapshot
- name ⁠stringName of the snapshot
 
- automatic ⁠boolean
 Example:- [ { "id": "f975042c-e219-11ea-b22b-00163e867a15", "name": "My new snapshot", "created_at": "2019-08-30T12:44:41Z", "automatic": false, "href": "http://api.test/v5/livedns/domains/example.com/snapshots/f975042c-e219-11ea-b22b-00163e867a15" } ]
- object
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
401
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
post Creates a new snapshot ¶
Request
URI Parameters
- fqdn ⁠stringDomain name.
 
- fqdn ⁠string
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Body
- application/json⁠object- With the following properties: - Optional- name ⁠stringOptional name for the snapshot. When not specified, the name will be today's date with an incremental number added to it
 Example:- { "name": "My new snapshot" }
- name ⁠string
Responses
201
Headers
- Optional- Location ⁠string
 
Body
- application/json⁠object- With the following properties: - id ⁠stringIdentifier of the snapshot
- message ⁠stringConfirmation message.
 
- id ⁠string
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
401
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Snapshots operations ¶
https://api.gandi.net/v5/livedns/domains/{fqdn}/snapshots/{id}
get Snapshot details ¶
Request
URI Parameters
- fqdn ⁠stringDomain name.
- id ⁠stringSnapshot identifier
 
- fqdn ⁠string
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 - Optional- Accept ⁠stringWhen passedtext/plainvalue, this route will return The contents of the snapshot as it would appear in a standard master zone file (see RFC1035)
 
- Authorization ⁠string
Responses
200
Body
- application/json⁠object- With the following properties: - automatic ⁠booleantrue if the snapshot was automatically created after a zone change
- created_at ⁠stringCreation date of the snapshot (UTC)
- href ⁠stringURL of the snapshot
- id ⁠stringIdentifier of the snapshot
- name ⁠stringName of the snapshot
- zone_data ⁠arrayOf items of type: - objectWith the following properties: - rrset_name ⁠stringName of the record
- rrset_type ⁠stringOne of: "A", "AAAA", "ALIAS", "CAA", "CDS", "CNAME", "DNAME", "DS", "HTTPS", "KEY", "LOC", "MX", "NAPTR", "NS", "OPENPGPKEY", "PTR", "RP", "SOA", "SPF", "SRV", "SSHFP", "SVCB", "TLSA", "TXT", "WKS" 
- rrset_values ⁠array[ string ]A list of values for this record
 Optional- rrset_ttl ⁠integerMinimum: 300 Maximum: 2592000 The time in seconds that DNS resolvers should cache this record
 
- rrset_name ⁠string
 
- object
 Example:- { "name": "My new snapshot", "id": "f975042c-e219-11ea-b22b-00163e867a15", "created_at": "2022-12-15T15:20:03Z", "href": "http://api.test/v5/livedns/domains/example.com/snapshots/f975042c-e219-11ea-b22b-00163e867a15", "automatic": true, "zone_data": [ { "rrset_name": "@", "rrset_type": "A", "rrset_ttl": 10800, "rrset_values": [ "192.0.2.1" ] }, { "rrset_name": "@", "rrset_type": "MX", "rrset_ttl": 10800, "rrset_values": [ "10 spool.mail.gandi.net.", "50 fb.mail.gandi.net." ] }, { "rrset_name": "@", "rrset_type": "TXT", "rrset_ttl": 10800, "rrset_values": [ "\"v=spf1 include:_mailcust.gandi.net ?all\"" ] }, { "rrset_name": "www", "rrset_type": "CNAME", "rrset_ttl": 10800, "rrset_values": [ "webredir.vip.gandi.net." ] } ] }
- automatic ⁠boolean
- text/plain⁠stringThe contents of the zone as it would appear in a standard master zone file (see RFC1035)
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
401
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
patch Update a snapshot ¶
Request
URI Parameters
- fqdn ⁠stringDomain name.
- id ⁠stringSnapshot identifier
 
- fqdn ⁠string
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Body
- application/json⁠object- With the following properties: - Required- name ⁠stringNew snapshot name
 Example:- { "name": "Snapshot by SRE on 2022-02-06" }
- name ⁠string
Responses
202
Headers
- Optional- Location ⁠string
 
Body
- application/json⁠object- With the following properties: - message ⁠stringConfirmation message.
 
- message ⁠string
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
401
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
delete Delete a snapshot ¶
Request
URI Parameters
- fqdn ⁠stringDomain name.
- id ⁠stringSnapshot identifier
 
- fqdn ⁠string
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Responses
204
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
401
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Generic nameservers ¶
https://api.gandi.net/v5/livedns/nameservers/{fqdn}
get Retrieve the generic (hashed) nameservers ¶
This route returns the list of nameservers that this domain is using according to LiveDNS' systems when no NS resource record exists in the zone for that domain
This is a generic route for hashing any domain and thus is not authenticated.
To retrieve the nameservers that takes into account any NS resource records in the domain's zone, use the authenticated version instead.
Request
URI Parameters
- fqdn ⁠stringDomain name.
 
- fqdn ⁠string
Responses
200
Body
- application/json⁠array[ string ]List of nameservers