Skip to main content
New to Corsair? See API access, authentication, and error handling.

Analytics

audience

analytics.audience Read a top-N click breakdown by country, city, referrer, browser, OS or device Risk: read
Input Output

clicks

analytics.clicks Read click counts over a time range at a chosen granularity, in a chosen timezone Risk: read
Input Output

Domains

active

domains.active Check whether a domain’s DNS verification has completed, which is the step to poll after adding the CNAME Risk: read
Input Output

create

domains.create Add a custom domain; the DNS CNAME still has to be created and verified before it serves links Risk: write
Input Output

delete

domains.delete Remove a custom domain from the workspace Risk: destructive
Input Output

get

domains.get Read one domain’s validity, archive state, slug length and redirect settings Risk: read
Input Output

homeRedirect

domains.homeRedirect Set where a domain’s root redirects to; U301 allows it on the Pro plan only and answers 403 on the free plan Risk: write
Input Output

list

domains.list List the workspace’s domains, including the shared u301.co and any of your own Risk: read
Input: empty object Output: object[]

notFoundRedirect

domains.notFoundRedirect Set where an unknown slug on a domain redirects to; U301 allows it on the Pro plan only and answers 403 on the free plan Risk: write
Input Output

pathLength

domains.pathLength Set the random slug length a domain uses, 3 to 10 Risk: write
Input Output

create

links.create Shorten a URL on u301.co or one of your domains, with an optional custom slug, password and comment; a new link spends one monthly allowance slot Risk: write
Input Output

delete

links.delete Delete a short link; the destination is no longer reachable through it Risk: destructive
Input Output

get

links.get Read one short link by its short form, such as u301.co/abc123 Risk: read
Input Output

list

links.list List the workspace’s short links with their click counts, archive and suspend state Risk: read
Input Output