GET api/Domain/GetWithContactsForUser?userId={userId}

Retrieves all of the domains and all contacts that are assigned to be notified about it's expiry dates for the user which matches the "userId" passed in

Request Information

URI Parameters

NameDescriptionTypeAdditional information
userId

Id of the user

integer

Required

Body Parameters

None.

Response Information

Resource Description

Returns a list of domians with all the associated contacts

Collection of DomainWithContactsResponse
NameDescriptionTypeAdditional information
UpdateContactReminders

A flag to indicate if the contacts who are notified about this domain should be updated

boolean

None.

SelectedContactIds

A list of contact ids to notify about this domain

Collection of integer

None.

Id

Id of the Domain

integer

None.

Url

Url address of the domain

string

Required

Registrar

The name of the company the domain is registered with.

string

None.

RegistrationDate

Registration date of the domain

date

None.

ExpirationDate

Expiration date of the domain

date

None.

SSL

Whether the domain has a valid SSL certifacte or not

boolean

None.

SSLExpirationDate

Expiration date of the domain's SSL certificate

date

None.

UserId

Id of the User

integer

Required

Pending

Whether the information of the domain is pending

boolean

None.

PendingSSLDetails

Whether the SSl details of the domain are pending

boolean

None.

SSLVersion

The SSL certificate version if this domain has an SSL cert

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "UpdateContactReminders": true,
    "SelectedContactIds": [
      1,
      2
    ],
    "Id": 2,
    "Url": "sample string 3",
    "Registrar": "sample string 4",
    "RegistrationDate": "2024-04-02T06:49:02.1598506+00:00",
    "ExpirationDate": "2024-04-02T06:49:02.1598506+00:00",
    "SSL": true,
    "SSLExpirationDate": "2024-04-02T06:49:02.1598506+00:00",
    "UserId": 6,
    "Pending": true,
    "PendingSSLDetails": true,
    "SSLVersion": 1
  },
  {
    "UpdateContactReminders": true,
    "SelectedContactIds": [
      1,
      2
    ],
    "Id": 2,
    "Url": "sample string 3",
    "Registrar": "sample string 4",
    "RegistrationDate": "2024-04-02T06:49:02.1598506+00:00",
    "ExpirationDate": "2024-04-02T06:49:02.1598506+00:00",
    "SSL": true,
    "SSLExpirationDate": "2024-04-02T06:49:02.1598506+00:00",
    "UserId": 6,
    "Pending": true,
    "PendingSSLDetails": true,
    "SSLVersion": 1
  }
]

application/xml, text/xml

Sample:
<ArrayOfDomainWithContactsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Expirify.Api.Models.Domain">
  <DomainWithContactsResponse>
    <ExpirationDate>2024-04-02T06:49:02.1598506+00:00</ExpirationDate>
    <Id>2</Id>
    <Pending>true</Pending>
    <PendingSSLDetails>true</PendingSSLDetails>
    <Registrar>sample string 4</Registrar>
    <RegistrationDate>2024-04-02T06:49:02.1598506+00:00</RegistrationDate>
    <SSL>true</SSL>
    <SSLExpirationDate>2024-04-02T06:49:02.1598506+00:00</SSLExpirationDate>
    <SSLVersion>1</SSLVersion>
    <Url>sample string 3</Url>
    <UserId>6</UserId>
    <SelectedContactIds xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>1</d3p1:int>
      <d3p1:int>2</d3p1:int>
    </SelectedContactIds>
    <UpdateContactReminders>true</UpdateContactReminders>
  </DomainWithContactsResponse>
  <DomainWithContactsResponse>
    <ExpirationDate>2024-04-02T06:49:02.1598506+00:00</ExpirationDate>
    <Id>2</Id>
    <Pending>true</Pending>
    <PendingSSLDetails>true</PendingSSLDetails>
    <Registrar>sample string 4</Registrar>
    <RegistrationDate>2024-04-02T06:49:02.1598506+00:00</RegistrationDate>
    <SSL>true</SSL>
    <SSLExpirationDate>2024-04-02T06:49:02.1598506+00:00</SSLExpirationDate>
    <SSLVersion>1</SSLVersion>
    <Url>sample string 3</Url>
    <UserId>6</UserId>
    <SelectedContactIds xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>1</d3p1:int>
      <d3p1:int>2</d3p1:int>
    </SelectedContactIds>
    <UpdateContactReminders>true</UpdateContactReminders>
  </DomainWithContactsResponse>
</ArrayOfDomainWithContactsResponse>