Get a link by its ID.

Method: GET

Parameters:

Response:

{
  "asin": "string",
  "id": "string",
  "sourceId": "string",
  "sourceSubId": "string",
  "sourceName": "string",
  "url": "string",
  "active": true,
  "type": "product",
  "marketplace": "amazon.com"
}

Errors:

Example:

const API_KEY = "LEVANTA_API_KEY";
const LINK_ID = "LV_123456789"

const res = await fetch(`https://app.levanta.io/api/creator/v1/links/${LINK_ID}`, {
	method: "GET",
	headers: {
		Authorization: `Bearer ${API_KEY}`
	}
});

const link = await res.json();
console.log(link);