Public routes: Links
What a link’s landing page shows.
| What it does | Route |
|---|---|
| Read a link’s landing page | GET /public/v1/links/apps/{name} |
| Report a link | POST /public/v1/links/apps/{name}/report |
| Load the website banner | GET /public/v1/links/web/{file} |
Read a link’s landing page
Section titled “Read a link’s landing page”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
| Name | In | Description |
|---|---|---|
name (required) | path | The app’s link name. |
to | query | A link’s path in the app, with its query. |
via | query | Which of a saved link’s own pages the landing page leaves for: ios, android, desktop, or expired. |
Answers
| Status | Body | Meaning |
|---|---|---|
| 200 | PublicLinkApp | OK |
| 404 | problem | Not found, or the part is switched off. |
| 429 | problem | Too many requests: wait for Retry-After. |
Report a link
Section titled “Report a link”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
| Name | In | Description |
|---|---|---|
name (required) | path | The app’s link name. |
Body (application/json): LinkReportBody
| Field | Type | Description |
|---|---|---|
reason | string | |
to (always) | string | |
via | string |
Answers
| Status | Body | Meaning |
|---|---|---|
| 204 | none | Done, with nothing to say |
| 400 | problem | The request could not be read: the problem names the field. |
| 404 | problem | Not found, or the part is switched off. |
| 429 | problem | Too many requests: wait for Retry-After. |
Load the website banner
Section titled “Load the website banner”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
| Name | In | Description |
|---|---|---|
file (required) | path |
Answers