Skip to main content

  • Member Sign In
  • Become A Member
  • Need Support?
  • English

    Select Your Language

    Fonts.com is currently in English

    • English
    • Deutsch
    • 日本語
    Close
  • USD
  • Items In Your Cart:0

fonts.com

  • Browse Fonts
  • Web Fonts
  • Subscriptions
  • Learn About Fonts & Typography

  • Home
  • Web Fonts
  • Developers
  • Domain: Add a Domain

Domain: Add a Domain

URL

http://api.fonts.com/rest/{format}/Domains/

{format}

xml or json

Method

POST

Required Header Parameters

  • authorization
    Hashed authorization key
  • appkey
    Your application’s key

Required Query String Parameters

  • wfspid
    The project id

Optional Query String Parameters

  • wfsnopublish
    This command automatically calls Publish once it is complete, which takes multiple seconds. To prevent this, use this parameter, set it to 1, and use Publish after all changes are made.
  • wfspstart
    starting record requested (zero-based)
  • wfsplimit
    # of records requested

Required Data Parameters

  • wfsdomain_name
    new domain name

Response variables

  • Message
    If the response is successful then the “message” parameter of the response will be “Success” and if there is some error or failure then the “message” parameter will be the error message.
  • ProjectID
    Project ID
  • Domain: DomainID
    The Identifier for the domain
  • Domain: DomainName
    The domain string
  • TotalRecords
    Total number of records
  • PageStart
    starting record requested (zero-based)
  • PageLimit
    # of records requested

xml Response

<Domains>
  <ProjectID>7bff9927-7964-4f6f-a132-adcae35ad51f</ProjectID>
  <Message>Success</Message>
  <Domain>
    <DomainID>3afeed21-be68-4a18-94fd-feae5c3443d6</DomainID>
    <DomainName>*.example.com</DomainName>
  </Domain>
  <Domain>
    <DomainID>748f683b-822a-4212-95bf-597e3e8549db</DomainID>
    <DomainName>*.domain.com</DomainName>
  </Domain>
  <TotalRecords>2</TotalRecords>
  <PageStart>0</PageStart>
  <PageLimit>10</PageLimit>
</Domains>

json Response

{
   "Domains":{
      "Domain":[
          {
             "DomainID":"3afeed21-be68-4a18-94fd-feae5c3443d6",
             "DomainName":"*.example.com"
          },
          {
             "DomainID":"748f683b-822a-4212-95bf-597e3e8549db",
             "DomainName":"*.domain.com"
          }
      ],
      "Message":"Success",
      "PageLimit":"10",
      "PageStart":"0",
      "ProjectID":"7bff9927-7964-4f6f-a132-adcae35ad51f",
      "TotalRecords":"2"
   }
}

 

Integration Support

  • Authorization Parameter
  • Publishing
  • Importing Stylesheets
  • Filtering Font Lists

Account

  • Create Account
  • Get Token
  • Generate Token

Domains

  • List Domains
  • Add Domain
  • Delete Domain
  • Edit Domain

Filters

  • List Filters

Filter Values

  • List Filter Values
  • List All Filter Values

Fonts

  • List Fonts
  • List Project Fonts
  • Add Font
  • Delete Font

Projects

  • List Projects
  • Add Project
  • Delete Project
  • Edit Project

Publish

  • Publish

Selectors

  • List Selectors
  • Add Selector
  • Assign Fonts To Selectors
  • Delete Selector

Stylesheet

  • Export Stylesheet
  • Import Stylesheet
  • Add Stylesheet

 

Find Your Type

  • About
  • Blog
  • Services
  • Submit Fonts
  • Be an Affiliate
  • Support
  • Contact
  • Developers
  • Monotype
  • Legal
  • Sitemap
  • Font Index
  • Facebook
  • Twitter
  • 1.1605.31.1411