Fetch domain cert v4

GET /v1/LinkShortening/Domains/{DomainSid}/Certificate

Path parameters

  • DomainSid string Required

    Unique string used to identify the domain that this certificate should be associated with.

    Minimum length is 34, maximum length is 34. Format should match the following pattern: ^DN[0-9a-fA-F]{32}$.

Responses

  • 200 application/json

    OK

    Hide headers attributes Show headers attributes
    • Access-Control-Allow-Origin string

      Specify the origin(s) allowed to access the resource

    • Access-Control-Allow-Methods string

      Specify the HTTP methods allowed when accessing the resource

    • Access-Control-Allow-Headers string

      Specify the headers allowed when accessing the resource

    • Access-Control-Allow-Credentials boolean

      Indicates whether the browser should include credentials

    • Access-Control-Expose-Headers string

      Headers exposed to the client

    Hide response attributes Show response attributes object
    • domain_sid string | null

      The unique string that we created to identify the Domain resource.

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^DN[0-9a-fA-F]{32}$.

    • date_updated string(date-time) | null

      Date that this Domain was last updated.

    • date_expires string(date-time) | null

      Date that the private certificate associated with this domain expires. You will need to update the certificate before that date to ensure your shortened links will continue to work.

    • date_created string(date-time) | null

      Date that this Domain was registered to the Twilio platform to create a new Domain object.

    • domain_name string(uri) | null

      Full url path for this domain.

    • certificate_sid string | null

      The unique string that we created to identify this Certificate resource.

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^CW[0-9a-fA-F]{32}$.

    • url string(uri) | null
    • cert_in_validation object | null

      Optional JSON field describing the status and upload date of a new certificate in the process of validation

GET /v1/LinkShortening/Domains/{DomainSid}/Certificate
curl \
 --request GET 'https://messaging.twilio.com/v1/LinkShortening/Domains/{DomainSid}/Certificate' \
 --user "username:password"
Response examples (200)
{
  "url": "https://messaging.twilio.com/v1/LinkShortening/Domains/DNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Certificate",
  "domain_sid": "DNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "domain_name": "https://api.example.com",
  "date_created": "2021-02-06T18:02:04Z",
  "date_expires": "2021-02-06T18:02:04Z",
  "date_updated": "2021-02-06T18:02:04Z",
  "certificate_sid": "CWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "cert_in_validation": {
    "status": "pending",
    "date_expires": "2021-02-06T18:02:04Z"
  }
}