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/meTypical 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" }}