Create organization

POST
https://www.digicert.com/services/v2/organization

Use this endpoint to create a new organization.

Submitted organization information will be validated by DigiCert and may appear on certificates.

cURL
curl -X POST \
  https://www.digicert.com/services/v2/organization \
  -H 'Content-Type: application/json' \
  -H 'X-DC-DEVKEY: {{api_key}}' \
  -d '{
    "name": "Epigyne Unwieldiness llc",
    "assumed_name": "Epigyne Unwieldiness",
    "country": "us",
    "address": "932 Prospect Street",
    "address2": "Floor 08",
    "city": "Minneapolis",
    "state": "mn",
    "zip": "40849",
    "telephone": "666-186-6450",
    "organization_contact": {
        "first_name": "Gia",
        "last_name": "Booth",
        "job_title": "Clinical Laboratory Technician",
        "email": "gia.booth@inbox.com",
        "telephone": "666-186-6450",
        "telephone_extension": "736"
    }
}'
Python
import requests

url = "https://www.digicert.com/services/v2/organization"

payload = "{\n    \"name\": \"Epigyne Unwieldiness llc\",\n    \"assumed_name\": \"Epigyne Unwieldiness\",\n    \"country\": \"us\",\n    \"address\": \"932 Prospect Street\",\n    \"address2\": \"Floor 08\",\n    \"city\": \"Minneapolis\",\n    \"state\": \"mn\",\n    \"zip\": \"40849\",\n    \"telephone\": \"666-186-6450\",\n    \"organization_contact\": {\n        \"first_name\": \"Gia\",\n        \"last_name\": \"Booth\",\n        \"job_title\": \"Clinical Laboratory Technician\",\n        \"email\": \"gia.booth@inbox.com\",\n        \"telephone\": \"666-186-6450\",\n        \"telephone_extension\": \"736\"\n    }\n}"
headers = {
    'X-DC-DEVKEY': "{{api_key}}",
    'Content-Type': "application/json"
    }

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)
Go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "https://www.digicert.com/services/v2/organization"

	payload := strings.NewReader("{\n    \"name\": \"Epigyne Unwieldiness llc\",\n    \"assumed_name\": \"Epigyne Unwieldiness\",\n    \"country\": \"us\",\n    \"address\": \"932 Prospect Street\",\n    \"address2\": \"Floor 08\",\n    \"city\": \"Minneapolis\",\n    \"state\": \"mn\",\n    \"zip\": \"40849\",\n    \"telephone\": \"666-186-6450\",\n   
 \"organization_contact\": {\n        \"first_name\": \"Gia\",\n        \"last_name\": \"Booth\",\n        \"job_title\": \"Clinical Laboratory Technician\",\n        \"email\": \"gia.booth@inbox.com\",\n        \"telephone\": \"666-186-6450\",\n        \"telephone_extension\": \"736\"\n    }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("X-DC-DEVKEY", "{{api_key}}")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
NodeJS
var request = require("request");

var options = { method: 'POST',
  url: 'https://www.digicert.com/services/v2/organization',
  headers: 
   { 'Content-Type': 'application/json',
     'X-DC-DEVKEY': '{{api_key}}' },
  body: 
   { name: 'Epigyne Unwieldiness llc',
     assumed_name: 'Epigyne Unwieldiness',
     country: 'us',
     address: '932 Prospect Street',
     address2: 'Floor 08',
     city: 'Minneapolis',
     state: 'mn',
     zip: '40849',
     telephone: '666-186-6450',
     organization_contact: 
      { first_name: 'Gia',
        last_name: 'Booth',
        job_title: 'Clinical Laboratory Technician',
        email: 'gia.booth@inbox.com',
        telephone: '666-186-6450',
        telephone_extension: '736' } },
  json: true };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
201 Created
{
  "id": 112236
}

Request parameters

Name Req/Opt Type Description
name required string Legal name of the organization.
assumed_name optional string Public name of the organization.
Also called DBA name.
country required string Country where the organization is located.
address required string Address of the organization.
address2 optional string
city required string City where the organization is located.
state required string State where the organization is located.
zip required string Postal code of the organization.
telephone required string Organization telephone number.
organization_contact required object Organization contact information.
.. first_name required string First name of the contact.
.. last_name required string Last name of the contact.
.. job_title optional string Job title of the contact.
Required for contact to be an EV approver.
.. email required string Email address that can be used to reach contact.
.. telephone required string Telephone number that can be used to reach the contact.
Required for contact to be an EV approver.
.. telephone_extension optional string Phone extension of the contact.

Response parameters

Name Type Description
id int ID of the new organization.