GET /user/links
Returns the social links you’ve set on your profile.
Basic Information
- type:
REST - method:
GET - url: https://api.remoet.dev/user/links
- returns:
JSON
cURL
curl --location 'https://api.remoet.dev/user/links' --header 'Authorization: Bearer <Your key>'HTTP
GET /user/links HTTP/1.1
Host: 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://api.remoet.dev/user/links", requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.error(error));DTO
class PublicUserLinksDto {
url: string | null;
githubUrl: string | null;
facebookUrl: string | null;
twitterUrl: string | null;
linkedinUrl: string | null;
youtubeUrl: string | null;
}Response
{
"url": "https://example.dev",
"githubUrl": "https://github.com/you",
"facebookUrl": null,
"twitterUrl": "https://twitter.com/you",
"linkedinUrl": null,
"youtubeUrl": null
}Fields you haven’t filled in return null. Fields you’ve marked private also return null — the endpoint scrubs them server-side. If you need the raw values regardless of visibility, use /user/full instead (your own key, your own data, no scrub).
See also
/user/full— same fields plus the rest of your profile, withisPublicflags preserved- Authorization
- Errors
Non authenticated response
{
"statusCode": 401,
"message": "Invalid API Key",
"error": "Unauthorized"
}Last updated on