ACME API

https://api.gandi.net/v5/acme/

Gandi ACME Management API

Introduction

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

Catalog List

https://api.gandi.net/v5/acme/catalog

get List catalog prices of quantity of one domain

Request

Query Parameters
  • Required
    • countrystring
    • currencystring
    • durationstring
    • gridstring
    • processstring
    • providerstring
    • sharing_idstring
    • validation_typestring
Headers
  • Required
    • Authorizationstring
      The Authorization header must start with Bearer for access token.
      Example: Bearer pat_abc-123

Responses

200

Body
  • application/json
    array

    Of items of type:

    • object
      Price return from billing library

      With the following properties:

      • currencystring
      • duration_unitstring
      • gridstring

        One of: "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T"

      • max_durationinteger
      • min_durationinteger
      • price_after_taxesstring
      • price_before_taxesstring
      • processstring

        One of: "add_fqdn", "add_wildcard"

      • productobject

        With the following properties:

        • namestring
        • paramsobject

          With the following properties:

          • providerstring

            One of: "sectigo", "digicert"

            ACME providers enumeration
          • validation_typestring

            One of: "dv", "ov"

      • tax_ratestring
      • taxesarray

        Of items of type:

        • object

          With the following properties:

          • labelstring
          • namestring
          • ratestring
          • typestring

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:

    • causestring
    • codeinteger
    • messagestring
    • objectstring

401

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

    With the following properties:

    • causestring
    • codeinteger
    • messagestring
    • objectstring

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:

    • causestring
    • codeinteger
    • messagestring
    • objectstring

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.

Headers
  • Required
    • Authorizationstring
      The Authorization header must start with Bearer for access token.
      Example: Bearer pat_abc-123

Prices list

https://api.gandi.net/v5/acme/quote

post List prices with filters, according to specific domain list

Request

Query Parameters
  • Required
    • sharing_idstring
Headers
  • Required
    • Authorizationstring
      The Authorization header must start with Bearer for access token.
      Example: Bearer pat_abc-123
Body
  • application/json
    object

    With the following properties:

    Required
    • countrystring
    • currencystring
    • domainsarray[ string ]

      Minimum items: 1

    • durationstring
    • gridstring
    • processstring
    • providerstring
    • validation_typestring

Responses

200

Body
  • application/json
    array

    Of items of type:

    • object

      With the following properties:

      • currencystring
      • duration_unitstring
      • gridstring

        One of: "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T"

      • max_durationinteger
      • min_durationinteger
      • price_after_taxesstring
      • price_before_taxesstring
      • processstring

        One of: "add_fqdn", "add_wildcard"

      • productobject

        With the following properties:

        • namestring
        • paramsobject

          With the following properties:

          • providerstring

            One of: "sectigo", "digicert"

            ACME providers enumeration
          • validation_typestring

            One of: "dv", "ov"

      • quantityinteger
      • tax_ratestring
      • taxesarray

        Of items of type:

        • object

          With the following properties:

          • labelstring
          • namestring
          • ratestring
          • typestring

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:

    • causestring
    • codeinteger
    • messagestring
    • objectstring

401

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

    With the following properties:

    • causestring
    • codeinteger
    • messagestring
    • objectstring

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:

    • causestring
    • codeinteger
    • messagestring
    • objectstring

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.

Headers
  • Required
    • Authorizationstring
      The Authorization header must start with Bearer for access token.
      Example: Bearer pat_abc-123

Subscriptions Create and List

https://api.gandi.net/v5/acme/subscriptions

get List subscriptions for a given sharing_id

Request

Query Parameters
  • Required
    • created_atstring
    • ends_atstring
    • namestring
    • providerstring
    • sharing_idstring
    • statusstring
    • validation_typestring
    • yearsstring
Headers
  • Required
    • Authorizationstring
      The Authorization header must start with Bearer for access token.
      Example: Bearer pat_abc-123

Responses

200

Headers
    • X-Total-Countstring
Body
  • application/json
    array

    Of items of type:

    • object

      With the following properties:

      • created_atstring
      • eab_hmacstring
      • eab_idstring
      • ends_atstring
      • namestring
      • providerstring
      • server_urlstring
      • statusstring
      • subscription_idstring
      • validation_typestring
      • yearsstring

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:

    • causestring
    • codeinteger
    • messagestring
    • objectstring

401

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

    With the following properties:

    • causestring
    • codeinteger
    • messagestring
    • objectstring

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:

    • causestring
    • codeinteger
    • messagestring
    • objectstring

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.

Headers
  • Required
    • Authorizationstring
      The Authorization header must start with Bearer for access token.
      Example: Bearer pat_abc-123

post Create a partial subscription, waiting for billing task to be paid

Request

Query Parameters
  • Required
    • sharing_idstring
Headers
  • Required
    • Authorizationstring
      The Authorization header must start with Bearer for access token.
      Example: Bearer pat_abc-123
Body
  • application/json
    object

    With the following properties:

    Required
    • countrystring
    • currencystring

      Default: "EUR"

    • domainsarray[ string ]

      Minimum items: 1

    • durationinteger

      Default: 1

      duration in years
    • gridstring

      Default: "A"

    • namestring

      Default: "FIXME"

      Minimum length: 1

      Maximum length: 200

    • providerstring

      One of: "sectigo", "digicert"

      ACME providers enumeration
    • validation_typestring

      One of: "dv", "ov"

Responses

200

Headers
    • Content-Locationstring
    • Locationstring
Body
  • application/json
    object

    With the following properties:

    • messagestring

      Default: "Request 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:

    • causestring
    • codeinteger
    • messagestring
    • objectstring

401

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

    With the following properties:

    • causestring
    • codeinteger
    • messagestring
    • objectstring

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:

    • causestring
    • codeinteger
    • messagestring
    • objectstring

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.

Headers
  • Required
    • Authorizationstring
      The Authorization header must start with Bearer for access token.
      Example: Bearer pat_abc-123

Subscriptions Modify and Delete

https://api.gandi.net/v5/acme/subscriptions/{subscription_id}

get Returns a single account associated with the subscription_id and the account_id

Request

URI Parameters
    • subscription_idstring
Query Parameters
  • Required
    • sharing_idstring
Headers
  • Required
    • Authorizationstring
      The Authorization header must start with Bearer for access token.
      Example: Bearer pat_abc-123

Responses

200

Body
  • application/json
    object

    With the following properties:

    • created_atstring
    • eab_hmacstring
    • eab_idstring
    • ends_atstring
    • namestring
    • providerstring
    • server_urlstring
    • statusstring
    • subscription_idstring
    • validation_typestring
    • yearsstring

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:

    • causestring
    • codeinteger
    • messagestring
    • objectstring

401

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

    With the following properties:

    • causestring
    • codeinteger
    • messagestring
    • objectstring

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:

    • causestring
    • codeinteger
    • messagestring
    • objectstring

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.

Headers
  • Required
    • Authorizationstring
      The Authorization header must start with Bearer for access token.
      Example: Bearer pat_abc-123

patch Changes the name of the subscription

Request

URI Parameters
    • subscription_idstring
Query Parameters
  • Required
    • sharing_idstring
Headers
  • Required
    • Authorizationstring
      The Authorization header must start with Bearer for access token.
      Example: Bearer pat_abc-123
Body
  • application/json
    object

    With the following properties:

    Required
    • namestring

      Minimum length: 1

      Maximum length: 200

Responses

200

Headers
    • Content-Locationstring
    • Locationstring
Body
  • application/json
    object

    With the following properties:

    • messagestring

      Default: "Request 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:

    • causestring
    • codeinteger
    • messagestring
    • objectstring

401

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

    With the following properties:

    • causestring
    • codeinteger
    • messagestring
    • objectstring

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:

    • causestring
    • codeinteger
    • messagestring
    • objectstring

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.

Headers
  • Required
    • Authorizationstring
      The Authorization header must start with Bearer for access token.
      Example: Bearer pat_abc-123

delete Delete the subscription

Request

URI Parameters
    • subscription_idstring
Query Parameters
  • Required
    • sharing_idstring
Headers
  • Required
    • Authorizationstring
      The Authorization header must start with Bearer for access token.
      Example: Bearer pat_abc-123

Responses

200

Body
  • application/json
    string

    Default: ""

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:

    • causestring
    • codeinteger
    • messagestring
    • objectstring

401

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

    With the following properties:

    • causestring
    • codeinteger
    • messagestring
    • objectstring

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:

    • causestring
    • codeinteger
    • messagestring
    • objectstring

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.

Headers
  • Required
    • Authorizationstring
      The Authorization header must start with Bearer for access token.
      Example: Bearer pat_abc-123

Account List

https://api.gandi.net/v5/acme/subscriptions/{subscription_id}/accounts

get List all accounts linked to a subscription

Request

URI Parameters
    • subscription_idstring
Query Parameters
  • Required
    • sharing_idstring
Headers
  • Required
    • Authorizationstring
      The Authorization header must start with Bearer for access token.
      Example: Bearer pat_abc-123

Responses

200

Headers
    • X-Total-Countstring
Body
  • application/json
    array

    Of items of type:

    • object

      With the following properties:

      • created_atstring
      • deleted_atstring
      • external_idstring
      • idstring
      • ipstring
      • last_activitystring
      • statusstring
      • subscription_idstring

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:

    • causestring
    • codeinteger
    • messagestring
    • objectstring

401

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

    With the following properties:

    • causestring
    • codeinteger
    • messagestring
    • objectstring

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:

    • causestring
    • codeinteger
    • messagestring
    • objectstring

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.

Headers
  • Required
    • Authorizationstring
      The Authorization header must start with Bearer for access token.
      Example: Bearer pat_abc-123

Account Info

https://api.gandi.net/v5/acme/subscriptions/{subscription_id}/accounts/{account_id}

get Returns a single account associated with the subscription_id and the account_id

Request

URI Parameters
    • subscription_idstring
    • account_idstring
Query Parameters
  • Required
    • sharing_idstring
Headers
  • Required
    • Authorizationstring
      The Authorization header must start with Bearer for access token.
      Example: Bearer pat_abc-123

Responses

200

Body
  • application/json
    object

    With the following properties:

    • created_atstring
    • deleted_atstring
    • external_idstring
    • idstring
    • ipstring
    • last_activitystring
    • statusstring
    • subscription_idstring

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:

    • causestring
    • codeinteger
    • messagestring
    • objectstring

401

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

    With the following properties:

    • causestring
    • codeinteger
    • messagestring
    • objectstring

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:

    • causestring
    • codeinteger
    • messagestring
    • objectstring

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.

Headers
  • Required
    • Authorizationstring
      The Authorization header must start with Bearer for access token.
      Example: Bearer pat_abc-123

Domains List

https://api.gandi.net/v5/acme/subscriptions/{subscription_id}/domains

get List all domains on a subscription

Request

URI Parameters
    • subscription_idstring
Query Parameters
  • Required
    • domainstring
    • sharing_idstring
Headers
  • Required
    • Authorizationstring
      The Authorization header must start with Bearer for access token.
      Example: Bearer pat_abc-123

Responses

200

Headers
    • X-Total-Countstring
Body
  • application/json
    array

    Of items of type:

    • object

      With the following properties:

      • created_atstring
      • deleted_atstring
      • hostnamestring
      • hostname_ulabelstring
      • is_wildcardstring
      • statusstring
      • subscription_idstring

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:

    • causestring
    • codeinteger
    • messagestring
    • objectstring

401

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

    With the following properties:

    • causestring
    • codeinteger
    • messagestring
    • objectstring

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:

    • causestring
    • codeinteger
    • messagestring
    • objectstring

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.

Headers
  • Required
    • Authorizationstring
      The Authorization header must start with Bearer for access token.
      Example: Bearer pat_abc-123

patch Changes the domains of the subscription

Request

URI Parameters
    • subscription_idstring
Query Parameters
  • Required
    • sharing_idstring
Headers
  • Required
    • Authorizationstring
      The Authorization header must start with Bearer for access token.
      Example: Bearer pat_abc-123
Body
  • application/json
    object

    With the following properties:

    Required
    • countrystring
    • currencystring

      Default: "EUR"

    • domains_to_addarray[ string ]
    • domains_to_deletearray[ string ]
    • gridstring

      Default: "A"

    • providerstring

      Default: "sectigo"

    • validation_typestring

      Default: "dv"

Responses

200

Headers
    • Content-Locationstring
    • Locationstring
Body
  • application/json
    object

    With the following properties:

    • messagestring

      Default: "Request 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:

    • causestring
    • codeinteger
    • messagestring
    • objectstring

401

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

    With the following properties:

    • causestring
    • codeinteger
    • messagestring
    • objectstring

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:

    • causestring
    • codeinteger
    • messagestring
    • objectstring

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.

Headers
  • Required
    • Authorizationstring
      The Authorization header must start with Bearer for access token.
      Example: Bearer pat_abc-123

Domain Info

https://api.gandi.net/v5/acme/subscriptions/{subscription_id}/domains/{domain_id}

get Returns a single domain linked to the right subscription_id and domain_id association

Request

URI Parameters
    • subscription_idstring
    • domain_idinteger
Query Parameters
  • Required
    • sharing_idstring
Headers
  • Required
    • Authorizationstring
      The Authorization header must start with Bearer for access token.
      Example: Bearer pat_abc-123

Responses

200

Body
  • application/json
    object

    With the following properties:

    • created_atstring
    • deleted_atstring
    • hostnamestring
    • hostname_ulabelstring
    • is_wildcardstring
    • statusstring
    • subscription_idstring

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:

    • causestring
    • codeinteger
    • messagestring
    • objectstring

401

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

    With the following properties:

    • causestring
    • codeinteger
    • messagestring
    • objectstring

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:

    • causestring
    • codeinteger
    • messagestring
    • objectstring

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.

Headers
  • Required
    • Authorizationstring
      The Authorization header must start with Bearer for access token.
      Example: Bearer pat_abc-123