Authentication
Authorization
Section titled “Authorization”All requests require a bearer token in the Authorization header:
Authorization: Bearer YOUR_API_KEYYou can generate an API key from your Nuelink dashboard under Settings -> API.
Tokens are long-lived and do not need to be refreshed. If a token is leaked, revoke it from the same dashboard screen and generate a new one.
Missing or invalid token
Section titled “Missing or invalid token”Request without token:
curl https://nuelink.com/api/public/v1/meconst response = await fetch('https://nuelink.com/api/public/v1/me');const data = await response.json();
console.log(data);<?php
$ch = curl_init('https://nuelink.com/api/public/v1/me');
curl_setopt_array($ch, [ CURLOPT_RETURNTRANSFER => true,]);
$response = curl_exec($ch);curl_close($ch);
echo $response;Typical 401 responses:
{ "status": "error", "message": "Token is required", "errors": { "authorization": "Token is required" }}{ "status": "error", "message": "Token is invalid", "errors": { "authorization": "Token is invalid" }}{ "status": "error", "message": "Token has been revoked", "errors": { "authorization": "Token has been revoked" }}