API

Other apps use the same email and password as this dashboard. Log in to get a token, then send that token with each request. Interactive docs are at https://crm.nsmlonline.com/shortURLApi/swagger.

MethodPathAuth
POSThttps://crm.nsmlonline.com/shortURLApi/api/auth/registerNo
POSThttps://crm.nsmlonline.com/shortURLApi/api/auth/loginNo
GEThttps://crm.nsmlonline.com/shortURLApi/api/linksBearer token
POSThttps://crm.nsmlonline.com/shortURLApi/api/linksBearer token
GEThttps://crm.nsmlonline.com/shortURLApi/api/links/{id}Bearer token
PUThttps://crm.nsmlonline.com/shortURLApi/api/links/{id}Bearer token
DELETEhttps://crm.nsmlonline.com/shortURLApi/api/links/{id}Bearer token
GEThttps://crm.nsmlonline.com/shortURLApi/api/links/{id}/clicksBearer token

Create a link

curl -X POST https://crm.nsmlonline.com/shortURLApi/api/links \
  -H "Authorization: Bearer TOKEN" \
  -H "Content-Type: application/json" \
  -d "{\"originalUrl\":\"https://example.com\",\"slug\":\"spring-sale\"}"