What ydomain offers developers: an HTTP API, webhook callbacks and two embed scripts.

ydomain developer documentation

Three separate things live here. They share one account and one set of listings, and nothing else: you can use any of them without the others.

What it is Start at
API An HTTP API you call. Manage listings, read and answer leads, manage endpoints. Needs an API key. Authentication
Webhooks Calls we make to you. A signed POST to a URL of yours whenever something changes. Needs no key. Events and deliveries
Embeds Two script tags. Put a contact form, or the whole landing page, on a domain you own. Needs nothing at all. Scripts

Most integrations use two of the three: webhooks to hear that something happened, the API to read the details and act.

The API

Page What is in it
Authentication Keys, abilities, rate limits, pagination, errors
Domains List, read, create, update and delete listings
Leads Read enquiries, change status, reply to the buyer
Webhook endpoints Create and remove endpoints over the API

A first request

curl https://ydomain.com/api/v1/me \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json"
{
  "data": {
    "id": "01920f1a-6c4e-7a51-9d0b-4c8f2b7e1a33",
    "name": "Renee de Vries",
    "email": "[email protected]",
    "locale": "nl",
    "currency": "EUR",
    "abilities": ["domains:read", "leads:read"],
    "counts": {
      "domains": 148,
      "leads": 27
    }
  }
}

GET /me needs no ability beyond a valid key, so it is the quickest way to check that a key works and to see what it is allowed to do.

Conventions

Webhooks

A webhook is the other direction: we POST to a URL of yours, signed, whenever something happens on your account. Endpoints are set up under Settings → Webhooks in the account area, or over the API.

Read Events and deliveries for the list of events, the body we send and how to verify the signature.

Embeds

Two script tags, for a domain you already own: one puts the whole landing page on it, the other puts only a contact form somewhere on your own page. No key, no account setup, nothing to configure — the script works out which listing it belongs to from the page it runs on.

Read Scripts.

Reading these docs as text

Every page is also served as Markdown, which is what you want if you are feeding this to a model or a script: