Docs Home Return to Homepage
Get Started Login

List Contacts

On this page
http
GET /account/contacts

Returns the contacts in the account’s address book. A domain’s contacts always come from here: Update Contacts takes a contact’s uuid, never details typed in for one domain. Contacts are added and edited in the client portal, where each one verifies its email; there the account holder’s own details are a contact too, made when the account was.

A contact can hold domains once can_hold_domains is true: its email is verified and its address is complete. default_domain_contact marks the one new domains take (when it can’t hold domains, they take the account holder’s own contact). Needs a key with Full Access.

Response

json
{
  "contacts": [
    {
      "uuid": "9b2f6c1e-4d7a-4c3b-8f0e-2a6d5b7c9e14",
      "first_name": "Jane",
      "last_name": "Doe",
      "company": "Example LLC",
      "email": "jane@example.com",
      "address1": "123 Main St",
      "address2": null,
      "city": "Anytown",
      "state": "CA",
      "postcode": "90210",
      "country": "US",
      "phone": "+1.5551234567",
      "email_verified": true,
      "can_hold_domains": true,
      "default_domain_contact": true
    }
  ]
}

Example

bash
curl -H "Authorization: Bearer crane_..." https://namecrane.com/api/v1/account/contacts

Snagged on something?

Our sysadmins answer tickets around the clock.