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

Retrieves the domains listed for the user which matches the "userId" passed in

Request Information

URI Parameters

NameDescriptionTypeAdditional information
userId

The Id of the user

integer

Required

Body Parameters

None.

Response Information

Resource Description

Reurns a list of domains

Collection of DomainResponse
NameDescriptionTypeAdditional information
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:
[
  {
    "Id": 1,
    "Url": "sample string 2",
    "Registrar": "sample string 3",
    "RegistrationDate": "2024-04-02T06:48:59.5160429+00:00",
    "ExpirationDate": "2024-04-02T06:48:59.5160429+00:00",
    "SSL": true,
    "SSLExpirationDate": "2024-04-02T06:48:59.5160429+00:00",
    "UserId": 5,
    "Pending": true,
    "PendingSSLDetails": true,
    "SSLVersion": 1
  },
  {
    "Id": 1,
    "Url": "sample string 2",
    "Registrar": "sample string 3",
    "RegistrationDate": "2024-04-02T06:48:59.5160429+00:00",
    "ExpirationDate": "2024-04-02T06:48:59.5160429+00:00",
    "SSL": true,
    "SSLExpirationDate": "2024-04-02T06:48:59.5160429+00:00",
    "UserId": 5,
    "Pending": true,
    "PendingSSLDetails": true,
    "SSLVersion": 1
  }
]

application/xml, text/xml

Sample:
<ArrayOfDomainResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Expirify.Api.Models.Domain">
  <DomainResponse>
    <ExpirationDate>2024-04-02T06:48:59.5160429+00:00</ExpirationDate>
    <Id>1</Id>
    <Pending>true</Pending>
    <PendingSSLDetails>true</PendingSSLDetails>
    <Registrar>sample string 3</Registrar>
    <RegistrationDate>2024-04-02T06:48:59.5160429+00:00</RegistrationDate>
    <SSL>true</SSL>
    <SSLExpirationDate>2024-04-02T06:48:59.5160429+00:00</SSLExpirationDate>
    <SSLVersion>1</SSLVersion>
    <Url>sample string 2</Url>
    <UserId>5</UserId>
  </DomainResponse>
  <DomainResponse>
    <ExpirationDate>2024-04-02T06:48:59.5160429+00:00</ExpirationDate>
    <Id>1</Id>
    <Pending>true</Pending>
    <PendingSSLDetails>true</PendingSSLDetails>
    <Registrar>sample string 3</Registrar>
    <RegistrationDate>2024-04-02T06:48:59.5160429+00:00</RegistrationDate>
    <SSL>true</SSL>
    <SSLExpirationDate>2024-04-02T06:48:59.5160429+00:00</SSLExpirationDate>
    <SSLVersion>1</SSLVersion>
    <Url>sample string 2</Url>
    <UserId>5</UserId>
  </DomainResponse>
</ArrayOfDomainResponse>