Skip to main content
GET
/
shorten-domains
List Available Domains
curl --request GET \
  --url https://api.u301.com/v2/shorten-domains \
  --header 'Authorization: Bearer <token>'
{
  "meta": {
    "total": 6,
    "perPage": 10,
    "currentPage": 1,
    "lastPage": 1,
    "firstPage": 1
  },
  "data": [
    {
      "domainName": "x.jarfire.org",
      "visibility": "private"
    },
    {
      "domainName": "go.jarfire.org",
      "visibility": "private"
    },
    {
      "domainName": "t.fbi.com",
      "visibility": "public"
    },
    {
      "domainName": "az.jarfire.org",
      "visibility": "public"
    },
    {
      "domainName": "localhost",
      "visibility": "public"
    },
    {
      "domainName": "a1.jarfire.org",
      "visibility": "private"
    }
  ]
}

Params: Visibiliy

available options are
  • public domains provided by the system and available for all users to use.
  • private your custom domains that you have created and can only be used by you.
  • all all domains that you can use.
You can fetch the available domains for shortening, including your own custom domains.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

perPage
integer

Results per Page, range: 1-500

page
integer

Current Page

visibility
enum<string>

Domain Types

Available options:
public,
private,
all

Response

200 - application/json

Success

meta
object

Pagination Meta Data, including pages, total results...

data
object[]

Domain List