{
"swagger": "2.0",
"tags": [
{
"name": "v1",
"description": ""
},
{
"name": "v2",
"description": ""
}
],
"host": "api.ote-godaddy.com",
"paths": {
"/v1/certificates": {
"post": {
"tags": [
"v1"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"default": "Default locale for shopper account",
"description": "Setting locale for communications such as emails and error messages",
"in": "header",
"name": "X-Market-Id",
"required": false,
"type": "string"
},
{
"description": "The certificate order information",
"in": "body",
"name": "certificateCreate",
"required": true,
"schema": {
"$ref": "#/definitions/CertificateCreate"
}
}
],
"responses": {
"202": {
"description": "Request was successful",
"schema": {
"$ref": "#/definitions/CertificateIdentifier"
}
},
"400": {
"description": "Request was malformed",
"schema": {
"$ref": "#/definitions/Error"
}
},
"401": {
"description": "Authentication info not sent or invalid",
"schema": {
"$ref": "#/definitions/Error"
}
},
"403": {
"description": "Authenticated user is not allowed access",
"schema": {
"$ref": "#/definitions/Error"
}
},
"409": {
"description": "Certificate state does not allow renew",
"schema": {
"$ref": "#/definitions/Error"
}
},
"422": {
"description": "`email` is not empty
`csr` is invalid",
"schema": {
"$ref": "#/definitions/Error"
}
},
"500": {
"description": "Internal server error",
"schema": {
"$ref": "#/definitions/Error"
}
}
},
"description": "
Creating a certificate order can be a long running asynchronous operation in the PKI workflow. The PKI API supports 2 options for getting the completion stateful actions for this asynchronous operations: 1) by polling operations -- see /v1/certificates/{certificateId}/actions 2) via WebHook style callback -- see '/v1/certificates/{certificateId}/callback'.
", "operationId": "certificate_create", "summary": "Create a pending order for certificate" } }, "/v1/certificates/validate": { "post": { "tags": [ "v1" ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "parameters": [ { "default": "Default locale for shopper account", "description": "Setting locale for communications such as emails and error messages", "in": "header", "name": "X-Market-Id", "required": false, "type": "string" }, { "description": "The certificate order info", "in": "body", "name": "certificateCreate", "required": true, "schema": { "$ref": "#/definitions/CertificateCreate" } } ], "responses": { "204": { "description": "Request validated successfully" }, "400": { "description": "Request was malformed", "schema": { "$ref": "#/definitions/Error" } }, "401": { "description": "Authentication info not sent or invalid", "schema": { "$ref": "#/definitions/Error" } }, "403": { "description": "Authenticated user is not allowed access", "schema": { "$ref": "#/definitions/Error" } }, "409": { "description": "Certificate state does not allow renew", "schema": { "$ref": "#/definitions/Error" } }, "422": { "description": "`email` is not emptyRekeying is the process by which the private and public key is changed for a certificate. It is a simplified reissue,where only the CSR is changed. Reissuing is the process by which domain names are added or removed from a certificate.Once a request is validated and approved, the certificate will be reissued with the new common name and sans specified. Unlimited reissues are available during the lifetime of the certificate.New names added to a certificate that do not share the base domain of the common name may take additional time to validate. If this API call is made before a previous pending reissue has been validated and issued, the previous reissue request is automatically rejected and replaced with the current request.
", "operationId": "certificate_reissue", "summary": "Reissue active certificate" } }, "/v1/certificates/{certificateId}/renew": { "post": { "tags": [ "v1" ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "parameters": [ { "description": "Certificate id to renew", "in": "path", "name": "certificateId", "required": true, "type": "string" }, { "description": "The renew request info", "in": "body", "name": "renewCreate", "required": true, "schema": { "$ref": "#/definitions/CertificateRenew" } } ], "responses": { "202": { "description": "Renew request created" }, "400": { "description": "Request was malformed", "schema": { "$ref": "#/definitions/Error" } }, "401": { "description": "Authentication info not sent or invalid", "schema": { "$ref": "#/definitions/Error" } }, "403": { "description": "Authenticated user is not allowed access", "schema": { "$ref": "#/definitions/Error" } }, "404": { "description": "Certificate id not found", "schema": { "$ref": "#/definitions/Error" } }, "409": { "description": "Certificate state does not allow renew", "schema": { "$ref": "#/definitions/Error" } }, "422": { "description": "`csr` is invalid", "schema": { "$ref": "#/definitions/Error" } }, "500": { "description": "Internal server error", "schema": { "$ref": "#/definitions/Error" } } }, "description": "Renewal is the process by which the validity of a certificate is extended. Renewal is only available 60 days prior to expiration of the previous certificate and 30 days after the expiration of the previous certificate. The renewal supports modifying a set of the original certificate order information. Once a request is validated and approved, the certificate will be issued with extended validity. Since subject alternative names can be removed during a renewal, we require that you provide the subject alternative names you expect in the renewed certificate. New names added to a certificate that do not share the base domain of the common name may take additional time to validate. ", "operationId": "certificate_renew", "summary": "Renew active certificate" } }, "/v1/certificates/{certificateId}/revoke": { "post": { "tags": [ "v1" ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "parameters": [ { "description": "Certificate id to revoke", "in": "path", "name": "certificateId", "required": true, "type": "string" }, { "description": "The certificate revocation request", "in": "body", "name": "certificateRevoke", "required": true, "schema": { "$ref": "#/definitions/CertificateRevoke" } } ], "responses": { "204": { "description": "Certificate Revoked" }, "400": { "description": "Request was malformed", "schema": { "$ref": "#/definitions/Error" } }, "401": { "description": "Authentication info not sent or invalid", "schema": { "$ref": "#/definitions/Error" } }, "403": { "description": "Authenticated user is not allowed access", "schema": { "$ref": "#/definitions/Error" } }, "404": { "description": "Certificate id not found", "schema": { "$ref": "#/definitions/Error" } }, "409": { "description": "Certificate state does not allow revoke", "schema": { "$ref": "#/definitions/Error" } }, "500": { "description": "Internal server error", "schema": { "$ref": "#/definitions/Error" } } }, "description": "Use revoke call to revoke an active certificate, if the certificate has not been issued a 404 response will be returned.", "operationId": "certificate_revoke", "summary": "Revoke active certificate" } }, "/v1/certificates/{certificateId}/siteSeal": { "get": { "tags": [ "v1" ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "parameters": [ { "description": "Certificate id", "in": "path", "name": "certificateId", "required": true, "type": "string" }, { "default": "LIGHT", "description": "This value represents the visual theme of the seal. If seal doesn't exist, default values are used if params not present. If seal does exist, default values will not be used to update unless params present.", "enum": [ "DARK", "LIGHT" ], "in": "query", "name": "theme", "required": false, "type": "string" }, { "default": "en", "description": "Determine locale for text displayed in seal image and verification page. If seal doesn't exist, default values are used if params not present. If seal does exist, default values will not be used to update unless params present.", "in": "query", "name": "locale", "required": false, "type": "string" } ], "responses": { "200": { "description": "Site seal retrieved", "schema": { "$ref": "#/definitions/CertificateSiteSeal" } }, "400": { "description": "Request was malformed", "schema": { "$ref": "#/definitions/Error" } }, "401": { "description": "Authentication info not sent or invalid", "schema": { "$ref": "#/definitions/Error" } }, "403": { "description": "Authenticated user is not allowed access", "schema": { "$ref": "#/definitions/Error" } }, "404": { "description": "Certificate id not found", "schema": { "$ref": "#/definitions/Error" } }, "409": { "description": "Certificate state does not allow seal", "schema": { "$ref": "#/definitions/Error" } }, "422": { "description": "'locale' is invalid", "schema": { "$ref": "#/definitions/Error" } }, "500": { "description": "Internal server error", "schema": { "$ref": "#/definitions/Error" } } }, "description": "This method is used to obtain the site seal information for an issued certificate. A site seal is a graphic that the certificate purchaser can embed on their web site to show their visitors information about their SSL certificate. If a web site visitor clicks on the site seal image, a pop-up page is displayed that contains detailed information about the SSL certificate. The site seal token is used to link the site seal graphic image to the appropriate certificate details pop-up page display when a user clicks on the site seal. The site seal images are expected to be static images and hosted on the reseller's website, to minimize delays for customer page load times.
", "operationId": "certificate_siteseal_get", "summary": "Get Site seal" } }, "/v1/certificates/{certificateId}/verifyDomainControl": { "post": { "tags": [ "v1" ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "parameters": [ { "description": "Certificate id to lookup", "in": "path", "name": "certificateId", "required": true, "type": "string" } ], "responses": { "204": { "description": "Domain control was successful" }, "400": { "description": "Request was malformed", "schema": { "$ref": "#/definitions/Error" } }, "401": { "description": "Authentication info not sent or invalid", "schema": { "$ref": "#/definitions/Error" } }, "403": { "description": "Authenticated user is not allowed access", "schema": { "$ref": "#/definitions/Error" } }, "404": { "description": "Certificate id not found", "schema": { "$ref": "#/definitions/Error" } }, "409": { "description": "Domain control was not successfulCreating a certificate order for a subscription can be a long running asynchronous operation in the PKI workflow. The PKI API supports 2 options for getting the completion stateful actions for this asynchronous operations: 1) by polling operations -- see /v1/certificates/{certificateId}/actions 2) via WebHook style callback -- see '/v1/certificates/{certificateId}/callback'.
", "operationId": "certificate_create", "summary": "Create a pending order for certificate" } }, "/v2/certificates/{certificateId}/reissue": { "post": { "tags": [ "v2" ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "parameters": [ { "description": "Certificate id to reissue", "in": "path", "name": "certificateId", "required": true, "type": "string" }, { "description": "The reissue request info", "in": "body", "name": "reissueCreate", "required": false, "schema": { "$ref": "#/definitions/CertificateReissueV2" } } ], "responses": { "202": { "description": "Reissue request created" }, "400": { "description": "Request was malformed", "schema": { "$ref": "#/definitions/Error" } }, "401": { "description": "Authentication info not sent or invalid", "schema": { "$ref": "#/definitions/Error" } }, "403": { "description": "Authenticated user is not allowed access", "schema": { "$ref": "#/definitions/Error" } }, "404": { "description": "Certificate id not found", "schema": { "$ref": "#/definitions/Error" } }, "409": { "description": "Certificate state does not allow reissue", "schema": { "$ref": "#/definitions/Error" } }, "422": { "description": "`csr` is invalidRekeying is the process by which the private and public key is changed for a certificate. It is a simplified reissue,where only the CSR is changed. Reissue extends validity of the existing certificate by requesting a new certificate with all the same values as existing issued certificate. Once a request is validated and approved, the certificate will be reissued with the same common name and sans specified from existing certificate. Unlimited reissues are available during the lifetime of the certificate.If this API call is made before a previous pending reissue has been validated and issued, the previous reissue request is automatically rejected and replaced with the current request.
", "operationId": "certificate_reissue", "summary": "Reissue active certificate" } }, "/v2/certificates/download": { "get": { "tags": [ "v2" ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "parameters": [ { "description": "Entitlement id to download", "in": "query", "name": "entitlementId", "required": true, "type": "string" } ], "responses": { "200": { "description": "Certificate retrieved", "schema": { "$ref": "#/definitions/CertificateBundle" } }, "400": { "description": "Request was malformed", "schema": { "$ref": "#/definitions/Error" } }, "401": { "description": "Authentication info not sent or invalid", "schema": { "$ref": "#/definitions/Error" } }, "403": { "description": "Authenticated user is not allowed access", "schema": { "$ref": "#/definitions/Error" } }, "404": { "description": "Entitlement id not found", "schema": { "$ref": "#/definitions/Error" } }, "409": { "description": "Certificate state does not allow download", "schema": { "$ref": "#/definitions/Error" } }, "422": { "description": "Entitlement id not provided", "schema": { "$ref": "#/definitions/Error" } }, "500": { "description": "Internal server error", "schema": { "$ref": "#/definitions/Error" } } }, "operationId": "certificate_download_entitlement", "summary": "Download certificate by entitlement" } }, "/v2/customers/{customerId}/certificates": { "get": { "tags": [ "v2" ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "parameters": [ { "$ref": "#/parameters/customerId" }, { "$ref": "#/parameters/offset" }, { "$ref": "#/parameters/limit" } ], "responses": { "200": { "description": "Customer certificate information retrieved.", "schema": { "$ref": "#/definitions/CertificateSummariesV2" } }, "401": { "$ref": "#/responses/401" }, "403": { "$ref": "#/responses/403" }, "422": { "$ref": "#/responses/422" }, "429": { "$ref": "#/responses/429" }, "500": { "$ref": "#/responses/500" } }, "description": "This method can be used to retrieve a list of certificates for a specified customer.