GET/user/links

GET/user/links

This endpoints returns all the link values you have entered or not entered into your profile.

Basic Information

cURL

curl --location 'https://www.api.remoet.dev/user/links' --header 'Authorization: Bearer <Your key>'

HTTP

GET /user/links HTTP/1.1
Host: https://www.api.remoet.dev
Authorization: Bearer <Your key>

Javascript Fetch

const myHeaders = new Headers();
myHeaders.append("Authorization", `Bearer ${key}`);
 
const requestOptions = {
  method: "GET",
  headers: myHeaders
};
 
fetch("https://www.api.remoet.dev/user/links", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.error(error));

Response

Note about data fields

Currently links and other data are stored together with an isPublic flag. This is a feature not yet implemented, but it might be implemented in the future to gain access to very fine grain privacy settings.

{
    "url": {
        "isPublic": <boolean>,
        "value": <string | null>
    },
    "githubUrl": {
        "isPublic": <boolean>,
        "value": <string | null>
    },
    "facebookUrl": {
        "isPublic": <boolean>,
        "value": <string | null>
    },
    "twitterUrl": {
        "isPublic": <boolean>,
        "value": <string | null>
    },
    "linkedinUrl": {
        "isPublic": <boolean>,
        "value": <string | null>
    },
    "youtubeUrl": {
        "isPublic": <boolean>,
        "value": <string | null>
    }
}

Non authenticated response

{
    "statusCode": 401,
    "message": "Invalid API Key",
    "error": "Unauthorized"
}