GET
https://jmpy.me/api/v1
/
domains
/
branded
List Branded Domains
curl --request GET \
  --url https://jmpy.me/api/v1/domains/branded \
  --header 'Authorization: Bearer <token>'
{
  "domains": [
    {
      "id": "<string>",
      "domain": "<string>",
      "name": "<string>",
      "description": "<string>",
      "is_verified": true,
      "is_txt_verified": true,
      "is_dedicated": true,
      "created_at": "<string>"
    }
  ],
  "total": 123
}
Retrieve a list of all branded domains registered to your account. Branded domains are custom domains (e.g., go.mycompany.com) that you have configured to use with Jmpy.me.

Response

domains
array
Array of branded domains.
total
integer
Total number of branded domains.

Request Examples

curl -X GET "https://jmpy.me/api/v1/domains/branded" \
  -H "Authorization: Bearer YOUR_API_KEY"

Response Examples

{
  "success": true,
  "data": {
    "domains": [
      {
        "id": "uuid-string",
        "domain": "go.acme.com",
        "name": "Acme Links",
        "description": "Main marketing links",
        "is_verified": true,
        "is_txt_verified": true,
        "is_dedicated": false,
        "created_at": "2024-01-01T00:00:00Z"
      }
    ],
    "total": 1
  }
}

Use Cases

Get only the domains that are verified and ready for use.
async function getActiveDomains() {
  const response = await fetch(
    'https://jmpy.me/api/v1/domains/branded',
    { headers: { 'Authorization': 'Bearer YOUR_API_KEY' } }
  );
  const output = await response.json();
  
  // Filter list client-side
  const activeDomains = output.data.domains.filter(d => d.is_verified);
  return activeDomains;
}
Locate a specific domain ID by its name.
async function findDomainId(domainName) {
  const response = await fetch(
    'https://jmpy.me/api/v1/domains/branded',
    { headers: { 'Authorization': 'Bearer YOUR_API_KEY' } }
  );
  const result = await response.json();
  
  const domain = result.data.domains.find(d => 
    d.domain.toLowerCase() === domainName.toLowerCase()
  );
  
  return domain ? domain.id : null;
}