Domain API

https://api.sandbox.gandi.net/v5/domain

Gandi Domain Management API

Introduction

This section of our documentation will assist you in the management of domain names at Gandi.net through our REST API.

Documentation on our XML-RPC API can be found at https://doc.rpc.gandi.net

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 domain name services can be found in our public documentation at:
https://docs.gandi.net/en/domain_names

Domain Change Owner

https://api.sandbox.gandi.net/v5/domain/changeowner/{domain}

post Initiate a change owner

This route is used to start a domain ownership change. Keep in mind that this is not always a free operation. Please check pricing before launching this operation and ensure your prepaid account has enough credit.

Warning: For domain, that is part of Website Pack subscription. Changing the owner will remove the domain name from the subscription. Completing this action during the two months following domain creation will result in your Website Pack being split and the domain being made unavailable. Your hosting subscription will continue as a monthly payment. You can stop your hosting subscription at any time.

Request

URI Parameters
    • domain ⁠string
Query String
  • Optional
    • sharing_id ⁠string
      Sharing ID. Organization ID used as a filter or as a billing identifier. See the reference.
Headers
  • Required
    • Authorization ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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
    Optional
    • Dry-Run ⁠integer
      If this header's value is 1 the request's parameters will only be checked; the operation will not actually be performed.
Body
  • application/json
    ⁠object

    With the following properties:

    Required
    • owner ⁠object

      With the following properties:

      Required
      • country ⁠string
        A country code. See the country code list for possible values.
      • email ⁠string
      • family ⁠string
        Contact's family name (usualy the lastname)
      • given ⁠string
        Contact's given name (usualy the firstname)
      • streetaddr ⁠string
      • type ⁠string

        One of: "individual", "company", "association", "publicbody", "reseller"

      Optional
      • brand_number ⁠string
      • city ⁠string
      • data_obfuscated ⁠boolean

        Default: true

        Learn more about WHOIS privacy at Gandi here.
      • extra_parameters ⁠object
        Extra parameters needed for some extensions. See this list for possible values.
      • fax ⁠string
      • icann_contract_accept ⁠boolean

        Default: false

        To unlock the Email address field and make changes, set this field to true to authorize the registrar, Gandi, to be the "Designated Agent" under ICANN rules.
      • jo_announce_number ⁠string
      • jo_announce_page ⁠string
      • jo_declaration_date ⁠string
      • jo_publication_date ⁠string
      • lang ⁠string

        One of: "en", "es", "fr", "ja", "zh-hans", "zh-hant"

      • mail_obfuscated ⁠boolean
      • mobile ⁠string
      • orgname ⁠string
        The legal name of the company, association, or public body if the contact type is not "individual".
      • phone ⁠string
      • siren ⁠string
      • state ⁠string
        Learn more about state codes here
      • validation ⁠string

        One of: "pending", "done", "failed", "deleted", "none"

      • zip ⁠string
    Optional
    • admin ⁠object

      With the following properties:

      Required
      • country ⁠string
        A country code. See the country code list for possible values.
      • email ⁠string
      • family ⁠string
        Contact's family name (usualy the lastname)
      • given ⁠string
        Contact's given name (usualy the firstname)
      • streetaddr ⁠string
      • type ⁠string

        One of: "individual", "company", "association", "publicbody", "reseller"

      Optional
      • brand_number ⁠string
      • city ⁠string
      • data_obfuscated ⁠boolean

        Default: true

        Learn more about WHOIS privacy at Gandi here.
      • extra_parameters ⁠object
        Extra parameters needed for some extensions. See this list for possible values.
      • fax ⁠string
      • icann_contract_accept ⁠boolean

        Default: false

        To unlock the Email address field and make changes, set this field to true to authorize the registrar, Gandi, to be the "Designated Agent" under ICANN rules.
      • jo_announce_number ⁠string
      • jo_announce_page ⁠string
      • jo_declaration_date ⁠string
      • jo_publication_date ⁠string
      • lang ⁠string

        One of: "en", "es", "fr", "ja", "zh-hans", "zh-hant"

      • mail_obfuscated ⁠boolean
      • mobile ⁠string
      • orgname ⁠string
        The legal name of the company, association, or public body if the contact type is not "individual".
      • phone ⁠string
      • siren ⁠string
      • state ⁠string
        Learn more about state codes here
      • validation ⁠string

        One of: "pending", "done", "failed", "deleted", "none"

      • zip ⁠string
    • bill ⁠object

      With the following properties:

      Required
      • country ⁠string
        A country code. See the country code list for possible values.
      • email ⁠string
      • family ⁠string
        Contact's family name (usualy the lastname)
      • given ⁠string
        Contact's given name (usualy the firstname)
      • streetaddr ⁠string
      • type ⁠string

        One of: "individual", "company", "association", "publicbody", "reseller"

      Optional
      • brand_number ⁠string
      • city ⁠string
      • data_obfuscated ⁠boolean

        Default: true

        Learn more about WHOIS privacy at Gandi here.
      • extra_parameters ⁠object
        Extra parameters needed for some extensions. See this list for possible values.
      • fax ⁠string
      • icann_contract_accept ⁠boolean

        Default: false

        To unlock the Email address field and make changes, set this field to true to authorize the registrar, Gandi, to be the "Designated Agent" under ICANN rules.
      • jo_announce_number ⁠string
      • jo_announce_page ⁠string
      • jo_declaration_date ⁠string
      • jo_publication_date ⁠string
      • lang ⁠string

        One of: "en", "es", "fr", "ja", "zh-hans", "zh-hant"

      • mail_obfuscated ⁠boolean
      • mobile ⁠string
      • orgname ⁠string
        The legal name of the company, association, or public body if the contact type is not "individual".
      • phone ⁠string
      • siren ⁠string
      • state ⁠string
        Learn more about state codes here
      • validation ⁠string

        One of: "pending", "done", "failed", "deleted", "none"

      • zip ⁠string
    • tech ⁠object

      With the following properties:

      Required
      • country ⁠string
        A country code. See the country code list for possible values.
      • email ⁠string
      • family ⁠string
        Contact's family name (usualy the lastname)
      • given ⁠string
        Contact's given name (usualy the firstname)
      • streetaddr ⁠string
      • type ⁠string

        One of: "individual", "company", "association", "publicbody", "reseller"

      Optional
      • brand_number ⁠string
      • city ⁠string
      • data_obfuscated ⁠boolean

        Default: true

        Learn more about WHOIS privacy at Gandi here.
      • extra_parameters ⁠object
        Extra parameters needed for some extensions. See this list for possible values.
      • fax ⁠string
      • icann_contract_accept ⁠boolean

        Default: false

        To unlock the Email address field and make changes, set this field to true to authorize the registrar, Gandi, to be the "Designated Agent" under ICANN rules.
      • jo_announce_number ⁠string
      • jo_announce_page ⁠string
      • jo_declaration_date ⁠string
      • jo_publication_date ⁠string
      • lang ⁠string

        One of: "en", "es", "fr", "ja", "zh-hans", "zh-hant"

      • mail_obfuscated ⁠boolean
      • mobile ⁠string
      • orgname ⁠string
        The legal name of the company, association, or public body if the contact type is not "individual".
      • phone ⁠string
      • siren ⁠string
      • state ⁠string
        Learn more about state codes here
      • validation ⁠string

        One of: "pending", "done", "failed", "deleted", "none"

      • zip ⁠string
    Example:
    {
      "owner": {
        "city": "Paris",
        "given": "Alice",
        "family": "Doe",
        "zip": "75001",
        "country": "FR",
        "streetaddr": "5 rue neuve",
        "data_obfuscated": true,
        "mail_obfuscated": true,
        "phone": "+33.123456789",
        "state": "FR-IDF",
        "type": "individual",
        "email": "alice@example.org"
      }
    }

Responses

200

Dry-Run response. You will get this response when you send your request. with a Dry-Run: 1 header.
Headers
  • Optional
    • Warning ⁠string
      Warning message
Body
  • application/json
    ⁠object

    With the following properties:

    • status ⁠string

      One of: "success", "error"

      Response status.
    Optional
    • errors ⁠array
      A list of all the errors encountered during validation.

      Of items of type:

      • object

        With the following properties:

        • description ⁠string
          Error message.
        • location ⁠string

          One of: "header", "path", "querystring", "body"

          The field's location in the HTTP response.
        • name ⁠string
          The xpath of the field.

202

The request has been accepted.
Headers
  • Optional
    • Location ⁠string
Body
  • application/json
    ⁠object

    With the following properties:

    • message ⁠string
      Confirmation message.

403

Access to the resource is denied. Mainly due to a lack of permissions to access it.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

401

Bad authentication attempt because of a wrong API Key.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

403

In case the bearer token has expired, does not have enought permission or does not exists.
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 ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

get Change Owner followup.

This route is used to check a change owner status.

Request

URI Parameters
    • domain ⁠string
Query String
  • Optional
    • sharing_id ⁠string
      Sharing ID. Organization ID used as a filter or as a billing identifier. See the reference.
Headers
  • Required
    • Authorization ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

Responses

200

Body
  • application/json
    ⁠object

    With the following properties:

    • created_at ⁠datetime
    • params ⁠object

      With the following properties:

      Optional
      • answer_new_owner ⁠string
      • answer_old_owner ⁠string
      • inner_step ⁠string
      • new_owner_email ⁠string
      • old_admin_email ⁠string
      • old_owner_email ⁠string
    • step ⁠string
    • step_nb ⁠integer
    • updated_at ⁠datetime
    Optional
    • date_start ⁠string
    • errortype ⁠string
    • errortype_label ⁠string
    • foa ⁠array

      Of items of type:

      • object

        With the following properties:

        • answer ⁠string
        • email ⁠string
    • inner_step ⁠string
    Example:
    {
      "created_at": "2021-01-20T00:00:00Z",
      "updated_at": "2021-01-20T00:00:00Z",
      "inner_step": "checking_foa_response",
      "step": "WAIT",
      "step_nb": 2,
      "params": {
        "answer_new_owner": "T",
        "answer_old_owner": "T",
        "inner_step": "checking_foa_response",
        "new_owner_email": "alice@example.org",
        "old_owner_email": "john@doe.com"
      }
    }

403

Access to the resource is denied. Mainly due to a lack of permissions to access it.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

401

Bad authentication attempt because of a wrong API Key.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

403

In case the bearer token has expired, does not have enought permission or does not exists.
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 ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

Resend the change owner FOA emails

https://api.sandbox.gandi.net/v5/domain/changeowner/{domain}/foa

post Resend the change owner FOA emails

This route is used to resend the Form of Authorization to the current domain owner.

Request

URI Parameters
    • domain ⁠string
Headers
  • Required
    • Authorization ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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
Body
  • application/json
    ⁠object

    With the following properties:

    Required
    • email ⁠string
    Example:
    {
      "email": "alice@example.org"
    }

Responses

202

The request has been accepted.
Headers
  • Optional
    • Location ⁠string
Body
  • application/json
    ⁠object

    With the following properties:

    • message ⁠string
      Confirmation message.

403

Access to the resource is denied. Mainly due to a lack of permissions to access it.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

401

Bad authentication attempt because of a wrong API Key.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

403

In case the bearer token has expired, does not have enought permission or does not exists.
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 ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

Domain Availability

https://api.sandbox.gandi.net/v5/domain/check

get Domain availability

Request

Query String
  • Required
    • name ⁠string
      domain name to query
    Optional
    • country ⁠string
      ISO country code for which taxes are to be applied
    • currency ⁠string
      request price for a specific ISO currency code
    • duration_unit ⁠string
      define the unit for max_duration
    • extension ⁠string
      query a specific extension for product options
    • grid ⁠string
      request price for a specific rate
    • lang ⁠string
      language code
    • max_duration ⁠integer
      set a limit on the duration range for returned prices
    • period ⁠string
      specific registration period to query
    • processes ⁠array[ string ]

      Default: ["create"]

      list of at least 1 process for which pricing is to be made
    • sharing_id ⁠string
      Organization for which the pricing is to be made. See the reference.
Example - Availability and price for registration:
?name=example.com
Example - Availability and price, with processes and price rate:
?name=example.com&processes=create&processes=transfer&grid=C
Headers
  • Required
    • Authorization ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

Responses

200

Body
  • application/json
    ⁠object

    With the following properties:

    • currency ⁠string
    • grid ⁠string
    • products ⁠array

      Of items of type:

      • object

        With the following properties:

        • name ⁠string
          product name
        • prices ⁠array

          Of items of type:

          • object

            With the following properties:

            • duration_unit ⁠string
              time unit for duration
            • max_duration ⁠integer
              maximum duration for which this price unit applies
            • min_duration ⁠integer
              minimum duration for which this price unit applies
            • price_after_taxes ⁠number
              pricing after tax is applied
            • price_before_taxes ⁠number
              pricing before tax is applied
            Optional
            • discount ⁠boolean
              indicate if a discount is active on this price unit
            • normal_price_after_taxes ⁠number
              pricing after tax is applied, when no discount applies
            • normal_price_before_taxes ⁠number
              pricing before tax is applied, when no discount applies
            • options ⁠object

              With the following properties:

              Optional
              • period ⁠string
                registration period
            • type ⁠string
              pricing type involved
        • status ⁠string

          product availability status. NOTE: This availability status is only relevant when the query is related to "processes=create". Status answer should be ignored when "processes" is set to something else. Possible values are:

          • available: Domain name is available
          • available_reserved: Domain name reserved under special conditions
          • available_preorder: Domain name can be pre-ordered
          • unavailable: Domain name is not available
          • unavailable_premium: Domain name is not available
          • unavailable_restricted: Domain name is not available (forbidden)
          • error_invalid: Provided value is not a valid domain name
          • error_refused: Service is temporarily down
          • error_timeout: Service timed out, try the method again later
          • error_unknown: Internal server error
          • reserved_corporate: The TLD for the given domain name is reserved for Gandi Corporate Services customers
          • pending: Result is not yet ready, try the method again later
          • error_eoi: The TLD for the given domain name is in an Expression of Interest (EOI) period
        • taxes ⁠array

          Of items of type:

          • object

            With the following properties:

            • name ⁠string
              name of the tax
            • rate ⁠number
              rate in percent
            • type ⁠string
              type of tax
        Optional
        • periods ⁠array

          Of items of type:

          • object

            With the following properties:

            • name ⁠string
              name of the registration period
            • starts_at ⁠datetime
              start of the registration period
            Optional
            • ends_at ⁠datetime
              end of the registration period if it's not General Availability (golive)
        • process ⁠string
          process for this price
    • taxes ⁠array

      Of items of type:

      • object

        With the following properties:

        • name ⁠string
          name of the tax
        • rate ⁠number
          rate in percent
        • type ⁠string
          type of tax
    Example - Availability and price for premium domains:
    {
      "currency": "EUR",
      "grid": "A",
      "products": [
        {
          "status": "available",
          "periods": [
            {
              "name": "eap5",
              "starts_at": "2019-02-25T16:00:00Z",
              "ends_at": "2020-03-28T15:59:59Z"
            },
            {
              "name": "golive",
              "starts_at": "2020-03-28T16:00:00Z"
            }
          ],
          "name": "example.com",
          "process": "create",
          "taxes": [
            {
              "type": "service",
              "rate": 20,
              "name": "vat"
            }
          ],
          "prices": [
            {
              "max_duration": 1,
              "duration_unit": "y",
              "min_duration": 1,
              "discount": false,
              "price_after_taxes": 878.44,
              "price_before_taxes": 732.03,
              "type": "premium"
            },
            {
              "max_duration": 1,
              "duration_unit": "y",
              "min_duration": 1,
              "discount": false,
              "price_after_taxes": 775.12,
              "price_before_taxes": 645.93,
              "type": "premium"
            }
          ]
        }
      ],
      "taxes": [
        {
          "type": "service",
          "rate": 20,
          "name": "vat"
        }
      ]
    }
    Example - Availability and price, with processes and price rate:
    {
      "currency": "EUR",
      "grid": "C",
      "products": [
        {
          "status": "available",
          "name": "example.com",
          "process": "transfer",
          "taxes": [
            {
              "type": "service",
              "rate": 20,
              "name": "vat"
            }
          ],
          "prices": [
            {
              "max_duration": 1,
              "duration_unit": "y",
              "min_duration": 1,
              "discount": false,
              "price_after_taxes": 7.2,
              "price_before_taxes": 6
            }
          ]
        },
        {
          "status": "available",
          "name": "example.com",
          "process": "create",
          "taxes": [
            {
              "type": "service",
              "rate": 20,
              "name": "vat"
            }
          ],
          "prices": [
            {
              "max_duration": 2,
              "duration_unit": "y",
              "normal_price_after_taxes": 11.04,
              "min_duration": 1,
              "discount": true,
              "price_after_taxes": 5.52,
              "normal_price_before_taxes": 9.2,
              "price_before_taxes": 4.6
            },
            {
              "max_duration": 10,
              "duration_unit": "y",
              "normal_price_after_taxes": 9.38,
              "min_duration": 3,
              "discount": true,
              "price_after_taxes": 4.69,
              "normal_price_before_taxes": 7.82,
              "price_before_taxes": 3.91
            }
          ]
        }
      ],
      "taxes": [
        {
          "type": "service",
          "rate": 20,
          "name": "vat"
        }
      ]
    }

403

Access to the resource is denied. Mainly due to a lack of permissions to access it.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

401

Bad authentication attempt because of a wrong API Key.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

403

In case the bearer token has expired, does not have enought permission or does not exists.
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 ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

Domain Create and List

https://api.sandbox.gandi.net/v5/domain/domains

get List domains

This route returns a list of domains owned by your user.

Request

Query String
  • Optional
    • fqdn ⁠string
      Filters the list by domain name, with optional patterns.
      Example: example.net
      Example: example.*
      Example: *example.com
    • nameserver ⁠string

      One of: "abc", "livedns", "other"

      Used to filter the type of nameservers
    • page ⁠integer

      Default: 1

      Minimum: 1

      Which result page to retrieve. If the number is greater than the last page, an empty list is returned.
    • per_page ⁠integer

      Minimum: 1

      How many items to display per page.
    • resellee_id ⁠string
      Filter the list by resellee_id, from the Organization API
      Example: 5a53edc7-b514-416a-98c2-2d477a288eb9
    • sharing_id ⁠string
      Sharing ID. Organization ID used as a filter or as a billing identifier. See the reference.
    • sort_by ⁠string

      Default: "fqdn"

      Used to specify how you want the results sorted.
    • tld ⁠string
      Used to filter by just the extension.
Headers
  • Required
    • Authorization ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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
    Optional
    • Accept ⁠string
      When passed text/csv value, this route will return a CSV-formatted response.

Responses

200

Headers
    • Filtered-Count ⁠integer
      On a filtered list, this is the number of matching items.
    • Total-Count ⁠integer
      Total number of items.
    Optional
    • Link ⁠string
      Links to next and last page.
Body
  • application/json
    ⁠array

    Of items of type:

    • object

      With the following properties:

      • autorenew ⁠boolean
        Automatic renewal status. Learn more about automatic renewal.
      • dates ⁠object
        Domain's life cycle dates.

        With the following properties:

        • registry_created_at ⁠datetime
        • updated_at ⁠datetime
        Optional
        • authinfo_expires_at ⁠datetime
        • created_at ⁠datetime
        • deletes_at ⁠datetime
        • hold_begins_at ⁠datetime
        • hold_ends_at ⁠datetime
        • pending_delete_ends_at ⁠datetime
        • registry_ends_at ⁠datetime
        • renew_begins_at ⁠datetime
        • restore_ends_at ⁠datetime
      • domain_owner ⁠string
      • fqdn ⁠string
        Fully qualified domain name, written in its native alphabet (IDN).
      • fqdn_unicode ⁠string
        Fully qualified domain name, written in unicode (learn more).
      • href ⁠string
        Link to domain details.
      • id ⁠string
        UUID
      • nameserver ⁠object

        With the following properties:

        • current ⁠string
        Optional
        • hosts ⁠array[ string ]
      • orga_owner ⁠string
      • owner ⁠string
      • status ⁠array

        Of items of type:

        • string

          One of: "clientHold", "clientUpdateProhibited", "clientTransferProhibited", "clientDeleteProhibited", "clientRenewProhibited", "serverHold", "pendingTransfer", "serverTransferProhibited"

          Information on the following domain statuses can be found in our general documentation.
      • tld ⁠string
      Optional
      • sharing_id ⁠string
        UUID
      • tags ⁠array[ string ]
        List of tags that have been assigned to the domain name.
    Example:
    [
      {
        "status": [
          "clientTransferProhibited"
        ],
        "dates": {
          "created_at": "2019-02-13T11:04:18Z",
          "registry_created_at": "2019-02-13T10:04:18Z",
          "registry_ends_at": "2021-02-13T10:04:18Z",
          "updated_at": "2019-02-25T16:20:49Z"
        },
        "tags": [],
        "fqdn": "example.net",
        "id": "ba1167be-2f76-11e9-9dfb-00163ec4cb00",
        "autorenew": false,
        "tld": "net",
        "owner": "alice_doe",
        "orga_owner": "alice_doe",
        "domain_owner": "Alice Doe",
        "nameserver": {
          "current": "livedns"
        },
        "href": "https://api.test/v5/domain/domains/example.net",
        "fqdn_unicode": "example.net"
      },
      {
        "status": [],
        "dates": {
          "created_at": "2019-01-15T14:19:59Z",
          "registry_created_at": "2019-01-15T13:19:58Z",
          "registry_ends_at": "2020-01-15T13:19:58Z",
          "updated_at": "2019-01-15T13:30:42Z"
        },
        "tags": [],
        "fqdn": "example.com",
        "id": "42927d64-18c8-11e9-b9b5-00163ec4cb00",
        "autorenew": false,
        "tld": "fr",
        "owner": "alice_doe",
        "orga_owner": "alice_doe",
        "domain_owner": "Alice Doe",
        "nameserver": {
          "current": "livedns"
        },
        "href": "https://api.test/v5/domain/domains/example.com",
        "fqdn_unicode": "example.com"
      }
    ]
  • text/csv
    ⁠any
    CSV-formatted response.

403

Access to the resource is denied. Mainly due to a lack of permissions to access it.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

401

Bad authentication attempt because of a wrong API Key.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

403

In case the bearer token has expired, does not have enought permission or does not exists.
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 ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

post Create a new domain

This route is used to register domain names. Warning! This is not a free operation. Please ensure your prepaid account has enough credit.

Pay as an individual

To pay with your user organization (ie: yourself as an individual), just use the regular required parameters. The invoice will be edited with your personal information.

For this to work, you need to:

  • use the same first name and last name for the domain name's owner

Pay as another organization

To pay using another organization, you'll need to perform the request with the organization's ID as the sharing_id query string parameter (see reference). The invoice will be edited using this organization's information.

For this to work, you need to:

  • have billing permissions on the organization
  • use the same organization name for the domain name's owner

Special case - buy a domain as a reseller organization

Should you want to buy a domain for a customer using a reseller account, you'll need the ID (see reference) of your reseller account and your customer's information for the owner. Then, you'll perform the request with sharing_id=<reseller-id> in the query string and the owner information in the payload. The invoice will be edited with the reseller organization's information.

For this to work, you need to:

  • have billing permissions on the reseller organization

Request

Query String
  • Optional
    • sharing_id ⁠string
      Sharing ID. Organization ID used as a filter or as a billing identifier. See the reference.
Headers
  • Required
    • Authorization ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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
    Optional
    • Dry-Run ⁠integer
      If this header's value is 1 the request's parameters will only be checked; the operation will not actually be performed.
Body
  • application/json
    ⁠object

    With the following properties:

    Required
    • fqdn ⁠string
    • owner ⁠object

      With the following properties:

      Required
      • country ⁠string
        A country code. See the country code list for possible values.
      • email ⁠string
      • family ⁠string
        Contact's family name (usualy the lastname)
      • given ⁠string
        Contact's given name (usualy the firstname)
      • streetaddr ⁠string
      • type ⁠string

        One of: "individual", "company", "association", "publicbody"

      Optional
      • brand_number ⁠string
      • city ⁠string
      • data_obfuscated ⁠boolean

        Default: true

        Learn more about WHOIS privacy at Gandi here.
      • extra_parameters ⁠object
        Extra parameters needed for some extensions. See this list for possible values.
      • fax ⁠string
      • jo_announce_number ⁠string
      • jo_announce_page ⁠string
      • jo_declaration_date ⁠string
      • jo_publication_date ⁠string
      • lang ⁠string

        One of: "en", "es", "fr", "ja", "zh-hans", "zh-hant"

      • mail_obfuscated ⁠boolean
      • mobile ⁠string
      • orgname ⁠string
        The legal name of the company, association, or public body if the contact type is not 0.
      • phone ⁠string
      • siren ⁠string
      • state ⁠string
        Learn more about state codes here
      • validation ⁠string

        One of: "pending", "done", "failed", "deleted", "none"

      • zip ⁠string
    Optional
    • admin ⁠object

      With the following properties:

      Required
      • country ⁠string
        A country code. See the country code list for possible values.
      • email ⁠string
      • family ⁠string
        Contact's family name (usualy the lastname)
      • given ⁠string
        Contact's given name (usualy the firstname)
      • streetaddr ⁠string
      • type ⁠string

        One of: "individual", "company", "association", "publicbody"

      Optional
      • brand_number ⁠string
      • city ⁠string
      • data_obfuscated ⁠boolean

        Default: true

        Learn more about WHOIS privacy at Gandi here.
      • extra_parameters ⁠object
        Extra parameters needed for some extensions. See this list for possible values.
      • fax ⁠string
      • jo_announce_number ⁠string
      • jo_announce_page ⁠string
      • jo_declaration_date ⁠string
      • jo_publication_date ⁠string
      • lang ⁠string

        One of: "en", "es", "fr", "ja", "zh-hans", "zh-hant"

      • mail_obfuscated ⁠boolean
      • mobile ⁠string
      • orgname ⁠string
        The legal name of the company, association, or public body if the contact type is not 0.
      • phone ⁠string
      • siren ⁠string
      • state ⁠string
        Learn more about state codes here
      • validation ⁠string

        One of: "pending", "done", "failed", "deleted", "none"

      • zip ⁠string
    • bill ⁠object

      With the following properties:

      Required
      • country ⁠string
        A country code. See the country code list for possible values.
      • email ⁠string
      • family ⁠string
        Contact's family name (usualy the lastname)
      • given ⁠string
        Contact's given name (usualy the firstname)
      • streetaddr ⁠string
      • type ⁠string

        One of: "individual", "company", "association", "publicbody"

      Optional
      • brand_number ⁠string
      • city ⁠string
      • data_obfuscated ⁠boolean

        Default: true

        Learn more about WHOIS privacy at Gandi here.
      • extra_parameters ⁠object
        Extra parameters needed for some extensions. See this list for possible values.
      • fax ⁠string
      • jo_announce_number ⁠string
      • jo_announce_page ⁠string
      • jo_declaration_date ⁠string
      • jo_publication_date ⁠string
      • lang ⁠string

        One of: "en", "es", "fr", "ja", "zh-hans", "zh-hant"

      • mail_obfuscated ⁠boolean
      • mobile ⁠string
      • orgname ⁠string
        The legal name of the company, association, or public body if the contact type is not 0.
      • phone ⁠string
      • siren ⁠string
      • state ⁠string
        Learn more about state codes here
      • validation ⁠string

        One of: "pending", "done", "failed", "deleted", "none"

      • zip ⁠string
    • claims ⁠string
      The value of the notice_id returned by the claims route. Warning Make sure your customer did read the notice information about the trademark owner
    • currency ⁠string

      One of: "EUR", "USD", "GBP", "TWD", "CNY"

    • duration ⁠integer

      Minimum: 1

      Maximum: 10

    • enforce_premium ⁠boolean
      Must be set to true if the domain is a premium domain.
    • extra_parameters ⁠object
      Extra parameters needed for some extensions. See this list for possible values.
    • lang ⁠string
      ISO-639-2 language code of the domain, required for some IDN domains.
    • mailbox_optin ⁠boolean

      Default: true

      This parameter enables you to add two mailboxes offered for the first year when purchasing or transferring in a domain.
    • nameservers ⁠array[ string ]
      List of nameservers. Gandi's LiveDNS nameservers are used if omitted.
    • nameservers_ips ⁠object
      For glue records only – dictionnary associating a nameserver to a list of IP addresses.
      Example:
      {
        "ns1.example.net": [
          "203.0.113.1"
        ],
        "ns2.example.net": [
          "203.0.113.2",
          "203.0.113.3"
        ]
      }
    • price ⁠number
    • resellee_id ⁠string
    • smd ⁠string
      Contents of a Signed Mark Data file (used for newgtld sunrises, tld_period must be sunrise)
    • tech ⁠object

      With the following properties:

      Required
      • country ⁠string
        A country code. See the country code list for possible values.
      • email ⁠string
      • family ⁠string
        Contact's family name (usualy the lastname)
      • given ⁠string
        Contact's given name (usualy the firstname)
      • streetaddr ⁠string
      • type ⁠string

        One of: "individual", "company", "association", "publicbody"

      Optional
      • brand_number ⁠string
      • city ⁠string
      • data_obfuscated ⁠boolean

        Default: true

        Learn more about WHOIS privacy at Gandi here.
      • extra_parameters ⁠object
        Extra parameters needed for some extensions. See this list for possible values.
      • fax ⁠string
      • jo_announce_number ⁠string
      • jo_announce_page ⁠string
      • jo_declaration_date ⁠string
      • jo_publication_date ⁠string
      • lang ⁠string

        One of: "en", "es", "fr", "ja", "zh-hans", "zh-hant"

      • mail_obfuscated ⁠boolean
      • mobile ⁠string
      • orgname ⁠string
        The legal name of the company, association, or public body if the contact type is not 0.
      • phone ⁠string
      • siren ⁠string
      • state ⁠string
        Learn more about state codes here
      • validation ⁠string

        One of: "pending", "done", "failed", "deleted", "none"

      • zip ⁠string
    • template_id ⁠string
      Template applied when the process is done. It must be a template ID as you can retrieve it using the Template API.
    • tld_period ⁠string

      One of: "sunrise", "landrush", "eap1", "eap2", "eap3", "eap4", "eap5", "eap6", "eap7", "eap8", "eap9", "golive"

    Example:
    {
      "fqdn": "example.com",
      "duration": 5,
      "owner": {
        "city": "Paris",
        "given": "Alice",
        "family": "Doe",
        "zip": "75001",
        "country": "FR",
        "streetaddr": "5 rue neuve",
        "phone": "+33.123456789",
        "state": "FR-IDF",
        "type": "individual",
        "email": "alice@example.org"
      }
    }

Responses

200

Dry-Run response. You will get this response when you send your request. with a Dry-Run: 1 header.
Headers
  • Optional
    • Warning ⁠string
      Warning message
Body
  • application/json
    ⁠object

    With the following properties:

    • status ⁠string

      One of: "success", "error"

      Response status.
    Optional
    • errors ⁠array
      A list of all the errors encountered during validation.

      Of items of type:

      • object

        With the following properties:

        • description ⁠string
          Error message.
        • location ⁠string

          One of: "header", "path", "querystring", "body"

          The field's location in the HTTP response.
        • name ⁠string
          The xpath of the field.

202

The request has been accepted.
Headers
  • Optional
    • Location ⁠string
Body
  • application/json
    ⁠object

    With the following properties:

    • message ⁠string
      Confirmation message.

403

Access to the resource is denied. Mainly due to a lack of permissions to access it.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

401

Bad authentication attempt because of a wrong API Key.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

403

In case the bearer token has expired, does not have enought permission or does not exists.
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 ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

Domain Information

https://api.sandbox.gandi.net/v5/domain/domains/{domain}

delete Domain delete

This route is used to delete domain name.
Warning: the domain deletion is currently a restricted feature.

Request

URI Parameters
    • domain ⁠string
      Domain name.
Headers
  • Required
    • Authorization ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

Responses

202

The request has been accepted.
Headers
  • Optional
    • Location ⁠string
Body
  • application/json
    ⁠object

    With the following properties:

    • message ⁠string
      Confirmation message.

403

Access to the resource is denied. Mainly due to a lack of permissions to access it.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

401

Bad authentication attempt because of a wrong API Key.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

403

In case the bearer token has expired, does not have enought permission or does not exists.
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 ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

get Domain details

This route is used to find and return information about a domain to which you have permissions.

Request

URI Parameters
    • domain ⁠string
      Domain name.
Headers
  • Required
    • Authorization ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

Responses

200

Body
  • application/json
    ⁠object

    With the following properties:

    • autorenew ⁠object

      With the following properties:

      • href ⁠string
      Optional
      • dates ⁠array[ datetime ]
      • duration ⁠integer

        Default: 1

      • enabled ⁠boolean

        Default: false

      • org_id ⁠string
        UUID
    • can_tld_lock ⁠boolean
    • contacts ⁠object

      With the following properties:

      • admin ⁠object

        With the following properties:

        • country ⁠string
          A country code. See the country code list for possible values.
        • email ⁠string
        • family ⁠string
          Contact's family name (usualy the lastname)
        • given ⁠string
          Contact's given name (usualy the firstname)
        • same_as_owner ⁠boolean
          Will be true when the contact used is the same as the owner.
        • streetaddr ⁠string
        • type ⁠string

          One of: "individual", "company", "association", "publicbody"

        Optional
        • brand_number ⁠string
        • city ⁠string
        • data_obfuscated ⁠boolean
        • extra_parameters ⁠object
          Extra parameters needed for some extensions. See this list for possible values.
        • fax ⁠string
        • jo_announce_number ⁠string
        • jo_announce_page ⁠string
        • jo_declaration_date ⁠string
        • jo_publication_date ⁠string
        • mail_obfuscated ⁠boolean
        • mobile ⁠string
        • orgname ⁠string
          The legal name of the company, association, or public body if the contact type is not 0.
        • phone ⁠string
        • reachability ⁠string

          One of: "pending", "done", "failed", "deleted", "none"

          Learn more about reachability here.
        • sharing_id ⁠string
        • siren ⁠string
        • state ⁠string
          Learn more about state codes here
        • validation ⁠string

          One of: "pending", "done", "failed", "deleted", "none"

        • zip ⁠string
      • bill ⁠object

        With the following properties:

        • country ⁠string
          A country code. See the country code list for possible values.
        • email ⁠string
        • family ⁠string
          Contact's family name (usualy the lastname)
        • given ⁠string
          Contact's given name (usualy the firstname)
        • same_as_owner ⁠boolean
          Will be true when the contact used is the same as the owner.
        • streetaddr ⁠string
        • type ⁠string

          One of: "individual", "company", "association", "publicbody"

        Optional
        • brand_number ⁠string
        • city ⁠string
        • data_obfuscated ⁠boolean
        • extra_parameters ⁠object
          Extra parameters needed for some extensions. See this list for possible values.
        • fax ⁠string
        • jo_announce_number ⁠string
        • jo_announce_page ⁠string
        • jo_declaration_date ⁠string
        • jo_publication_date ⁠string
        • mail_obfuscated ⁠boolean
        • mobile ⁠string
        • orgname ⁠string
          The legal name of the company, association, or public body if the contact type is not 0.
        • phone ⁠string
        • reachability ⁠string

          One of: "pending", "done", "failed", "deleted", "none"

          Learn more about reachability here.
        • sharing_id ⁠string
        • siren ⁠string
        • state ⁠string
          Learn more about state codes here
        • validation ⁠string

          One of: "pending", "done", "failed", "deleted", "none"

        • zip ⁠string
      • owner ⁠object

        With the following properties:

        • country ⁠string
          A country code. See the country code list for possible values.
        • email ⁠string
        • family ⁠string
          Contact's family name (usualy the lastname)
        • given ⁠string
          Contact's given name (usualy the firstname)
        • streetaddr ⁠string
        • type ⁠string

          One of: "individual", "company", "association", "publicbody"

        Optional
        • brand_number ⁠string
        • city ⁠string
        • data_obfuscated ⁠boolean
        • extra_parameters ⁠object
          Extra parameters needed for some extensions. See this list for possible values.
        • fax ⁠string
        • jo_announce_number ⁠string
        • jo_announce_page ⁠string
        • jo_declaration_date ⁠string
        • jo_publication_date ⁠string
        • mail_obfuscated ⁠boolean
        • mobile ⁠string
        • orgname ⁠string
          The legal name of the company, association, or public body if the contact type is not 0.
        • phone ⁠string
        • reachability ⁠string

          One of: "pending", "done", "failed", "deleted", "none"

          Learn more about reachability here.
        • sharing_id ⁠string
        • siren ⁠string
        • state ⁠string
          Learn more about state codes here
        • validation ⁠string

          One of: "pending", "done", "failed", "deleted", "none"

        • zip ⁠string
      • tech ⁠object

        With the following properties:

        • country ⁠string
          A country code. See the country code list for possible values.
        • email ⁠string
        • family ⁠string
          Contact's family name (usualy the lastname)
        • given ⁠string
          Contact's given name (usualy the firstname)
        • same_as_owner ⁠boolean
          Will be true when the contact used is the same as the owner.
        • streetaddr ⁠string
        • type ⁠string

          One of: "individual", "company", "association", "publicbody"

        Optional
        • brand_number ⁠string
        • city ⁠string
        • data_obfuscated ⁠boolean
        • extra_parameters ⁠object
          Extra parameters needed for some extensions. See this list for possible values.
        • fax ⁠string
        • jo_announce_number ⁠string
        • jo_announce_page ⁠string
        • jo_declaration_date ⁠string
        • jo_publication_date ⁠string
        • mail_obfuscated ⁠boolean
        • mobile ⁠string
        • orgname ⁠string
          The legal name of the company, association, or public body if the contact type is not 0.
        • phone ⁠string
        • reachability ⁠string

          One of: "pending", "done", "failed", "deleted", "none"

          Learn more about reachability here.
        • sharing_id ⁠string
        • siren ⁠string
        • state ⁠string
          Learn more about state codes here
        • validation ⁠string

          One of: "pending", "done", "failed", "deleted", "none"

        • zip ⁠string
    • dates ⁠object
      Domain's life cycle dates.

      With the following properties:

      • registry_created_at ⁠datetime
      • updated_at ⁠datetime
      Optional
      • authinfo_expires_at ⁠datetime
      • created_at ⁠datetime
      • deletes_at ⁠datetime
      • hold_begins_at ⁠datetime
      • hold_ends_at ⁠datetime
      • pending_delete_ends_at ⁠datetime
      • registry_ends_at ⁠datetime
      • renew_begins_at ⁠datetime
      • restore_ends_at ⁠datetime
    • fqdn ⁠string
      Fully qualified domain name, written in its native alphabet (IDN).
    • fqdn_unicode ⁠string
      Fully qualified domain name, written in unicode (learn more).
    • href ⁠string
      Link to domain details.
    • nameservers ⁠array[ string ]

      Minimum items: 1

    • reachability ⁠string

      One of: "pending", "done", "failed", "deleted", "none"

    • services ⁠array
      List of Gandi services attached to this domain.

      Of items of type:

      • string

        One of: "gandidns", "redirection", "gandimail", "packmail", "dnssec", "blog", "hosting", "paas", "site", "certificate", "gandilivedns", "mailboxv2"

    • sharing_space ⁠object

      With the following properties:

      • id ⁠string
        UUID
      • name ⁠string
      • type ⁠string
      Optional
      • reseller ⁠boolean
      • sharing_space ⁠object

        With the following properties:

        • id ⁠string
          UUID
        • name ⁠string
    • status ⁠array

      Of items of type:

      • string

        One of: "clientHold", "clientUpdateProhibited", "clientTransferProhibited", "clientDeleteProhibited", "clientRenewProhibited", "serverHold", "pendingTransfer", "serverTransferProhibited"

        Information on the following domain statuses can be found in our general documentation.
    • tld ⁠string
    Optional
    • authinfo ⁠string
    • id ⁠string
      Domain ID
    • sharing_id ⁠string
      UUID
    • tags ⁠array[ string ]
      List of tags that have been assigned to the domain name.
    • trustee_roles ⁠array

      Of items of type:

      • object

        With the following properties:

        • allow_transferout ⁠boolean
        • editable ⁠boolean
        • name ⁠string

          One of: "owner", "admin", "tech", "bill"

    Example:
    {
      "status": [
        "clientTransferProhibited"
      ],
      "dates": {
        "created_at": "2019-02-13T11:04:18Z",
        "deletes_at": "2021-03-30T00:04:18Z",
        "hold_begins_at": "2021-02-13T10:04:18Z",
        "hold_ends_at": "2021-03-30T10:04:18Z",
        "pending_delete_ends_at": "2021-05-04T10:04:18Z",
        "registry_created_at": "2019-02-13T10:04:18Z",
        "registry_ends_at": "2021-02-13T10:04:18Z",
        "renew_begins_at": "2012-01-01T00:00:00Z",
        "restore_ends_at": "2021-04-29T10:04:18Z",
        "updated_at": "2019-02-25T16:20:49Z",
        "authinfo_expires_at": "2020-02-25T16:20:49Z"
      },
      "can_tld_lock": true,
      "tags": [],
      "reachability": "done",
      "nameservers": [
        "ns-25-a.gnadi.net",
        "ns-113-b.gnadi.net",
        "ns-58-c.gnadi.net"
      ],
      "contacts": {
        "admin": {
          "city": "Paris",
          "given": "Alice",
          "family": "Doe",
          "zip": "75001",
          "extra_parameters": {},
          "country": "FR",
          "streetaddr": "5 rue neuve",
          "data_obfuscated": true,
          "mail_obfuscated": true,
          "phone": "+33.123456789",
          "same_as_owner": true,
          "state": "FR-IDF",
          "type": "individual",
          "email": "alice@example.org"
        },
        "bill": {
          "city": "Paris",
          "given": "Alice",
          "family": "Doe",
          "zip": "75001",
          "extra_parameters": {},
          "country": "FR",
          "streetaddr": "5 rue neuve",
          "data_obfuscated": true,
          "mail_obfuscated": true,
          "phone": "+33.123456789",
          "same_as_owner": true,
          "state": "FR-IDF",
          "type": "individual",
          "email": "alice@example.org"
        },
        "tech": {
          "city": "Paris",
          "given": "Alice",
          "family": "Doe",
          "zip": "75001",
          "extra_parameters": {},
          "country": "FR",
          "streetaddr": "5 rue neuve",
          "data_obfuscated": true,
          "mail_obfuscated": true,
          "phone": "+33.123456789",
          "same_as_owner": true,
          "state": "FR-IDF",
          "type": "individual",
          "email": "alice@example.org"
        },
        "owner": {
          "city": "Paris",
          "given": "Alice",
          "family": "Doe",
          "zip": "75001",
          "extra_parameters": {},
          "country": "FR",
          "streetaddr": "5 rue neuve",
          "data_obfuscated": true,
          "mail_obfuscated": true,
          "phone": "+33.123456789",
          "state": "FR-IDF",
          "type": "individual",
          "email": "alice@example.org"
        }
      },
      "fqdn": "example.net",
      "autorenew": {
        "dates": [
          "2021-01-13T09:04:18Z",
          "2021-01-29T10:04:18Z",
          "2021-02-12T10:04:18Z"
        ],
        "org_id": "fe0b931c-18c5-11e9-b9b5-00163ec4cb00",
        "duration": 1,
        "href": "http://api.test/v5/domain/domains/example.net/autorenew",
        "enabled": false
      },
      "authinfo": "8vyhljvJg+",
      "sharing_space": {
        "type": "user",
        "id": "fe0b931c-18c5-11e9-b9b5-00163ec4cb00",
        "name": "alice_doe"
      },
      "tld": "net",
      "services": [
        "gandilivedns",
        "mailboxv2"
      ],
      "id": "ba1167be-2f76-11e9-9dfb-00163ec4cb00",
      "trustee_roles": [],
      "href": "http://api.test/v5/domain/domains/example.net",
      "fqdn_unicode": "example.net"
    }

403

Access to the resource is denied. Mainly due to a lack of permissions to access it.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

401

Bad authentication attempt because of a wrong API Key.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

403

In case the bearer token has expired, does not have enought permission or does not exists.
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 ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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 code management

https://api.sandbox.gandi.net/v5/domain/domains/{domain}/authinfo

put Reset of authorization code

Will start an asynchrounous reset of the registry authorization code, if possible (some registries don't handle this and will return a 400 error)

Request

URI Parameters
    • domain ⁠string
      Domain name.
Headers
  • Required
    • Authorization ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

Responses

201

The resource has been created.
Headers
  • Optional
    • Location ⁠string
Body
  • application/json
    ⁠object

    With the following properties:

    • message ⁠string
      Confirmation message.

403

Access to the resource is denied. Mainly due to a lack of permissions to access it.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

401

Bad authentication attempt because of a wrong API Key.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

403

In case the bearer token has expired, does not have enought permission or does not exists.
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 ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

Domain Automatic Renewal

https://api.sandbox.gandi.net/v5/domain/domains/{domain}/autorenew

patch Edit autorenew status

Request

URI Parameters
    • domain ⁠string
      Domain name.
Headers
  • Required
    • Authorization ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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
Body
  • application/json
    ⁠object

    With the following properties:

    Required
    • enabled ⁠boolean
    Optional
    • duration ⁠integer

      Default: 1

      Minimum: 1

      Maximum: 9

    • org_id ⁠string
    Example:
    {
      "duration": 1,
      "enabled": true
    }

Responses

201

The resource has been created.
Headers
  • Optional
    • Location ⁠string
Body
  • application/json
    ⁠object

    With the following properties:

    • message ⁠string
      Confirmation message.

403

Access to the resource is denied. Mainly due to a lack of permissions to access it.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

401

Bad authentication attempt because of a wrong API Key.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

403

In case the bearer token has expired, does not have enought permission or does not exists.
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 ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

Domain claims information

https://api.sandbox.gandi.net/v5/domain/domains/{domain}/claims

Retrieve potential trademark information related to this domain name. This route should be used before ordering a new domain that is in the first 90 days of its launch.

In case a claims exist must show a notice to your final customer, notifiying him that the name in question is a registered trademak and that the owner(s) of that trademark will be notified and may take legal action

get Retrieve potential trademark information

Request

URI Parameters
    • domain ⁠string
      Domain name.
Headers
  • Required
    • Authorization ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

Responses

200

Body
  • application/json
    ⁠object

    With the following properties:

    • claims ⁠array

      Of items of type:

      • object

        With the following properties:

        • contacts ⁠array
          managers (agents) of the trademark on behalf of the owners

          Of items of type:

          • object
            Contact information related to a contact / holder

            With the following properties:

            Optional
            • cc ⁠string
            • city ⁠string
            • email ⁠string
            • fax ⁠string
            • name ⁠string
            • org ⁠string
            • pc ⁠string
            • phone ⁠string
            • sp ⁠string
            • street ⁠string
        • goods_and_services ⁠string
          A very long string describing the trademark categories
        • holders ⁠array
          Owner(s) of the trademark

          Of items of type:

          • object
            Contact information related to a contact / holder

            With the following properties:

            Optional
            • cc ⁠string
            • city ⁠string
            • email ⁠string
            • fax ⁠string
            • name ⁠string
            • org ⁠string
            • pc ⁠string
            • phone ⁠string
            • sp ⁠string
            • street ⁠string
        • jurisdiction_classes ⁠array

          Of items of type:

          • integer
            List of Nice WIPO class numbers (reference)
        • jurisdiction_country ⁠string
        Optional
        • mark_name ⁠string
    • created_at ⁠string
    • expires_at ⁠string
      Warning each notice is valid for an approximate 48 hours, you will get another value after a few hours
    • fqdn ⁠string
    • fqdn_alabel ⁠string
    • fqdn_ulabel ⁠string
    • notice_id ⁠string
      Notice identifier. This should be sent as the "claims" property to the POST on /domains
    • status ⁠string

      One of: "new", "accepted"

403

Access to the resource is denied. Mainly due to a lack of permissions to access it.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

404

Body
  • application/josn
    ⁠any
    Expected response when no claim is accociated with this domain

401

Bad authentication attempt because of a wrong API Key.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

403

In case the bearer token has expired, does not have enought permission or does not exists.
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 ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

post Accept a previously retrieved claims

You must first make a GET request to retrieve the information.

This route can be used to accept a claim after the domain has been ordered, in case the creation is blockeis blocked due to the precense of a claim

Request

URI Parameters
    • domain ⁠string
      Domain name.
Headers
  • Required
    • Authorization ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

Responses

201

The resource has been created.
Headers
  • Optional
    • Location ⁠string
Body
  • application/json
    ⁠object

    With the following properties:

    • message ⁠string
      Confirmation message.

403

Access to the resource is denied. Mainly due to a lack of permissions to access it.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

401

Bad authentication attempt because of a wrong API Key.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

403

In case the bearer token has expired, does not have enought permission or does not exists.
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 ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

Domain Contacts

https://api.sandbox.gandi.net/v5/domain/domains/{domain}/contacts

get Domain contact list

Request

URI Parameters
    • domain ⁠string
      Domain name.
Headers
  • Required
    • Authorization ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

Responses

200

Body
  • application/json
    ⁠object

    With the following properties:

    • admin ⁠object

      With the following properties:

      • country ⁠string
        A country code. See the country code list for possible values.
      • email ⁠string
      • family ⁠string
        Contact's family name (usualy the lastname)
      • given ⁠string
        Contact's given name (usualy the firstname)
      • same_as_owner ⁠boolean
        Will be true when the contact used is the same as the owner.
      • streetaddr ⁠string
      • type ⁠string

        One of: "individual", "company", "association", "publicbody"

      Optional
      • brand_number ⁠string
      • city ⁠string
      • data_obfuscated ⁠boolean
      • extra_parameters ⁠object
        Extra parameters needed for some extensions. See this list for possible values.
      • fax ⁠string
      • jo_announce_number ⁠string
      • jo_announce_page ⁠string
      • jo_declaration_date ⁠string
      • jo_publication_date ⁠string
      • mail_obfuscated ⁠boolean
      • mobile ⁠string
      • orgname ⁠string
        The legal name of the company, association, or public body if the contact type is not 0.
      • phone ⁠string
      • reachability ⁠string

        One of: "pending", "done", "failed", "deleted", "none"

        Learn more about reachability here.
      • sharing_id ⁠string
      • siren ⁠string
      • state ⁠string
        Learn more about state codes here
      • validation ⁠string

        One of: "pending", "done", "failed", "deleted", "none"

      • zip ⁠string
    • bill ⁠object

      With the following properties:

      • country ⁠string
        A country code. See the country code list for possible values.
      • email ⁠string
      • family ⁠string
        Contact's family name (usualy the lastname)
      • given ⁠string
        Contact's given name (usualy the firstname)
      • same_as_owner ⁠boolean
        Will be true when the contact used is the same as the owner.
      • streetaddr ⁠string
      • type ⁠string

        One of: "individual", "company", "association", "publicbody"

      Optional
      • brand_number ⁠string
      • city ⁠string
      • data_obfuscated ⁠boolean
      • extra_parameters ⁠object
        Extra parameters needed for some extensions. See this list for possible values.
      • fax ⁠string
      • jo_announce_number ⁠string
      • jo_announce_page ⁠string
      • jo_declaration_date ⁠string
      • jo_publication_date ⁠string
      • mail_obfuscated ⁠boolean
      • mobile ⁠string
      • orgname ⁠string
        The legal name of the company, association, or public body if the contact type is not 0.
      • phone ⁠string
      • reachability ⁠string

        One of: "pending", "done", "failed", "deleted", "none"

        Learn more about reachability here.
      • sharing_id ⁠string
      • siren ⁠string
      • state ⁠string
        Learn more about state codes here
      • validation ⁠string

        One of: "pending", "done", "failed", "deleted", "none"

      • zip ⁠string
    • owner ⁠object

      With the following properties:

      • country ⁠string
        A country code. See the country code list for possible values.
      • email ⁠string
      • family ⁠string
        Contact's family name (usualy the lastname)
      • given ⁠string
        Contact's given name (usualy the firstname)
      • streetaddr ⁠string
      • type ⁠string

        One of: "individual", "company", "association", "publicbody"

      Optional
      • brand_number ⁠string
      • city ⁠string
      • data_obfuscated ⁠boolean
      • extra_parameters ⁠object
        Extra parameters needed for some extensions. See this list for possible values.
      • fax ⁠string
      • jo_announce_number ⁠string
      • jo_announce_page ⁠string
      • jo_declaration_date ⁠string
      • jo_publication_date ⁠string
      • mail_obfuscated ⁠boolean
      • mobile ⁠string
      • orgname ⁠string
        The legal name of the company, association, or public body if the contact type is not 0.
      • phone ⁠string
      • reachability ⁠string

        One of: "pending", "done", "failed", "deleted", "none"

        Learn more about reachability here.
      • sharing_id ⁠string
      • siren ⁠string
      • state ⁠string
        Learn more about state codes here
      • validation ⁠string

        One of: "pending", "done", "failed", "deleted", "none"

      • zip ⁠string
    • tech ⁠object

      With the following properties:

      • country ⁠string
        A country code. See the country code list for possible values.
      • email ⁠string
      • family ⁠string
        Contact's family name (usualy the lastname)
      • given ⁠string
        Contact's given name (usualy the firstname)
      • same_as_owner ⁠boolean
        Will be true when the contact used is the same as the owner.
      • streetaddr ⁠string
      • type ⁠string

        One of: "individual", "company", "association", "publicbody"

      Optional
      • brand_number ⁠string
      • city ⁠string
      • data_obfuscated ⁠boolean
      • extra_parameters ⁠object
        Extra parameters needed for some extensions. See this list for possible values.
      • fax ⁠string
      • jo_announce_number ⁠string
      • jo_announce_page ⁠string
      • jo_declaration_date ⁠string
      • jo_publication_date ⁠string
      • mail_obfuscated ⁠boolean
      • mobile ⁠string
      • orgname ⁠string
        The legal name of the company, association, or public body if the contact type is not 0.
      • phone ⁠string
      • reachability ⁠string

        One of: "pending", "done", "failed", "deleted", "none"

        Learn more about reachability here.
      • sharing_id ⁠string
      • siren ⁠string
      • state ⁠string
        Learn more about state codes here
      • validation ⁠string

        One of: "pending", "done", "failed", "deleted", "none"

      • zip ⁠string
    Example:
    {
      "admin": {
        "city": "Paris",
        "given": "Alice",
        "family": "Doe",
        "zip": "75001",
        "extra_parameters": {},
        "country": "FR",
        "streetaddr": "5 rue neuve",
        "data_obfuscated": true,
        "mail_obfuscated": true,
        "phone": "+33.123456789",
        "same_as_owner": true,
        "state": "FR-IDF",
        "type": "individual",
        "email": "alice@example.org"
      },
      "bill": {
        "city": "Paris",
        "given": "Alice",
        "family": "Doe",
        "zip": "75001",
        "extra_parameters": {},
        "country": "FR",
        "streetaddr": "5 rue neuve",
        "data_obfuscated": true,
        "mail_obfuscated": true,
        "phone": "+33.123456789",
        "same_as_owner": true,
        "state": "FR-IDF",
        "type": "individual",
        "email": "alice@example.org"
      },
      "tech": {
        "city": "Paris",
        "given": "Alice",
        "family": "Doe",
        "zip": "75001",
        "extra_parameters": {},
        "country": "FR",
        "streetaddr": "5 rue neuve",
        "data_obfuscated": true,
        "mail_obfuscated": true,
        "phone": "+33.123456789",
        "same_as_owner": true,
        "state": "FR-IDF",
        "type": "individual",
        "email": "alice@example.org"
      },
      "owner": {
        "city": "Paris",
        "given": "Alice",
        "family": "Doe",
        "zip": "75001",
        "extra_parameters": {},
        "country": "FR",
        "streetaddr": "5 rue neuve",
        "data_obfuscated": true,
        "mail_obfuscated": true,
        "phone": "+33.123456789",
        "state": "FR-IDF",
        "type": "individual",
        "email": "alice@example.org"
      }
    }

403

Access to the resource is denied. Mainly due to a lack of permissions to access it.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

401

Bad authentication attempt because of a wrong API Key.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

403

In case the bearer token has expired, does not have enought permission or does not exists.
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 ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

patch Domain contact update

This route let you update a domain contact(s). Please note that you can only change the admin, tech and billing contact information using this route. Should you need to update the domain's owner information, please use the owner route.

Request

URI Parameters
    • domain ⁠string
      Domain name.
Headers
  • Required
    • Authorization ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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
Body
  • application/json
    ⁠object

    With the following properties:

    Optional
    • admin ⁠object

      With the following properties:

      Required
      • country ⁠string
        A country code. See the country code list for possible values.
      • email ⁠string
      • family ⁠string
        Contact's family name (usualy the lastname)
      • given ⁠string
        Contact's given name (usualy the firstname)
      • streetaddr ⁠string
      • type ⁠string

        One of: "individual", "company", "association", "publicbody"

      Optional
      • brand_number ⁠string
      • city ⁠string
      • data_obfuscated ⁠boolean

        Default: true

        Learn more about WHOIS privacy at Gandi here.
      • extra_parameters ⁠object
        Extra parameters needed for some extensions. See this list for possible values.
      • fax ⁠string
      • icann_contract_accept ⁠boolean

        Default: false

        To unlock the Email address field and make changes, set this field to true to authorize the registrar, Gandi, to be the "Designated Agent" under ICANN rules.
      • jo_announce_number ⁠string
      • jo_announce_page ⁠string
      • jo_declaration_date ⁠string
      • jo_publication_date ⁠string
      • lang ⁠string

        One of: "en", "es", "fr", "ja", "zh-hans", "zh-hant"

      • mail_obfuscated ⁠boolean
      • mobile ⁠string
      • orgname ⁠string
        The legal name of the company, association, or public body if the contact type is not 0.
      • phone ⁠string
      • siren ⁠string
      • state ⁠string
        Learn more about state codes here
      • validation ⁠string

        One of: "pending", "done", "failed", "deleted", "none"

      • zip ⁠string
    • bill ⁠object

      With the following properties:

      Required
      • country ⁠string
        A country code. See the country code list for possible values.
      • email ⁠string
      • family ⁠string
        Contact's family name (usualy the lastname)
      • given ⁠string
        Contact's given name (usualy the firstname)
      • streetaddr ⁠string
      • type ⁠string

        One of: "individual", "company", "association", "publicbody"

      Optional
      • brand_number ⁠string
      • city ⁠string
      • data_obfuscated ⁠boolean

        Default: true

        Learn more about WHOIS privacy at Gandi here.
      • extra_parameters ⁠object
        Extra parameters needed for some extensions. See this list for possible values.
      • fax ⁠string
      • icann_contract_accept ⁠boolean

        Default: false

        To unlock the Email address field and make changes, set this field to true to authorize the registrar, Gandi, to be the "Designated Agent" under ICANN rules.
      • jo_announce_number ⁠string
      • jo_announce_page ⁠string
      • jo_declaration_date ⁠string
      • jo_publication_date ⁠string
      • lang ⁠string

        One of: "en", "es", "fr", "ja", "zh-hans", "zh-hant"

      • mail_obfuscated ⁠boolean
      • mobile ⁠string
      • orgname ⁠string
        The legal name of the company, association, or public body if the contact type is not 0.
      • phone ⁠string
      • siren ⁠string
      • state ⁠string
        Learn more about state codes here
      • validation ⁠string

        One of: "pending", "done", "failed", "deleted", "none"

      • zip ⁠string
    • tech ⁠object

      With the following properties:

      Required
      • country ⁠string
        A country code. See the country code list for possible values.
      • email ⁠string
      • family ⁠string
        Contact's family name (usualy the lastname)
      • given ⁠string
        Contact's given name (usualy the firstname)
      • streetaddr ⁠string
      • type ⁠string

        One of: "individual", "company", "association", "publicbody"

      Optional
      • brand_number ⁠string
      • city ⁠string
      • data_obfuscated ⁠boolean

        Default: true

        Learn more about WHOIS privacy at Gandi here.
      • extra_parameters ⁠object
        Extra parameters needed for some extensions. See this list for possible values.
      • fax ⁠string
      • icann_contract_accept ⁠boolean

        Default: false

        To unlock the Email address field and make changes, set this field to true to authorize the registrar, Gandi, to be the "Designated Agent" under ICANN rules.
      • jo_announce_number ⁠string
      • jo_announce_page ⁠string
      • jo_declaration_date ⁠string
      • jo_publication_date ⁠string
      • lang ⁠string

        One of: "en", "es", "fr", "ja", "zh-hans", "zh-hant"

      • mail_obfuscated ⁠boolean
      • mobile ⁠string
      • orgname ⁠string
        The legal name of the company, association, or public body if the contact type is not 0.
      • phone ⁠string
      • siren ⁠string
      • state ⁠string
        Learn more about state codes here
      • validation ⁠string

        One of: "pending", "done", "failed", "deleted", "none"

      • zip ⁠string
    Example:
    {
      "admin": {
        "lang": "en",
        "city": "Paris",
        "given": "Bob",
        "family": "Doe",
        "zip": "75001",
        "extra_parameters": {},
        "country": "FR",
        "streetaddr": "8 rue neuve",
        "data_obfuscated": true,
        "mail_obfuscated": true,
        "phone": "+33.123456788",
        "state": "FR-IDF",
        "type": "individual",
        "email": "bob@example.org"
      }
    }

Responses

202

The request has been accepted.
Headers
  • Optional
    • Location ⁠string
Body
  • application/json
    ⁠object

    With the following properties:

    • message ⁠string
      Confirmation message.

403

Access to the resource is denied. Mainly due to a lack of permissions to access it.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

401

Bad authentication attempt because of a wrong API Key.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

403

In case the bearer token has expired, does not have enought permission or does not exists.
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 ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

Domain Owner

https://api.sandbox.gandi.net/v5/domain/domains/{domain}/contacts/owner

put Edit domain owner

This route let you change some of the domain's owner information. At the moment you can't change information that could trigger a full change of ownership (such as the names).

Request

URI Parameters
    • domain ⁠string
      Domain name.
Headers
  • Required
    • Authorization ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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
    Optional
    • Dry-Run ⁠integer
      If this header's value is 1 the request's parameters will only be checked; the operation will not actually be performed.
Body
  • application/json
    ⁠object

    With the following properties:

    Required
    • country ⁠string
      A country code. See the country code list for possible values.
    • email ⁠string
    • streetaddr ⁠string
    Optional
    • brand_number ⁠string
    • city ⁠string
    • data_obfuscated ⁠boolean

      Default: true

      Learn more about WHOIS privacy at Gandi here.
    • extra_parameters ⁠object
      Extra parameters needed for some extensions. See this list for possible values.
    • family ⁠string
      Contact's family name (usualy the lastname)
    • fax ⁠string
    • given ⁠string
      Contact's given name (usualy the firstname)
    • icann_contract_accept ⁠boolean

      Default: false

      To unlock the Email address field and make changes, set this field to true to authorize the registrar, Gandi, to be the "Designated Agent" under ICANN rules.
    • jo_announce_number ⁠string
    • jo_announce_page ⁠string
    • jo_declaration_date ⁠string
    • jo_publication_date ⁠string
    • lang ⁠string

      One of: "en", "es", "fr", "ja", "zh-hans", "zh-hant"

    • mail_obfuscated ⁠boolean
    • mobile ⁠string
    • phone ⁠string
    • siren ⁠string
    • state ⁠string
      Learn more about state codes here
    • validation ⁠string

      One of: "pending", "done", "failed", "deleted", "none"

    • zip ⁠string

Responses

200

Dry-Run response. You will get this response when you send your request. with a Dry-Run: 1 header.
Headers
  • Optional
    • Warning ⁠string
      Warning message
Body
  • application/json
    ⁠object

    With the following properties:

    • status ⁠string

      One of: "success", "error"

      Response status.
    Optional
    • errors ⁠array
      A list of all the errors encountered during validation.

      Of items of type:

      • object

        With the following properties:

        • description ⁠string
          Error message.
        • location ⁠string

          One of: "header", "path", "querystring", "body"

          The field's location in the HTTP response.
        • name ⁠string
          The xpath of the field.

202

The request has been accepted.
Headers
  • Optional
    • Location ⁠string
Body
  • application/json
    ⁠object

    With the following properties:

    • message ⁠string
      Confirmation message.

403

Access to the resource is denied. Mainly due to a lack of permissions to access it.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

401

Bad authentication attempt because of a wrong API Key.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

403

In case the bearer token has expired, does not have enought permission or does not exists.
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 ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

Domain Creation Status

https://api.sandbox.gandi.net/v5/domain/domains/{domain}/createstatus

get Domain Creation Status

This route returns the domain creation status. Once a domain has been succesfuly registered, a redirection to the Domain Information route will be sent as a response.

Request

URI Parameters
    • domain ⁠string
      Domain name.
Headers
  • Required
    • Authorization ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

Responses

200

Body
  • application/json
    ⁠object

    With the following properties:

    • step ⁠string

      One of: "BILL", "WAIT", "RUN", "SUPPORT", "ERROR"

    • step_nb ⁠integer
    Optional
    • errortype ⁠string
    • errortype_label ⁠string

303

Headers
    • Location ⁠string

403

Access to the resource is denied. Mainly due to a lack of permissions to access it.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

401

Bad authentication attempt because of a wrong API Key.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

403

In case the bearer token has expired, does not have enought permission or does not exists.
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 ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

DNSSEC Keys Management

https://api.sandbox.gandi.net/v5/domain/domains/{domain}/dnskeys

The following routes let you manage DNSSEC on a domain by sending the DNS public keys to the domain registry. Please read our documentation about DNSSEC before going further.

get DNS Key List

This route returns the list of all the DNS Keys installed on a domain.

Request

URI Parameters
    • domain ⁠string
      Domain name.
Query String
  • Optional
    • page ⁠integer

      Default: 1

      Minimum: 1

      Which result page to retrieve. If the number is greater than the last page, an empty list is returned.
    • per_page ⁠integer

      Minimum: 1

      How many items to display per page.
Headers
  • Required
    • Authorization ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

Responses

200

Headers
    • Filtered-Count ⁠integer
      Number of items returned by the API call.
    • Total-Count ⁠integer
      Total number of items.
    Optional
    • Link ⁠string
      Links to next and last page.
Body
  • application/json
    ⁠array

    Of items of type:

    • object

      With the following properties:

      • algorithm ⁠integer

        Minimum: 0

        Maximum: 255

        Algorithm
      • digest ⁠string
        Key Digest
      • digest_type ⁠integer

        Minimum: 0

        Maximum: 255

        Key Digest Type
      • href ⁠string
        URL to this DNS Key
      • id ⁠integer
        Id
      • keytag ⁠integer
        Key Tag
      • type ⁠string

        One of: "none", "zsk", "ksk"

        Key Type
      Optional
      • public_key ⁠string
        Public Key

403

Access to the resource is denied. Mainly due to a lack of permissions to access it.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

401

Bad authentication attempt because of a wrong API Key.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

403

In case the bearer token has expired, does not have enought permission or does not exists.
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 ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

post Create a new DNS Key

This route lets you add a new DNS Key on a domain.

Request

URI Parameters
    • domain ⁠string
      Domain name.
Headers
  • Required
    • Authorization ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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
Body
  • application/json
    ⁠object

    With the following properties:

    Required
    • algorithm ⁠integer

      Minimum: 0

      Maximum: 255

      Algorithm
    • public_key ⁠string
      Public Key
    • type ⁠string

      One of: "none", "zsk", "ksk"

      Key Type
    Example:
    {
      "algorithm": 13,
      "type": "zsk",
      "public_key": "ZhCa3rGLofZcndFN2aVd=="
    }

Responses

202

The request has been accepted.
Headers
  • Optional
    • Location ⁠string
Body
  • application/json
    ⁠object

    With the following properties:

    • message ⁠string
      Confirmation message.

403

Access to the resource is denied. Mainly due to a lack of permissions to access it.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

401

Bad authentication attempt because of a wrong API Key.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

403

In case the bearer token has expired, does not have enought permission or does not exists.
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 ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

put Replace keys on this domain

This route lets you replace all the DNS Keys on a domain.

Request

URI Parameters
    • domain ⁠string
      Domain name.
Headers
  • Required
    • Authorization ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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
Body
  • application/json
    ⁠object

    With the following properties:

    Required
    • keys ⁠array

      Of items of type:

      • object

        With the following properties:

        Required
        • algorithm ⁠integer

          Minimum: 0

          Maximum: 255

          Algorithm
        • public_key ⁠string
          Public Key
        • type ⁠string

          One of: "none", "zsk", "ksk"

          Key Type
    Example:
    {
      "keys": [
        {
          "algorithm": 13,
          "type": "zsk",
          "public_key": "ZhCa3rGLofZcndFN2aVd=="
        },
        {
          "algorithm": 13,
          "type": "ksk",
          "public_key": "SWF0mbNsQJGzhjbB2jiqTcN9JM3Igg=="
        }
      ]
    }

Responses

202

The request has been accepted.
Headers
  • Optional
    • Location ⁠string
Body
  • application/json
    ⁠object

    With the following properties:

    • message ⁠string
      Confirmation message.

403

Access to the resource is denied. Mainly due to a lack of permissions to access it.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

401

Bad authentication attempt because of a wrong API Key.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

403

In case the bearer token has expired, does not have enought permission or does not exists.
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 ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

DNSSEC Key deletion

https://api.sandbox.gandi.net/v5/domain/domains/{domain}/dnskeys/{id}

delete Delete a DNSSEC Key

This route lets you remove a DNS Key on a domain. You can get the key id in the key list result.

Request

URI Parameters
    • domain ⁠string
      Domain name.
    • id ⁠string
      Key ID
Headers
  • Required
    • Authorization ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

Responses

202

The request has been accepted.
Headers
  • Optional
    • Location ⁠string
Body
  • application/json
    ⁠object

    With the following properties:

    • message ⁠string
      Confirmation message.

403

Access to the resource is denied. Mainly due to a lack of permissions to access it.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

401

Bad authentication attempt because of a wrong API Key.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

403

In case the bearer token has expired, does not have enought permission or does not exists.
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 ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

Glue Record Management

https://api.sandbox.gandi.net/v5/domain/domains/{domain}/hosts

A glue record is the association of a hostname with an IP address at the registry. Once created, add your new names to your list of nameservers. Changes will be effective within from 12 up to 72 hours, the time for the DNS new zones to propagate worldwide.

Learn more.

Warning An empty hostname (meaning the glue record is the domain name) is represented here by the name '@'. To allow REST operations on URL …/hosts/@

get Glue record list

This route returns the list of glue records for the given domain, with their associated IP addresses.

Request

URI Parameters
    • domain ⁠string
      Domain name.
Query String
  • Optional
    • page ⁠integer

      Default: 1

      Minimum: 1

      Which result page to retrieve. If the number is greater than the last page, an empty list is returned.
    • per_page ⁠integer

      Minimum: 1

      How many items to display per page.
Headers
  • Required
    • Authorization ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

Responses

200

Headers
    • Filtered-Count ⁠integer
      Number of items returned by the API call.
    • Total-Count ⁠integer
      Total number of items.
    Optional
    • Link ⁠string
      Links to next and last page.
Body
  • application/json
    ⁠array

    Of items of type:

    • object

      With the following properties:

      • fqdn ⁠string
        Fully qualified domain name, written in its native alphabet (IDN).
      • fqdn_unicode ⁠string
        Fully qualified domain name, written in unicode.
      • href ⁠string
        URL to this host's details.
      • ips ⁠array[ string ]
        List of this host's registered IP addresses.
      • name ⁠string
        Name of this host (FQDN without the domain part).
    Example:
    [
      {
        "ips": [
          "203.0.113.1"
        ],
        "name": "ns1",
        "fqdn": "example.net",
        "href": "http://api.test/v5/domain/domains/example.net/hosts/ns1",
        "fqdn_unicode": "example.net"
      },
      {
        "ips": [
          "203.0.113.2"
        ],
        "name": "@",
        "fqdn": "example.net",
        "href": "http://api.test/v5/domain/domains/example.net/hosts/@",
        "fqdn_unicode": "example.net"
      }
    ]

403

Access to the resource is denied. Mainly due to a lack of permissions to access it.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

401

Bad authentication attempt because of a wrong API Key.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

403

In case the bearer token has expired, does not have enought permission or does not exists.
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 ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

post Create a new glue record

This route is used to create a new glue record.

Request

URI Parameters
    • domain ⁠string
      Domain name.
Query String
  • Optional
    • page ⁠integer

      Default: 1

      Minimum: 1

      Which result page to retrieve. If the number is greater than the last page, an empty list is returned.
    • per_page ⁠integer

      Minimum: 1

      How many items to display per page.
Headers
  • Required
    • Authorization ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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
Body
  • application/json
    ⁠object

    With the following properties:

    Required
    • ips ⁠array[ string ]
      List of IP addresses.
    • name ⁠string
      Host name of the glue record.
    Example:
    {
      "name": "ns2",
      "ips": [
        "203.0.113.2",
        "203.0.113.3",
        "2001:db8:0:0:0:0:0:00ff"
      ]
    }

Responses

200

Headers
    • Filtered-Count ⁠integer
      Number of items returned by the API call.
    • Total-Count ⁠integer
      Total number of items.
    Optional
    • Link ⁠string
      Links to next and last page.

202

The request has been accepted.
Headers
  • Optional
    • Location ⁠string
Body
  • application/json
    ⁠object

    With the following properties:

    • message ⁠string
      Confirmation message.

403

Access to the resource is denied. Mainly due to a lack of permissions to access it.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

401

Bad authentication attempt because of a wrong API Key.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

403

In case the bearer token has expired, does not have enought permission or does not exists.
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 ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

Glue record information

https://api.sandbox.gandi.net/v5/domain/domains/{domain}/hosts/{name}

get Glue record information

This route returns information on a specific glue record for the given domain.

Request

URI Parameters
    • domain ⁠string
      Domain name.
    • name ⁠string
      Host name.
Headers
  • Required
    • Authorization ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

Responses

200

Body
  • application/json
    ⁠object

    With the following properties:

    • fqdn ⁠string
      Fully qualified domain name, written in its native alphabet (IDN).
    • fqdn_unicode ⁠string
      Fully qualified domain name, written in unicode.
    • href ⁠string
      URL to this host's details.
    • ips ⁠array[ string ]
      List of this host's registered IP addresses.
    • name ⁠string
      Name of this host (FQDN without the domain part).
    Example:
    {
      "ips": [
        "203.0.113.1"
      ],
      "name": "ns1",
      "fqdn": "example.net",
      "href": "http://api.test/v5/domain/domains/example.net/hosts/ns1",
      "fqdn_unicode": "example.net"
    }

403

Access to the resource is denied. Mainly due to a lack of permissions to access it.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

401

Bad authentication attempt because of a wrong API Key.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

403

In case the bearer token has expired, does not have enought permission or does not exists.
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 ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

put Update a glue record

This route is used to update an existing glue record.

Request

URI Parameters
    • domain ⁠string
      Domain name.
    • name ⁠string
      Host name.
Headers
  • Required
    • Authorization ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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
Body
  • application/json
    ⁠object

    With the following properties:

    Required
    • ips ⁠array[ string ]
      List of IP addresses.
    Example:
    {
      "ips": [
        "203.0.113.2",
        "203.0.113.3",
        "2001:db8:0:0:0:0:0:00ff"
      ]
    }

Responses

202

The request has been accepted.
Headers
  • Optional
    • Location ⁠string
Body
  • application/json
    ⁠object

    With the following properties:

    • message ⁠string
      Confirmation message.

403

Access to the resource is denied. Mainly due to a lack of permissions to access it.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

401

Bad authentication attempt because of a wrong API Key.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

403

In case the bearer token has expired, does not have enought permission or does not exists.
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 ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

delete Delete a glue record

Request

URI Parameters
    • domain ⁠string
      Domain name.
    • name ⁠string
      Host name.
Headers
  • Required
    • Authorization ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

Responses

202

The request has been accepted.
Headers
  • Optional
    • Location ⁠string
Body
  • application/json
    ⁠object

    With the following properties:

    • message ⁠string
      Confirmation message.

403

Access to the resource is denied. Mainly due to a lack of permissions to access it.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

401

Bad authentication attempt because of a wrong API Key.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

403

In case the bearer token has expired, does not have enought permission or does not exists.
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 ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

LiveDNS Management

https://api.sandbox.gandi.net/v5/domain/domains/{domain}/livedns

get Domain LiveDNS Information

This route returns LiveDNS status information for the given domain.

Request

URI Parameters
    • domain ⁠string
      Domain name.
Headers
  • Required
    • Authorization ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

Responses

200

Body
  • application/json
    ⁠object

    With the following properties:

    • current ⁠string

      One of: "classic", "livedns", "premium_dns", "other"

      Type of nameservers currently set. classic corresponds to Gandi's classic nameservers, livedns is for the new, default, Gandi nameservers, premium_dns indicates the presence of Gandi's Premium DNS nameserver and the corresponding service subscription, and other is for custom nameservers.
    • nameservers ⁠array[ string ]
      List of current nameservers.
    Optional
    • dnssec_available ⁠boolean
      Indicates if DNSSEC may be applied to the domain.
    • livednssec_available ⁠boolean
      Indicates if DNSSEC with liveDNS may be applied to this domain.
    Example:
    {
      "dnssec_available": true,
      "livednssec_available": true,
      "nameservers": [
        "ns-190-a.gnadi.net",
        "ns-193-b.gnadi.net",
        "ns-143-c.gnadi.net"
      ],
      "current": "livedns"
    }

403

Access to the resource is denied. Mainly due to a lack of permissions to access it.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

401

Bad authentication attempt because of a wrong API Key.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

403

In case the bearer token has expired, does not have enought permission or does not exists.
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 ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

post Enable LiveDNS

This route is used to apply the correct LiveDNS nameservers for the given domain. It takes no content. If you want to disable LiveDNS, change the nameservers.

Please note that if the domain is on the classic Gandi DNS, this will also perform a copy of all existing records immediately afterwards.

Request

URI Parameters
    • domain ⁠string
      Domain name.
Headers
  • Required
    • Authorization ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

Responses

202

The request has been accepted.
Headers
  • Optional
    • Location ⁠string
Body
  • application/json
    ⁠object

    With the following properties:

    • message ⁠string
      Confirmation message.

403

Access to the resource is denied. Mainly due to a lack of permissions to access it.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

401

Bad authentication attempt because of a wrong API Key.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

403

In case the bearer token has expired, does not have enought permission or does not exists.
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 ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

/v5/domain/domains/{domain}/livedns/dnssec

https://api.sandbox.gandi.net/v5/domain/domains/{domain}/livedns/dnssec

get Return informations about DNSSEC status for a domain

This route is used to get the status of DNSSEC with LiveDNS.

Request

URI Parameters
    • domain ⁠string
      Domain name.
Headers
  • Required
    • Authorization ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

Responses

200

Body
  • application/json
    ⁠object

    With the following properties:

    • state ⁠string

      One of: "activation_error", "activating", "active", "deactivation_error", "deactivating", "inactive"

      DNSSEC status of a domain.
    Optional
    • error ⁠string

      Minimum length: 1

      An error message.

403

Access to the resource is denied. Mainly due to a lack of permissions to access it.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

401

Bad authentication attempt because of a wrong API Key.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

403

In case the bearer token has expired, does not have enought permission or does not exists.
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 ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

post Activate DNSSEC for a domain

This route is used to activate DNSSEC with LiveDNS for a domain.

Request

URI Parameters
    • domain ⁠string
      Domain name.
Query String
  • Optional
    • sharing_id ⁠string
      Sharing ID. Organization ID used as a filter or as a billing identifier. See the reference.
Headers
  • Required
    • Authorization ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

Responses

202

The request has been accepted.
Body
  • application/json
    ⁠object

    With the following properties:

    • state ⁠string

      One of: "activating"

      DNSSEC status of a domain after successfully launching the activation of the DNSSEC.

400

Something went wrong during the activation of the DNSSEC.
Body
  • application/json
    ⁠object

    With the following properties:

    • state ⁠string

      One of: "active", "deactivation_error", "deactivating", "inactive"

      DNSSEC status of a domain after launching the activation of the DNSSEC.
    Optional
    • cause ⁠string

      Minimum length: 1

      A message which explains why the DNSSEC is inactive.
    • error ⁠string

      Minimum length: 1

      An error message.

403

Access to the resource is denied. Mainly due to a lack of permissions to access it.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

401

Bad authentication attempt because of a wrong API Key.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

403

In case the bearer token has expired, does not have enought permission or does not exists.
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 ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

delete Disable DNSSEC for a domain

This route is used to disable DNSSEC for a domain with LiveDNS.

Request

URI Parameters
    • domain ⁠string
      Domain name.
Query String
  • Optional
    • sharing_id ⁠string
      Sharing ID. Organization ID used as a filter or as a billing identifier. See the reference.
Headers
  • Required
    • Authorization ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

Responses

202

Body
  • application/json
    ⁠object

    With the following properties:

    • state ⁠string

      One of: "deactivating"

      DNSSEC status of a domain after successfully completing its deactivation.

400

Something went wrong during the deactivation of the DNSSEC.
Body
  • application/json
    ⁠object

    With the following properties:

    • error ⁠string

      Minimum length: 1

      An error message.
    • state ⁠string

      One of: "activating", "activation_error", "deactivating", "inactive"

      DNSSEC status of a domain after launching the deactivation of the DNSSEC.

403

Access to the resource is denied. Mainly due to a lack of permissions to access it.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

401

Bad authentication attempt because of a wrong API Key.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

403

In case the bearer token has expired, does not have enought permission or does not exists.
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 ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

Nameservers Management

https://api.sandbox.gandi.net/v5/domain/domains/{domain}/nameservers

get Domain Nameserver Information

This route returns the nameservers that are currently set on this domain.

Request

URI Parameters
    • domain ⁠string
      Domain name.
Headers
  • Required
    • Authorization ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

Responses

200

Body
  • application/json
    ⁠array[ string ]
    List of FQDNs.
    Example - Nameserver list:
    [
      "ns1.example.net",
      "ns2.example.net"
    ]
    Example - Nameserver list (livedns example):
    [
      "ns-190-a.gnadi.net",
      "ns-193-b.gnadi.net",
      "ns-143-c.gnadi.net"
    ]

403

Access to the resource is denied. Mainly due to a lack of permissions to access it.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

401

Bad authentication attempt because of a wrong API Key.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

403

In case the bearer token has expired, does not have enought permission or does not exists.
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 ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

put Update Domain Nameserver List

This route is used to change the nameservers that are set on a given domain.

Request

URI Parameters
    • domain ⁠string
      Domain name.
Headers
  • Required
    • Authorization ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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
Body
  • application/json
    ⁠object

    With the following properties:

    Required
    • nameservers ⁠array[ string ]
      List of FQDNs.
    Example:
    {
      "nameservers": [
        "ns1.example.net",
        "ns2.example.net"
      ]
    }

Responses

202

The request has been accepted.
Headers
  • Optional
    • Location ⁠string
Body
  • application/json
    ⁠object

    With the following properties:

    • message ⁠string
      Confirmation message.

403

Access to the resource is denied. Mainly due to a lack of permissions to access it.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

401

Bad authentication attempt because of a wrong API Key.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

403

In case the bearer token has expired, does not have enought permission or does not exists.
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 ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

Resend reachability email

https://api.sandbox.gandi.net/v5/domain/domains/{domain}/reachability

patch Resend reachability email

This route is meant to resend the email that is used to validate that the owner of a domain is reachable Learn more about reachability here

Request

URI Parameters
    • domain ⁠string
      Domain name.
Headers
  • Required
    • Authorization ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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
Body
  • application/json
    ⁠object

    With the following properties:

    Required
    • action ⁠string

      One of: "resend"

    Example:
    {
      "action": "resend"
    }

Responses

403

Access to the resource is denied. Mainly due to a lack of permissions to access it.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

401

Bad authentication attempt because of a wrong API Key.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

403

In case the bearer token has expired, does not have enought permission or does not exists.
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 ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

Domain Renewal

https://api.sandbox.gandi.net/v5/domain/domains/{domain}/renew

get Domain renewal information

Request

URI Parameters
    • domain ⁠string
      Domain name.
Headers
  • Required
    • Authorization ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

Responses

200

Body
  • application/json
    ⁠object

    With the following properties:

    • begins_at ⁠string
    • durations ⁠array[ integer ]
    • maximum ⁠integer
    • minimum ⁠integer
    • prohibited ⁠boolean
    Optional
    • ends_at ⁠string
    • in_renew_period ⁠boolean
    Example:
    {
      "in_renew_period": true,
      "durations": [
        1,
        2,
        3,
        4,
        5,
        6,
        7,
        8
      ],
      "maximum": 8,
      "minimum": 1,
      "prohibited": false,
      "begins_at": "2012-01-01T00:00:00Z",
      "ends_at": "2021-03-30T00:00:00Z"
    }

403

Access to the resource is denied. Mainly due to a lack of permissions to access it.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

401

Bad authentication attempt because of a wrong API Key.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

403

In case the bearer token has expired, does not have enought permission or does not exists.
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 ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

post Renew a Domain

This route is used to renew domain names. Warning! This is not a free operation. Please ensure your prepaid account has enough credit.

Request

URI Parameters
    • domain ⁠string
      Domain name.
Query String
  • Optional
    • sharing_id ⁠string
      Sharing ID. Organization ID used as a filter or as a billing identifier. See the reference.
Headers
  • Required
    • Authorization ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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
    Optional
    • Dry-Run ⁠integer
      If this header's value is 1 the request's parameters will only be checked; the operation will not actually be performed.
Body
  • application/json
    ⁠object

    With the following properties:

    Optional
    • duration ⁠integer

      Default: 1

      Minimum: 1

      Maximum: 9

      The duration (in years) of the renewal.
    Example:
    {
      "duration": 2
    }

Responses

200

Dry-Run response. You will get this response when you send your request. with a Dry-Run: 1 header.
Headers
  • Optional
    • Warning ⁠string
      Warning message
Body
  • application/json
    ⁠object

    With the following properties:

    • status ⁠string

      One of: "success", "error"

      Response status.
    Optional
    • errors ⁠array
      A list of all the errors encountered during validation.

      Of items of type:

      • object

        With the following properties:

        • description ⁠string
          Error message.
        • location ⁠string

          One of: "header", "path", "querystring", "body"

          The field's location in the HTTP response.
        • name ⁠string
          The xpath of the field.

202

The request has been accepted.
Headers
  • Optional
    • Location ⁠string
Body
  • application/json
    ⁠object

    With the following properties:

    • message ⁠string
      Confirmation message.

403

Access to the resource is denied. Mainly due to a lack of permissions to access it.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

401

Bad authentication attempt because of a wrong API Key.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

403

In case the bearer token has expired, does not have enought permission or does not exists.
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 ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

Domain Restore

https://api.sandbox.gandi.net/v5/domain/domains/{domain}/restore

get Domain restore information

Request

URI Parameters
    • domain ⁠string
      Domain name.
Headers
  • Required
    • Authorization ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

Responses

200

Body
  • application/json
    ⁠object

    With the following properties:

    • restorable ⁠boolean
    Optional
    • contracts ⁠array

      Of items of type:

      • object

        With the following properties:

        • id ⁠string
        • name ⁠string
        Optional
        • href ⁠string
        • registry_contract_href ⁠string
    Example:
    {
      "restorable": true
    }

403

Access to the resource is denied. Mainly due to a lack of permissions to access it.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

401

Bad authentication attempt because of a wrong API Key.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

403

In case the bearer token has expired, does not have enought permission or does not exists.
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 ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

post Restore a Domain

This route is used to restore domain names (learn more about restoration). Warning! This is not a free operation. Please ensure your prepaid account has enough credit.

Request

URI Parameters
    • domain ⁠string
      Domain name.
Query String
  • Optional
    • sharing_id ⁠string
      Sharing ID. Organization ID used as a filter or as a billing identifier. See the reference.
Headers
  • Required
    • Authorization ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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
Body
  • application/json
    ⁠object

Responses

202

The request has been accepted.
Headers
  • Optional
    • Location ⁠string
Body
  • application/json
    ⁠object

    With the following properties:

    • message ⁠string
      Confirmation message.

403

Access to the resource is denied. Mainly due to a lack of permissions to access it.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

401

Bad authentication attempt because of a wrong API Key.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

403

In case the bearer token has expired, does not have enought permission or does not exists.
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 ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

Transfer lock status

https://api.sandbox.gandi.net/v5/domain/domains/{domain}/status

patch Transfer lock/unlock

Most extensions have a transfer protection mechanism, that consists of a lock that can be put on the domain. When the transfer lock is enabled, the domain can't be transferred. To unlock : clientTransferProhibited=false. To lock : clientTransferProhibited=true.

Warning: Transferring a domain name consists of entrusting its management to another domain name provider. During this process, an authorization code may be required. By transferring a domain away from Gandi, you will lose products that came with the domain. For example, any GandiMail mailboxes associated with the domain name will no longer work, and all emails will be deleted. When a domain is part of a Website Pack subscription, transferring this domain out will remove the domain from the subscription. Completing this action during the two months following domain creation will result in your Website Pack being split and the domain being made unavailable for a certain period, depending on the rules of the registry. The hosting subscription will continue as a monthly payment, though you can cancel the hosting subscription at any time.

Request

URI Parameters
    • domain ⁠string
      Domain name.
Headers
  • Required
    • Authorization ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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
Body
  • application/json
    ⁠object

    With the following properties:

    Required
    • clientTransferProhibited ⁠boolean
    Example:
    {
      "clientTransferProhibited": true
    }

Responses

202

The request has been accepted.
Headers
  • Optional
    • Location ⁠string
Body
  • application/json
    ⁠object

    With the following properties:

    • message ⁠string
      Confirmation message.

403

Access to the resource is denied. Mainly due to a lack of permissions to access it.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

401

Bad authentication attempt because of a wrong API Key.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

403

In case the bearer token has expired, does not have enought permission or does not exists.
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 ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

Manage domain tags

https://api.sandbox.gandi.net/v5/domain/domains/{domain}/tags

get Get the list of tags linked to a domain

Request

URI Parameters
    • domain ⁠string
      Domain name.
Headers
  • Required
    • Authorization ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

Responses

200

Body
  • application/json
    ⁠array[ string ]
    Example:
    [
      "to renew",
      "tag 2"
    ]

403

Access to the resource is denied. Mainly due to a lack of permissions to access it.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

401

Bad authentication attempt because of a wrong API Key.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

403

In case the bearer token has expired, does not have enought permission or does not exists.
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 ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

post Attach a new tag to the domain

Request

URI Parameters
    • domain ⁠string
      Domain name.
Headers
  • Required
    • Authorization ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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
Body
  • application/json
    ⁠object

    With the following properties:

    Required
    • tag ⁠string
    Example:
    {
      "tag": "to renew"
    }

Responses

201

The resource has been created.
Headers
  • Optional
    • Location ⁠string
Body
  • application/json
    ⁠object

    With the following properties:

    • message ⁠string
      Confirmation message.

403

Access to the resource is denied. Mainly due to a lack of permissions to access it.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

401

Bad authentication attempt because of a wrong API Key.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

403

In case the bearer token has expired, does not have enought permission or does not exists.
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 ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

put Update all the tags of the domain

Request

URI Parameters
    • domain ⁠string
      Domain name.
Headers
  • Required
    • Authorization ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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
Body
  • application/json
    ⁠object

    With the following properties:

    Required
    • tags ⁠array[ string ]
    Example:
    {
      "tags": [
        "to renew",
        "tag 2"
      ]
    }

Responses

201

The resource has been created.
Headers
  • Optional
    • Location ⁠string
Body
  • application/json
    ⁠object

    With the following properties:

    • message ⁠string
      Confirmation message.

403

Access to the resource is denied. Mainly due to a lack of permissions to access it.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

401

Bad authentication attempt because of a wrong API Key.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

403

In case the bearer token has expired, does not have enought permission or does not exists.
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 ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

patch Update some of the tags of the domain

Request

URI Parameters
    • domain ⁠string
      Domain name.
Headers
  • Required
    • Authorization ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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
Body
  • application/json
    ⁠object

    With the following properties:

    Required
    • add ⁠array[ string ]
    • remove ⁠array[ string ]
    Example:
    {
      "add": [
        "premium",
        "need website"
      ],
      "remove": [
        "to renew"
      ]
    }

Responses

201

The resource has been created.
Headers
  • Optional
    • Location ⁠string
Body
  • application/json
    ⁠object

    With the following properties:

    • message ⁠string
      Confirmation message.

403

Access to the resource is denied. Mainly due to a lack of permissions to access it.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

401

Bad authentication attempt because of a wrong API Key.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

403

In case the bearer token has expired, does not have enought permission or does not exists.
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 ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

delete Remove all tags from this domain

Request

URI Parameters
    • domain ⁠string
      Domain name.
Headers
  • Required
    • Authorization ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

Responses

200

Body
  • application/json
    ⁠object

    With the following properties:

    • message ⁠string

403

Access to the resource is denied. Mainly due to a lack of permissions to access it.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

401

Bad authentication attempt because of a wrong API Key.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

403

In case the bearer token has expired, does not have enought permission or does not exists.
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 ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

Domain transfer to another registrar

https://api.sandbox.gandi.net/v5/domain/domains/{domain}/transferout

post Accept or decline a transfer to another registrar

The following route is used to validate transfer of a domain to another registrar than Gandi. You may read the transfer out documentation

Request

URI Parameters
    • domain ⁠string
      Domain name.
Headers
  • Required
    • Authorization ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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
Body
  • application/json
    ⁠object

    With the following properties:

    Required
    • accept ⁠boolean
    • authinfo ⁠string
    Example:
    {
      "authinfo": "xyz5500",
      "accept": true
    }

Responses

202

The request has been accepted.
Headers
  • Optional
    • Location ⁠string
Body
  • application/json
    ⁠object

    With the following properties:

    • message ⁠string
      Confirmation message.

403

Access to the resource is denied. Mainly due to a lack of permissions to access it.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

401

Bad authentication attempt because of a wrong API Key.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

403

In case the bearer token has expired, does not have enought permission or does not exists.
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 ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

Web redirections

https://api.sandbox.gandi.net/v5/domain/domains/{domain}/webredirs

get List web redirections

This route is used to list all the web redirections available on a domain.

Request

URI Parameters
    • domain ⁠string
      Domain name.
Query String
  • Optional
    • page ⁠integer

      Default: 1

      Minimum: 1

      Which result page to retrieve. If the number is greater than the last page, an empty list is returned.
    • per_page ⁠integer

      Minimum: 1

      How many items to display per page.
Headers
  • Required
    • Authorization ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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
    Optional
    • Accept ⁠string
      When passed text/csv value, this route will return a CSV-formatted response.

Responses

200

Headers
    • Filtered-Count ⁠integer
      Number of items returned by the API call.
    • Total-Count ⁠integer
      Total number of items.
    Optional
    • Link ⁠string
      Links to next and last page.
Body
  • application/json
    ⁠array

    Of items of type:

    • object

      With the following properties:

      • host ⁠string
        Source hostname (including the domain name)
      • type ⁠string

        One of: "cloak", "http301", "http302"

        Type of redirection
      • url ⁠string
        Target URL
      Optional
      • cert_status ⁠string
      • cert_uuid ⁠string
      • created_at ⁠string
      • protocol ⁠string

        One of: "http", "https", "httpsonly"

      • updated_at ⁠string
  • text/csv
    ⁠any
    CSV-formatted response.

403

Access to the resource is denied. Mainly due to a lack of permissions to access it.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

401

Bad authentication attempt because of a wrong API Key.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

403

In case the bearer token has expired, does not have enought permission or does not exists.
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 ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

post Create a new web redirection

This route is used to create a new web redirection.

Request

URI Parameters
    • domain ⁠string
      Domain name.
Query String
  • Optional
    • page ⁠integer

      Default: 1

      Minimum: 1

      Which result page to retrieve. If the number is greater than the last page, an empty list is returned.
    • per_page ⁠integer

      Minimum: 1

      How many items to display per page.
Headers
  • Required
    • Authorization ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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
Body
  • application/json
    ⁠object

    With the following properties:

    Required
    • host ⁠string
      Source hostname (including the domain name)
    • override ⁠boolean
      When you create a redirection on a domain a DNS record is created if it does not exist. When the record already exists and this parameter is set to true it will overwrite the record. Otherwise it will trigger an error.
    • protocol ⁠string

      One of: "http", "https", "httpsonly"

    • type ⁠string

      One of: "cloak", "http301", "http302"

      Type of redirection
    • url ⁠string
      Target URL
    Example:
    {
      "host": "www.example.net",
      "override": true,
      "protocol": "https",
      "type": "http301",
      "url": "http://www.example.org/"
    }

Responses

200

Headers
    • Filtered-Count ⁠integer
      Number of items returned by the API call.
    • Total-Count ⁠integer
      Total number of items.
    Optional
    • Link ⁠string
      Links to next and last page.

201

The resource has been created.
Headers
  • Optional
    • Location ⁠string
Body
  • application/json
    ⁠object

    With the following properties:

    • message ⁠string
      Confirmation message.

403

Access to the resource is denied. Mainly due to a lack of permissions to access it.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

401

Bad authentication attempt because of a wrong API Key.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

403

In case the bearer token has expired, does not have enought permission or does not exists.
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 ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

Web redirection information

https://api.sandbox.gandi.net/v5/domain/domains/{domain}/webredirs/{host}

get Get web redirection information

This route is used to retrieve information about a given redirection.

Request

URI Parameters
    • domain ⁠string
      Domain name.
    • host ⁠string
      Host name
Headers
  • Required
    • Authorization ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

Responses

200

Body
  • application/json
    ⁠object

    With the following properties:

    • host ⁠string
      Source hostname (including the domain name)
    • type ⁠string

      One of: "cloak", "http301", "http302"

      Type of redirection
    • url ⁠string
      Target URL
    Optional
    • cert_status ⁠string
    • cert_uuid ⁠string
    • created_at ⁠string
    • protocol ⁠string

      One of: "http", "https", "httpsonly"

    • updated_at ⁠string

403

Access to the resource is denied. Mainly due to a lack of permissions to access it.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

401

Bad authentication attempt because of a wrong API Key.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

403

In case the bearer token has expired, does not have enought permission or does not exists.
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 ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

patch Update a redirection

This route is used to update a given redirection.

Request

URI Parameters
    • domain ⁠string
      Domain name.
    • host ⁠string
      Host name
Headers
  • Required
    • Authorization ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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
Body
  • application/json
    ⁠object

    With the following properties:

    Optional
    • override ⁠boolean
      If true, a DNS record will be created. When the value is false and no matching DNS record exists, it will trigger an error.
    • protocol ⁠string

      One of: "http", "https", "httpsonly"

    • type ⁠string

      One of: "cloak", "http301", "http302"

      Type of redirection
    • url ⁠string
      Target URL
    Example:
    {
      "override": true,
      "protocol": "http",
      "type": "http302"
    }

Responses

200

Body
  • application/json
    ⁠object

    With the following properties:

    • message ⁠string
      Confirmation message.

403

Access to the resource is denied. Mainly due to a lack of permissions to access it.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

401

Bad authentication attempt because of a wrong API Key.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

403

In case the bearer token has expired, does not have enought permission or does not exists.
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 ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

delete Delete a redirection

This route is used to remove a given redirection.

Request

URI Parameters
    • domain ⁠string
      Domain name.
    • host ⁠string
      Host name
Headers
  • Required
    • Authorization ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

Responses

200

Body
  • application/json
    ⁠object

    With the following properties:

    • message ⁠string

403

Access to the resource is denied. Mainly due to a lack of permissions to access it.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

401

Bad authentication attempt because of a wrong API Key.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

403

In case the bearer token has expired, does not have enought permission or does not exists.
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 ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

List Available TLD Extensions

https://api.sandbox.gandi.net/v5/domain/tlds

get List available TLD extensions

Request

Query String
  • Optional
    • category ⁠string

      One of: "ccTLD", "gTLD"

      Category of the TLD
    • page ⁠integer

      Default: 1

      Minimum: 1

      Which result page to retrieve. If the number is greater than the last page, an empty list is returned.
    • per_page ⁠integer

      Minimum: 1

      How many items to display per page.
Headers
  • Required
    • Authorization ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

Responses

200

Headers
    • Filtered-Count ⁠integer
      Number of items returned by the API call.
    • Total-Count ⁠integer
      Total number of items.
    Optional
    • Link ⁠string
      Links to next and last page.
Body
  • application/json
    ⁠array

    Of items of type:

    • object

      With the following properties:

      • href ⁠string
        Link to TLD details.
      • name ⁠string
        Name of the TLD.
    Example:
    [
      {
        "name": "com",
        "href": "https://api.test/v5/domain/tlds/com"
      },
      {
        "name": "eu",
        "href": "https://api.test/v5/domain/tlds/eu"
      },
      {
        "name": "fr",
        "href": "https://api.test/v5/domain/tlds/fr"
      },
      {
        "name": "info",
        "href": "https://api.test/v5/domain/tlds/info"
      },
      {
        "name": "net",
        "href": "https://api.test/v5/domain/tlds/net"
      },
      {
        "name": "org",
        "href": "https://api.test/v5/domain/tlds/org"
      }
    ]

403

Access to the resource is denied. Mainly due to a lack of permissions to access it.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

401

Bad authentication attempt because of a wrong API Key.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

403

In case the bearer token has expired, does not have enought permission or does not exists.
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 ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

TLD Information

https://api.sandbox.gandi.net/v5/domain/tlds/{name}

get TLD Details

This route is used to find and return information about any TLD extension that Gandi manages.

Request

URI Parameters
    • name ⁠string
      Name of the TLD, or a FQDN.
Headers
  • Required
    • Authorization ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

Responses

200

Body
  • application/json
    ⁠object

    With the following properties:

    • authinfo_for_transfer ⁠boolean
      true if authinfo is required prior to transfer.
    • category ⁠string

      One of: "ccTLD", "gTLD"

      Category of the TLD.
    • change_owner ⁠boolean
      true if change owner is allowed.
    • corporate ⁠boolean
      true if this is a corporate TLD.
    • ext_trade ⁠boolean
    • full_tld ⁠string
    • href ⁠string
      Link to TLD details.
    • lock ⁠boolean
    • name ⁠string
      Name of the TLD.
    Example:
    {
      "category": "ccTLD",
      "name": "eu",
      "lock": false,
      "change_owner": true,
      "authinfo_for_transfer": true,
      "full_tld": "eu",
      "corporate": false,
      "ext_trade": true,
      "href": "https://api.test/v5/domain/tlds/eu"
    }

403

Access to the resource is denied. Mainly due to a lack of permissions to access it.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

401

Bad authentication attempt because of a wrong API Key.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

403

In case the bearer token has expired, does not have enought permission or does not exists.
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 ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

Domain transfer operations

https://api.sandbox.gandi.net/v5/domain/transferin

The following routes are used to manage a domain's transfer to Gandi. You may read the main documentation where you'll find tips and special procedures for certain extensions.

post Transfer a domain to Gandi

This route is used to start transferring a domain to Gandi. Warning! This is not a free operation. Please ensure your prepaid account has enough credit.

Pay as an individual

To pay with your user organization (ie: yourself as an individual), just use the regular required parameters. The invoice will be edited with your personal information.

For this to work, you need to:

  • use the same first name and last name for the domain name's owner

Pay as another organization

To pay using another organization, you'll need to perform the request with the organization's ID as the sharing_id query string parameter (see reference). The invoice will be edited using this organization's information.

For this to work, you need to:

  • have billing permissions on the organization
  • use the same organization name for the domain name's owner

Special case - transfer a domain as a reseller organization

Should you want to transfer a domain for a customer using a reseller account, you'll need the ID (see reference) of your reseller account and your customer's information for the owner. Then, you'll perform the request with sharing_id=<reseller-id> in the query string and the owner information in the payload. The invoice will be edited with the reseller organization's information.

For this to work, you need to:

  • have billing permissions on the reseller organization

Request

Query String
  • Optional
    • sharing_id ⁠string
      Sharing ID. Organization ID used as a filter or as a billing identifier. See the reference.
Headers
  • Required
    • Authorization ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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
    Optional
    • Dry-Run ⁠integer
      If this header's value is 1 the request's parameters will only be checked; the operation will not actually be performed.
Body
  • application/json
    ⁠object

    With the following properties:

    Required
    • fqdn ⁠string
    • owner ⁠object

      With the following properties:

      Required
      • country ⁠string
        A country code. See the country code list for possible values.
      • email ⁠string
      • family ⁠string
        Contact's family name (usualy the lastname)
      • given ⁠string
        Contact's given name (usualy the firstname)
      • streetaddr ⁠string
      • type ⁠string

        One of: "individual", "company", "association", "publicbody"

      Optional
      • brand_number ⁠string
      • city ⁠string
      • data_obfuscated ⁠boolean

        Default: true

        Learn more about WHOIS privacy at Gandi here.
      • extra_parameters ⁠object
        Extra parameters needed for some extensions. See this list for possible values.
      • fax ⁠string
      • jo_announce_number ⁠string
      • jo_announce_page ⁠string
      • jo_declaration_date ⁠string
      • jo_publication_date ⁠string
      • lang ⁠string

        One of: "en", "es", "fr", "ja", "zh-hans", "zh-hant"

      • mail_obfuscated ⁠boolean
      • mobile ⁠string
      • orgname ⁠string
        The legal name of the company, association, or public body if the contact type is not 0.
      • phone ⁠string
      • siren ⁠string
      • state ⁠string
        Learn more about state codes here
      • validation ⁠string

        One of: "pending", "done", "failed", "deleted", "none"

      • zip ⁠string
    Optional
    • admin ⁠object

      With the following properties:

      Required
      • country ⁠string
        A country code. See the country code list for possible values.
      • email ⁠string
      • family ⁠string
        Contact's family name (usualy the lastname)
      • given ⁠string
        Contact's given name (usualy the firstname)
      • streetaddr ⁠string
      • type ⁠string

        One of: "individual", "company", "association", "publicbody"

      Optional
      • brand_number ⁠string
      • city ⁠string
      • data_obfuscated ⁠boolean

        Default: true

        Learn more about WHOIS privacy at Gandi here.
      • extra_parameters ⁠object
        Extra parameters needed for some extensions. See this list for possible values.
      • fax ⁠string
      • jo_announce_number ⁠string
      • jo_announce_page ⁠string
      • jo_declaration_date ⁠string
      • jo_publication_date ⁠string
      • lang ⁠string

        One of: "en", "es", "fr", "ja", "zh-hans", "zh-hant"

      • mail_obfuscated ⁠boolean
      • mobile ⁠string
      • orgname ⁠string
        The legal name of the company, association, or public body if the contact type is not 0.
      • phone ⁠string
      • siren ⁠string
      • state ⁠string
        Learn more about state codes here
      • validation ⁠string

        One of: "pending", "done", "failed", "deleted", "none"

      • zip ⁠string
    • authinfo ⁠string
    • bill ⁠object

      With the following properties:

      Required
      • country ⁠string
        A country code. See the country code list for possible values.
      • email ⁠string
      • family ⁠string
        Contact's family name (usualy the lastname)
      • given ⁠string
        Contact's given name (usualy the firstname)
      • streetaddr ⁠string
      • type ⁠string

        One of: "individual", "company", "association", "publicbody"

      Optional
      • brand_number ⁠string
      • city ⁠string
      • data_obfuscated ⁠boolean

        Default: true

        Learn more about WHOIS privacy at Gandi here.
      • extra_parameters ⁠object
        Extra parameters needed for some extensions. See this list for possible values.
      • fax ⁠string
      • jo_announce_number ⁠string
      • jo_announce_page ⁠string
      • jo_declaration_date ⁠string
      • jo_publication_date ⁠string
      • lang ⁠string

        One of: "en", "es", "fr", "ja", "zh-hans", "zh-hant"

      • mail_obfuscated ⁠boolean
      • mobile ⁠string
      • orgname ⁠string
        The legal name of the company, association, or public body if the contact type is not 0.
      • phone ⁠string
      • siren ⁠string
      • state ⁠string
        Learn more about state codes here
      • validation ⁠string

        One of: "pending", "done", "failed", "deleted", "none"

      • zip ⁠string
    • change_owner ⁠boolean
    • currency ⁠string

      One of: "EUR", "USD", "GBP", "TWD", "CNY"

    • duration ⁠integer

      Minimum: 1

      Maximum: 10

    • enforce_premium ⁠boolean
      Must be set to true if the domain is a premium domain.
    • extra_parameters ⁠object
      Extra parameters needed for some extensions. See this list for possible values.
    • mailbox_optin ⁠boolean

      Default: true

      This parameter enables you to add two mailboxes offered for the first year when purchasing or transferring in a domain.
    • nameservers ⁠array[ string ]
      List of new nameservers. Keep the current nameservers if omitted.
    • nameservers_ips ⁠object
      For glue records only – dictionnary associating a nameserver to a list of IP addresses.
      Example:
      {
        "ns1.example.net": [
          "203.0.113.1"
        ],
        "ns2.example.net": [
          "203.0.113.2",
          "203.0.113.3"
        ]
      }
    • price ⁠number
    • resellee_id ⁠string
    • tech ⁠object

      With the following properties:

      Required
      • country ⁠string
        A country code. See the country code list for possible values.
      • email ⁠string
      • family ⁠string
        Contact's family name (usualy the lastname)
      • given ⁠string
        Contact's given name (usualy the firstname)
      • streetaddr ⁠string
      • type ⁠string

        One of: "individual", "company", "association", "publicbody"

      Optional
      • brand_number ⁠string
      • city ⁠string
      • data_obfuscated ⁠boolean

        Default: true

        Learn more about WHOIS privacy at Gandi here.
      • extra_parameters ⁠object
        Extra parameters needed for some extensions. See this list for possible values.
      • fax ⁠string
      • jo_announce_number ⁠string
      • jo_announce_page ⁠string
      • jo_declaration_date ⁠string
      • jo_publication_date ⁠string
      • lang ⁠string

        One of: "en", "es", "fr", "ja", "zh-hans", "zh-hant"

      • mail_obfuscated ⁠boolean
      • mobile ⁠string
      • orgname ⁠string
        The legal name of the company, association, or public body if the contact type is not 0.
      • phone ⁠string
      • siren ⁠string
      • state ⁠string
        Learn more about state codes here
      • validation ⁠string

        One of: "pending", "done", "failed", "deleted", "none"

      • zip ⁠string
    • template_id ⁠string
      Template applied when the process is done. It must be a template ID as you can retrieve it using the Template API.
    Example:
    {
      "fqdn": "example.com",
      "authinfo": "xyz5500",
      "duration": 2,
      "owner": {
        "city": "Paris",
        "given": "Alice",
        "family": "Doe",
        "zip": "75001",
        "country": "FR",
        "streetaddr": "5 rue neuve",
        "phone": "+33.123456789",
        "state": "FR-IDF",
        "type": "individual",
        "email": "alice@example.org"
      }
    }

Responses

200

Dry-Run response. You will get this response when you send your request. with a Dry-Run: 1 header.
Headers
  • Optional
    • Warning ⁠string
      Warning message
Body
  • application/json
    ⁠object

    With the following properties:

    • status ⁠string

      One of: "success", "error"

      Response status.
    Optional
    • errors ⁠array
      A list of all the errors encountered during validation.

      Of items of type:

      • object

        With the following properties:

        • description ⁠string
          Error message.
        • location ⁠string

          One of: "header", "path", "querystring", "body"

          The field's location in the HTTP response.
        • name ⁠string
          The xpath of the field.

202

The request has been accepted.
Headers
  • Optional
    • Location ⁠string
Body
  • application/json
    ⁠object

    With the following properties:

    • message ⁠string
      Confirmation message.

403

Access to the resource is denied. Mainly due to a lack of permissions to access it.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

401

Bad authentication attempt because of a wrong API Key.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

403

In case the bearer token has expired, does not have enought permission or does not exists.
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 ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

Domain transfer followup

https://api.sandbox.gandi.net/v5/domain/transferin/{domain}

get Get transfer status

This route is used to check a domain transfer status. When the transfer process is finalized, the step value is done.

Request

URI Parameters
    • domain ⁠string
      Domain name.
Headers
  • Required
    • Authorization ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

Responses

200

Body
  • application/json
    ⁠object

    With the following properties:

    • created_at ⁠string
    • owner_contact ⁠string
    • params ⁠object

      With the following properties:

      • domain ⁠string
      Optional
      • duration ⁠integer
      • reseller ⁠string
      • tld ⁠string
      • version ⁠integer
    • step ⁠string
    • step_nb ⁠integer
    • updated_at ⁠string
    Optional
    • errortype ⁠string
    • errortype_label ⁠string
    • foa ⁠array

      Of items of type:

      • object

        With the following properties:

        • answer ⁠string
        • email ⁠string
    • inner_step ⁠string
    • regac_at ⁠string
    • start_at ⁠string
    • transfer_link ⁠string
    • transfer_procedure ⁠string

403

Access to the resource is denied. Mainly due to a lack of permissions to access it.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

401

Bad authentication attempt because of a wrong API Key.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

403

In case the bearer token has expired, does not have enought permission or does not exists.
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 ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

put Relaunch transfer process

This route is used to relaunch the transfer process in case something went wrong.

Request

URI Parameters
    • domain ⁠string
      Domain name.
Headers
  • Required
    • Authorization ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

Responses

202

The request has been accepted.
Headers
  • Optional
    • Location ⁠string
Body
  • application/json
    ⁠object

    With the following properties:

    • message ⁠string
      Confirmation message.

403

Access to the resource is denied. Mainly due to a lack of permissions to access it.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

404

A 404 response is sent when the domain is in an error state.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

401

Bad authentication attempt because of a wrong API Key.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

403

In case the bearer token has expired, does not have enought permission or does not exists.
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 ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

Update authinfo

https://api.sandbox.gandi.net/v5/domain/transferin/{domain}/authinfo

put Update authinfo code of a pending transfer

This route is used to update the authinfo code of a pending transfer, in case it was not specified or was invalid.

Note that the sharing_id is needed when trying to change the code for a given organization

Request

URI Parameters
    • domain ⁠string
      Domain name.
Query String
  • Optional
    • sharing_id ⁠string
      Sharing ID. Organization ID used as a filter or as a billing identifier. See the reference.
Headers
  • Required
    • Authorization ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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
Body
  • application/json
    ⁠object

    With the following properties:

    Required
    • authinfo ⁠string
    Example:
    {
      "authinfo": ".example!authinfo02"
    }

Responses

202

The request has been accepted.
Headers
  • Optional
    • Location ⁠string
Body
  • application/json
    ⁠object

    With the following properties:

    • message ⁠string
      Confirmation message.

403

Access to the resource is denied. Mainly due to a lack of permissions to access it.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

401

Bad authentication attempt because of a wrong API Key.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

403

In case the bearer token has expired, does not have enought permission or does not exists.
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 ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

Check transfer availability

https://api.sandbox.gandi.net/v5/domain/transferin/{domain}/available

post Check transfer availability

This route is used to check whether a domain can be transferred to Gandi. You can provide an authorization code if required

Request

URI Parameters
    • domain ⁠string
      Domain name.
Headers
  • Required
    • Authorization ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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
Body
  • application/json
    ⁠object

    With the following properties:

    Optional
    • authinfo ⁠string
    Example:
    {
      "authinfo": "xyz5500"
    }

Responses

200

Body
  • application/json
    ⁠object

    With the following properties:

    • available ⁠boolean
    • fqdn ⁠string
    • fqdn_alabel ⁠string
    • fqdn_ulabel ⁠string
    Optional
    • corporate ⁠boolean
    • durations ⁠array[ integer ]
    • internal ⁠boolean
    • maximum_duration ⁠integer
    • minimum_duration ⁠integer
    • msg ⁠string

403

Access to the resource is denied. Mainly due to a lack of permissions to access it.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

401

Bad authentication attempt because of a wrong API Key.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

403

In case the bearer token has expired, does not have enought permission or does not exists.
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 ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

Resend the transfer FOA emails

https://api.sandbox.gandi.net/v5/domain/transferin/{domain}/foa

post Resend the transfer FOA emails

This route is used to resend the Form of Authorization to the current domain owner.

Request

URI Parameters
    • domain ⁠string
      Domain name.
Headers
  • Required
    • Authorization ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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
Body
  • application/json
    ⁠object

    With the following properties:

    Required
    • email ⁠string
    Example:
    {
      "email": "alice@example.net"
    }

Responses

202

The request has been accepted.
Headers
  • Optional
    • Location ⁠string
Body
  • application/json
    ⁠object

    With the following properties:

    • message ⁠string
      Confirmation message.

403

Access to the resource is denied. Mainly due to a lack of permissions to access it.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

401

Bad authentication attempt because of a wrong API Key.
Body
  • application/json
    ⁠object

    With the following properties:

    • cause ⁠string
    • code ⁠integer
    • message ⁠string
    • object ⁠string

403

In case the bearer token has expired, does not have enought permission or does not exists.
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 ⁠string
      The Authorization header must start with Bearer for access token, or Apikey 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

Appendix

Domain Extra Parameters

This parameters need to be sent during domain creation and transfer, depending on the extension of the domain being created or transfered.
  • object

    With the following properties:

    Required
    • x-au_registrant_domain_relation ⁠string
      Specify the relationship between the organization name that belongs to the registrant and domain name
    • x-au_registrant_domain_relation_type ⁠string
    • x-au_registrant_id_number ⁠string
    • x-au_registrant_id_type ⁠string
      owner's document type
    • x-au_registrant_organization ⁠string
    • x-sa_admin_id_number ⁠string
      National identifier for Saudi citizens, or Iqama identifier for foreign workers residing in Saudi Arabia
    Optional
    • x-aero_ens_authid ⁠string
      aero id (you can apply for an .aero id on http://www.information.aero/)
    • x-aero_ens_authkey ⁠string
      aero password
    • x-az_admin_pp_id ⁠string
      ID number for a Physical Person admin contact
    • x-az_billing_pp_id ⁠string
      ID number for a Physical Person billing contact
    • x-az_registrant_company_number ⁠string
      Company number for a Moral Person registrant contact
    • x-az_registrant_pp_id ⁠string
      ID number for a Physical Person registrant contact
    • x-az_tech_pp_id ⁠string
      ID number for a Physical Person tech contact
    • x-barcelona_intendeduse ⁠string
      Intended use for domain name
    • x-barcelona_trademarkid ⁠string
      Local Trademark ID.
    • x-ca_business_entity_type ⁠string
      business entity type
    • x-ca_legaltype ⁠string
      owner's legal type
    • x-ca_official_rep ⁠string
      official representative (for LGR)
    • x-ca_official_rep_capacity ⁠string
      official representative capacity (for LGR)
    • x-ca_owner_name ⁠string
      owner name (deprecated)
    • x-cat_intendeduse ⁠string
      Intended use for domain name
    • x-coop_sponsor ⁠string
      Coop Verification Code obtained on the coop registry website (see http://www.nic.coop/preverification) (deprecated)
    • x-cy_reg_identity_no ⁠string
      id card number or passport number if physical person, else registration number (SIREN)
    • x-document_country ⁠string
      Registrant's country which issued the document
    • x-document_type ⁠string
      Registrant's document type
    • x-document_value ⁠string
      Registrant's document number
    • x-es_admin_identification ⁠string
      id of the admin contact
    • x-es_admin_tipo_identification ⁠string
      type of id for admin
    • x-es_bill_identification ⁠string
      id of the bill contact
    • x-es_bill_tipo_identification ⁠string
      type of id for bill
    • x-es_identification ⁠string
      id of the contact (deprecated)
    • x-es_legalform ⁠string
      legal form of the organization (deprecated)
    • x-es_owner_identification ⁠string
      id of the owner contact
    • x-es_owner_legalform ⁠string
      legal form of the owner organization
    • x-es_owner_tipo_identification ⁠string
      type of id for owner
    • x-es_tech_identification ⁠string
      id of the tech contact
    • x-es_tech_tipo_identification ⁠string
      type of id for tech
    • x-es_tipo_identification ⁠string
      type of id (deprecated)
    • x-eu_country_of_citizenship ⁠string
      Country of citizenship for registrant
    • x-eus_intendeduse ⁠string
      Intended use for domain name
    • x-fi_business_number ⁠string
      Registrant's identification number for a moral person
    • x-fi_ident_number ⁠string
      Registrant's identification number for a physical person
    • x-fi_isfinish ⁠string
      Whether or not domain registrant is Finish, for a physical or moral person
    • x-fi_organization_type ⁠string
      Registrant organization type for a moral person
    • x-gal_intendeduse ⁠string
      Intended use for domain name
    • x-hk_registrant_birth_date ⁠string
      owner's birth date (YYYY-MM-DD)
    • x-hk_registrant_document_number ⁠string
      number of the above document
    • x-hk_registrant_document_origin_country ⁠string
      country code (FR, GB, US…) of the origin country of the above document
    • x-hk_registrant_document_type ⁠string
      owner's document type
    • x-hk_registrant_other_document_type ⁠string
      mandatory if x-hk_registrant_document_type is OTHIDV or OTHORG
    • x-hr_ident_number ⁠string
      Croatian identification number (OIB)
    • x-hr_non_eu_pm_business_number ⁠string
      Local business registration number
    • x-hu_idnumber ⁠string
      id card number or passport number of the physical person
    • x-hu_owner_vatid ⁠string
      vatid of the moral person
    • x-ie_registrant_cro_number ⁠string
      Companies Registration Office in case the registrant type ie COM
    • x-ie_registrant_supporting_number ⁠string
      Identifier for a charity or a supporting number (RBN or VAT, for example) for CHA/OTH contact types (mandatory for CHA)
    • x-ie_registrant_type ⁠string
      The contact's Connection to Ireland (CTI) category that is used to indicate how the Registrant meets specific presence requirements (COM/CHA/OTH)
    • x-il_registrant_company_type ⁠string
    • x-it_nationality ⁠string
      nationality of the owner
    • x-it_pin ⁠string
      owner's Italian fiscal code or the number of an identity document
    • x-it_registrant_entity_type ⁠string
      owner entity type
    • x-jobs_website ⁠string
      owner website information (deprecated)
    • x-kr_reg_identity_no ⁠string
      Registrant's Business Certificate No.(10-digit)/Residence Registration No.(13-digit)
    • x-lt_registrant_legal_id ⁠string
      owner legal entity identification code
    • x-ltda_authority ⁠string
      authority where the contact is registred
    • x-ltda_licensenumber ⁠string
      licence number
    • x-lv_idnumber ⁠string
      id card number or passport number if physical person, else registration number (SIREN)
    • x-madrid_intendeduse ⁠string
      Intended use for domain name
    • x-my_admin_contact_password ⁠string
      Admin contact password record (For transfer only)
    • x-my_admin_contact_username ⁠string
      Admin contact username as per Whois record (For transfer only)
    • x-my_business_number ⁠string
      Registrant's Business Number
    • x-my_organization_type ⁠string
      Registrant's Organization Type
    • x-no_registrant_identity ⁠string
      Personal identifier or organization number of the Norwegian organization (consisting of exactly 9 digits)
    • x-nu_registrant_idnumber ⁠string
      Registrant's id number or organization number
    • x-nu_registrant_vatid ⁠string
      vatid of the moral person
    • x-nyc_extcontact ⁠string
      Gandi Handle of the EXTContact
    • x-pro_authority ⁠string
      authority where the contact is registred
    • x-pro_authoritywebsite ⁠string
      link to the registration authority
    • x-pro_licensenumber ⁠string
      licence number
    • x-pro_profession ⁠string
      contact profession
    • x-promopixel_company_serial ⁠string
      owner
    • x-pt_arbitration ⁠string
      true (default) or false as answer to whether or not the registry arbitration is accepted
    • x-pt_registrant_vatid ⁠string
      owner's VAT for company or ID card number for individual
    • x-pt_roid ⁠string
      roid of the domain (in transfer process only)
    • x-pt_tech_vatid ⁠string
      tech's VAT for company or ID card number for individual
    • x-quebec_intendeduse ⁠string
      Intended use for domain name
    • x-radio_intendeduse ⁠string
      Intended use for domain name
    • x-ro_registrant_idnumber ⁠string
      id card number or passport number if physical person, else registration number (SIREN)
    • x-rs_company_number ⁠string
      The company's number for Moral Person.
    • x-rs_reg_identity_no ⁠string
      Registrant's Residence Registration No. (13-digit)
    • x-rs_reg_tax_no ⁠string
      Registrant's GST/VAT number
    • x-ru_registrant_birth_date ⁠string
      owner's birth date (YYYY-MM-DD)
    • x-ru_registrant_kpp ⁠string
      Territory-linked taxpayer number for PM registrants
    • x-ru_registrant_passport_data ⁠string
      The number of the identity proof
    • x-ru_registrant_tin ⁠string
      Taxpayer identification number for PM registrants
    • x-scot_intendeduse ⁠string
      Intended use for domain name
    • x-se_ident_number ⁠string
      Swedish personal identity or organisational number or passport number, or id card number for individuals outside of Sweden
    • x-se_registrant_vatid ⁠string
      vatid of the moral person
    • x-sg_idnumber ⁠string
      Registrant's id number
    • x-sport_intendeduse ⁠string
      Intended use for domain name
    • x-srl_authority ⁠string
      authority where the contact is registred
    • x-srl_licensenumber ⁠string
      licence number
    • x-swiss_enterpriseid ⁠string
      Swiss UID/IDE/IDI (ie. “CHE-xxx.xxx.xxx”)
    • x-swiss_intendeduse ⁠string
      Intended use for domain name
    • x-travel_uin ⁠string
      an Unique Identification Number (deprecated)
    • x-tw_company_number ⁠string
      The company's number for Moral Person.
    • x-uk_co_no ⁠string
      The registered company number or the DfES UK school number of the registrant, mandatory for UK contact types LTD/PLC/LLP/IP/SCH/RCHAR.
    • x-uk_contact_type ⁠string
      Contact type as defined at NOMINET
    • x-us_app_purpose ⁠string
      Domain application purpose
    • x-us_nexus_category ⁠string
      Applicant category
    • x-xxx_membership_contact ⁠string
      owner contact membership ID, obtained on the xxx registry website.
    • x-xxx_sponsored_community ⁠string
      yes or no as answer to whether or not the owner is a member of the .XXX Adult Industry Sponsored Community

Contact Extra Parameters

This parameters need to be added on contacts for operations like domain creation or transfer. The parameter you need to send depens on the domain's extension.
  • object

    With the following properties:

    Required
    • birth_city ⁠string
      contact birth city
    • birth_country ⁠string
      contact birth country
    • birth_date ⁠string
      contact birth date (YYYY-MM-DD)
    • birth_department ⁠string
      contact birth department … or zipcode, use 99 if contact was born outside of France / DOM/TOM
    • brand_number ⁠string
      company brand number
    • duns ⁠string
      contact duns number
    • waldec ⁠string
      contact waldec number
    • x-aero_ens_authid ⁠string
      aero id (you can apply for an .aero id on http://www.information.aero/)
    • x-aero_ens_authkey ⁠string
      aero password
    • x-az_admin_pp_id ⁠string
      ID number for a Physical Person admin contact
    • x-az_billing_pp_id ⁠string
      ID number for a Physical Person billing contact
    • x-az_registrant_company_number ⁠string
      Company number for a Moral Person registrant contact
    • x-az_registrant_pp_id ⁠string
      ID number for a Physical Person registrant contact
    • x-az_tech_pp_id ⁠string
      ID number for a Physical Person tech contact
    • x-barcelona_intendeduse ⁠string
      Intended use for domain name
    • x-barcelona_trademarkid ⁠string
      Local Trademark ID.
    • x-ca_business_entity_type ⁠string
      business entity type
    • x-ca_legaltype ⁠string
      owner's legal type
    • x-ca_official_rep ⁠string
      official representative (for LGR)
    • x-ca_official_rep_capacity ⁠string
      official representative capacity (for LGR)
    • x-ca_owner_name ⁠string
      owner name (deprecated)
    • x-cat_intendeduse ⁠string
      Intended use for domain name
    • x-coop_sponsor ⁠string
      Coop Verification Code obtained on the coop registry website (see http://www.nic.coop/preverification) (deprecated)
    • x-cy_reg_identity_no ⁠string
      id card number or passport number if physical person, else registration number (SIREN)
    • x-document_country ⁠string
      Registrant's country which issued the document
    • x-document_type ⁠string
      Registrant's document type
    • x-document_value ⁠string
      Registrant's document number
    • x-es_admin_identification ⁠string
      id of the admin contact
    • x-es_admin_tipo_identification ⁠string
      type of id for admin
    • x-es_bill_identification ⁠string
      id of the bill contact
    • x-es_bill_tipo_identification ⁠string
      type of id for bill
    • x-es_identification ⁠string
      id of the contact (deprecated)
    • x-es_legalform ⁠string
      legal form of the organization (deprecated)
    • x-es_owner_identification ⁠string
      id of the owner contact
    • x-es_owner_legalform ⁠string
      legal form of the owner organization
    • x-es_owner_tipo_identification ⁠string
      type of id for owner
    • x-es_tech_identification ⁠string
      id of the tech contact
    • x-es_tech_tipo_identification ⁠string
      type of id for tech
    • x-es_tipo_identification ⁠string
      type of id (deprecated)
    • x-eu_country_of_citizenship ⁠string
      Country of citizenship for registrant
    • x-eus_intendeduse ⁠string
      Intended use for domain name
    • x-fi_business_number ⁠string
      Registrant's identification number for a moral person
    • x-fi_ident_number ⁠string
      Registrant's identification number for a physical person
    • x-fi_isfinish ⁠string
      Whether or not domain registrant is Finish, for a physical or moral person
    • x-fi_organization_type ⁠string
      Registrant organization type for a moral person
    • x-gal_intendeduse ⁠string
      Intended use for domain name
    • x-hk_registrant_birth_date ⁠string
      owner's birth date (YYYY-MM-DD)
    • x-hk_registrant_document_number ⁠string
      number of the above document
    • x-hk_registrant_document_origin_country ⁠string
      country code (FR, GB, US…) of the origin country of the above document
    • x-hk_registrant_document_type ⁠string
      owner's document type
    • x-hk_registrant_other_document_type ⁠string
      mandatory if x-hk_registrant_document_type is OTHIDV or OTHORG
    • x-hr_ident_number ⁠string
      Croatian identification number (OIB)
    • x-hr_non_eu_pm_business_number ⁠string
      Local business registration number
    • x-hu_idnumber ⁠string
      id card number or passport number of the physical person
    • x-hu_owner_vatid ⁠string
      vatid of the moral person
    • x-ie_registrant_cro_number ⁠string
      Companies Registration Office in case the registrant type ie COM
    • x-ie_registrant_supporting_number ⁠string
      Identifier for a charity or a supporting number (RBN or VAT, for example) for CHA/OTH contact types (mandatory for CHA)
    • x-ie_registrant_type ⁠string
      The contact's Connection to Ireland (CTI) category that is used to indicate how the Registrant meets specific presence requirements (COM/CHA/OTH)
    • x-il_registrant_company_type ⁠string
    • x-it_nationality ⁠string
      nationality of the owner
    • x-it_pin ⁠string
      owner's Italian fiscal code or the number of an identity document
    • x-it_registrant_entity_type ⁠string
      owner entity type
    • x-jobs_website ⁠string
      owner website information (deprecated)
    • x-kr_reg_identity_no ⁠string
      Registrant's Business Certificate No.(10-digit)/Residence Registration No.(13-digit)
    • x-lt_registrant_legal_id ⁠string
      owner legal entity identification code
    • x-ltda_authority ⁠string
      authority where the contact is registred
    • x-ltda_licensenumber ⁠string
      licence number
    • x-lv_idnumber ⁠string
      id card number or passport number if physical person, else registration number (SIREN)
    • x-madrid_intendeduse ⁠string
      Intended use for domain name
    • x-my_admin_contact_password ⁠string
      Admin contact password record (For transfer only)
    • x-my_admin_contact_username ⁠string
      Admin contact username as per Whois record (For transfer only)
    • x-my_business_number ⁠string
      Registrant's Business Number
    • x-my_organization_type ⁠string
      Registrant's Organization Type
    • x-no_registrant_identity ⁠string
      Personal identifier or organization number of the Norwegian organization (consisting of exactly 9 digits)
    • x-nu_registrant_idnumber ⁠string
      Registrant's id number or organization number
    • x-nu_registrant_vatid ⁠string
      vatid of the moral person
    • x-nyc_extcontact ⁠string
      Gandi Handle of the EXTContact
    • x-pro_authority ⁠string
      authority where the contact is registred
    • x-pro_authoritywebsite ⁠string
      link to the registration authority
    • x-pro_licensenumber ⁠string
      licence number
    • x-pro_profession ⁠string
      contact profession
    • x-promopixel_company_serial ⁠string
      owner
    • x-pt_arbitration ⁠string
      true (default) or false as answer to whether or not the registry arbitration is accepted
    • x-pt_registrant_vatid ⁠string
      owner's VAT for company or ID card number for individual
    • x-pt_roid ⁠string
      roid of the domain (in transfer process only)
    • x-pt_tech_vatid ⁠string
      tech's VAT for company or ID card number for individual
    • x-quebec_intendeduse ⁠string
      Intended use for domain name
    • x-radio_intendeduse ⁠string
      Intended use for domain name
    • x-ro_registrant_idnumber ⁠string
      id card number or passport number if physical person, else registration number (SIREN)
    • x-rs_company_number ⁠string
      The company's number for Moral Person.
    • x-rs_reg_identity_no ⁠string
      Registrant's Residence Registration No. (13-digit)
    • x-rs_reg_tax_no ⁠string
      Registrant's GST/VAT number
    • x-ru_registrant_birth_date ⁠string
      owner's birth date (YYYY-MM-DD)
    • x-ru_registrant_kpp ⁠string
      Territory-linked taxpayer number for PM registrants
    • x-ru_registrant_passport_data ⁠string
      The number of the identity proof
    • x-ru_registrant_tin ⁠string
      Taxpayer identification number for PM registrants
    • x-scot_intendeduse ⁠string
      Intended use for domain name
    • x-se_ident_number ⁠string
      Swedish personal identity or organisational number or passport number, or id card number for individuals outside of Sweden
    • x-se_registrant_vatid ⁠string
      vatid of the moral person
    • x-sg_idnumber ⁠string
      Registrant's id number
    • x-sport_intendeduse ⁠string
      Intended use for domain name
    • x-srl_authority ⁠string
      authority where the contact is registred
    • x-srl_licensenumber ⁠string
      licence number
    • x-swiss_enterpriseid ⁠string
      Swiss UID/IDE/IDI (ie. “CHE-xxx.xxx.xxx”)
    • x-swiss_intendeduse ⁠string
      Intended use for domain name
    • x-travel_uin ⁠string
      an Unique Identification Number (deprecated)
    • x-tw_company_number ⁠string
      The company's number for Moral Person.
    • x-uk_co_no ⁠string
      The registered company number or the DfES UK school number of the registrant, mandatory for UK contact types LTD/PLC/LLP/IP/SCH/RCHAR.
    • x-uk_contact_type ⁠string
      Contact type as defined at NOMINET
    • x-us_app_purpose ⁠string
      Domain application purpose
    • x-us_nexus_category ⁠string
      Applicant category
    • x-xxx_membership_contact ⁠string
      owner contact membership ID, obtained on the xxx registry website.
    • x-xxx_sponsored_community ⁠string
      yes or no as answer to whether or not the owner is a member of the .XXX Adult Industry Sponsored Community

Country Codes

CodeName
ACAscension
ADAndorra
AEUnited Arab Emirates
AFAfghanistan
AGAntigua and Barbuda
AIAnguilla
ALAlbania
AMArmenia
ANNetherlands Antilles
AOAngola
AQAntarctica
ARArgentina
ASAmerican Samoa
ATAustria
AUAustralia
AWAruba
AXAland Islands
AZAzerbaijan
BABosnia and Herzegovina
BBBarbados
BDBangladesh
BEBelgium
BFBurkina Faso
BGBulgaria
BHBahrain
BIBurundi
BJBenin
BLSaint Barthelemy
BMBermuda
BNBrunei
BOBolivia
BQBonaire, Sint Eustatius and Saba
BRBrazil
BSBahamas
BTBhutan
BVBouvet Island
BWBotswana
BYBelarus
BZBelize
CACanada
CCIslands Cocos (Keeling) Islands
CDCongo Zaire
CFCentral African Republic
CGCongo
CHSwitzerland
CIIvory Coast
CKCook Islands
CLChile
CMCameroon
CNChina
COColombia
CRCosta Rica
CUCuba
CVCape Verde
CWCuracao
CXChristmas Island
CYCyprus
CZCzech Republic
DEGermany
DJDjibouti
DKDenmark
DMDominica
DODominican (Republic)
DZAlgeria
ECEcuador
EEEstonia
EGEgypt
EHWestern Sahara
ERErytrea
ESSpain
ETEthiopia
FIFinland
FJFiji
FKFalkland Islands
FMMicronesia
FOFaeroe Islands
FRFrance
GAGabon
GBUnited Kingdom
GDGrenada
GEGeorgia
GFFrench Guiana
GGGuernsey
GHGhana
GIGibraltar
GLGreenland
GMGambia
GNGuinea
GPGuadeloupe
GQEquatorial Guinea
GRGreece
GSSouth Georgia and the South Sandwich Islands
GTGuatemala
GUGuam
GWGuinea-Bissau
GYGuyana
HKHong Kong
HMAustralia Heard Island and McDonald Islands
HNHonduras
HRCroatia
HTHaiti
HUHungary
IDIndonesia
IEIreland
ILIsrael
IMIsle of Man
INIndia
IOBritish Indian Ocean Territory
IQIraq
IRIran (Islamic Rep. of)
ISIceland
ITItaly
JEJersey (Islands)
JMJamaica
JOJordan
JPJapan
KEKenya
KGKyrgystan
KHCambodia
KIKiribati
KMComoros
KNSaint Kitts and Nevis
KPKorea (Democratic People's Republic of)
KRKorea (Republic of)
KWKuwait
KYCayman (Islands)
KZKazakhstan
LALaos (People's Democratic Republic of)
LBLebanon
LCSaint Lucia
LILiechstenstein
LKSri Lanka
LRLiberia
LSLesotho
LTLithuania
LULuxembourg
LVLatvia
LYLibya
MAMorocco
MCMonaco
MDMoldova
MEMontenegro
MFSaint Martin (French Part)
MGMadagascar
MHMarshall Islands
MKMacedonia (F.Y.R.O.M.)
MLMali
MMMyanmar
MNMongolia
MOMacao
MPSaipan
MQMartinique
MRMauritania
MSMontserrat
MTMalta
MUMauritius
MVMaldives
MWMalawi
MXMexico
MYMalaysia
MZMozambique
NANamibia
NCNew Caledonia
NENiger
NFNorfolk Island
NGNigeria
NINicaragua
NLNetherlands
NONorway
NPNepal
NRNauru
NUNiue
NZNew Zealand
OMOman
PAPanama
PEPeru
PFFrench Polynesia
PGPapua New Guinea
PHPhilippines
PKPakistan
PLPoland
PMSaint Pierre et Miquelon
PNPitcairn
PRPuerto Rico
PSPalestine
PTPortugal
PWPalau
PYParaguay
QAQatar
REReunion
RORomania
RSSerbia
RURussia
RWRwanda
SASaudi Arabia
SBSolomon
SCSeychelles
SDSudan
SESweden
SGSingapore
SHSaint Helena
SISlovenia
SJSvalbard and Jan Mayen
SKSlovak (Republic)
SLSierra Leone
SMSan Marino
SNSenegal
SOSomalia
SRSurinam
SSSouth Sudan
STSao Tome and Principe
SVEl Salvador
SXSaint Martin (Dutch Part)
SYSyria
SZSwaziland
TCTurks and Caicos Islands
TDChad
TFFrench Southern Territories
TGTogo
THThailand
TJTajikistan (Republic of)
TKTokelau
TLTimor-Leste
TMTurkmenistan
TNTunisia
TOTonga
TPEast Timor
TRTurkey
TTTrinidad and Tobago
TVTuvalu
TWTaiwan
TZTanzania
UAUkraine
UGUganda
USUnited States of America
UYUruguay
UZUzbekistan
VAHoly See (Vatican City State)
VCSaint Vincent and the Grenadines
VEVenezuela
VGBritish Virgin Islands (Tortola)
VIUnited States Virgin Islands
VNVietnam
VUVanuatu
WFWallis and Futuna
WSWestern Samoa
YEYemen (Rep. of)
YTMayotte
ZASouth Africa
ZMZambia
ZWZimbabwe
ZZEquatorial Kundu