Skip to content

Public routes: Links

What a link’s landing page shows.

What it doesRoute
Read a link’s landing pageGET /public/v1/links/apps/{name}
Report a linkPOST /public/v1/links/apps/{name}/report
Load the website bannerGET /public/v1/links/web/{file}

GET /public/v1/links/apps/{name}

What the landing page of an app’s link shows a phone without the app: its name, brand, link base and store pages, and, with to, the web page the link goes to (with via, a saved link’s own page for ios, android or desktop, or for after it expired).

Needs: nothing: no credential.

Parameters

NameInDescription
name (required)pathThe app’s link name.
toqueryA link’s path in the app, with its query.
viaqueryWhich of a saved link’s own pages the landing page leaves for: ios, android, desktop, or expired.

Answers

StatusBodyMeaning
200PublicLinkAppOK
404problemNot found, or the part is switched off.
429problemToo many requests: wait for Retry-After.

POST /public/v1/links/apps/{name}/report

A visitor reports a link that leaves for another site as harmful, from the page that says where it is leaving for: to and via as that page was asked for them, and what they say of it. PurrCRM’s operators are emailed, once a day for a link. Always 204 for an app with links.

Needs: nothing: no credential.

Parameters

NameInDescription
name (required)pathThe app’s link name.

Body (application/json): LinkReportBody

FieldTypeDescription
reasonstring
to (always)string
viastring

Answers

StatusBodyMeaning
204noneDone, with nothing to say
400problemThe request could not be read: the problem names the field.
404problemNot found, or the part is switched off.
429problemToo many requests: wait for Retry-After.

GET /public/v1/links/web/{file}

The app’s website script, <link name>.js: on a phone, a banner whose button opens the app through its links (a phone without the app goes to its store, the link kept through the install), and the page’s UTM tags carried onto every a[data-crm-link]. Load it with a script tag; any website may. 404 for an app with no banner.

Needs: nothing: no credential.

Parameters

NameInDescription
file (required)path

Answers

StatusBodyMeaning
200application/javascriptOK
404problemNot found, or the part is switched off.
429problemToo many requests: wait for Retry-After.