Links
Link Retrieval
Get link destination by slug
GET
https://demo.getlynx.dev/api/link
Retrieves the destination of link by its slug (unauthed).
Query Parameters
slug*
String
The slug of the link
Get full link by slug
GET
https://demo.getlynx.dev/api/link
Retrieves the full link information by its slug.
Query Parameters
id*
String
The slug of the link
Headers
Authorization
String
Your API key
Cookies
token
String
Your JWT Session
Retrieve paginated links
GET
https://demo.getlynx.dev/api/link/list
Retrieve a list of paginated links that the user has permission to see. An admin can see all links but a standard user can only see their own.
Query Parameters
pagesize*
String
Items to return in a page, up to 100.
page*
String
The current page to return, 0-base indexed.
sortType*
Intege
Order to sort by. -1 or 1.
sortField*
String
Field to sort by. id, slug, destination, author, creationDate, modifiedDate or visits.
search
String
Value to search slug and destination by.
Headers
Authorization
String
Your API key
Cookies
token
String
Your JWT Session
Link Management
Create link
POST
https://demo.getlynx.dev/api/link
Creates a a link.
Headers
Authorization
String
Your API key
Cookies
token
String
Your JWT Session
Request Body
slug*
string
The slug of the new link
destination*
string
The destination of the new link
Update link
PATCH
https://demo.getlynx.dev/api/link
Updates a a link.
Headers
Authorization
String
Your API key
Cookies
token
String
Your JWT Session
Request Body
slug*
string
The slug of the link to set
destination*
string
The destination of the link to set
id*
String
The id of the link
Delete link
DELETE
https://demo.getlynx.dev/api/link
Deletes a a link.
Headers
Authorization
String
Your API key
Cookies
token
String
Your JWT Session
Request Body
ids*
Array
The id of links to remove
Last updated