Linked Zone API
https://api.gandi.net/v5/linkedzone
Introduction ¶
This section of our documentation describe how you can link multiple domain names to a single zone at Gandi.net through our REST API. So making a change into that zone, will acually change the zones of all linked domain names.
For managing Gandi's LiveDNS via our REST API, please refer to our LiveDNS documentation at:
https://api.gandi.net/docs/livedns/
General information on Gandi's linked zones servives can be found in our public documentation at: https://docs.gandi.net/en/domain_names/advanced_users/linked_zones.html
Domains ¶
https://api.gandi.net/v5/linkedzone/domains
get List domains ¶
Request
Query String
Required
- limit ⁠integer
Default: 50
Minimum: 1
Maximal number of resource to return. - offset ⁠integer
Default: 0
Minimum: 0
The number of resource to skip.
Optional
- name ⁠stringTo search for a domain pattern. This parameter can be used more than once. You can also use special characters
?
and*
for pattern matching filters.?
represents a single character search and*
means at least one character. For example,fo?.com
will find foo.com but not foobar.com andfo*.com
will find foo.com and foobar.com. - sharing_id ⁠stringSharing ID. Organization ID used as a filter or as a billing identifier. See the reference.
- sort_by ⁠string
Default: "id"
- zone_id ⁠stringThe identifier of the zone resource.
- limit ⁠integer
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
Responses
200
Headers
- X-Filtered-Count ⁠integerNumber of resources at one page.
- X-Total-Count ⁠integerTotal number of resources after filtering.
- X-Filtered-Count ⁠integer
Body
application/json
⁠arrayOf items of type:
- object
With the following properties:
- deployed ⁠boolean
Default: false
Explain whether the DNS zone has been updated on the DNS server. - id ⁠stringThe identifier of the domain resource.
- name ⁠stringA Fully Qualified Domain Name (FQDN).
- owner ⁠stringEntity who or which owns the domain. This entity can be a user, an organization or the client of a reseller.
- zone ⁠object
With the following properties:
- id ⁠stringThe identifier of the zone resource.
- name ⁠stringName of the record.
- status ⁠string
One of: "BEING_DEACTIVATED", "BEING_DEPLOYED", "DEPLOYED", "NOT_DEPLOYED"
Default: "NOT_DEPLOYED"
Monitor the changement progress of a DNS zone for a domain.
- id ⁠string
- deployed ⁠boolean
Example:[ { "id": "d6208438-1ebf-4727-9e8a-166568d35855", "deployed": false, "name": "example.com", "owner": "065efe68-2c84-495d-be9b-82f20360293f", "zone": { "id": "50a8e8fb-765c-4533-8ed3-f222d25bdb9a", "name": "www", "status": "BEING_DEPLOYED" } }, { "id": "2422145a-25ee-4e39-9239-06ab48d78726", "deployed": true, "name": "hello-world.org", "owner": "065efe68-2c84-495d-be9b-82f20360293f", "zone": { "id": "50a8e8fb-765c-4533-8ed3-f222d25bdb9a", "name": "www", "status": "DEPLOYED" } } ]
- object
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
401
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
403
Body
application/json
⁠objectWith 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 ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
Domain ¶
https://api.gandi.net/v5/linkedzone/domains/{domain}
get Domain details ¶
Request
URI Parameters
- domain ⁠stringDomain name.
- domain ⁠string
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
Responses
200
Body
application/json
⁠objectWith the following properties:
- deployed ⁠boolean
Default: false
Explain whether the DNS zone has been updated on the DNS server. - id ⁠stringThe identifier of the domain resource.
- name ⁠stringA Fully Qualified Domain Name (FQDN).
- owner ⁠stringEntity who or which owns the domain. This entity can be a user, an organization or the client of a reseller.
- zone ⁠object
With the following properties:
- id ⁠stringThe identifier of the zone resource.
- name ⁠stringName of the record.
- status ⁠string
One of: "BEING_DEACTIVATED", "BEING_DEPLOYED", "DEPLOYED", "NOT_DEPLOYED"
Default: "NOT_DEPLOYED"
Monitor the changement progress of a DNS zone for a domain.
- id ⁠string
Example:{ "id": "d6208438-1ebf-4727-9e8a-166568d35855", "deployed": false, "name": "example.com", "owner": "065efe68-2c84-495d-be9b-82f20360293f", "zone": { "id": "50a8e8fb-765c-4533-8ed3-f222d25bdb9a", "name": "www", "status": "BEING_DEPLOYED" } }
- deployed ⁠boolean
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
404
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
401
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
403
Body
application/json
⁠objectWith 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 ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
Tasks ¶
https://api.gandi.net/v5/linkedzone/tasks
get List tasks ¶
Request
Query String
Required
- limit ⁠integer
Default: 50
Minimum: 1
Maximal number of resource to return. - offset ⁠integer
Default: 0
Minimum: 0
The number of resource to skip.
Optional
- sort_by ⁠string
Default: "id"
- limit ⁠integer
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
Responses
200
Headers
- X-Filtered-Count ⁠integerNumber of resources at one page.
- X-Total-Count ⁠integerTotal number of resources after filtering.
- X-Filtered-Count ⁠integer
Body
application/json
⁠arrayOf items of type:
- object
With the following properties:
- created_at ⁠datetimeThe date and hour when the task has been launched.
- id ⁠stringThe identifier of the task resource.
- result ⁠object
With the following properties:
- errored ⁠array
Of items of type:
- object
With the following properties:
- domain ⁠stringAn error occurred during the task.
- message ⁠stringExplain the error.
- type ⁠string
One of: "DATABASE_ERROR", "DOMAIN_EXISTS", "DOMAIN_NOT_EXIST", "DOMAIN_PERMISSION", "DOMAIN_STATUS_ERROR", "DNS_PERMISSION", "NOT_LIVEDNS", "ZONE_BEING_DEPLOYED"
Possible errors which could occurred.
- domain ⁠string
- object
- succeeded ⁠array[ string ]The task which changed the DNS zone of these domains succeeded.
- errored ⁠array
- status ⁠string
One of: "FINISHED", "PENDING"
State of the task. - type ⁠string
One of: "DEACTIVATE_ZONE", "DEPLOY_ZONE"
Name of the task type. - zone_id ⁠stringThe identifier of the zone resource.
Optional
- ending_at ⁠datetimeThe date and hour when the task ended.
- updated_at ⁠datetimeThe date and hour when occurred the last state task update.
- created_at ⁠datetime
Example:[ { "id": "055152cc-a258-48d4-b395-ddad6517d0b5", "zone_id": "50a8e8fb-765c-4533-8ed3-f222d25bdb9a", "type": "DEACTIVATE_ZONE", "status": "PENDING", "created_at": "2025-04-01T08:01:47.589312+00:00", "updated_at": "2025-04-01T08:03:04.474962+00:00", "result": { "succeeded": [], "errored": [ { "domain": "example.com", "type": "ZONE_BEING_DEPLOYED", "message": "You cannot remove a domain on a zone under deployment" } ] } } ]
- object
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
401
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
403
Body
application/json
⁠objectWith 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 ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
Task ¶
https://api.gandi.net/v5/linkedzone/tasks/{task_id}
get Task details ¶
Request
URI Parameters
- task_id ⁠string
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
Responses
200
Body
application/json
⁠objectWith the following properties:
- created_at ⁠datetimeThe date and hour when the task has been launched.
- id ⁠stringThe identifier of the task resource.
- result ⁠object
With the following properties:
- errored ⁠array
Of items of type:
- object
With the following properties:
- domain ⁠stringAn error occurred during the task.
- message ⁠stringExplain the error.
- type ⁠string
One of: "DATABASE_ERROR", "DOMAIN_EXISTS", "DOMAIN_NOT_EXIST", "DOMAIN_PERMISSION", "DOMAIN_STATUS_ERROR", "DNS_PERMISSION", "NOT_LIVEDNS", "ZONE_BEING_DEPLOYED"
Possible errors which could occurred.
- domain ⁠string
- object
- succeeded ⁠array[ string ]The task which changed the DNS zone of these domains succeeded.
- errored ⁠array
- status ⁠string
One of: "FINISHED", "PENDING"
State of the task. - type ⁠string
One of: "DEACTIVATE_ZONE", "DEPLOY_ZONE"
Name of the task type. - zone_id ⁠stringThe identifier of the zone resource.
Optional
- ending_at ⁠datetimeThe date and hour when the task ended.
- updated_at ⁠datetimeThe date and hour when occurred the last state task update.
Example:{ "id": "055152cc-a258-48d4-b395-ddad6517d0b5", "zone_id": "50a8e8fb-765c-4533-8ed3-f222d25bdb9a", "type": "DEACTIVATE_ZONE", "status": "PENDING", "created_at": "2025-04-01T08:01:47.589312+00:00", "updated_at": "2025-04-01T08:03:04.474962+00:00", "result": { "succeeded": [], "errored": [ { "domain": "example.com", "type": "ZONE_BEING_DEPLOYED", "message": "You cannot remove a domain on a zone under deployment" } ] } }
- created_at ⁠datetime
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
404
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
401
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
403
Body
application/json
⁠objectWith 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 ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
Unlink domains ¶
https://api.gandi.net/v5/linkedzone/unlink/domains
patch Unlink domains from a linked zone ¶
Request
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
Body
application/json
⁠objectWith the following properties:
Required
- domains ⁠array[ string ]
Example:{ "domains": [ "hello-world.org", "example.com" ] }
Responses
200
Body
application/json
⁠objectWith the following properties:
- errored ⁠array
Of items of type:
- object
With the following properties:
- domain ⁠stringAn error occurred during the task.
- message ⁠stringExplain the error.
- type ⁠string
One of: "DATABASE_ERROR", "DOMAIN_NOT_EXIST", "DOMAIN_PERMISSION", "DOMAIN_STATUS_ERROR", "DNS_PERMISSION", "ZONE_BEING_DEPLOYED"
Possible errors which could occurred.
- domain ⁠string
- object
- succeeded ⁠array[ string ]Domains which has been correctly detached from a zone.
Example:{ "succeeded": [ "hello-world.org" ], "errored": [ { "domain": "example.com", "type": "ZONE_BEING_DEPLOYED", "message": "You cannot remove a domain on a zone under deployment" } ] }
- errored ⁠array
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
401
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
403
Body
application/json
⁠objectWith 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 ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
Linked zones managament ¶
https://api.gandi.net/v5/linkedzone/zones
get List linked zones ¶
Request
Query String
Required
- limit ⁠integer
Default: 50
Minimum: 1
Maximal number of resource to return. - offset ⁠integer
Default: 0
Minimum: 0
The number of resource to skip.
Optional
- sharing_id ⁠stringSharing ID. Organization ID used as a filter or as a billing identifier. See the reference.
- sort_by ⁠string
Default: "id"
- limit ⁠integer
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
Responses
200
Headers
- X-Filtered-Count ⁠integerNumber of resources at one page.
- X-Total-Count ⁠integerTotal number of resources after filtering.
- X-Filtered-Count ⁠integer
Body
application/json
⁠arrayOf items of type:
- object
With the following properties:
- created_at ⁠datetimeThe date and hour when the zone resource has been created.
- default_records ⁠booleanApply default values for DNS settings. This default records are applied when a new zone is created.
- domain_count ⁠integerThe number of domains linked to the zone.
- id ⁠stringThe identifier of the zone resource.
- name ⁠stringName of the record.
- sharing_space ⁠object
With the following properties:
- id ⁠stringIdentifier of the linked-zone entity resource.
- name ⁠stringName of the linked-zone entity resource.
- id ⁠string
- status ⁠string
One of: "BEING_DEACTIVATED", "BEING_DEPLOYED", "DEPLOYED", "NOT_DEPLOYED"
Default: "NOT_DEPLOYED"
Monitor the changement progress of a DNS zone for a domain.
Optional
- record_text ⁠stringA text representation of the DNS zone file described in the RFC 1035.
- records ⁠array
Of items of type:
- object
With the following properties:
- name ⁠stringName of the record
- ttl ⁠integer
Minimum: 300
Maximum: 2592000
The time in seconds that DNS resolvers should cache this record. - type ⁠string
One 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 - values ⁠arrayResource record set values of a DNS zone.
Of items of type:
- string
Maximum length: 16384
Pattern: ^[\x20-\x7E]+$
- string
- name ⁠string
- object
- updated_at ⁠datetimeThe date and hour when occurred the last resource zone update.
- created_at ⁠datetime
Example:[ { "id": "50a8e8fb-765c-4533-8ed3-f222d25bdb9a", "name": "www", "status": "DEPLOYED", "default_records": false, "created_at": "2025-04-04T14:35:57.525313+00:00", "domain_count": 2, "sharing_space": { "id": "dff4caf7-c319-42fd-a055-3932933f662f", "name": "Front desk zone" }, "record_text": "abc 3600 IN A 1.2.3.5\ndef 3600 IN A 1.2.3.5\nghi 300 IN TXT tutu" } ]
- object
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
401
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
403
Body
application/json
⁠objectWith 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 ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
post Create a zone ¶
Request
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
Body
application/json
⁠objectWith the following properties:
Required
- name ⁠stringName of a zone.
Optional
- default_records ⁠boolean
Default: false
- record_list ⁠array
Of items of type:
- object
With the following properties:
Required
- name ⁠stringName of the record
- ttl ⁠integer
Minimum: 300
Maximum: 2592000
The time in seconds that DNS resolvers should cache this record. - type ⁠string
One 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 - values ⁠arrayResource record set values of a DNS zone.
Of items of type:
- string
Maximum length: 16384
Pattern: ^[\x20-\x7E]+$
- string
- name ⁠string
- object
- record_text ⁠stringA text representation of the DNS zone file described in the RFC 1035.
Example:{ "name": "Dead Zone", "default_records": false, "record_text": "abc 3600 IN A 1.2.3.5\ndef 3600 IN A 1.2.3.5\nghi 300 IN TXT tutu" }
- name ⁠string
Responses
201
Headers
- Location ⁠stringURI of the created zone resource.
- Location ⁠string
Body
application/json
⁠objectWith the following properties:
- message ⁠stringA success message sent after creating a zone.
Example:{ "message": "Zone created" }
- message ⁠string
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
401
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
403
Body
application/json
⁠objectWith 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 ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
Linked zone actions ¶
https://api.gandi.net/v5/linkedzone/zones/{zone_id}
get Linked zone details ¶
Request
URI Parameters
- zone_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 ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
Responses
200
Body
application/json
⁠objectWith the following properties:
- created_at ⁠datetimeThe date and hour when the zone resource has been created.
- default_records ⁠booleanApply default values for DNS settings. This default records are applied when a new zone is created.
- domain_count ⁠integerThe number of domains linked to the zone.
- id ⁠stringThe identifier of the zone resource.
- name ⁠stringName of the record.
- sharing_space ⁠object
With the following properties:
- id ⁠stringIdentifier of the linked-zone entity resource.
- name ⁠stringName of the linked-zone entity resource.
- id ⁠string
- status ⁠string
One of: "BEING_DEACTIVATED", "BEING_DEPLOYED", "DEPLOYED", "NOT_DEPLOYED"
Default: "NOT_DEPLOYED"
Monitor the changement progress of a DNS zone for a domain.
Optional
- record_text ⁠stringA text representation of the DNS zone file described in the RFC 1035.
- records ⁠array
Of items of type:
- object
With the following properties:
- name ⁠stringName of the record
- ttl ⁠integer
Minimum: 300
Maximum: 2592000
The time in seconds that DNS resolvers should cache this record. - type ⁠string
One 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 - values ⁠arrayResource record set values of a DNS zone.
Of items of type:
- string
Maximum length: 16384
Pattern: ^[\x20-\x7E]+$
- string
- name ⁠string
- object
- updated_at ⁠datetimeThe date and hour when occurred the last resource zone update.
Example:{ "id": "50a8e8fb-765c-4533-8ed3-f222d25bdb9a", "name": "www", "status": "DEPLOYED", "default_records": false, "created_at": "2025-04-04T14:35:57.525313+00:00", "domain_count": 2, "sharing_space": { "id": "dff4caf7-c319-42fd-a055-3932933f662f", "name": "Front desk zone" }, "record_text": "abc 3600 IN A 1.2.3.5\ndef 3600 IN A 1.2.3.5\nghi 300 IN TXT tutu" }
- created_at ⁠datetime
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
404
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
401
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
403
Body
application/json
⁠objectWith 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 ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
post Deploy or undeploy a zone ¶
Request
URI Parameters
- zone_id ⁠string
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
Body
application/json
⁠objectWith the following properties:
Required
- deploy ⁠booleanDeploy or deactivate the specified zone.
Example:{ "deploy": true }
- deploy ⁠boolean
Responses
202
Headers
- Location ⁠stringURI of the task resource.
- Location ⁠string
Body
application/json
⁠objectWith the following properties:
- message ⁠stringA success message sent after deploying or deactivating a zone.
Example:{ "message": "Zone deployment is in progress" }
- message ⁠string
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
404
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
409
- The specified zone is already deployed.
- The specified zone is not deplyed.
- The zone has no domain to deploy.
- A deployment or a deactivation is already in progress.
Body
application/json
⁠objectWith the following properties:
- message ⁠string
Example:{ "message": "zone Dead Zone is already deployed." }
401
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
403
Body
application/json
⁠objectWith 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 ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
patch Update a linked zone ¶
Request
URI Parameters
- zone_id ⁠string
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
Body
application/json
⁠objectWith the following properties:
Optional
- default_records ⁠booleanApply default values for DNS settings. This default records are applied when a new zone is created.
- name ⁠stringName of a zone.
- record_list ⁠array
Of items of type:
- object
With the following properties:
Required
- name ⁠stringName of the record
- ttl ⁠integer
Minimum: 300
Maximum: 2592000
The time in seconds that DNS resolvers should cache this record. - type ⁠string
One 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 - values ⁠arrayResource record set values of a DNS zone.
Of items of type:
- string
Maximum length: 16384
Pattern: ^[\x20-\x7E]+$
- string
- name ⁠string
- object
- record_text ⁠stringA text representation of the DNS zone file described in the RFC 1035.
Example:{ "name": "Quarantine Zone" }
- default_records ⁠boolean
Responses
200
Body
application/json
⁠objectWith the following properties:
- message ⁠stringA success message sent after updating a zone.
Example:{ "message": "Zone updated" }
- message ⁠string
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
404
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
401
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
403
Body
application/json
⁠objectWith 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 ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
delete Delete a linked zone ¶
Request
URI Parameters
- zone_id ⁠string
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
Responses
204
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
404
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
401
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
403
Body
application/json
⁠objectWith 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 ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
Link domains to a zone ¶
https://api.gandi.net/v5/linkedzone/zones/{zone_id}/link/domains
patch Link domains to a specific zone ¶
Request
URI Parameters
- zone_id ⁠string
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
Body
application/json
⁠objectWith the following properties:
Required
- domains ⁠array[ string ]
Example:{ "domains": [ "hello-world.org", "example.com" ] }
Responses
200
Body
application/json
⁠objectWith the following properties:
- errored ⁠array
Of items of type:
- object
With the following properties:
- domain ⁠stringAn error occurred during the task.
- message ⁠stringExplain the error.
- type ⁠string
One of: "DATABASE_ERROR", "DNS_PERMISSION", "DOMAIN_EXISTS", "DOMAIN_NOT_EXIST", "DOMAIN_PERMISSION", "DOMAIN_STATUS_ERROR", "NOT_LIVEDNS", "ZONE_BEING_DEPLOYED"
Possible errors which could occurred.
- domain ⁠string
- object
- succeeded ⁠array[ string ]Domains which has been correctly attached to a zone.
Example:{ "succeeded": [ "hello-world.org" ], "errored": [ { "domain": "example.com", "type": "ZONE_BEING_DEPLOYED", "message": "You cannot remove a domain on a zone under deployment" } ] }
- errored ⁠array
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
404
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
401
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
403
Body
application/json
⁠objectWith 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 ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string